From 6e34b17b8121863caf7321f972a42bbf6a566b94 Mon Sep 17 00:00:00 2001 From: huangjinysf Date: Sun, 4 Jan 2026 14:24:59 +0800 Subject: [PATCH] =?UTF-8?q?fix(RealTimeInventory):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E5=8D=95=E5=85=83=E6=A0=BC=E7=82=B9=E5=87=BB=E6=97=B6=E6=9C=AA?= =?UTF-8?q?=E6=B8=85=E9=99=A4=E4=B9=8B=E5=89=8D=E6=BF=80=E6=B4=BB=E7=8A=B6?= =?UTF-8?q?=E6=80=81=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 在单选模式下点击新单元格时,先清除所有之前激活的单元格状态 --- src/views/plan/RealTimeInventory.vue | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/views/plan/RealTimeInventory.vue b/src/views/plan/RealTimeInventory.vue index 1a9d5c5..935824a 100644 --- a/src/views/plan/RealTimeInventory.vue +++ b/src/views/plan/RealTimeInventory.vue @@ -806,6 +806,12 @@ const handleCellClick = async (row, column, cell, event) => { return; } + // 如果激活了其他单元格,先取消所有之前的激活状态(单选模式) + if (activeCells.value.size > 0) { + console.log('取消所有之前激活的单元格:', Array.from(activeCells.value)); + activeCells.value.clear(); + } + // 获取对应的机台信息和轴数 let equipmentCode = 'QB002'; // 默认值 let axleNumber = '左边'; // 默认值