From 1f24a438b24d7d323cfa06a334850a02eb82aca8 Mon Sep 17 00:00:00 2001 From: gaojs <757918719@qq.com> Date: Wed, 9 Oct 2024 16:26:49 +0800 Subject: [PATCH] =?UTF-8?q?WMS=20bug=20HL-6227=EF=BC=9A=E7=BA=BF=E8=BE=B9?= =?UTF-8?q?=E6=8A=A5=E5=BA=9F=E7=AD=9B=E9=80=89=E5=8A=9F=E8=83=BD,?= =?UTF-8?q?=E5=88=9B=E5=BB=BA=E6=97=B6=E9=97=B4=E6=9D=A1=E4=BB=B6=E6=9C=AA?= =?UTF-8?q?=E7=94=9F=E6=95=88=20=E5=AF=BC=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/wms/productionscrapRecordMain/index.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/api/wms/productionscrapRecordMain/index.ts b/src/api/wms/productionscrapRecordMain/index.ts index a464277b7..3db1ddd9f 100644 --- a/src/api/wms/productionscrapRecordMain/index.ts +++ b/src/api/wms/productionscrapRecordMain/index.ts @@ -63,7 +63,12 @@ export const deleteProductionscrapRecordMain = async (id: number) => { // 导出线边原料报废记录主 Excel export const exportProductionscrapRecordMain = async (params) => { - return await request.download({ url: `/wms/productionscrap-record-main/export-excel`, params }) + if (params.isSearch){ + const data = {...params} + return await request.downloadPost({ url: `/wms/productionscrap-record-main/export-excel-senior`, data }) + }else { + return await request.download({ url: `/wms/productionscrap-record-main/export-excel`, params }) + } } // 下载用户导入模板