From 962b866aeb4a3d2435daa3fa01c988acd6965559 Mon Sep 17 00:00:00 2001 From: zhaoyiran Date: Wed, 7 Aug 2024 11:35:18 +0800 Subject: [PATCH] =?UTF-8?q?QMS=E5=AF=BC=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/qms/inspectionQ1/index.ts | 9 +++++++-- src/api/qms/inspectionQ2/index.ts | 7 ++++++- src/api/qms/inspectionQ3/index.ts | 7 ++++++- 3 files changed, 19 insertions(+), 4 deletions(-) diff --git a/src/api/qms/inspectionQ1/index.ts b/src/api/qms/inspectionQ1/index.ts index aba6db8e8..9072dcd4e 100644 --- a/src/api/qms/inspectionQ1/index.ts +++ b/src/api/qms/inspectionQ1/index.ts @@ -58,7 +58,12 @@ export const deleteQ1 = async (id: number) => { // 导出Q1通知单 Excel export const exportQ1 = async (params) => { - return await request.download({ url: `/qms/inspectionQ1/export-excel`, params }) + if (params.isSearch) { + const data = {...params} + return await request.downloadPost({ url: `/qms/inspectionQ1/export-excel-senior`, data }) + }else{ + return await request.download({ url: `/qms/inspectionQ1/export-excel`, params }) + } } // 下载用户导入模板 @@ -69,4 +74,4 @@ export const importTemplate = () => { // 完成 export const finishQ1 = async (id: number) => { return await request.get({ url: `/qms/inspectionQ1/finish?id=` + id }) -} \ No newline at end of file +} diff --git a/src/api/qms/inspectionQ2/index.ts b/src/api/qms/inspectionQ2/index.ts index 36c186445..7b4ea2ef6 100644 --- a/src/api/qms/inspectionQ2/index.ts +++ b/src/api/qms/inspectionQ2/index.ts @@ -59,7 +59,12 @@ export const deleteQ2 = async (id: number) => { // 导出Q2通知单 Excel export const exportQ2 = async (params) => { - return await request.download({ url: `/qms/inspectionQ2/export-excel`, params }) + if (params.isSearch) { + const data = {...params} + return await request.downloadPost({ url: `/qms/inspectionQ2/export-excel-senior`, data }) + }else{ + return await request.download({ url: `/qms/inspectionQ2/export-excel`, params }) + } } // 下载用户导入模板 diff --git a/src/api/qms/inspectionQ3/index.ts b/src/api/qms/inspectionQ3/index.ts index a8e1d81b2..7f140cb52 100644 --- a/src/api/qms/inspectionQ3/index.ts +++ b/src/api/qms/inspectionQ3/index.ts @@ -59,7 +59,12 @@ export const deleteQ3 = async (id: number) => { // 导出Q3通知单 Excel export const exportQ3 = async (params) => { - return await request.download({ url: `/qms/inspectionQ3/export-excel`, params }) + if (params.isSearch) { + const data = {...params} + return await request.downloadPost({ url: `/qms/inspectionQ3/export-excel-senior`, data }) + }else{ + return await request.download({ url: `/qms/inspectionQ3/export-excel`, params }) + } } // 下载用户导入模板