diff --git a/src/api/wms/purchasereturnRequestMain/index.ts b/src/api/wms/purchasereturnRequestMain/index.ts index 10be8d9e6..03cad7705 100644 --- a/src/api/wms/purchasereturnRequestMain/index.ts +++ b/src/api/wms/purchasereturnRequestMain/index.ts @@ -73,6 +73,16 @@ export const exportPurchasereturnRequestMain = async (params) => { } } +// 导出采购退货申请主 Excel +export const exportPurchasereturnRequestMainSpare = async (params) => { + if (params.isSearch) { + const data = {...params} + return await request.downloadPost({ url: `/wms/purchasereturn-request-main/export-excel-senior-spare`, data }) + } else { + return await request.download({url: `/wms/purchasereturn-request-main/export-excel-spare`, params}) + } +} + // 下载用户导入模板 export const importTemplate = () => { return request.download({ url: '/wms/purchasereturn-request-main/get-import-template' }) diff --git a/src/views/wms/purchasereceiptManage/purchasereturnspare/purchasereturnRequestSpareMain/index.vue b/src/views/wms/purchasereceiptManage/purchasereturnspare/purchasereturnRequestSpareMain/index.vue index 758a5cfff..d3a256cab 100644 --- a/src/views/wms/purchasereceiptManage/purchasereturnspare/purchasereturnRequestSpareMain/index.vue +++ b/src/views/wms/purchasereceiptManage/purchasereturnspare/purchasereturnRequestSpareMain/index.vue @@ -699,10 +699,10 @@ const handleExport = async () => { await message.exportConfirm() // 发起导出 exportLoading.value = true - const data = await PurchasereturnRequestMainApi.exportPurchasereturnRequestMain( + const data = await PurchasereturnRequestMainApi.exportPurchasereturnRequestMainSpare( tableObject.params ) - download.excel(data, '采购退货申请主.xlsx') + download.excel(data, '维修备件退货申请主.xlsx') } catch { } finally { exportLoading.value = false