Browse Source

缺陷:HL-5470导出修改

hella_online_20240828
zhaoxuebing 3 months ago
parent
commit
ce31a78070
  1. 11
      src/api/wms/purchasereceiptRequestMain/index.ts
  2. 2
      src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestOrderMTypeMain/index.vue

11
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) {

2
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 {

Loading…
Cancel
Save