diff --git a/src/api/wms/bom/index.ts b/src/api/wms/bom/index.ts index e6efe0e21..84fa225de 100644 --- a/src/api/wms/bom/index.ts +++ b/src/api/wms/bom/index.ts @@ -47,7 +47,12 @@ export const deleteBom = async (id: number) => { // 导出物料清单 Excel export const exportBom = async (params) => { - return await request.download({ url: `/wms/bom/export-excel`, 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 }) + } } // 下载用户导入模板 diff --git a/src/views/wms/basicDataManage/itemManage/bom/index.vue b/src/views/wms/basicDataManage/itemManage/bom/index.vue index 12ccf67a4..5694c8d9f 100644 --- a/src/views/wms/basicDataManage/itemManage/bom/index.vue +++ b/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 {