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