All checks were successful
构建并部署前端到测试环境 / build-and-deploy (push) Successful in 4m45s
1.4 KiB
1.4 KiB
ADDED Requirements
Requirement: Asset Status and Generation Display
The admin frontend SHALL display asset_status, asset_status_name, and generation fields in the asset information detail page for both IoT cards and devices.
Scenario: Display IoT card asset status and generation
- GIVEN 用户打开 IoT 卡资产信息详情页
- WHEN 后端返回
asset_status、asset_status_name和generation字段 - THEN 页面 MUST display the asset status with appropriate tag type
- AND 页面 MUST display the generation number
Scenario: Display device asset status and generation
- GIVEN 用户打开设备资产信息详情页
- WHEN 后端返回
asset_status、asset_status_name和generation字段 - THEN 页面 MUST display the asset status with appropriate tag type
- AND 页面 MUST display the generation number
Requirement: Asset Status Formatting
The admin frontend SHALL format asset status values with appropriate labels and tag types.
Scenario: Map asset status to display name
- GIVEN
asset_statusvalue is 1 - THEN display name MUST be "在库"
- WHEN
asset_statusvalue is 2 - THEN display name MUST be "已销售"
- WHEN
asset_statusvalue is 3 - THEN display name MUST be "已换货"
- WHEN
asset_statusvalue is 4 - THEN display name MUST be "已停用"