Browse Source

维修备件退货记录导出修改

hella_online_20240829
zhaoxuebing 4 months ago
parent
commit
75ba7ab185
  1. 10
      src/api/wms/purchasereturnRecordMain/index.ts
  2. 4
      src/views/wms/purchasereceiptManage/purchasereturnspare/purchasereturnRecordSpareMain/index.vue

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

@ -75,6 +75,16 @@ export const exportPurchasereturnRecordMain = async (params) => {
}
}
// 导出维修备件退货记录主 Excel
export const exportPurchasereturnRecordMainSpare = async (params) => {
if (params.isSearch) {
const data = {...params}
return await request.downloadPost({ url: `/wms/purchasereturn-record-main/export-excel-senior-spare`, data })
} else {
return await request.download({url: `/wms/purchasereturn-record-main/export-excel-spare`, params})
}
}
// 导出采购退货记录主 Excel
export const exportPurchasereturnRecordMainSCP = async (params) => {
if (params.isSearch) {

4
src/views/wms/purchasereceiptManage/purchasereturnspare/purchasereturnRecordSpareMain/index.vue

@ -172,8 +172,8 @@ const handleExport = async () => {
const data = await PurchasereturnRecordMainApi.exportPurchasereturnRecordMainSCP(tableObject.params)
download.excel(data, `${t('ts.采购退货记录主')}.xlsx`)
}else{
const data = await PurchasereturnRecordMainApi.exportPurchasereturnRecordMain(tableObject.params)
download.excel(data, `${t('ts.采购退货记录主')}.xlsx`)
const data = await PurchasereturnRecordMainApi.exportPurchasereturnRecordMainSpare(tableObject.params)
download.excel(data, `维修备件退货记录主.xlsx`)
}
} catch {

Loading…
Cancel
Save