feat: 卡/设备是否有生效套餐
All checks were successful
构建并部署前端到测试环境 / build-and-deploy (push) Successful in 5m19s

This commit is contained in:
sexygoat
2026-05-19 15:14:39 +08:00
parent 14832f5c6f
commit 59167d2630
14 changed files with 3792 additions and 3963 deletions

View File

@@ -0,0 +1,53 @@
## ADDED Requirements
### Requirement: IoT Card Batch Allocation Range Allocation Hint
The IoT card batch allocation dialog SHALL provide a derived allocation-count hint for ICCID range selection.
The hint MUST appear immediately below the `iccid_start` and `iccid_end` inputs when `selection_type="range"`.
The count MUST be computed with exact integer arithmetic as `iccid_end - iccid_start + 1` so that long ICCID values do not lose precision.
When displayed, the count MUST use decimal thousands separators, for example `1,000`.
#### Scenario: Show allocation count for a valid ICCID range in batch allocation
- **GIVEN** 用户打开“批量分配”对话框
- **AND** 用户选择 `selection_type="range"`
- **WHEN** 用户输入有效的 `iccid_start``iccid_end`,且计算结果为正整数
- **THEN** 对话框 MUST 显示 `共分配xxx张卡`
- **AND** `xxx` MUST 等于 `iccid_end - iccid_start + 1`
- **AND** 当数量大于等于 `1000` 时,`xxx` MUST 使用千分号格式展示
- **AND** 当任一端点变化时,提示 MUST 立即更新
#### Scenario: Hide allocation count for incomplete or invalid ICCID ranges in batch allocation
- **GIVEN** 用户选择 `selection_type="range"`
- **WHEN** 任一起止 ICCID 为空、无法按整数计算,或计算结果小于 `1`
- **THEN** 对话框 MUST NOT 显示误导性的数量提示
### Requirement: IoT Card Batch Recall Range Allocation Hint
The IoT card batch recall dialog SHALL provide a derived allocation-count hint for ICCID range selection.
The hint MUST appear immediately below the `iccid_start` and `iccid_end` inputs when `selection_type="range"`.
The count MUST be computed with exact integer arithmetic as `iccid_end - iccid_start + 1` so that long ICCID values do not lose precision.
When displayed, the count MUST use decimal thousands separators, for example `1,000`.
#### Scenario: Show allocation count for a valid ICCID range in batch recall
- **GIVEN** 用户打开“批量回收”对话框
- **AND** 用户选择 `selection_type="range"`
- **WHEN** 用户输入有效的 `iccid_start``iccid_end`,且计算结果为正整数
- **THEN** 对话框 MUST 显示 `共分配xxx张卡`
- **AND** `xxx` MUST 等于 `iccid_end - iccid_start + 1`
- **AND** 当数量大于等于 `1000` 时,`xxx` MUST 使用千分号格式展示
- **AND** 当任一端点变化时,提示 MUST 立即更新
#### Scenario: Hide allocation count for incomplete or invalid ICCID ranges in batch recall
- **GIVEN** 用户选择 `selection_type="range"`
- **WHEN** 任一起止 ICCID 为空、无法按整数计算,或计算结果小于 `1`
- **THEN** 对话框 MUST NOT 显示误导性的数量提示