This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
## ADDED Requirements
|
||||
|
||||
### Requirement: Additional Export Task Scenes
|
||||
|
||||
The admin frontend SHALL support three additional export task scenes: `expiring_asset`(临期资产)、`operations_activation`(设备激活情况报表)、`operations_renewal`(套餐续费情况报表)。每个场景 SHALL 有独立的导出任务列表子页,页面固定查询该场景任务(`GET /api/admin/export-tasks` with `scene=<scene>`),并提供 `export_task:<scene>:detail` / `export_task:<scene>:download` 权限配置。
|
||||
|
||||
#### Scenario: Open expiring asset export task page
|
||||
|
||||
- **GIVEN** 用户打开「导出临期资产」页面
|
||||
- **WHEN** 页面查询导出任务列表
|
||||
- **THEN** 系统 MUST call `GET /api/admin/export-tasks` with `scene=expiring_asset`
|
||||
|
||||
#### Scenario: Open operations report export task pages
|
||||
|
||||
- **GIVEN** 用户打开「导出设备激活情况报表」或「导出套餐续费情况报表」页面
|
||||
- **WHEN** 页面查询导出任务列表
|
||||
- **THEN** 系统 MUST call `GET /api/admin/export-tasks` with `scene=operations_activation` 或 `scene=operations_renewal`
|
||||
|
||||
#### Scenario: Gate new scene actions
|
||||
|
||||
- **WHEN** 任一新增场景页面渲染详情与下载操作
|
||||
- **THEN** 系统 MUST 使用对应场景的 `export_task:<scene>:detail` 与 `export_task:<scene>:download` 权限码
|
||||
|
||||
### Requirement: Export Scene Display Names
|
||||
|
||||
导出任务创建弹窗与导出任务列表 SHALL 按最新业务口径展示场景名称:`commission_record` 显示为「佣金明细」(原「佣金记录」),`package_traffic_alert` 显示为「套餐真流量达量预警」(原「套餐真流量预警」);新增场景依次显示为「临期资产」「设备激活情况报表」「套餐续费情况报表」。
|
||||
|
||||
#### Scenario: Show renamed scene names
|
||||
|
||||
- **WHEN** 导出弹窗以 `scene=commission_record` 打开
|
||||
- **THEN** 弹窗 MUST 显示「佣金明细」
|
||||
- **AND** 以 `scene=package_traffic_alert` 打开时 MUST 显示「套餐真流量达量预警」
|
||||
|
||||
#### Scenario: Show new scene names
|
||||
|
||||
- **WHEN** 导出弹窗以 `scene=operations_activation` 打开
|
||||
- **THEN** 弹窗 MUST 显示「设备激活情况报表」
|
||||
Reference in New Issue
Block a user