From 46c74afd8f5fec6f88299620e9f7b014c62acf88 Mon Sep 17 00:00:00 2001 From: zhaoxuebing <1291173720@qq.com> Date: Fri, 24 May 2024 10:57:30 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B4=A6=E6=88=B7=E7=A7=91=E7=9B=AE=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/wms/subjectAccount/index.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/api/wms/subjectAccount/index.ts b/src/api/wms/subjectAccount/index.ts index 9674cd532..351203c3c 100644 --- a/src/api/wms/subjectAccount/index.ts +++ b/src/api/wms/subjectAccount/index.ts @@ -52,7 +52,12 @@ export const deleteSubjectAccount = async (id: number) => { // 导出科目账户配置 Excel export const exportSubjectAccount = async (params) => { - return await request.download({ url: `/wms/subject-account/export-excel`, params }) + if (params.isSearch) { + const data = {...params} + return await request.downloadPost({ url: `/wms/subject-account/export-excel-senior`, data }) + }else{ + return await request.download({ url: `/wms/subject-account/export-excel`, params }) + } } // 下载用户导入模板