Skip to content

v0.2 M5:应付会计与采购主管岗位 - #13

Merged
marchtian merged 1 commit into
mainfrom
claude/project-thread-h1jb6e
Oct 23, 2026
Merged

marchtian merged 1 commit into
mainfrom
claude/project-thread-h1jb6e

Conversation

@marchtian

Copy link
Copy Markdown
Collaborator

Requested by 田騏 · project thread

Closes #8(总览 #7)

改了什么

  • positions.ts 新增岗位 srm_ap_accountant(应付会计:srm_internal_base + srm_finance)和 srm_buyer_lead(采购主管:srm_internal_base + srm_supplier_admin)。采购主管是 03 §5 信息变更第 1 级审批人,应付会计是银行账户变更第 2 级,M4 用。
  • permission-sets.ts 新增 srm_finance:供应商、联系人、证书只读(04 §2.3 矩阵的 finance 列)。银行账户读与核验 screen flow 由 M2(v0.2 M2:银行账户 srm_supplier_bank_account #11)补上。不设 isDefault。
  • 测试:每个新岗位一份「能看到什么」快照(工程规范 §4);岗位只挂已存在的权限集;应付会计能读供应商、不能改/建、看不到准入申请;采购主管能维护档案但不能直接改状态。

与设计 04 §2.1 的差异

04 §2.1 中采购主管还挂 srm_buyer。该权限集对应的对象(合同、交付记录、变更单)尚未上线,沿用 v0.1「岗位与权限集随版本逐步加入」的做法,代码注释已注明,设计不改。

翻译:平台的 TranslationData 没有岗位和权限集的词条位置,v0.1 的岗位同样没有英文词条;i18n check --strict 通过。

验证

pnpm verify(validate、lint、typecheck、i18n:check、test 33 个、build)本地全部通过。


Generated by Claude Code

Add srm_ap_accountant (srm_internal_base + srm_finance) and srm_buyer_lead
(srm_internal_base + srm_supplier_admin) per design 04 §2.1, and the
srm_finance permission set with read-only supplier profile access. Bank
account access is added when M2 lands. Tests snapshot what each new
position can see and check the accountant cannot edit suppliers.

Closes #8

Claude-Session: https://claude.ai/code/session_0197hVjZ87aVrju7md9EL1Gf
Co-authored-by: Claude <noreply@anthropic.com>
@marchtian marchtian self-assigned this Oct 23, 2026
@marchtian
marchtian merged commit 8125381 into main Oct 23, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

v0.2 M5:财务岗位与采购主管岗位

2 participants