From b4971f057e7d163ce4f7f3390fd0b7b27bd97ed1 Mon Sep 17 00:00:00 2001 From: yueli Date: Tue, 8 Sep 2026 13:58:48 +0800 Subject: [PATCH] =?UTF-8?q?fix(bom):=20=E7=AE=A1=E7=90=86=E9=A1=B5?= =?UTF-8?q?=E5=90=AF=E5=81=9C/=E5=BD=92=E6=A1=A3=E5=8D=B3=E6=97=B6?= =?UTF-8?q?=E5=90=8C=E6=AD=A5=E4=B8=8E=E7=95=8C=E9=9D=A2=E5=81=A5=E5=A3=AE?= =?UTF-8?q?=E6=80=A7=E5=A4=A7=E4=BF=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 只读启停用后端权威 bom_no/version,修复改状态报 BOM不存在(400) - 成功路径统一 await reloadCurrentGroups():先更新分组摘要,再静默覆盖已展开分类明细 - 本地秒移除 applyLocalRowState:按新状态+当前筛选把不符合行立即踢出缓存并强制 Map 换引用 - 接口层与界面层 try 分离:UI 刷新异常不再误报“状态更新失败”,避免红绿/黄提示同弹 - 遍历全部改为 Array.isArray/?.keys()/entries()/||[] 防御,杜绝 undefined 误报 - 兼容 el-collapse 手风琴(String)与多开(Array):新增 isCategoryActive/setActiveList,修复 activeCategories.filter is not a function --- inventory-web/src/views/bom/BomManage.vue | 193 ++++++++++++++++++---- 1 file changed, 160 insertions(+), 33 deletions(-) diff --git a/inventory-web/src/views/bom/BomManage.vue b/inventory-web/src/views/bom/BomManage.vue index 5b01889..80ec231 100644 --- a/inventory-web/src/views/bom/BomManage.vue +++ b/inventory-web/src/views/bom/BomManage.vue @@ -41,7 +41,7 @@ :title="group.category + ' (' + group.count + ')'" :name="group.category" > - +