From 325ee491a98a7747dbbce163732e3e8f235b2f53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E7=BA=A2=E5=85=B5?= <374362909@qq.com> Date: Wed, 25 Feb 2026 12:42:33 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B1=A5=E7=BA=A6=E9=AA=8C=E6=94=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/purchase/purchasingAccept.ts | 16 +++- .../accept/PurchasingAcceptModal.vue | 76 +++++++++++++------ 2 files changed, 65 insertions(+), 27 deletions(-) diff --git a/src/api/purchase/purchasingAccept.ts b/src/api/purchase/purchasingAccept.ts index f72e252..eaaf2ad 100644 --- a/src/api/purchase/purchasingAccept.ts +++ b/src/api/purchase/purchasingAccept.ts @@ -135,14 +135,22 @@ export function getAcceptanceItems(acceptanceType: string) { } /** - * 下载履约验收模板 + * 导出履约验收评价表(仅填写模式可导出) + * 单期返回 docx,exportAll=true 时返回全部期数 zip */ -export function downloadPerformanceAcceptanceTemplate(purchaseId: string, batch?: number) { +export function downloadPerformanceAcceptanceTemplate( + purchaseId: string, + batch?: number, + exportAll?: boolean +) { + const params: Record = { purchaseId } + if (exportAll === true) params.exportAll = true + else if (batch != null) params.batch = batch return request({ url: '/purchase/purchasingAccept/export-performance-acceptance-template', method: 'get', - params: { purchaseId, batch }, - responseType: 'blob' // 重要:用于文件下载 + params, + responseType: 'blob' }) } diff --git a/src/views/finance/purchasingrequisition/accept/PurchasingAcceptModal.vue b/src/views/finance/purchasingrequisition/accept/PurchasingAcceptModal.vue index 09d43d9..34a0777 100644 --- a/src/views/finance/purchasingrequisition/accept/PurchasingAcceptModal.vue +++ b/src/views/finance/purchasingrequisition/accept/PurchasingAcceptModal.vue @@ -83,16 +83,22 @@