From 16462daf7ba261d93c84c97f601a3687deec83f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A0=82=E7=B3=96?= <2178503051@qq.com> Date: Thu, 7 May 2026 17:17:46 +0800 Subject: [PATCH] =?UTF-8?q?fix(wms=E6=8A=A5=E8=A1=A8):=20=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=E6=95=B0=E6=8D=AE=E8=BF=87=E6=BB=A4=E5=92=8C=E5=8E=BB?= =?UTF-8?q?=E9=87=8D=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 确保在映射coilId和processedCoilIds前先过滤掉空值,避免潜在的错误 --- klp-ui/src/views/wms/report/template/action.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/klp-ui/src/views/wms/report/template/action.vue b/klp-ui/src/views/wms/report/template/action.vue index 0fffd847..8124bac4 100644 --- a/klp-ui/src/views/wms/report/template/action.vue +++ b/klp-ui/src/views/wms/report/template/action.vue @@ -321,8 +321,8 @@ export default { queryParams: { startTime: start, endTime: end, - byCreateTimeStart: start, - byCreateTimeEnd: end, + // byCreateTimeStart: start, + // byCreateTimeEnd: end, enterCoilNo: '', currentCoilNo: '', warehouseId: '', @@ -465,9 +465,9 @@ export default { // 所有报表类型都使用原始的 listPendingAction 方式获取数据 const res = await listPendingAction({ ...this.queryParams, actionType: this.actionType, actionStatus: 2 }); // 获取两层数据 - const lossIds = res.rows.map(item => item.coilId); + const lossIds = res.rows.filter(item => item.coilId).map(item => item.coilId); // 使用new Set去重 - const outIds = [...new Set(res.rows.map(item => item.processedCoilIds))]; + const outIds = [...new Set(res.rows.filter(item => item.processedCoilIds).map(item => item.processedCoilIds))]; if (lossIds.length === 0 || outIds.length === 0) { this.$message({