Browse Source

物料清单导出

master
zhang_li 1 year ago
parent
commit
f5b62bc299
  1. 5
      src/api/wms/bom/index.ts
  2. 2
      src/views/wms/basicDataManage/itemManage/bom/index.vue

5
src/api/wms/bom/index.ts

@ -47,8 +47,13 @@ export const deleteBom = async (id: number) => {
// 导出物料清单 Excel
export const exportBom = async (params) => {
if (params.isSearch) {
const data = {...params}
return await request.downloadPost({ url: `/wms/bom/export-excel-senior`, data })
} else {
return await request.download({ url: `/wms/bom/export-excel`, params })
}
}
// 下载用户导入模板
export const importTemplate = () => {

2
src/views/wms/basicDataManage/itemManage/bom/index.vue

@ -209,7 +209,7 @@ const handleExport = async () => {
await message.exportConfirm()
//
exportLoading.value = true
const data = await BomApi.exportBom(setSearchParams)
const data = await BomApi.exportBom(tableObject.params)
download.excel(data, '物品清单信息 .xls')
} catch {
} finally {

Loading…
Cancel
Save