From 8c8990c21e68ba5e8566cbfa058fe3fc8ef9beda Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E8=96=AA=E5=90=8D?= <942005050@qq.com> Date: Thu, 9 Nov 2023 09:05:18 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AD=9B=E9=80=89=E5=90=8E=E5=AF=BC=E5=87=BA?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E9=A2=84=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../itemManage/itempackaging/index.vue | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/views/wms/basicDataManage/itemManage/itempackaging/index.vue b/src/views/wms/basicDataManage/itemManage/itempackaging/index.vue index 0cd99c914..a0f37daa8 100644 --- a/src/views/wms/basicDataManage/itemManage/itempackaging/index.vue +++ b/src/views/wms/basicDataManage/itemManage/itempackaging/index.vue @@ -182,8 +182,15 @@ const handleExport = async () => { await message.exportConfirm() // 发起导出 exportLoading.value = true - const data = await ItempackagingApi.exportItempackaging(setSearchParams) - download.excel(data, '物品包装信息 .xls') + // 判断是筛选后的列表数据 + if (tableObject.params.isSearch) { + // 调用筛选后的导出接口 后端未提供 参数传 tableObject.params 20231109 + const data = await ItempackagingApi.exportItempackaging(setSearchParams) + download.excel(data, '物品包装信息 .xls') + } else { + const data = await ItempackagingApi.exportItempackaging(setSearchParams) + download.excel(data, '物品包装信息 .xls') + } } catch { } finally { exportLoading.value = false