Use a dedicated tenant-scoped active region leader list instead of all region staff. Preserve historical labels without offering them as choices and remove the ordinary-member default during region changes.
Refs #1. Add regression coverage for tenant isolation, inactive records, deduplication, historical labels and region cascades.
Provide tenant-scoped leader options for the Web protocol form, exclude ordinary members and retain historical names only for display. Default only to a leader of the selected region and prevent delayed requests from replacing manual choices.
Refs #1. Add backend option isolation and Web cascade regression coverage.
cykj
changed title from fix(market): 采集协议单地区经理仅展示各地区负责人 to fix: 小程序与 Web 采集协议单地区经理仅展示负责人2026-10-30 09:48:33 +00:00
Create issues for new unnumbered development requests, read supplied issues before implementation and reuse the active issue for follow-ups. Report repaired, acceptance, merge and release states separately.
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.
合并完成
用户验收通过后合并到 V2.0,提交 05de8924b04f9dc0c6589571ce17f4afb26d980b。本地与远端一致,合并后的受跟踪代码与已验收修复分支一致。合并后回归:Web 60、小程序 H5 374、后端相关 13 项全部通过。本轮未重复构建,已有构建结果及全量检查限制见下文。
采集协议单的地区经理此前可选普通人员,无负责人时还会默认地区首位普通成员。此修改统一小程序与 Web:候选仅为当前租户各有效地区的在用负责人,按用户去重;例如 4 个地区分别有 4 位负责人,只列出这 4 人。
Refs #1(已完成用户验收和合并后回归)
验证
验收与部署
Web 请检查新增/编辑单据、负责人姓名搜索、无负责人地区、历史姓名、快速切换地区,以及市场专员带出地区期间手动选择经理。
Web 与后端需使用同一修复分支配套部署;小程序 H5 的 regionManagers 响应与消费方也需配套。已合并 V2.0 并同步本地,未启停服务、未打 tag。
fix(market): 采集协议单地区经理仅展示各地区负责人to fix: 小程序与 Web 采集协议单地区经理仅展示负责人