diff --git a/src/api/wms/purchasereceiptRequestMain/index.ts b/src/api/wms/purchasereceiptRequestMain/index.ts index fa910cb1b..dbbc615fb 100644 --- a/src/api/wms/purchasereceiptRequestMain/index.ts +++ b/src/api/wms/purchasereceiptRequestMain/index.ts @@ -88,6 +88,17 @@ export const exportPurchasereceiptRequestMain = async (params) => { } } + +// 导出采购M型收货申请主 Excel +export const exportPurchasereceiptRequestMainOrderTypeM = async (params) => { + if (params.isSearch) { + const data = {...params} + return await request.downloadPost({ url: `/wms/purchasereceipt-request-main/export-excel-senior-orderTypeM`, data }) + } else { + return await request.download({ url: `/wms/purchasereceipt-request-main/export-excel-orderTypeM`, params }) + } +} + // 导出备件收货申请 export const exportSparereceiptRequestMain = async (params) => { if (params.isSearch) { diff --git a/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestOrderMTypeMain/index.vue b/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestOrderMTypeMain/index.vue index ba42051be..9837f1fa4 100644 --- a/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestOrderMTypeMain/index.vue +++ b/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestOrderMTypeMain/index.vue @@ -701,7 +701,7 @@ const handleExport = async () => { // 发起导出 loadStart() const excelTitle = ref(route.meta.title) - const data = await PurchasereceiptRequestMainApi.exportPurchasereceiptRequestMain(tableObject.params) + const data = await PurchasereceiptRequestMainApi.exportPurchasereceiptRequestMainOrderTypeM(tableObject.params) download.excel(data, `【${excelTitle.value}】【${formatDate(new Date())}】.xlsx`) } catch { } finally {