diff --git a/src/api/wms/transactiontype/index.ts b/src/api/wms/transactiontype/index.ts index 88c259be4..56d65f367 100644 --- a/src/api/wms/transactiontype/index.ts +++ b/src/api/wms/transactiontype/index.ts @@ -46,7 +46,13 @@ export const deleteTransactiontype = async (id: number) => { // 导出事务类型 Excel export const exportTransactiontype = async (params) => { - return await request.download({ url: `/wms/transactiontype/export-excel`, params }) + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return request.downloadPost({ url: '/wms/transactiontype/export-excel-senior', data }) + } else { + return await request.download({ url: `/wms/transactiontype/export-excel`, params }) + } } // 下载用户导入模板