diff --git a/src/api/wms/purchaseMain/index.ts b/src/api/wms/purchaseMain/index.ts index a833a5427..164cf53ff 100644 --- a/src/api/wms/purchaseMain/index.ts +++ b/src/api/wms/purchaseMain/index.ts @@ -72,7 +72,12 @@ export const witPurchaseMain = async (id: number) => { } // 导出采购订单主 Excel export const exportPurchaseMain = async (params) => { - return await request.download({ url: `/wms/purchase-main/export-excel`, params }) + if (params.isSearch) { + const data = {...params} + return await request.downloadPost({ url: `/wms/purchase-main/export-excel-senior`, data }) + } else { + return await request.download({ url: `/wms/purchase-main/export-excel`, params }) + } } // 下载用户导入模板