|
|
@ -871,7 +871,20 @@ export default { |
|
|
// 根据档号查询最大件号并赋值 |
|
|
// 根据档号查询最大件号并赋值 |
|
|
async fetchAndSetMaxItemNo(archivesNo) { |
|
|
async fetchAndSetMaxItemNo(archivesNo) { |
|
|
try { |
|
|
try { |
|
|
const response = await FetchMaxItemNoByArchivesNo({ archivesNo }) |
|
|
|
|
|
|
|
|
let categoryId |
|
|
|
|
|
if (this.isDesFormType !== 'mergeFile' && this.isDesFormType !== 'arcives' && this.isDesFormType !== 'manageArcives') { |
|
|
|
|
|
categoryId = this.selectedCategory.pid |
|
|
|
|
|
} else { |
|
|
|
|
|
categoryId = this.selectedCategory.id |
|
|
|
|
|
} |
|
|
|
|
|
let categoryLevel |
|
|
|
|
|
if (this.isDesFormType === 'mergeFile') { |
|
|
|
|
|
categoryLevel = 3 |
|
|
|
|
|
} else { |
|
|
|
|
|
categoryLevel = this.collectLevel |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
const response = await FetchMaxItemNoByArchivesNo({ archivesNo, categoryId, categoryLevel }) |
|
|
console.log('查询最大件号响应:', response) |
|
|
console.log('查询最大件号响应:', response) |
|
|
// 记录最大件号(每次都更新) |
|
|
// 记录最大件号(每次都更新) |
|
|
this.maxItemNo = response |
|
|
this.maxItemNo = response |
|
|
|