From babf75eba97b393598226721a7cf68331affc508 Mon Sep 17 00:00:00 2001 From: zhaoxuebing <1291173720@qq.com> Date: Thu, 29 Feb 2024 14:37:15 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BA=93=E5=AD=98=E4=BA=8B=E5=8A=A1=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/transaction/index.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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 }) + } } // 下载用户导入模板