diff --git a/src/api/wms/transaction/index.ts b/src/api/wms/transaction/index.ts index e4b38fc46..98b4a8aea 100644 --- a/src/api/wms/transaction/index.ts +++ b/src/api/wms/transaction/index.ts @@ -62,7 +62,13 @@ export const deleteTransaction = async (id: number) => { // 导出库存事务 Excel export const exportTransaction = async (params) => { - return await request.download({ url: `/wms/transaction/export-excel`, params }) + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.post({ url: '/wms/transaction/export-excel-senior', data }) + } else { + return await request.download({ url: `/wms/transaction/export-excel`, params }) + } } // 下载用户导入模板