From aafecd719ef28eed474ba99d031df45abe4cfbf1 Mon Sep 17 00:00:00 2001 From: zhangyan Date: Tue, 16 Jun 2026 11:40:46 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E5=87=80=E8=8F=9C=E5=8A=A0?= =?UTF-8?q?=E5=B7=A5=E7=A7=A4=E6=A8=A1=E5=9D=97=E9=87=8D=E6=9E=84=E4=B8=BA?= =?UTF-8?q?=E5=8D=95=E4=B8=80=E9=AA=8C=E6=94=B6=E5=8A=9F=E8=83=BD=EF=BC=8C?= =?UTF-8?q?=E6=8B=86=E5=88=86=E7=99=BB=E5=BD=95/=E8=8F=9C=E5=8D=95?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 重写 00-welcome.html 为独立居中登录页,登录成功跳转 01-menu.html - 新建 01-menu.html 独立功能菜单页(净菜验收/验收记录/设置) - 新建 01-accept.html 净菜验收主操作页,替代原任务列表/称重/切配三页 - 净菜列表新增删除按钮,允许移除已验收净菜 - 导航页 index.html 精简为「员工登录」和「净菜验收」两个入口 - 子页面返回按钮统一指向 01-menu.html,退出指向 00-welcome.html - 删除旧页面:01-cutting-tasks、02-weighing、03-cutting Co-Authored-By: Claude Opus 4.6 --- .../clean-veg-ratio-scale/00-welcome.html | 149 +---- .../clean-veg-ratio-scale/01-accept.html | 585 +++++++++++++++++ .../01-cutting-tasks.html | 618 ------------------ .../clean-veg-ratio-scale/01-menu.html | 144 ++++ .../{04-history.html => 02-history.html} | 48 +- .../clean-veg-ratio-scale/02-weighing.html | 374 ----------- .../clean-veg-ratio-scale/03-cutting.html | 333 ---------- .../{05-settings.html => 03-settings.html} | 14 +- .../clean-veg-ratio-scale/doc/CHANGELOG.md | 24 + .../clean-veg-ratio-scale/index.html | 44 +- other-module/canteen-device/index.html | 4 +- 11 files changed, 819 insertions(+), 1518 deletions(-) create mode 100644 other-module/canteen-device/clean-veg-ratio-scale/01-accept.html delete mode 100644 other-module/canteen-device/clean-veg-ratio-scale/01-cutting-tasks.html create mode 100644 other-module/canteen-device/clean-veg-ratio-scale/01-menu.html rename other-module/canteen-device/clean-veg-ratio-scale/{04-history.html => 02-history.html} (92%) delete mode 100644 other-module/canteen-device/clean-veg-ratio-scale/02-weighing.html delete mode 100644 other-module/canteen-device/clean-veg-ratio-scale/03-cutting.html rename other-module/canteen-device/clean-veg-ratio-scale/{05-settings.html => 03-settings.html} (96%) diff --git a/other-module/canteen-device/clean-veg-ratio-scale/00-welcome.html b/other-module/canteen-device/clean-veg-ratio-scale/00-welcome.html index 389ba00..dfd6965 100644 --- a/other-module/canteen-device/clean-veg-ratio-scale/00-welcome.html +++ b/other-module/canteen-device/clean-veg-ratio-scale/00-welcome.html @@ -3,33 +3,27 @@ - 净菜加工秤 - 欢迎 | 蚁熊智能餐养平台 + 净菜加工秤 - 员工登录 | 蚁熊智能餐养平台 -
- 净菜加工秤 -
-
-
- + \ No newline at end of file diff --git a/other-module/canteen-device/clean-veg-ratio-scale/01-accept.html b/other-module/canteen-device/clean-veg-ratio-scale/01-accept.html new file mode 100644 index 0000000..2c406f5 --- /dev/null +++ b/other-module/canteen-device/clean-veg-ratio-scale/01-accept.html @@ -0,0 +1,585 @@ + + + + + + 净菜加工秤 - 净菜验收 | 蚁熊智能餐养平台 + + + + + +
+ ◀ 返回 + 净菜验收识别屏 +
+ 验收进度 + 0/0 净菜已完成 +
+
+
+
+ +
+ + +
+ +
+
📷 净菜识别
+
+ 净菜识别区域 +
+
+
+
+
+
📷
+
点击继续识别
+
+
+
+ + 就绪,等待净菜放置 +
+ +
+
+ 🔍 + +
+
+
+
+
+ AI识别候选 +
+
+
+
📷
+
等待净菜放置后自动识别
+
+
+
+ + +
+ +
+
+ 净菜净菜类型实称量操作 +
+
+
+ + +
+ + +
+
+
+ +
+ + + + + + + \ No newline at end of file diff --git a/other-module/canteen-device/clean-veg-ratio-scale/01-cutting-tasks.html b/other-module/canteen-device/clean-veg-ratio-scale/01-cutting-tasks.html deleted file mode 100644 index 2d910b0..0000000 --- a/other-module/canteen-device/clean-veg-ratio-scale/01-cutting-tasks.html +++ /dev/null @@ -1,618 +0,0 @@ - - - - - - 净菜加工秤 - 今日任务 | 蚁熊智能餐养平台 - - - -
- - ◀ 返回 今日切配任务 - -- -
-
- -
-
- 待处理 - 3 -
-
- 已完成 - 2 -
-
-
-
- -
-
🥔
-
-
土豆
-
- 📦 需求: 5.0斤 - ⏰ 截止: 11:00 -
-
-
🔪 切丝
-
-
-
-
-
已切 2.0 / 需 5.0 斤
-
-
- 待处理 -
-
- -
-
- -
-
🥕
-
-
胡萝卜
-
- 📦 需求: 2.0斤 - ⏰ 截止: 11:30 -
-
-
🔪 切丝
-
-
-
-
-
已切 0 / 需 2.0 斤
-
-
- 待处理 -
-
- -
-
- -
-
🥒
-
-
黄瓜
-
- 📦 需求: 4.0斤 - ⏰ 截止: 10:30 -
-
-
🔪 切片
-
-
-
-
-
已切 4.2 / 需 4.0 斤
-
-
- 已完成 -
-
- -
-
- -
-
🥔
-
-
土豆(晚餐)
-
- 📦 需求: 3.0斤 - ⏰ 截止: 15:30 -
-
-
🔪 切块
-
-
-
-
-
已切 0 / 需 3.0 斤
-
-
- 待处理 -
-
- -
-
- -
-
🥬
-
-
大白菜
-
- 📦 需求: 8.0斤 - ⏰ 截止: 10:00 -
-
-
🔪 切段
-
-
-
-
-
已切 8.5 / 需 8.0 斤
-
-
- 已完成 -
-
- -
-
- -
-
🍅
-
-
西红柿
-
- 📦 需求: 3.5斤 - ⏰ 截止: 11:30 -
-
-
🔪 切块
-
-
-
-
-
已切 0 / 需 3.5 斤
-
-
- 待处理 -
-
- -
-
-
-
-
- - - - -
- - - -/* 返回按钮:从哪来回哪去 */ -(function() { - var backBtn = document.getElementById('backBtn'); - if (backBtn) { - var params = new URLSearchParams(window.location.search); - var referer = params.get('referer'); - if (referer) { - backBtn.href = referer; - } else if (document.referrer && document.referrer.indexOf(window.location.hostname) !== -1) { - backBtn.href = document.referrer; - } else { - backBtn.href = 'index.html'; - } - } -})(); - - - diff --git a/other-module/canteen-device/clean-veg-ratio-scale/01-menu.html b/other-module/canteen-device/clean-veg-ratio-scale/01-menu.html new file mode 100644 index 0000000..f24faa4 --- /dev/null +++ b/other-module/canteen-device/clean-veg-ratio-scale/01-menu.html @@ -0,0 +1,144 @@ + + + + + + 净菜加工秤 - 功能菜单 | 蚁熊智能餐养平台 + + + +
+ 净菜加工秤 +
+ + 赵六 + +
+
+ + + + \ No newline at end of file diff --git a/other-module/canteen-device/clean-veg-ratio-scale/04-history.html b/other-module/canteen-device/clean-veg-ratio-scale/02-history.html similarity index 92% rename from other-module/canteen-device/clean-veg-ratio-scale/04-history.html rename to other-module/canteen-device/clean-veg-ratio-scale/02-history.html index dc9dca0..79e5066 100644 --- a/other-module/canteen-device/clean-veg-ratio-scale/04-history.html +++ b/other-module/canteen-device/clean-veg-ratio-scale/02-history.html @@ -3,7 +3,7 @@ - 净菜加工秤 - 切配记录 | 蚁熊智能餐养平台 + 净菜加工秤 - 验收记录 | 蚁熊智能餐养平台 - - -
- - ◀ 返回 称重录入 - -- -
-
-
-
-
- 当前任务 - 切换任务 -
-
-
🥔
-
-
土豆
-
截止 11:00 | 来自清洗工序
-
🔪 切丝
-
-
-
-
-
- 2.0/5.0斤 -
-
-
-
-
-
📇
-
-
AI 识别结果
-
等待放置食材...
-
-
- 待机 -
-
- 0.00 - -
请将食材放置秤上
-
-
- - -
-
-
-
-
-
-
4
-
今日切配次数
-
-
-
18.2
-
总重量(斤)
-
-
-
2
-
完成品类
-
-
-
-
- 本次操作记录 - 共 0 条 -
-
-
-
📭
-
暂无切配记录
-
-
-
-
-
-
- - -/* 返回按钮:从哪来回哪去 */ -(function() { - var backBtn = document.getElementById('backBtn'); - if (backBtn) { - var params = new URLSearchParams(window.location.search); - var referer = params.get('referer'); - if (referer) { - backBtn.href = referer; - } else if (document.referrer && document.referrer.indexOf(window.location.hostname) !== -1) { - backBtn.href = document.referrer; - } else { - backBtn.href = 'index.html'; - } - } -})(); - - - diff --git a/other-module/canteen-device/clean-veg-ratio-scale/03-cutting.html b/other-module/canteen-device/clean-veg-ratio-scale/03-cutting.html deleted file mode 100644 index 5fd174e..0000000 --- a/other-module/canteen-device/clean-veg-ratio-scale/03-cutting.html +++ /dev/null @@ -1,333 +0,0 @@ - - - - - - 净菜加工秤 - 切配操作 | 蚁熊智能餐养平台 - - - -
- - ◀ 返回 切配操作 - -- -
-
-
-
-
-
🥔
-
-
土豆
-
- 重量: 1.85斤 - 批次 #20260613-C01 -
-
-
🔪 系统指定: 切丝
-
-
-
-
切法
-
-
-
-
粗细
-
3mm
-
-
-
刀工
-
直刀
-
-
-
预计耗时
-
5分钟
-
-
-
-
-
- - - - -
-
0%
-
等待开始
-
-
-
-
-
🔪
-
切片
-
-
-
🔪
-
切丝
-
-
-
-
完成
-
-
-
- - - -
-
-
-
-
-
-
2
-
今日已切配
-
-
-
8.5斤
-
总重量
-
-
-
100%
-
合格率
-
-
-
-
- 待切配队列 - 共 3 项 -
-
-
-
🥕
-
-
胡萝卜
-
切丝
-
2.0斤
-
- 待切配 -
-
-
🍅
-
-
西红柿
-
切块
-
3.5斤
-
- 待切配 -
-
-
🥔
-
-
土豆(晚餐)
-
切块
-
3.0斤
-
- 待切配 -
-
-
-
-
-
- - -/* 返回按钮:从哪来回哪去 */ -(function() { - var backBtn = document.getElementById('backBtn'); - if (backBtn) { - var params = new URLSearchParams(window.location.search); - var referer = params.get('referer'); - if (referer) { - backBtn.href = referer; - } else if (document.referrer && document.referrer.indexOf(window.location.hostname) !== -1) { - backBtn.href = document.referrer; - } else { - backBtn.href = 'index.html'; - } - } -})(); - - - diff --git a/other-module/canteen-device/clean-veg-ratio-scale/05-settings.html b/other-module/canteen-device/clean-veg-ratio-scale/03-settings.html similarity index 96% rename from other-module/canteen-device/clean-veg-ratio-scale/05-settings.html rename to other-module/canteen-device/clean-veg-ratio-scale/03-settings.html index 92aac64..8e97eb9 100644 --- a/other-module/canteen-device/clean-veg-ratio-scale/05-settings.html +++ b/other-module/canteen-device/clean-veg-ratio-scale/03-settings.html @@ -59,7 +59,7 @@
- + @@ -67,17 +67,17 @@
-
切配参数配置
+
加工参数配置
-
默认切丝粗细
切丝模式的标准粗细
+
默认丝条粗细
丝条规格的标准粗细
mm
-
默认切块大小
切块模式的标准大小
+
默认滚刀块大小
滚刀块规格的标准大小
-
默认切丁大小
切丁模式的标准大小
+
默认方丁大小
方丁规格的标准大小
@@ -170,6 +170,7 @@ } + diff --git a/other-module/canteen-device/clean-veg-ratio-scale/doc/CHANGELOG.md b/other-module/canteen-device/clean-veg-ratio-scale/doc/CHANGELOG.md index f0badc1..a50c66a 100644 --- a/other-module/canteen-device/clean-veg-ratio-scale/doc/CHANGELOG.md +++ b/other-module/canteen-device/clean-veg-ratio-scale/doc/CHANGELOG.md @@ -1,5 +1,29 @@ # 净菜加工秤 CHANGELOG +## [2026-06-16] refactor: 模块整体重构,聚焦净菜验收单一功能 + +### 变更 +- 删除旧页面:`01-cutting-tasks.html`(任务列表)、`02-weighing.html`(称重录入)、`03-cutting.html`(切配操作) +- 新建 `01-accept.html`(净菜验收主操作页):模仿毛菜验收秤流程,包含任务选择→上秤识别→验收确认两步操作 +- 重命名 `04-history.html` → `02-history.html`:「切配记录」→「验收记录」,规格标签由切法改为加工规格 +- 重命名 `05-settings.html` → `03-settings.html`:「切配参数」→「加工参数」 +- 更新 `00-welcome.html`:功能菜单由4个缩减为3个(净菜验收、验收记录、设置) +- 更新 `index.html`:导航卡片同步更新为新页面结构 + +--- + +## [2026-06-16] refactor: 任务列表页重构为三层结构(任务单→食材→属性) + +### 变更 +- `01-cutting-tasks.html`:将列表结构从扁平的「任务单→食材行」改为三层嵌套「任务单→食材分组→属性行」 +- 数据关系:任务单(1:1)→食材(1:N)→属性(刀工/形状/尺寸/重量/截止时间/状态) +- 同一任务单中同种食材的不同切法归入一个食材分组,方便员工集中切配 +- 新增 `.ingredient-group` 食材分组(含图标、名称、切法数量) +- 新增 `.attr-row` 属性行(替代原 `.ingredient-row`),内缩展示在食材分组下方 +- 保留任务单卡片外壳、未完成/已完成筛选标签卡、处理按钮 + +--- + ## [1.0.0] - 2026-06-13 ### 新增 diff --git a/other-module/canteen-device/clean-veg-ratio-scale/index.html b/other-module/canteen-device/clean-veg-ratio-scale/index.html index 22136ac..8385ef2 100644 --- a/other-module/canteen-device/clean-veg-ratio-scale/index.html +++ b/other-module/canteen-device/clean-veg-ratio-scale/index.html @@ -28,50 +28,18 @@
- 👋 + 👤
-
欢迎页面
+
员工登录
人脸识别/账号密码登录、功能菜单入口
- - 📋 + +
-
今日切配任务
-
系统分配的净菜切配任务列表
-
- -
- - ⚖️ -
-
称重录入
-
净菜上秤AI识别、称重、确认进入切配
-
- -
- - 🔪 -
-
切配操作
-
系统指定切法、切配进度跟踪
-
- -
- - 📝 -
-
切配记录
-
历史切配记录查看与筛选
-
- -
- - ⚙️ -
-
设备设置
-
切配参数、AI识别、秤参数配置
+
净菜验收
+
净菜上秤识别、验收确认
diff --git a/other-module/canteen-device/index.html b/other-module/canteen-device/index.html index 5cf50f0..b25c4be 100644 --- a/other-module/canteen-device/index.html +++ b/other-module/canteen-device/index.html @@ -137,7 +137,7 @@
⚖️
净菜加工秤
-
净菜切配:AI识别、称重、切丝/片/块/丁
+
净菜加工:任务驱动,含尺寸/形状/刀工要求
🏷️
@@ -152,7 +152,7 @@
📦
净菜配比秤
-
净菜打包:AI识别、称重、按员工拆单塑封
+
任务驱动打包:净菜包/餐品组合两种模式,三层任务结构