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 }) + } } // 下载用户导入模板