Browse Source

缺陷:HL-5834申请导出修改

hella_online_20240924
zhaoxuebing 2 months ago
parent
commit
b37ff3f6b3
  1. 10
      src/api/wms/purchasereturnRequestMain/index.ts
  2. 2
      src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMOrderTypeMain/index.vue

10
src/api/wms/purchasereturnRequestMain/index.ts

@ -91,6 +91,16 @@ export const exportPurchasereturnRequestMain = async (params) => {
}
}
// 导出采购退货申请主 Excel
export const exportPurchasereturnRequestMainMorderType = async (params) => {
if (params.isSearch) {
const data = {...params}
return await request.downloadPost({ url: `/wms/purchasereturn-request-main/export-excel-senior-mordertype`, data })
} else {
return await request.download({url: `/wms/purchasereturn-request-main/export-excel-mordertype`, params})
}
}
// 导出采购退货申请主 Excel
export const exportPurchasereturnRequestMainSpare = async (params) => {
if (params.isSearch) {

2
src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMOrderTypeMain/index.vue

@ -796,7 +796,7 @@ const handleExport = async () => {
//
loadStart()
const excelTitle = ref(route.meta.title)
const data = await PurchasereturnRequestMainApi.exportPurchasereturnRequestMain(
const data = await PurchasereturnRequestMainApi.exportPurchasereturnRequestMainMorderType(
tableObject.params
)
download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)

Loading…
Cancel
Save