Share one finance remark per approval instance across Web and mobile. Require the explicit permission and the current tenant user's own done task for every read and write; keep general instance responses free of financial remarks.
Add idempotent MySQL migration without automatic role grants, cross-end editors, isolated backend and frontend tests, and rollout requirements. Refs #7; platform validation and target database migration remain pending.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Summary
已办中心原先没有受控的财务备注入口。本变更在 Web 表格和 uni-app 已办卡片提供共享备注及编辑弹窗,同一审批实例保存一份备注。
mobile-oa-h5 承载原审批详情,本需求不在详情新增字段。迁移只创建字段和权限节点,不自动赋予角色。关联 #7。
Evidence
After: 新增后端 32 项、全部 OA 回归 314 项、前端行为 23 项通过;覆盖共享值、权限并集、本人已办、租户/软删隔离、输入校验、纯文本、取消/失败和页面切换竞态。
Merge Danger
Door: two-way(应用可回退,新增列保留以避免丢失备注)。
Blast Radius: OA
更新应用前必须执行
docs/sql/migrations/2026-10-30-oa-done-finance-remark.sql,否则 ORM 查询新字段可能失败。用户已确认当前远程库为测试库并授权执行。迁移完成后已核对可空 VARCHAR(512) 字段、2 个新增权限节点,角色授权数量未变。由管理员在角色菜单配置中按需授予财务备注权限;其他环境仍须先迁移再更新应用。本次 H5 验收与测试库迁移条件已满足,按持续授权合入 V2.0 并同步本地主分支后关闭 #7。不打 tag、不部署、不启停服务。
cykj referenced this pull request2026-10-30 13:45:13 +00:00