Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
黄南光
/
auto-restock
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 98413923
authored
Nov 13, 2026
by
黄南光
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
优化前端
1 parent
7a9119aa
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
0 deletions
.workbuddy/memory/2026-11-13.md
web/src/mobile/OrderPage.vue
web/src/mobile/mobile.css
.workbuddy/memory/2026-11-13.md
0 → 100644
View file @
9841392
# 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 跟配置走(补货规则页可配)
web/src/mobile/OrderPage.vue
View file @
9841392
This diff is collapsed.
Click to expand it.
web/src/mobile/mobile.css
View file @
9841392
...
@@ -16,6 +16,8 @@
...
@@ -16,6 +16,8 @@
.m-sum
span
{
font-size
:
11.5px
;
opacity
:
0.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
{
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-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
{
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-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
);
}
.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
);
}
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment