From b603c4eac56dcc00a3218406a9cd8439a67a290b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E5=AE=8F=E6=96=8C?= <2164406372@qq.com> Date: Wed, 24 Dec 2025 17:25:02 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=20=E4=B8=80=E9=94=AE?= =?UTF-8?q?=E4=B8=8B=E8=BD=BD=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/eam/com_project_proof_record.vue | 22 ++++++++++- src/views/modules/eam/eamProjectPartInfo.vue | 38 ++++++++++++++++++- 2 files changed, 56 insertions(+), 4 deletions(-) diff --git a/src/views/modules/eam/com_project_proof_record.vue b/src/views/modules/eam/com_project_proof_record.vue index 7aa2b7f..56075f0 100644 --- a/src/views/modules/eam/com_project_proof_record.vue +++ b/src/views/modules/eam/com_project_proof_record.vue @@ -64,6 +64,7 @@ 上传其他文档 + 一键下载 { + return item.documentId !== null + }) + for (const item of list) { + await this.viewDocumentFile(item, true) + this.downloadFile(this.partProofingDocumentFileList[0]) + await new Promise(resolve => setTimeout(resolve, 500)) + } + this.downloadLoading = false + }, sendMailHandle(row) { sendMailHandle(row).then(({data}) => { if (data && data.code === 0) { @@ -2237,7 +2252,7 @@ }); } }, - viewDocumentFile(row) { + async viewDocumentFile(row,flag) { let inData = { id: row.documentId, orderRef1: row.site, @@ -2251,11 +2266,14 @@ page: 1, limit: 1000 } - searchProjectConfirmatorFileList(inData).then(({data}) => { + await searchProjectConfirmatorFileList(inData).then(({data}) => { if (data && data.code === 0){ this.partProofingDocumentFileList = data.page.list; } }) + if(flag){ + return + } this.viewDocumentFileVisible = true }, // 查看文件 diff --git a/src/views/modules/eam/eamProjectPartInfo.vue b/src/views/modules/eam/eamProjectPartInfo.vue index c246df4..5ddbc90 100644 --- a/src/views/modules/eam/eamProjectPartInfo.vue +++ b/src/views/modules/eam/eamProjectPartInfo.vue @@ -1272,6 +1272,7 @@ 文档清单定义 上传其他文档 邮件提醒 + 一键下载 选择生产确认文档 + 一键下载 { + return this.shouldShowDelete(item) || item.projectPhase === 'SOP文档' + }) + for (const item of list) { + await this.viewMassDocumentFile(item, true) + this.downloadFile(this.projectConfirmatorFileList[0]) + await new Promise(resolve => setTimeout(resolve, 500)) + } + this.downloadLoading = false + }, + // 所有文档 一键下载 + async dowloadAllFile2(){ + this.downloadLoading = true + let oldList = this.projectAllDocumentList + let list = oldList.filter(item => { + return this.shouldShowDelete(item) || item.uploadedFlag === 'Y' + }) + for (const item of list) { + await this.viewMassDocumentFile(item, true) + this.downloadFile(this.projectConfirmatorFileList[0]) + await new Promise(resolve => setTimeout(resolve, 500)) + } + this.downloadLoading = false + }, cancelModalStatus (row) { this.modalData = { site: row.site, @@ -6077,7 +6108,7 @@ import {uploadFileList} from '@/api/base/baseFunction.js'; }) this.viewDocumentFileVisible = true }, - viewMassDocumentFile(row) { + async viewMassDocumentFile(row,flag) { let inData = { orderRef1: row.site, orderRef2: row.proofingId, @@ -6091,11 +6122,14 @@ import {uploadFileList} from '@/api/base/baseFunction.js'; page: 1, limit: 1000 } - searchProjectConfirmatorFileList(inData).then(({data}) => { + await searchProjectConfirmatorFileList(inData).then(({data}) => { if (data && data.code === 0){ this.projectConfirmatorFileList = data.page.list; } }) + if (flag){ + return + } this.viewMassDocumentFileVisible = true }, deleteFile(row) {