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 }) + } } // 下载用户导入模板