From 7857b2e298700b2cbc255e30700c2a1e9f388723 Mon Sep 17 00:00:00 2001 From: zhaoxuebing <1291173720@qq.com> Date: Thu, 29 Feb 2024 14:21:45 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=8B=E5=8A=A1=E7=B1=BB=E5=9E=8B=E5=AF=BC?= =?UTF-8?q?=E5=85=A5=E5=AF=BC=E5=87=BA=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/wms/transactiontype/index.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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 }) + } } // 下载用户导入模板