Browse Source

备件收货导出

master_hella_20240701
zhaoyiran 5 months ago
parent
commit
ba01db303f
  1. 10
      src/api/wms/purchasereceiptRequestMain/index.ts
  2. 4
      src/views/wms/purchasereceiptManage/sparereceipt/sparereceiptRequestMain/index.vue

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

@ -88,6 +88,16 @@ export const exportPurchasereceiptRequestMain = async (params) => {
}
}
// 导出备件收货申请
export const exportSparereceiptRequestMain = async (params) => {
if (params.isSearch) {
const data = {...params}
return await request.downloadPost({ url: `/wms/purchasereceipt-request-main/export-excel-spare-senior`, data })
} else {
return await request.download({ url: `/wms/purchasereceipt-request-main/export-excel-spare`, params })
}
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/wms/purchasereceipt-request-main/get-import-template' })

4
src/views/wms/purchasereceiptManage/sparereceipt/sparereceiptRequestMain/index.vue

@ -542,8 +542,8 @@ const handleExport = async () => {
await message.exportConfirm()
//
exportLoading.value = true
const data = await PurchasereceiptRequestMainApi.exportPurchasereceiptRequestMain(tableObject.params)
download.excel(data, '采购收货申请主.xlsx')
const data = await PurchasereceiptRequestMainApi.exportSparereceiptRequestMain(tableObject.params)
download.excel(data, '备件收货申请.xlsx')
} catch {
} finally {
exportLoading.value = false

Loading…
Cancel
Save