Browse Source

维修备件导出修改

hella_online_20240829
zhaoxuebing 4 months ago
parent
commit
3582e2d195
  1. 10
      src/api/wms/purchasereturnRequestMain/index.ts
  2. 4
      src/views/wms/purchasereceiptManage/purchasereturnspare/purchasereturnRequestSpareMain/index.vue

10
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 = () => { export const importTemplate = () => {
return request.download({ url: '/wms/purchasereturn-request-main/get-import-template' }) return request.download({ url: '/wms/purchasereturn-request-main/get-import-template' })

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

@ -699,10 +699,10 @@ const handleExport = async () => {
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true exportLoading.value = true
const data = await PurchasereturnRequestMainApi.exportPurchasereturnRequestMain( const data = await PurchasereturnRequestMainApi.exportPurchasereturnRequestMainSpare(
tableObject.params tableObject.params
) )
download.excel(data, '采购退货申请主.xlsx') download.excel(data, '维修备件退货申请主.xlsx')
} catch { } catch {
} finally { } finally {
exportLoading.value = false exportLoading.value = false

Loading…
Cancel
Save