chore(task): 归档企微主办 HR 考勤页面收敛

这个提交包含在:
2026-05-30 11:41:50 +08:00
父节点 83c8e8be4f
当前提交 c4edb12bb8
共修改 5 个文件,包含 2 行新增和 2 行删除
@@ -0,0 +1,4 @@
{"file": ".trellis/spec/hyb-oa/project-governance.md", "reason": "Required task validation and commit gate"}
{"file": ".trellis/spec/hyb-oa/frontend-react-vite-design.md", "reason": "Required frontend typecheck/build and focused visual/Playwright checks"}
{"file": ".trellis/spec/hyb-oa/wecom-boundary.md", "reason": "Check no Enterprise WeChat write or HR ownership drift"}
{"file": ".trellis/spec/hyb-oa/docs-and-evidence.md", "reason": "Evidence and privacy rules for WeCom/HR reports"}
@@ -0,0 +1,18 @@
# 企微主办 HR 考勤页面收敛设计
## Page Template
请假记录、考勤和企微审批历史使用 `业务台账列表` 的只读/镜像表达;移动请假使用移动卡片列表和状态详情,不做 PC 表单壳。
## Implementation Shape
- 页面首屏固定说明企业微信主办,OA 只做留存、镜像、异常和应急。
- 移除或弱化普通员工日常提交主动作;仅在应急或管理状态显示说明型入口。
- 历史和考勤异常只展示摘要、同步状态、审批链/打卡摘要和下一步。
- 不新增任何企业微信写入调用。
## Verification Focus
- 请假、补卡、外出、加班不会出现 OA 快批误导。
- 同步失败、未映射、无权限等状态使用自然中文。
- 移动端入口和 PC 入口口径一致。
@@ -0,0 +1,5 @@
{"file": ".trellis/spec/hyb-oa/project-governance.md", "reason": "Trellis task, approval and solo-developer execution constraints"}
{"file": ".trellis/spec/hyb-oa/frontend-react-vite-design.md", "reason": "Page template, mobile and shell rules"}
{"file": ".trellis/spec/hyb-oa/wecom-boundary.md", "reason": "Enterprise WeChat ownership and write-gate boundaries"}
{"file": ".trellis/spec/hyb-oa/approval-workflow.md", "reason": "Approval action boundaries for OA vs WeCom-owned flows"}
{"file": ".trellis/spec/hyb-oa/docs-and-evidence.md", "reason": "Evidence and report privacy rules"}
@@ -0,0 +1,51 @@
# 企微主办 HR 考勤页面收敛
## Goal
统一请假记录、考勤、企微审批历史和移动请假的页面口径:企业微信主办打卡、请假、补卡、外出、加班等日常动作;OA 只做镜像、历史、审计、异常解释和明确应急接管。
## Scope
- In scope:请假记录、考勤、企微审批历史、移动请假页面文案、入口和动作显隐。
- Out of scope:企业微信写入、模板创建、真实审批提交、深度考勤排班和应急接管后端。
## Pages
- `client/src/pages/LeaveRequestPage.tsx`
- `client/src/pages/AttendancePage.tsx`
- `client/src/pages/WecomApprovalArchivePage.tsx`
- `client/src/pages/MobileLeavePage.tsx`
## Requirements
- 页面标题和首屏文案明确 `企业微信主办`、`OA 留存/镜像`、`仅历史/异常/应急`。
- 默认不突出 `提交请假`、`补卡`、`外出`、`加班` 等 OA 日常主动作;只有应急模式或管理场景才展示。
- 企微审批历史只读展示摘要、外部单号、同步状态、审批链和失败下一步,不出现 OA 快批。
- 考勤页展示月度/周期摘要、异常、同步状态和解释记录,不做打卡入口。
- 移动请假默认是状态/历史查看,不误导用户在 OA 里重复发起。
## Out of Scope
- 不写企业微信、不创建企微审批模板、不提交真实审批单。
- 不开发深度考勤排班、假期额度、恢复回写或应急接管后端。
- 不改已有归档数据结构和审批链校验。
## Acceptance Criteria
- [ ] HR/考勤页面不会让普通员工误以为 OA 是日常请假/打卡主入口。
- [ ] 企微历史页没有通过、驳回、退回、转审等 OA 审批动作。
- [ ] 异常状态说明同步来源、影响和下一步,不展示接口错误或原始 payload。
- [ ] 移动端符合顶部状态/卡片列表/底部轻动作规则。
## Test Plan
- `cd client && npm run typecheck`
- `cd client && npm run build`
- 聚焦请假、考勤、企微历史、移动请假相关 Playwright/截图。
- `node scripts/qa/check-trellis-governance.mjs`
- `git diff --check`
## Implementation Notes
- 只读和异常解释优先,不新增企微写入。
- 页面文案使用自然中文,不暴露企微 API 细节、模板 ID 或回调 payload。
@@ -0,0 +1,26 @@
{
"id": "wecom-hr-boundary-pages",
"name": "wecom-hr-boundary-pages",
"title": "企微主办 HR 考勤页面收敛",
"description": "收敛请假记录、考勤、企微审批历史和移动请假页面:明确企微主办,OA 只做镜像、历史、异常和应急。",
"status": "completed",
"dev_type": null,
"scope": "frontend-page-redesign",
"package": null,
"priority": "P1",
"creator": "shunli",
"assignee": "shunli",
"createdAt": "2026-05-30",
"completedAt": "2026-05-30",
"branch": null,
"base_branch": "main",
"worktree_path": null,
"commit": null,
"pr_url": null,
"subtasks": [],
"children": [],
"parent": "05-29-page-design-rules-audit",
"relatedFiles": [],
"notes": "",
"meta": {}
}