Commit 98413923 by 黄南光

优化前端

1 parent 7a9119aa
# 2026-11-13
## 定时补货单据页:按零件分类二级分组
- 需求:定时补货链接(手机单据页 OrderPage.vue)的零件按属性分类展示
- 历史常备件大组下按常备分类(保养/机油/轮胎/养护品,跟 stock_categories 配置走)分子组 + 末尾"近N个月SO单"子组(SO命中但非常备分类的)
- 当天出库的其他零件大组下也按分类分子组(钣喷件/未分类/其他)
- 大组全选 + 每个子组也带全选
- 改动文件:
- web/src/mobile/OrderPage.vue:新增 stockGroups/otherGroups computed(按 category 二级聚合),模板从平铺改为 v-for 子组循环;行内渲染逻辑完全复用
- web/src/mobile/mobile.css:新增 .m-subsection 子组标题样式
- 后端不动(数据已齐全:Line 带 category/so_hit/grp,page_state 传 stock_categories/so_months)
- vue-tsc 类型检查通过(exit 0,零错误)
- 决策来源:老大拍板 ①大组+子组全选 ②空分类归未分类 ③so_months 跟配置走(补货规则页可配)
......@@ -16,6 +16,8 @@
.m-sum span { font-size: 11.5px; opacity: 0.8; }
.m-section { padding: 18px 16px 8px; font-weight: 600; font-size: 14px; color: var(--c-text); }
.m-section span { font-weight: 400; font-size: 12px; color: var(--c-text-3); margin-left: 6px; }
.m-subsection { display: flex; align-items: center; gap: 6px; padding: 10px 16px 4px; font-weight: 600; font-size: 13px; color: var(--c-text-2); }
.m-subsection span { font-weight: 400; font-size: 11.5px; color: var(--c-text-3); margin-left: 4px; }
.m-allbar { margin: 0 12px 10px; padding: 0 14px; font-size: 13.5px; }
.m-allbar span { margin-left: 6px; font-size: 12px; color: var(--c-text-3); }
.m-card { margin: 0 12px 10px; background: var(--c-surface); border-radius: 12px; padding: 12px 14px; box-shadow: var(--shadow); border: 1px solid var(--c-border); }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!