fix: 凭证识别
All checks were successful
构建并部署前端到测试环境 / deploy (push) Successful in 54s

This commit is contained in:
luo
2026-09-29 16:07:48 +08:00
parent f896cad34f
commit aec2a27a65
16 changed files with 374 additions and 219 deletions

View File

@@ -10,7 +10,9 @@
- 成员管理弹窗展示当前成员及成员关系信息。
- 候选账号展示 `add`、`already_member`、`move` 操作提示。
- 停用组允许查询和移除,但新增/迁移由后端拒绝并提示。
- 用户组列表/详情使用实时成员数。
- 用户组列表使用接口返回的实时成员数。
- 当前成员和候选账号展示当前所属组名称、编码、启用状态,不展示内部组 ID。
- 店铺列表和详情展示业务用户组编码、名称、启用状态和业务线,不展示内部组 ID。
## Impact

View File

@@ -1,5 +1,32 @@
## ADDED Requirements
### Requirement: Business User Group Metadata Visibility
The frontend SHALL display business user group metadata returned by shop and membership APIs while omitting internal group IDs from these views.
#### Scenario: Show business group fields for shops
- **WHEN** an administrator views the shop list or shop details
- **THEN** the frontend displays the business group code, name, enabled state, and business line returned by the API
- **AND** the frontend does not display the business group ID
#### Scenario: Show current group fields for members and candidates
- **WHEN** an administrator views current members or candidate accounts in the group drawer
- **THEN** the frontend displays each account's current group code, name, and enabled state
- **AND** displays "未分组" when the account has no current group
- **AND** the frontend does not display the current group ID
#### Scenario: Show current member count
- **WHEN** an administrator views the business user group list
- **THEN** the frontend displays the `member_count` returned for each group
#### Scenario: Keep member selection and username visible
- **WHEN** an administrator scrolls horizontally in either member or candidate table
- **THEN** the selection checkbox and username columns remain fixed on the left
### Requirement: Incremental Business User Group Membership
The frontend SHALL use the member query, candidate query, incremental POST add/move, and scoped DELETE remove contracts from the modification document.

View File

@@ -12,3 +12,10 @@
## 3. Verification
- [ ] 3.1 运行类型检查、lint、编码检查、构建和 OpenSpec 校验。
## 4. Metadata Display
- [x] 4.1 在店铺列表和详情中展示业务用户组编码、名称、启用状态及业务线,不展示组 ID。
- [x] 4.2 在成员与候选账号表中展示当前组编码、名称及启用状态,不展示组 ID。
- [x] 4.3 在业务用户组列表中展示接口返回的成员数。
- [x] 4.4 成员和候选账号表横向滚动时固定勾选框与用户名列在左侧。