@ -47,7 +47,12 @@ 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 })
}
// 下载用户导入模板
@ -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 {