From f5b62bc299aa20272ac8f538db7ea14db096ce04 Mon Sep 17 00:00:00 2001 From: zhang_li <2235006734@qqq.com> Date: Wed, 15 Nov 2023 14:38:11 +0800 Subject: [PATCH] =?UTF-8?q?=E7=89=A9=E6=96=99=E6=B8=85=E5=8D=95=E5=AF=BC?= =?UTF-8?q?=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/wms/bom/index.ts | 7 ++++++- src/views/wms/basicDataManage/itemManage/bom/index.vue | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) 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 {