feat: 库存看板增加 BOM 物料齐套视角 + BOM 详情显示当前在库/状态

- 库存看板新增「BOM 物料齐套」标签页(仅 admin/manager), 逐棵 BOM 列出组成物料的
  单套用量/当前在库/状态, 并给出整体齐套结论
- BOM 详情页组成物料表新增「当前在库」「状态」两列
- 抽出统一 _status_of() 判定函数, 红/黄/绿逻辑与看板一致
- 新增 tools/verify_bom_board.py 端到端验证脚本(已通过)
- 新增使用教程 物料入库出库系统_使用教程.md
- .gitignore 忽略 _backup/(旧 EXE 备份)
This commit is contained in:
2026-09-22 11:47:07 +08:00
parent 7d34a481b3
commit 68b4831d8b
7 changed files with 476 additions and 37 deletions
+10
View File
@@ -63,6 +63,16 @@ button:hover, .btn:hover { filter: brightness(.96); }
.small { font-size: 12px; }
.txn-form { max-width: 520px; margin-bottom: 22px; }
/* 看板标签切换 */
.tabs { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.tabs .tab {
background: #eef1f5; color: #44525f; border: 1px solid #d7dde5;
padding: 8px 16px; font-size: 14px; cursor: pointer; border-radius: 6px;
}
.tabs .tab.active { background: #1f3a5f; color: #fff; border-color: #1f3a5f; }
.card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 15px; }
.card-head strong { font-size: 16px; }
/* 批量导入窗口(模态) */
.modal-mask {
position: fixed; inset: 0; background: rgba(15,23,35,.5);