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,7 +47,12 @@ export const deleteBom = async (id: number) => {
// 导出物料清单 Excel // 导出物料清单 Excel
export const exportBom = async (params) => { 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 }) return await request.download({ url: `/wms/bom/export-excel`, params })
}
} }
// 下载用户导入模板 // 下载用户导入模板

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

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

Loading…
Cancel
Save