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