From 891e2f6095ea601a96ce094644c753dad6578779 Mon Sep 17 00:00:00 2001 From: yufei_wang <2267742828@qq.com> Date: Fri, 22 Nov 2024 08:54:56 +0800 Subject: [PATCH] =?UTF-8?q?=E9=AB=98=E7=BA=A7=E7=AD=9B=E9=80=89=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/wms/finishedShipmentDetail/index.ts | 8 +++++++- src/api/wms/unfinishedShipmentDetail/index.ts | 7 ++++++- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/src/api/wms/finishedShipmentDetail/index.ts b/src/api/wms/finishedShipmentDetail/index.ts index fffcf28ee..13093e939 100644 --- a/src/api/wms/finishedShipmentDetail/index.ts +++ b/src/api/wms/finishedShipmentDetail/index.ts @@ -51,7 +51,13 @@ export const deleteFinishedShipmentDetail = async (id: number) => { // 导出已发未结发货记录子 Excel export const exportFinishedShipmentDetail = async (params) => { - return await request.download({ url: `/wms/finished-shipment-record-detail/export-excel`, params }) + if (params.isSearch) { + const data = {...params} + return await request.downloadPost({ url: `/wms/finished-shipment-record-detail/export-excel-senior`, data }) + }else{ + return await request.download({ url: `/wms/finished-shipment-record-detail/export-excel`, params } + } + ) } // 下载用户导入模板 diff --git a/src/api/wms/unfinishedShipmentDetail/index.ts b/src/api/wms/unfinishedShipmentDetail/index.ts index 58b55bb47..a8af34227 100644 --- a/src/api/wms/unfinishedShipmentDetail/index.ts +++ b/src/api/wms/unfinishedShipmentDetail/index.ts @@ -51,7 +51,12 @@ export const deleteUnfinishedShipmentDetail = async (id: number) => { // 导出已发未结发货记录子 Excel export const exportUnfinishedShipmentDetail = async (params) => { - return await request.download({ url: `/wms/unfinished-shipment-detail/export-excel`, params }) + if (params.isSearch) { + const data = {...params} + return await request.downloadPost({ url: `/wms/unfinished-shipment-detail/export-excel-senior`, data }) + }else{ + return await request.download({ url: `/wms/unfinished-shipment-detail/export-excel`, params }) + } } // 下载用户导入模板