liuyun abda2f95c3 docs(openspec): C5 后台配置与文书补齐 change 提案
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-10-15 07:26:29 +08:00

31 lines
1.7 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

## Why
C0–C4 已落地 P0 四块主线,但 admin 后台「服务机构设置」6 个子菜单 + 「文书档案」7 个菜单一直是占位符(C0 只建了 agency/catalog/staff 后端 + API 文件,页面未落地)。C5 补齐这 7 个空菜单。
## What Changes
- `svc_org` 加 `photo_tier`(must/free/optional,默认 seed 按 PRD 分档表);`ltc_agency` 加 `qc_threshold`/`docking_tier`/`new_national_notify`。
- 拍照分档配置:批量更新 L4 项目 photo_tier(加严提示、不建议放宽);plan/order photo_required 快照溯源到 svc_org.photo_tier。
- 质控提醒配置(阈值)、对接档位(A/B/C,C 预留)、国家新增项提示开关。
- 文书档案(B7 精简版):一人一档(基本信息+计划+服务记录+异常),按老人/时间导出,带水印 + 审计。
- 前端 7 页:机构信息/属地与目录/服务项目与配价/拍照分档配置/质控提醒配置/对接档位/文书档案。
## Capabilities
### New Capabilities
- `backend/config`: 机构配置(qc_threshold/docking_tier/new_national_notify)+ 拍照分档批量改 + 文书导出。
- `frontend/ad/config`: 后台 7 个配置/文书页。
### Modified Capabilities
- `shared/data-model`: `svc_org` 加 photo_tier;`ltc_agency` 加 3 个配置字段。
- `shared/api-contract`: 新增 photo-tier 批量更新、agency 配置扩展、文书导出接口。
## Impact
- 后端 ec-nest:agency/catalog 模块扩展 + document 导出(纯新增逻辑)。
- 前端 ec-admin:7 个页面(替换占位)。
- 数据:2 张表加字段(迁移,utf8mb4_general_ci)。
- 依赖:C0 的 agency/catalog/staff、C2/C3 的 photo_required 快照。