feat: order-export,generation,status
All checks were successful
构建并部署前端到测试环境 / build-and-deploy (push) Successful in 4m45s

This commit is contained in:
luo
2026-06-17 17:46:04 +08:00
parent 2a8f4e40d6
commit 85d158dfec
15 changed files with 300 additions and 8 deletions

View File

@@ -0,0 +1,28 @@
## 1. Proposal Review
- [ ] 1.1 确认 `asset_status` 字段含义1:在库, 2:已销售, 3:已换货, 4:已停用
- [ ] 1.2 确认 `generation` 字段含义资产世代编号初始值1每次换货转新后+1
## 2. Type Updates
- [ ] 2.1 在 `AssetInfo` 接口中添加 `asset_status?: number`
- [ ] 2.2 在 `AssetInfo` 接口中添加 `asset_status_name?: string`
- [ ] 2.3 在 `AssetInfo` 接口中添加 `generation?: number`
## 3. Formatter Functions
- [ ] 3.1 在 `useAssetFormatters` 中添加 `getAssetStatusName` 函数(如果不存在)
- [ ] 3.2 在 `useAssetFormatters` 中添加 `getAssetStatusType` 函数(如果不存在)
## 4. BasicInfoCard Component
- [ ] 4.1 在卡信息区域添加「业务状态」展示行
- [ ] 4.2 在卡信息区域添加「资产世代」展示行
- [ ] 4.3 在设备信息区域添加「业务状态」展示行
- [ ] 4.4 在设备信息区域添加「资产世代」展示行
## 5. Verification
- [ ] 5.1 验证 IoT 卡详情页正确显示业务状态和世代编号
- [ ] 5.2 验证设备详情页正确显示业务状态和世代编号
- [ ] 5.3 验证格式化函数正确处理各状态值