Files
luo 85d158dfec
All checks were successful
构建并部署前端到测试环境 / build-and-deploy (push) Successful in 4m45s
feat: order-export,generation,status
2026-06-17 17:46:04 +08:00

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_statusasset_status_namegeneration 字段
  • 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_statusasset_status_namegeneration 字段
  • 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_status value is 1
  • THEN display name MUST be "在库"
  • WHEN asset_status value is 2
  • THEN display name MUST be "已销售"
  • WHEN asset_status value is 3
  • THEN display name MUST be "已换货"
  • WHEN asset_status value is 4
  • THEN display name MUST be "已停用"