Răsfoiți Sursa

chore: 同步密度二期(bbadd0ad4)至工作台+member-cost 合并分支

Xiaogang Liao 2 zile în urmă
părinte
comite
d4a9323aa8

+ 1 - 1
cfc-web/.last_build_commit

@@ -1 +1 @@
-32cbfd64090aaddaf9524a85ecd5f5fdccf5a81f
+bbadd0ad4f2566f434d18cb6b3d6eb5a75e532a6

+ 2 - 2
cfc-web/package-lock.json

@@ -1,12 +1,12 @@
 {
   "name": "cfc-web",
-  "version": "1.0.2483",
+  "version": "1.0.2484",
   "lockfileVersion": 3,
   "requires": true,
   "packages": {
     "": {
       "name": "cfc-web",
-      "version": "1.0.2483",
+      "version": "1.0.2484",
       "dependencies": {
         "@wangeditor/editor": "^5.1.23",
         "@wangeditor/editor-for-vue": "^1.0.2",

+ 22 - 4
cfc-web/public/CHANGELOG-v1.0.md

@@ -6,10 +6,28 @@
 
 ## v1.0.2485 (2026-11-14)
 
-### Bug 修复
-- 送会员商品P点扣除会员成本价(迁移469)+管理端会员成本价配置
+### 文档
+- 研发负责人第175轮闭环汇报(自动化12:41:S-cfc-347 RED契约入链待认领 + 家庭工作台合入主线核验 + 池空T6 0派发 + O-22豁免30键零复发 + 状态机211键稳态)
+
+### 新功能
+- 后台密度二期——清理2页旧硬编码+编辑页全局紧凑化
+- 菜谱分享只读接口+前端分享入口、reconcileLeavingMemberMembership 会员清理、FoodRecommend 删除分支成员视角权威化
 
 ### 其他
+-   同步为全局新值(font-size 14→13、th 46→36、td 12→6),.pm-num 不动
+- - admin-tokens.css 编辑页紧凑(全局 7 处):
+-   弹窗 header 16/24→12/20、body 24→20、footer 12/24→10/20
+-   .main-wrapper .el-card__body 24→20
+-   新增 .el-form-item margin-bottom 22→14px(压缩约 36%)
+-   新增 .el-form--inline .el-form-item 10px(筛选区 inline 单独收紧)
+-   detail-section margin 24→16、title margin 12→8/padding-bottom 8→6
+- - 禁动:el-input/el-select/el-button 高度字号、el-form-item__label/content、
+-   表格密度一期规则、--adm-* 令牌
+- 自检:postcss/css-tree 双解析 0 err;两 vue acorn+compiler 0 err;
+- diff 3 文件(两 vue 各恰 3 行);无反向(无 padding/height 变大);
+- 冲突面快扫:ArticleEdit el-form-item 为 media-query display 不冲突,
+- 页面级 el-card__body 为基线既有覆盖,TeacherMessages el-input__inner 已知豁免
+- 
 - - CfCommissionService.calcOrderPpoints: 单商品/多商品订单若商品配置「送会员规则」(product_gift_rules 启用),
 -   P点 = 实付 − 商品成本 − 赠送等级会员成本价(负数记0,亏本不发)
 - - AdminController.updateMembershipLevel 透传 costPrice;cfc-web MembershipCenter 等级配置加成本价列+编辑项
@@ -21,8 +39,8 @@
 - - 配套单测: DietRecommendationServiceTest(2) + FoodRecommendMemberViewResolutionTest(7) + MembershipServiceTest(22)
 - 
 
-### 新功能
-- 菜谱分享只读接口+前端分享入口、reconcileLeavingMemberMembership 会员清理、FoodRecommend 删除分支成员视角权威化
+### Bug 修复
+- 送会员商品P点扣除会员成本价(迁移469)+管理端会员成本价配置
 
 
 ## v1.0.2484 (2026-11-14)

+ 22 - 4
cfc-web/public/CHANGELOG.md

@@ -10,10 +10,28 @@
 
 ## v1.0.2485 (2026-11-14)
 
-### Bug 修复
-- 送会员商品P点扣除会员成本价(迁移469)+管理端会员成本价配置
+### 文档
+- 研发负责人第175轮闭环汇报(自动化12:41:S-cfc-347 RED契约入链待认领 + 家庭工作台合入主线核验 + 池空T6 0派发 + O-22豁免30键零复发 + 状态机211键稳态)
+
+### 新功能
+- 后台密度二期——清理2页旧硬编码+编辑页全局紧凑化
+- 菜谱分享只读接口+前端分享入口、reconcileLeavingMemberMembership 会员清理、FoodRecommend 删除分支成员视角权威化
 
 ### 其他
+-   同步为全局新值(font-size 14→13、th 46→36、td 12→6),.pm-num 不动
+- - admin-tokens.css 编辑页紧凑(全局 7 处):
+-   弹窗 header 16/24→12/20、body 24→20、footer 12/24→10/20
+-   .main-wrapper .el-card__body 24→20
+-   新增 .el-form-item margin-bottom 22→14px(压缩约 36%)
+-   新增 .el-form--inline .el-form-item 10px(筛选区 inline 单独收紧)
+-   detail-section margin 24→16、title margin 12→8/padding-bottom 8→6
+- - 禁动:el-input/el-select/el-button 高度字号、el-form-item__label/content、
+-   表格密度一期规则、--adm-* 令牌
+- 自检:postcss/css-tree 双解析 0 err;两 vue acorn+compiler 0 err;
+- diff 3 文件(两 vue 各恰 3 行);无反向(无 padding/height 变大);
+- 冲突面快扫:ArticleEdit el-form-item 为 media-query display 不冲突,
+- 页面级 el-card__body 为基线既有覆盖,TeacherMessages el-input__inner 已知豁免
+- 
 - - CfCommissionService.calcOrderPpoints: 单商品/多商品订单若商品配置「送会员规则」(product_gift_rules 启用),
 -   P点 = 实付 − 商品成本 − 赠送等级会员成本价(负数记0,亏本不发)
 - - AdminController.updateMembershipLevel 透传 costPrice;cfc-web MembershipCenter 等级配置加成本价列+编辑项
@@ -25,8 +43,8 @@
 - - 配套单测: DietRecommendationServiceTest(2) + FoodRecommendMemberViewResolutionTest(7) + MembershipServiceTest(22)
 - 
 
-### 新功能
-- 菜谱分享只读接口+前端分享入口、reconcileLeavingMemberMembership 会员清理、FoodRecommend 删除分支成员视角权威化
+### Bug 修复
+- 送会员商品P点扣除会员成本价(迁移469)+管理端会员成本价配置
 
 
 ## v1.0.2484 (2026-11-14)

+ 9 - 7
cfc-web/src/styles/admin-tokens.css

@@ -172,13 +172,13 @@
 
 /* ---- 对话框 / 消息框(portal) ---- */
 .el-dialog { border-radius: var(--adm-radius-card); box-shadow: var(--adm-shadow-popup); overflow: hidden; }
-.el-dialog__header { padding: 16px 24px; border-bottom: 1px solid var(--adm-border-split); }
+.el-dialog__header { padding: 12px 20px; border-bottom: 1px solid var(--adm-border-split); }
 .el-dialog__title { font-size: 16px; font-weight: 500; line-height: 1.5; color: var(--adm-text-88); }
 .el-dialog__headerbtn { top: 16px; right: 20px; }
 .el-dialog__headerbtn .el-dialog__close { color: var(--adm-text-45); }
 .el-dialog__headerbtn .el-dialog__close:hover { color: var(--adm-primary); }
-.el-dialog__body { padding: 24px; color: var(--adm-text-88); }
-.el-dialog__footer { padding: 12px 24px; border-top: 1px solid var(--adm-border-split); }
+.el-dialog__body { padding: 20px; color: var(--adm-text-88); }
+.el-dialog__footer { padding: 10px 20px; border-top: 1px solid var(--adm-border-split); }
 .el-message-box { border-radius: var(--adm-radius-card); box-shadow: var(--adm-shadow-popup); border: none; padding-bottom: 0; }
 .el-message-box__title { font-size: 16px; font-weight: 500; color: var(--adm-text-88); }
 .el-message-box__content { padding: 16px 24px; color: var(--adm-text-65); }
@@ -262,7 +262,7 @@
 /* ---- 卡片:白底 + 1px 描边 + 8px 圆角 + 极轻阴影 ---- */
 :where(.main-wrapper) .el-card { border: 1px solid var(--adm-border-split); border-radius: var(--adm-radius-card); box-shadow: var(--adm-shadow-card); }
 :where(.main-wrapper) .el-card__header { padding: 20px 24px; border-bottom: 1px solid var(--adm-border-split); font-weight: 500; }
-:where(.main-wrapper) .el-card__body { padding: 24px; }
+:where(.main-wrapper) .el-card__body { padding: 20px; }
 
 /* ---- 页面内主按钮 ---- */
 :where(.main-wrapper) .el-button--primary { background-color: var(--adm-primary); border-color: var(--adm-primary); }
@@ -322,14 +322,16 @@
 /* ---- 分页:右下角(密度收紧一格) ---- */
 :where(.main-wrapper) .el-pagination { padding: 10px 0 0; text-align: right; font-weight: 400; flex-shrink: 0; }
 
-/* ---- 表单 ---- */
+/* ---- 表单(编辑页整体紧凑化:表单项纵向间距压缩约 36%) ---- */
 :where(.main-wrapper) .el-form-item__label { font-size: 14px; color: var(--adm-text-65); font-weight: 500; }
+:where(.main-wrapper) .el-form-item { margin-bottom: 14px; }
+:where(.main-wrapper) .el-form--inline .el-form-item { margin-bottom: 10px; }
 
 /* ---- 详情页 / 编辑页分区 ---- */
-:where(.main-wrapper) .detail-section { margin-bottom: 24px; }
+:where(.main-wrapper) .detail-section { margin-bottom: 16px; }
 :where(.main-wrapper) .detail-section-title {
   font-size: 15px; font-weight: 500; color: var(--adm-text-88);
-  margin-bottom: 12px; padding-bottom: 8px;
+  margin-bottom: 8px; padding-bottom: 6px;
   border-bottom: 1px solid var(--adm-border-split);
 }
 :where(.main-wrapper) .edit-form-footer { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--adm-border-split); text-align: right; }

+ 3 - 3
cfc-web/src/views/admin/ProductManage.vue

@@ -676,12 +676,12 @@ export default {
 .pm-table-wrap /deep/ .el-table {
   flex: 1;
   min-height: 0;
-  font-size: 14px;
+  font-size: 13px;
   border-radius: 6px;
 }
 
 .pm-table-wrap /deep/ .el-table th {
-  height: 46px;
+  height: 36px;
   padding: 0;
   background: var(--adm-bg-header);
   color: rgba(0, 0, 0, 0.88);
@@ -689,7 +689,7 @@ export default {
 }
 
 .pm-table-wrap /deep/ .el-table td {
-  padding: 12px 0;
+  padding: 6px 0;
 }
 
 /* 数值列:右对齐 + 等宽数字 */

+ 3 - 3
cfc-web/src/views/admin/SpecialPriceManage.vue

@@ -579,18 +579,18 @@ export default {
 .pm-table-wrap /deep/ .el-table {
   flex: 1;
   min-height: 0;
-  font-size: 14px;
+  font-size: 13px;
   border-radius: 6px;
 }
 .pm-table-wrap /deep/ .el-table th {
-  height: 46px;
+  height: 36px;
   padding: 0;
   background: var(--adm-bg-header);
   color: rgba(0, 0, 0, 0.88);
   font-weight: 500;
 }
 .pm-table-wrap /deep/ .el-table td {
-  padding: 12px 0;
+  padding: 6px 0;
 }
 .pm-table-wrap /deep/ .pm-num {
   font-variant-numeric: tabular-nums;

+ 115 - 0
docs/tdd/orchestration/report-dev-2026-11-14-1241.md

@@ -0,0 +1,115 @@
+# 研发负责人工作汇报(第 175 轮 · 2026-11-14 12:41)
+
+> 本轮为 CFC_PROTOCOL v1.3 标准闭环轮(自动化收割):目标基线→互斥→失败补跑检查→盘点→恢复→场景优先分派→池空续建→收口纪律→汇报。全程无人值守、零提问。webhook 定时总结推送已移出协议(非技能职责),本轮不发送。
+
+## 基本信息
+
+| 项目 | 内容 |
+|------|------|
+| 汇报人 | 研发负责人(自动化轮 · 第 175 轮) |
+| 汇报周期 | 2026-11-14 11:27 ~ 12:41 |
+| 负责模块/单元范围 | CFC(E:/cfc,主分支 `origin/cfclub`) |
+
+## 一、本轮工作数据汇总
+
+### 1.0 场景覆盖矩阵(硬职责增列)
+
+| 指标 | 值 | 说明 |
+|------|-----|------|
+| 场景总数 | 241 | `sc-key-map.md` 全量台账(唯一计数源,零漂移) |
+| 累计已跑通 | 15 | 满足「跑通」三判据(O-3 收口 5 + 2026-11-07 游客域补证 10) |
+| 本轮新增跑通 | 0 | 本轮无 SC 直接转正(能力键 GREEN ≠ SC 跑通;转正须测试侧三类流证据 + mark-green,dev 不代越) |
+| 失败 | 0 | — |
+| 阻塞 | 0 | — |
+| 未跟踪 | 226 | 241 − 15(18 有键未跑通 + 208 无键未契约化) |
+
+### 1.1 问题接收与处置
+
+| 指标 | 数量 | 说明 |
+|------|------|------|
+| 收到的测试反馈问题数 | 0 | 本轮无新增 blockers;`--inspect` 显示当前无已登记阻塞 |
+| 已解决问题数 | 0 | — |
+| 待解决研发问题数 | 0 | S-cfc-309(teacher.report.proxy)历史 req# 临界态持续观察(非本轮新增) |
+
+### 1.2 任务分发与会话管理
+
+| 指标 | 数量 | 说明 |
+|------|------|------|
+| 分派任务数 | 0 | 任务池 pending=0(池空稳态);RED 65 键全为契约 RED 批次在途/测试侧职责,无待派 dev 任务 |
+| 恢复智能体会话数 | 0 | `--resume --dry-run` 演练恢复 0 个(prod-etotem 默认跳过;其余无中断/wedged 候选) |
+| 当前在用会话数 | 2 | pub-iwintrue busy2 / 其余 4 节点 idle(`--inspect` 12:41 实测) |
+| 会话平均利用率 | ~7% | 总配额 30,占用 2 |
+
+#### 1.2b 各会话当前工作状态列表(必填)
+
+| 实例 | 状态 | busy/idle | 配额上限 | 剩余 | 备注 |
+|------|------|-----------|----------|------|------|
+| lan-189 | idle | 0 / 50 | 4 | 4 | 11:27 轮派发的 S-cfc-347 已完成并产出(见 1.4) |
+| lan-204 | idle | 0 / 50 | 10 | 10 | — |
+| local-lan-4090 | idle | 0 / 50 | 6 | 6 | 模型链 429 冷却至 11-13 08:00(已到期,观察) |
+| mes-local-45278 | idle | 0 / 50 | 4 | 4 | — |
+| pub-iwintrue | running | busy2 / 48 | 6 | 4 | 部署/在途会话 |
+
+无 wedged/swallowed/stalled/upstream_err/thrash。
+
+### 1.3 变更感知(`--changes --days 7`)
+
+- 200+ 提交 / 161+ 文件;**0 新增能力键**(O-7 无 `--add-task` 候选,防假红)。
+- 既有键/文档变更(窗口内已入链,均在 origin/cfclub):
+  - 任务日提醒设计契约 v1.0(c56ea68ab)→ S-cfc-347 RED 契约已产出(2cd8bcca2);
+  - 家庭运营工作台(我的版本)merge 合入主线(3c1a30dcf,含 9 笔 feat + 1 fix);
+  - 家庭优惠券双 admin 前缀路由与返回跳转白屏修复(cfaf99d9e)。
+- 无新键 → 不建伪 RED 任务,池空续建判定为「双侧填满收敛」。
+
+### 1.4 git 证据(只认已推远端)
+
+| 证据 | sha | 核验 |
+|------|-----|------|
+| **S-cfc-347 RED 契约产出**(task.reminder.daily,SC-P-65/79 日提醒配置+早晚调度,20 例预期红) | 2cd8bcca2 | 在 `origin/cfclub` log(11:27 汇报 2ba579111 之后)✓ 待 `--auto` 下轮认领 red_sha |
+| 测试侧 R200 闭环回报(确认 S-cfc-347 20 例预期 RED;G12 TC-FW/TC-OS 36 条转已执行) | 90d221291 | ✓ |
+| 家庭运营工作台 merge 主线(单家庭工作台 6 卡+趋势+钻取、方案/任务/报告/聊天、聚合端点、tasks 表索引) | 3c1a30dcf / 51956b63c / 3e8925111 等 9 笔 feat | ✓ |
+| 家庭优惠券双 admin 前缀路由修复 | cfaf99d9e | ✓ |
+| child.growth.archive 实现(YELLOW✓ fdd6bb8fd,测试环境部署验证在途) | fdd6bb8fd | ✓(deploy pending,O-24 dev 不代越) |
+
+### 1.5 状态机与任务账本
+
+- **状态机 211 键** = RED 65 / YELLOW 123 / GREEN 8 / DONE 15(与 130/131/132/174 轮同态零流转)。
+- **任务账本 348** = done 254 / dispatched 70 / failed 24 / **pending 0(池空)**。
+- **部署**:pending 41 / confirmed 77(last_deployed=2e1e5d32e;open 归测试/部署侧 `--deploy-done` 收口,O-24 dev 不代越)。
+
+## 二、本轮动作
+
+1. **互斥门**:state.json mtime 11:04:37 距今 ~1.6h >5min → PROCEED(11:27 第 174 轮之后无其他错峰负责人运行)。
+2. **`--auto --role 开发 --limit 2`**(T9 预算内,1 轮):
+   - **0 派发**(任务池 pending=0,池空 T6 确认);
+   - **O-22 豁免批 ~30 键**维持 done 零复发(child.growth.archive / child.diet.viewMenu / child.ai.chat / child.notification.receive / child.mind.capture / child.shop.pointsExchange / child.feedback.submit / child.energy.gain / supplier.inventory.manage / supplier.afterSales.handle / supplier.activity.attend / supplier.nutrition.supply / supplier.data.exportCompliance / ai.coach.consult / ai.coach.proactive 等,均为「会话自述 done 但无 git 证据 → 键级已实现定论」保持 done 不重派);
+   - child.growth.archive fdd6bb8fd YELLOW✓ 标注 + 自动待部署验证已派发;
+   - 状态机写盘零污染。
+3. **池空续建判定**:`--changes` 0 新增能力键 → 无合法 `--add-task` 候选(O-7/O-25 防假红:不凭空建任务,必须锚定实际工作溯源)。SC 缺口归测试侧三类流证据,双侧填满收敛。
+4. `--resume --dry-run` = 0 候选人 → 无恢复。
+5. **窗口内业务增量核验(他人/测试侧产物,只读登记)**:S-cfc-347 RED 契约 20 例预期红入链(2cd8bcca2)+ 测试侧 R200 确认 + 家庭运营工作台合入主线(9 笔 feat)+ 优惠券路由修复(cfaf99d9e)。
+
+## 三、阻塞与风险
+
+- **无新增阻塞**。`--clean-check` exit=1(1040 处他人 WIP:`.gitignore` M + `.tdd/_r18*.log` D 等,属测试侧/其他域未提交;O-3 判据③「SC 关联提交级」零交集不阻塞本轮,按纪律不代收口)。
+- **deploy pending 41** 待测试/部署侧 `--deploy-done` 收口(O-24,dev 不代越)。
+- **S-cfc-347 账本认领时延(观察项,非阻塞)**:RED 契约产出已入链但任务账本仍 dispatched、red_sha 未回填——依赖下轮 `--auto` git 证据自动认领(红→黄流转);若下轮仍未认领需排查 tid 匹配路径。
+- **S-cfc-309**(teacher.report.proxy)历史 req#=3 临界态——无产出则 exhausted+needs_human,持续观察。
+
+## 四、下一步事项(事项 → 依赖 → 预估)
+
+1. **S-cfc-347(task.reminder.daily)RED 契约认领**(2cd8bcca2 已入链)→ `--auto` 下轮 git 证据认领 red_sha 并自动续建 GREEN 实现任务(依赖编排侧扫描 → 下轮)。
+2. 在途 70 会话(RED 契约 65 键批次 + GREEN 24)执行证据回收:`--auto` 认领 red_sha / yellow_sha(依赖会话产出 → 下轮)。
+3. deploy pending 41 回执收口(O-24,依赖部署侧 `--deploy-done` → 下轮)。
+4. SC 转正待测试侧三类流证据 + mark-green(dev 不代越,依赖测试侧)。
+5. 池空稳态延续:0 `--add-task` 候选(O-7/O-25 防假红)。
+
+> **演示路径就绪度**(CFC 无 mes 演示路径文档,此条不适用;CFC 场景口径见 1.0)。
+
+## 附:铁律遵守自检
+
+- 未 `git add -A`、未 checkout/stash/force-push 他人改动 ✓
+- 汇报走临时索引单文件方案(见提交说明),不碰他人 1040 处 WIP ✓
+- `.tdd/` 本地私有禁推 ✓
+- 只认 git 真理证据,不认会话自述 ✓
+- webhook 移出协议(CFC_PROTOCOL v1.3)→ 本轮不发送 ✓