chore(task): 归档项目合同轻台账与详情命令面板重构
这个提交包含在:
@@ -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/docs-and-evidence.md", "reason": "Evidence and sensitive material report rules"}
|
||||
{"file": ".trellis/spec/hyb-oa/security-privacy.md", "reason": "Check no sensitive contract/project material leakage"}
|
||||
@@ -0,0 +1,18 @@
|
||||
# 项目合同轻台账与详情命令面板重构设计
|
||||
|
||||
## Page Template
|
||||
|
||||
项目列表和合同台账使用 `业务台账列表`,项目详情和未来合同详情使用 `详情工作区`。关联区只做摘要和跳转。
|
||||
|
||||
## Implementation Shape
|
||||
|
||||
- 项目列表按我负责/我参与、进行中、有风险和近期跟进排序。
|
||||
- 项目详情按状态、负责人、里程碑/任务、风险、交付和关联业务摘要组织。
|
||||
- 合同台账突出待补附件、即将到期、待归档和关联缺失。
|
||||
- 合同附件和高敏材料默认摘要展示,查看/下载走授权路径。
|
||||
|
||||
## Verification Focus
|
||||
|
||||
- 项目和合同页面不承诺完整 PM/CLM 能力。
|
||||
- 关联采购、报销、付款、资产时不复制对方流程。
|
||||
- 无权限用户不能因关联摘要看到高敏字段。
|
||||
@@ -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": "Ledger/detail template, relation summary and sensitive action placement rules"}
|
||||
{"file": ".trellis/spec/hyb-oa/approval-workflow.md", "reason": "Approval action boundaries if project/contract links to workflow tasks"}
|
||||
{"file": ".trellis/spec/hyb-oa/security-privacy.md", "reason": "Sensitive contract, attachment and project information display boundaries"}
|
||||
{"file": ".trellis/spec/hyb-oa/docs-and-evidence.md", "reason": "Evidence and sensitive material report rules"}
|
||||
@@ -0,0 +1,50 @@
|
||||
# 项目合同轻台账与详情命令面板重构
|
||||
|
||||
## Goal
|
||||
|
||||
统一项目和合同页面的轻台账、详情命令面板和跨模块关联方式。项目只做状态、负责人/成员、里程碑/任务、风险、交付记录和关联业务摘要;合同只做登记、归档、到期/续签提醒和关联项目/采购/付款。
|
||||
|
||||
## Scope
|
||||
|
||||
- In scope:项目列表、项目详情、合同台账的轻台账结构、详情命令面板和关联摘要展示。
|
||||
- Out of scope:完整项目管理软件、完整 CLM、电子签、条款库、合同审批工作台和正式成本核算。
|
||||
|
||||
## Pages
|
||||
|
||||
- `client/src/pages/ProjectsPage.tsx`
|
||||
- `client/src/pages/ProjectDetailPage.tsx`
|
||||
- `client/src/pages/ContractsRegistryPage.tsx`
|
||||
|
||||
## Requirements
|
||||
|
||||
- 项目列表默认展示我负责/我参与,优先进行中、有风险、近期需跟进项目。
|
||||
- 项目详情按状态、负责人、下一步、风险/里程碑、交付记录、关联报销/采购/合同/付款摘要组织。
|
||||
- 合同台账默认展示我负责/我可见,突出待补附件、即将到期、待归档、关联缺失和敏感下载待审计。
|
||||
- 合同详情使用状态与下一步、相对方、负责人、到期/续签提醒、附件完整性、关联项目/采购/付款、审计记录。
|
||||
- 跨模块关联只展示摘要和跳转,不直接审批采购、标记付款、处理发票/OCR、下载合同正文或处理资产。
|
||||
|
||||
## Out of Scope
|
||||
|
||||
- 不做完整项目管理软件、甘特图、复杂依赖、工时、资源排期、OKR 或项目组合管理。
|
||||
- 不做完整 CLM、电子签、条款库、红线审查、版本协同或法务会签工作台。
|
||||
- 不新增项目预算控制或正式成本核算。
|
||||
|
||||
## Acceptance Criteria
|
||||
|
||||
- [x] 项目页能看清当前项目状态、风险、下一步和关联业务摘要。
|
||||
- [x] 合同页能看清到期、附件完整性、归档和关联上下文。
|
||||
- [x] 项目/合同关联区不突破原业务模块权限。
|
||||
- [x] 高敏合同正文、报价、银行材料不出现在普通列表和自动化截图中。
|
||||
|
||||
## 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
|
||||
|
||||
- 先统一项目和合同的列表/详情信息顺序,再考虑抽取轻台账详情分区。
|
||||
- 如合同未来需要审批,仍跳转统一审批中心,不在合同台账内自建审批工作台。
|
||||
@@ -0,0 +1,26 @@
|
||||
{
|
||||
"id": "project-contract-ledger-detail-shell",
|
||||
"name": "project-contract-ledger-detail-shell",
|
||||
"title": "项目合同轻台账与详情命令面板重构",
|
||||
"description": "统一项目和合同轻台账、详情命令面板、跨模块摘要跳转和敏感资料边界。",
|
||||
"status": "completed",
|
||||
"dev_type": null,
|
||||
"scope": "frontend-page-redesign",
|
||||
"package": null,
|
||||
"priority": "P2",
|
||||
"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": {}
|
||||
}
|
||||
在新工单中引用
屏蔽一个用户