feat: 新增卡视角以及设备视角的实名同步时间,卡状态同步时间,流量同步时间
All checks were successful
构建并部署前端到测试环境 / build-and-deploy (push) Successful in 4m56s
All checks were successful
构建并部署前端到测试环境 / build-and-deploy (push) Successful in 4m56s
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
# Change: 更新资产运营商状态文案与区间分配数量提示
|
||||
|
||||
## Why
|
||||
|
||||
当前后台“资产信息”页的“卡信息”区域会把 `gateway_extend` 展示为“运营商停机原因”,但最新业务要求需要统一改为更宽泛的“运营商状态”文案。
|
||||
|
||||
同时,IoT 卡管理和设备管理里的“批量设置套餐系列绑定”弹窗已经支持区间选择,但在输入起始/结束标识后没有给出本次将覆盖多少张卡或多少台设备的直观提示,运营人员需要手工心算范围,容易误判分配数量。
|
||||
|
||||
## What Changes
|
||||
|
||||
- 调整资产信息卡资产详情中“卡信息”区域的 `gateway_extend` 展示标签,将“运营商停机原因”改为 `运营商状态`
|
||||
- 为 IoT 卡“批量设置套餐系列绑定”弹窗的区间模式新增提示文案:`共分配xxx张卡`
|
||||
- 计算方式为 `结束ICCID - 起始ICCID + 1`
|
||||
- 仅在起止值可计算且结果为正整数时显示
|
||||
- 为设备管理“批量设置设备套餐系列绑定”弹窗的区间模式新增提示文案:`共分配xxx台设备`
|
||||
- 计算方式为 `结束设备号 - 起始设备号 + 1`
|
||||
- 仅在起止值可计算且结果为正整数时显示
|
||||
- 不调整后端接口字段,仅补充前端展示与交互约束
|
||||
|
||||
## Impact
|
||||
|
||||
- Affected specs:
|
||||
- `asset-information`
|
||||
- `iot-card-series-binding`
|
||||
- `device-series-binding`
|
||||
- Affected code:
|
||||
- `src/views/asset-management/asset-information/components/BasicInfoCard.vue`
|
||||
- `src/views/asset-management/iot-card-management/index.vue`
|
||||
- `src/views/asset-management/device-list/index.vue`
|
||||
- Dependencies:
|
||||
- `add-asset-gateway-extend-display`
|
||||
- `update-batch-series-binding-contract`
|
||||
- Breaking changes:
|
||||
- 无外部接口破坏性变更;本次仅调整文案和区间模式提示
|
||||
@@ -0,0 +1,13 @@
|
||||
## ADDED Requirements
|
||||
|
||||
### Requirement: Admin Asset Card Carrier Status Label
|
||||
|
||||
The admin asset information view SHALL label `gateway_extend` as `运营商状态` within the card information section.
|
||||
|
||||
#### Scenario: Show carrier status label in card information
|
||||
|
||||
- **GIVEN** 用户正在查看后台“资产信息”中的卡资产详情
|
||||
- **WHEN** 页面渲染“卡信息”区域中的 `gateway_extend`
|
||||
- **THEN** 字段标签 MUST 显示为 `运营商状态`
|
||||
- **AND** 字段值 MUST 继续直接展示上游返回的 `gateway_extend`
|
||||
- **AND** 当 `gateway_extend` 为空时,页面 MUST 显示稳定的占位内容
|
||||
@@ -0,0 +1,24 @@
|
||||
## ADDED Requirements
|
||||
|
||||
### Requirement: Device Batch Series Binding Range Allocation Hint
|
||||
|
||||
The device batch series binding dialog SHALL provide a derived allocation-count hint for device-number range selection.
|
||||
|
||||
The hint MUST appear immediately below the `virtual_no_start` and `virtual_no_end` inputs.
|
||||
|
||||
The count MUST be computed as `结束设备号 - 起始设备号 + 1` using the same numeric range values accepted by the dialog.
|
||||
|
||||
#### Scenario: Show allocation count for a valid device-number range
|
||||
|
||||
- **GIVEN** 用户打开“批量设置设备套餐系列绑定”弹窗
|
||||
- **AND** 用户选择 `selection_type="range"`
|
||||
- **WHEN** 用户输入 `virtual_no_start` 和 `virtual_no_end`,且计算结果为正整数
|
||||
- **THEN** 弹窗 MUST 显示 `共分配xxx台设备`
|
||||
- **AND** `xxx` MUST 等于 `结束设备号 - 起始设备号 + 1`
|
||||
- **AND** 当任一端点变化时,提示 MUST 立即更新
|
||||
|
||||
#### Scenario: Hide count hint for incomplete or invalid device-number ranges
|
||||
|
||||
- **GIVEN** 用户选择 `selection_type="range"`
|
||||
- **WHEN** 任一起止设备号为空、无法按有效数值范围计算,或计算结果小于 `1`
|
||||
- **THEN** 弹窗 MUST NOT 显示误导性的分配数量提示
|
||||
@@ -0,0 +1,24 @@
|
||||
## ADDED Requirements
|
||||
|
||||
### Requirement: IoT Card Batch Series Binding Range Allocation Hint
|
||||
|
||||
The IoT card batch series binding 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.
|
||||
|
||||
The count MUST be computed with exact integer arithmetic as `iccid_end - iccid_start + 1` so that long ICCID values do not lose precision.
|
||||
|
||||
#### Scenario: Show allocation count for a valid ICCID range
|
||||
|
||||
- **GIVEN** 用户打开“批量设置套餐系列绑定”弹窗
|
||||
- **AND** 用户选择 `selection_type="range"`
|
||||
- **WHEN** 用户输入 `iccid_start` 和 `iccid_end`,且计算结果为正整数
|
||||
- **THEN** 弹窗 MUST 显示 `共分配xxx张卡`
|
||||
- **AND** `xxx` MUST 等于 `iccid_end - iccid_start + 1`
|
||||
- **AND** 当任一端点变化时,提示 MUST 立即更新
|
||||
|
||||
#### Scenario: Hide count hint for incomplete or invalid ICCID ranges
|
||||
|
||||
- **GIVEN** 用户选择 `selection_type="range"`
|
||||
- **WHEN** 任一起止 ICCID 为空、无法按整数计算,或计算结果小于 `1`
|
||||
- **THEN** 弹窗 MUST NOT 显示误导性的分配数量提示
|
||||
@@ -0,0 +1,16 @@
|
||||
## 1. Asset Information
|
||||
|
||||
- [x] 1.1 将资产信息“卡信息”区域的 `gateway_extend` 标签从“运营商停机原因”改为 `运营商状态`
|
||||
- [x] 1.2 确认该字段仍直接展示 `gateway_extend` 原值,并保留空值占位行为
|
||||
|
||||
## 2. Range Allocation Hints
|
||||
|
||||
- [x] 2.1 在 IoT 卡“批量设置套餐系列绑定”弹窗的区间模式下,于起始/结束 ICCID 输入框下方新增 `共分配xxx张卡` 提示
|
||||
- [x] 2.2 在设备管理“批量设置设备套餐系列绑定”弹窗的区间模式下,于起始/结束设备号输入框下方新增 `共分配xxx台设备` 提示
|
||||
- [x] 2.3 让两个提示都随起止值变化实时更新,并在范围不完整、不可计算或结果小于 1 时隐藏
|
||||
|
||||
## 3. Verification
|
||||
|
||||
- [x] 3.1 验证卡资产详情“卡信息”区域展示标签为 `运营商状态`
|
||||
- [x] 3.2 验证 ICCID 区间提示按 `结束ICCID - 起始ICCID + 1` 计算且不出现精度丢失
|
||||
- [x] 3.3 验证设备号区间提示按 `结束设备号 - 起始设备号 + 1` 计算,并在无效范围时不显示误导性数量
|
||||
Reference in New Issue
Block a user