Browse Source

备件收货导出

master_hella_20240701
zhaoyiran 6 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 = () => { export const importTemplate = () => {
return request.download({ url: '/wms/purchasereceipt-request-main/get-import-template' }) 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() await message.exportConfirm()
// //
exportLoading.value = true exportLoading.value = true
const data = await PurchasereceiptRequestMainApi.exportPurchasereceiptRequestMain(tableObject.params) const data = await PurchasereceiptRequestMainApi.exportSparereceiptRequestMain(tableObject.params)
download.excel(data, '采购收货申请主.xlsx') download.excel(data, '备件收货申请.xlsx')
} catch { } catch {
} finally { } finally {
exportLoading.value = false exportLoading.value = false

Loading…
Cancel
Save