From 51661ab1273db960373440f580c7c9219b66be2a Mon Sep 17 00:00:00 2001
From: fengpu <18691763612@163.com>
Date: Thu, 6 Aug 2026 19:57:25 +0800
Subject: [PATCH] =?UTF-8?q?feat:=20=E9=A4=90=E7=BA=BF=E8=90=A5=E5=85=BB?=
=?UTF-8?q?=E7=A7=A4=E5=8F=8C=E5=B1=8F=E5=8F=96=E9=A4=90=E9=A1=B5=E5=90=88?=
=?UTF-8?q?=E5=B9=B6=20+=20=E6=94=B6=E9=93=B6=E8=AE=BE=E5=A4=87=E5=85=A8?=
=?UTF-8?q?=E6=B5=81=E7=A8=8B=E5=8E=9F=E5=9E=8B=E8=A1=A5=E9=BD=90?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
- 餐线营养秤:合并 dual-large/dual-small 两页为单页 03-meal-pickup-dual.html(左右双屏同页布局)
- 餐线营养秤:5 个二级页面(01/04/05/06/03)统一返回按钮 history.back() 兜底逻辑
- 餐线营养秤:02-dish-display 与 03-meal-pickup 样式重构(信息卡双行布局、菜品行价格靠右)
- 收银设备:新增 9 个收银员屏页面(01-login ~ 09-print-receipt,覆盖登录/待机/收银/支付成功/订单/详情/统计/对账/小票)
- 收银设备:新增 4 个用户屏页面(user-01-idle ~ user-04-success,覆盖待机/同步/支付/成功)
- 收银设备:index 重构为左右双屏(用户屏/收银员屏)布局
- 同步更新记忆索引、项目进度与 lint 报告
Co-Authored-By: Claude Opus 4.7
---
.claude/memory/MEMORY.md | 4 +-
.claude/memory/lint_report.md | 23 +-
.claude/memory/project_progress.md | 5 +-
.idea/claudeCodeTabState.xml | 31 +-
.../01-meal-start.html | 5 +
.../02-dish-display.html | 717 +++++----
.../03-meal-pickup-dual-large.html | 313 ----
.../03-meal-pickup-dual-small.html | 182 ---
.../03-meal-pickup-dual.html | 761 ++++++++++
.../03-meal-pickup.html | 200 ++-
.../canteen-nutrition-scale/04-settings.html | 5 +
.../05-dish-sampling.html | 5 +
.../06-sampling-history.html | 5 +
.../canteen-nutrition-scale/index.html | 11 +-
.../checkout-device/01-login.html | 751 ++++++++++
.../checkout-device/02-standby.html | 495 +++++++
.../checkout-device/03-checkout.html | 1116 ++++++++++++++
.../checkout-device/04-pay-success.html | 412 ++++++
.../checkout-device/05-orders.html | 598 ++++++++
.../checkout-device/06-order-detail.html | 999 +++++++++++++
.../checkout-device/07-statistics.html | 1290 +++++++++++++++++
.../checkout-device/08-reconcile.html | 888 ++++++++++++
...int-receipt.html => 09-print-receipt.html} | 395 +----
.../canteen-device/checkout-device/index.html | 294 +++-
.../checkout-device/user-01-idle.html | 339 +++++
.../user-02-checkout-sync.html | 716 +++++++++
.../checkout-device/user-03-paying.html | 210 +++
.../checkout-device/user-04-success.html | 565 ++++++++
28 files changed, 9932 insertions(+), 1403 deletions(-)
delete mode 100644 other-module/canteen-device/canteen-nutrition-scale/03-meal-pickup-dual-large.html
delete mode 100644 other-module/canteen-device/canteen-nutrition-scale/03-meal-pickup-dual-small.html
create mode 100644 other-module/canteen-device/canteen-nutrition-scale/03-meal-pickup-dual.html
create mode 100644 other-module/canteen-device/checkout-device/01-login.html
create mode 100644 other-module/canteen-device/checkout-device/02-standby.html
create mode 100644 other-module/canteen-device/checkout-device/03-checkout.html
create mode 100644 other-module/canteen-device/checkout-device/04-pay-success.html
create mode 100644 other-module/canteen-device/checkout-device/05-orders.html
create mode 100644 other-module/canteen-device/checkout-device/06-order-detail.html
create mode 100644 other-module/canteen-device/checkout-device/07-statistics.html
create mode 100644 other-module/canteen-device/checkout-device/08-reconcile.html
rename other-module/canteen-device/checkout-device/{02-print-receipt.html => 09-print-receipt.html} (62%)
create mode 100644 other-module/canteen-device/checkout-device/user-01-idle.html
create mode 100644 other-module/canteen-device/checkout-device/user-02-checkout-sync.html
create mode 100644 other-module/canteen-device/checkout-device/user-03-paying.html
create mode 100644 other-module/canteen-device/checkout-device/user-04-success.html
diff --git a/.claude/memory/MEMORY.md b/.claude/memory/MEMORY.md
index 0a81896..176d8b4 100644
--- a/.claude/memory/MEMORY.md
+++ b/.claude/memory/MEMORY.md
@@ -1,10 +1,10 @@
-_Last synced: 2026-08-05 | Base commit: `d00208a`_
+_Last synced: 2026-08-06 | Base commit: `445d824`_
# 记忆索引
| 文件 | 描述 | 类型 | 最后更新 |
|------|------|------|----------|
| project_overview.md | 项目技术栈、架构与模块结构 | project | 2026-05-14 |
-| project_progress.md | 各模块原型开发进度 | project | 2026-08-05 |
+| project_progress.md | 各模块原型开发进度 | project | 2026-08-06 |
| decisions.md | 关键设计决策与架构约定 | project | 2026-08-05 |
| feedback.md | 协作规范与用户纠正记录 | feedback | 2026-06-15 |
| user_profile.md | 用户角色与偏好 | user | 2026-04-21 |
diff --git a/.claude/memory/lint_report.md b/.claude/memory/lint_report.md
index 9b01543..6aff452 100644
--- a/.claude/memory/lint_report.md
+++ b/.claude/memory/lint_report.md
@@ -2,12 +2,12 @@
name: 记忆健康检查报告
description: memory-lint 最新一次执行的检查结果与待处理项
type: lint
-last_updated: 2026-08-05
+last_updated: 2026-08-06
---
# 记忆健康检查报告
-> _执行时间: 2026-08-05 | Base commit: `d00208a` | Last synced: 2026-08-05_
+> _执行时间: 2026-08-06 | Base commit: `445d824` | Last synced: 2026-08-06_
## 健康概览
@@ -18,11 +18,11 @@ last_updated: 2026-08-05
| 引用存在性检测(3A) | ✅ | 0 | 0 |
| 双链对称性检测(3B) | ✅ | 0 | 0 |
| 内容矛盾检测 | ✅ | — | 0 |
-| 过期检测 | ⚠ | — | 2 待处理 |
+| 过期检测 | ⚠ | — | 3 待处理 |
| 可推断内容污染 | ⚠ | — | 1 待处理 |
| frontmatter 完整性 | ⚠ | — | 4 待处理 |
-**AUTO-FIX 已执行 0 项 | NEED-HUMAN 待处理 7 项**
+**AUTO-FIX 已执行 0 项 | NEED-HUMAN 待处理 8 项**
---
@@ -30,18 +30,23 @@ last_updated: 2026-08-05
### [ERROR] 严重过期 — user_profile.md
-- **文件**:`user_profile.md`(last_updated: 2026-04-21,距今 106 天,超过 90 天 ERROR 阈值)
+- **文件**:`user_profile.md`(last_updated: 2026-04-21,距今 107 天,超过 90 天 ERROR 阈值)
- **建议**:确认用户角色/偏好是否有变化,执行 `/memory-update` 更新。
### [WARN] 过期 — feedback.md
-- **文件**:`feedback.md`(last_updated: 2026-06-15,距今 51 天,超 30 天 WARN 阈值)
+- **文件**:`feedback.md`(last_updated: 2026-06-15,距今 52 天,超 30 天 WARN 阈值)
- **建议**:确认是否有新的协作规范需要记录。
+### [WARN] 过期 — project_overview.md
+
+- **文件**:`project_overview.md`(last_updated: 2026-05-14,距今 84 天,超 30 天 WARN 阈值,临近 90 天 ERROR)
+- **建议**:确认项目技术栈/架构是否有变化需要同步。
+
### [WARN] 可推断内容污染 — project_progress.md
-- **文件**:`project_progress.md` 第 110~145 行「近期里程碑」区段
-- **问题**:含具体文件路径列表(如 `canteen-nutrition-scale/02-dish-display.html`、`prod-clean-order`/`sup-clean-external`/`sup-clean-internal`)和 commit message 风格描述,按 memory-update 规则「Git 历史(可用 git log 查)」不应写入记忆文件
+- **文件**:`project_progress.md` 第 108~145 行「近期里程碑」区段
+- **问题**:含具体文件路径列表(如 `canteen-nutrition-scale/02-dish-display.html`、`prod-clean-order`/`sup-clean-external`/`sup-clean-internal`、`din-ingredient-add.html` 等)和 commit message 风格描述,按 memory-update 规则「Git 历史(可用 git log 查)」不应写入记忆文件
- **建议**:保留里程碑结论,删除具体文件路径与 commit message 流水,让用户能通过 `git log` 自查细节。
### [WARN] frontmatter 缺失 — 4 个文件
@@ -60,4 +65,4 @@ last_updated: 2026-08-05
- `decisions.md#餐厅终端设备 PAD 居中外壳设计模式` → `[[feedback.md#PAD 终端页面内禁止可见滚动条]]` ✅ 目标存在,双向闭环
- `feedback.md#PAD 终端页面内禁止可见滚动条` → `[[decisions.md#餐厅终端设备 PAD 居中外壳设计模式]]` ✅ 目标存在,双向闭环
-- `decisions.md#规格体系统一化改造` → `[[feedback.md]]` ✅ 目标存在(占位引用「暂无直接关联条目」)
+- `decisions.md#规格体系统一化改造` → `[[feedback.md]]` ✅ 目标存在(占位引用「暂无直接关联条目」,非对称但属预期)
diff --git a/.claude/memory/project_progress.md b/.claude/memory/project_progress.md
index 2c8ddfc..789b2e8 100644
--- a/.claude/memory/project_progress.md
+++ b/.claude/memory/project_progress.md
@@ -2,8 +2,8 @@
name: 项目进度
description: 各模块原型开发进度与里程碑
type: project
-last_updated: 2026-08-05
-commit: d00208a
+last_updated: 2026-08-06
+commit: 445d824
---
# 项目进度
@@ -105,6 +105,7 @@ Web 管理端和员工端 APP 的其余模块(系统管理、运动管理、
- 覆盖模块:18 个(含三端+其他终端)
## 近期里程碑
+- 2026-08-06:食材档案新增「基础定价」字段 + 净菜订单按餐次核算人数与「生成中」状态(commit 445d824)——①`din-ingredient.html`/`din-ingredient-add.html` 食材档案新增 `basePrice` 字段(元/100g),列表详情区与新增/编辑/复制三形态同步(input 含「元/100g」内联单位后缀);②`prod-clean-order.html` 由食谱快速创建订单弹窗重构:移除顶部全局人数输入框与「订单汇总」预览区、当日食谱表格新增「就餐人数」列(每餐次独立 input 4 个)、新增预定配送时间字段(datetime-local,默认次日 10:00)、新增 `validateMealDinerCounts()` 校验、份数计算改为按各餐次人数累加、由食谱创建的订单 `lines[].status` 初始置为「生成中」;③新增「生成中」订单状态全链路:青色脉冲呼吸动效 `.tag-cyan` + `@keyframes statusPulse`、`aggregateStatus()` 聚合规则、状态筛选下拉、统计卡片、订单操作列「生成完成」入口(流转到「备货中」)、智能核算提示语 `.recipe-tip`。同日 `din-dish-add/all/own.html` 三页定价区继续微调(与 2026-08-05/06 定价区改造一脉相承)。
- 2026-08-05:餐线营养秤菜品展示页新增视频演示模式 + 净菜订单/申领三页统一订单金额字段(commit d00208a)——①`canteen-nutrition-scale/02-dish-display.html` 新增演示模式切换 pill(常规/视频)与视频模式布局(上视频+下信息卡,680px 16:9 视频播放器含播放按钮/控制条,下方菜品名+营养指标信息卡),通过 `main-area.mode-video` 状态类控制 CSS 布局切换;②`web-admin/nutrition` 净菜三页(`prod-clean-order`/`sup-clean-external`/`sup-clean-internal`)统一增加订单金额字段:订单明细 `lines[]` 每项新增 `price` 与 `subtotal` 字段、列表表头新增「订单金额」列、弹窗移除「汇总预览」表格改为底部灰底「订单总金额」栏(`#orderTotalAmount`/`#extTotalAmount`/`#claimTotalAmount`)、新增 `calcOrderTotal(o)` 与 `formatMoney(n)` 工具函数(`¥1,234.5` 千分位 + 最多 2 位小数)。
- 2026-08-05:规格体系统一化改造阶段四(设备端)+ 阶段五(辅助页)全部完成(commit 4fd44f1)——阶段四覆盖设备端 9 任务 14 文件:①毛菜验收秤 `verifyType` 字段(weight/count)+ UNIT_OPTIONS 分类;②毛菜加工秤 4 页存储层斤→克、`formatGram` 展示层兼容、`yieldRate` 字段、04-history 语法错误修复;③净菜加工秤设置页删除"重量单位"select、滚刀块 cm→mm;④净菜包装贴标秤 3 页(最复杂)5 个工具函数内联、`cutSpec`/`packSpec` 全部结构化、`portions`→`packSize` 重命名;⑤净菜组配秤 3 页工具函数内联 + `localStorage['dish_specs_v1']` 跨页共享 + `resolvePackSpec` 兜底。阶段五覆盖辅助页 3 任务 6 文件:①营养质控 3 页(confirmSync 真落地写入餐品总库、菜品下拉跨页共享、同步日志驱动);②分析页字典语义修正(`sup-process-analysis` 切配线"切丝"→"丝"形状名词、新增独立 `pack_method` 字典;`sup-biz-analysis` 投料/产出吨→kg 对齐);③净菜进柜 `prod-proc-cabinet` 的 `spec` 多形态字符串结构化(含决策点 #10:`'6份/箱'` 理解为 6 个份型单位装一箱)。新增权威源 `doc/spec-utils-reference.md`、改造任务清单与研发同步说明。阶段四+五完成标志着规格体系统一化五个阶段全部完成。
- 2026-08-05:体重管理新增 `eat-exercise-detail-v2.html`(饮食运动详情 v2);西安中心应急大屏迭代至 `index-v4.html`。
diff --git a/.idea/claudeCodeTabState.xml b/.idea/claudeCodeTabState.xml
index ad4b3bd..aa08eae 100644
--- a/.idea/claudeCodeTabState.xml
+++ b/.idea/claudeCodeTabState.xml
@@ -7,7 +7,7 @@
-
+
@@ -19,7 +19,7 @@
-
+
@@ -31,7 +31,30 @@
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -41,6 +64,6 @@
-
+
\ No newline at end of file
diff --git a/other-module/canteen-device/canteen-nutrition-scale/01-meal-start.html b/other-module/canteen-device/canteen-nutrition-scale/01-meal-start.html
index 33260df..4816769 100644
--- a/other-module/canteen-device/canteen-nutrition-scale/01-meal-start.html
+++ b/other-module/canteen-device/canteen-nutrition-scale/01-meal-start.html
@@ -522,6 +522,11 @@
-
-
-
-
-
-
-
-
-
👤
-
-
张三
-
ID: 98369
-
- 推荐热量
- 720
- 千卡
-
-
-
⚙
-
-
-
-
-
-
-
-
-
- 宫保鸡丁
- (单价 5 元/100克)
-
-
- 热量 158.66 千卡/100克
-
-
-
-
-
-
-
-
-
-
- 宫保鸡丁1869.30
-
-
- 大米饭2003.00
-
-
- 清炒时蔬1203.60
-
-
- 紫菜蛋花汤2505.00
-
-
-
-
-
-
-
-
-
-
diff --git a/other-module/canteen-device/canteen-nutrition-scale/03-meal-pickup-dual-large.html b/other-module/canteen-device/canteen-nutrition-scale/03-meal-pickup-dual-large.html
deleted file mode 100644
index 008ed37..0000000
--- a/other-module/canteen-device/canteen-nutrition-scale/03-meal-pickup-dual-large.html
+++ /dev/null
@@ -1,313 +0,0 @@
-
-
-