From 9629c9d9ce2e890bb3c6ab7b7aae1684770bf6d1 Mon Sep 17 00:00:00 2001 From: xuhuajiao <13476289682@163.com> Date: Wed, 27 May 2026 18:38:42 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9C=80=E5=A4=A7=E4=BB=B6=E5=8F=B72?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/components/category/PreviewForm.vue | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/src/views/components/category/PreviewForm.vue b/src/views/components/category/PreviewForm.vue index 4fe719d..8be29f0 100644 --- a/src/views/components/category/PreviewForm.vue +++ b/src/views/components/category/PreviewForm.vue @@ -871,7 +871,20 @@ export default { // 根据档号查询最大件号并赋值 async fetchAndSetMaxItemNo(archivesNo) { 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) // 记录最大件号(每次都更新) this.maxItemNo = response