fix: 套餐

This commit is contained in:
sexygoat
2026-04-29 11:29:53 +08:00
parent 686bddad79
commit 1dc4701540
44 changed files with 3912 additions and 150 deletions

View File

@@ -0,0 +1,34 @@
# Tasks: Update Order Upload And Device Switch Mode
## 1. Order Creation Upload State
- [x] 1.1 为订单创建弹窗增加独立的支付凭证上传中状态。
- [x] 1.2 在支付凭证上传过程中将提交按钮文案切换为 `图片上传中...`
- [x] 1.3 在支付凭证上传完成前阻止订单提交。
- [x] 1.4 在上传成功、上传失败、删除凭证和关闭弹窗时正确重置上传状态。
## 2. Device Switch Mode API Contract
- [x] 2.1 补充或更新切卡模式请求类型,显式包含 `iot_card_id``switch_mode`
- [x] 2.2 更新 `DeviceService.setSwitchMode()` 的调用签名和请求体。
- [x] 2.3 保持路径参数 `{identifier}` 兼容虚拟号、IMEI 或 SN。
## 3. Device Switch Mode UI
- [x] 3.1 改造 `SwitchModeDialog.vue`,同时采集目标绑定卡和切卡模式。
- [x] 3.2 展示设备当前可选的绑定卡作为切卡目标。
- [x] 3.3 当设备未配置 IMEI 或没有绑定卡时,阻止提交并给出明确提示。
- [x] 3.4 更新 `device-list``asset-information` 两个入口的弹窗入参和确认逻辑。
- [x] 3.5 设置切卡模式成功后刷新相关设备数据。
## 4. Device Realtime Information Display
- [x] 4.1 删除设备实时信息卡片中的 `IP 地址` 字段展示。
- [x] 4.2 保留 `WAN IP``LAN IP` 等其他实时网络信息字段不变。
## 5. Verification
- [ ] 5.1 验证线下支付场景下支付凭证上传成功、失败和删除时的按钮反馈。
- [ ] 5.2 验证设备列表页和资产信息页两处切卡模式提交流程。
- [ ] 5.3 验证切卡模式接口请求体符合 `{ iot_card_id, switch_mode }`
- [x] 5.4 运行 `openspec.cmd validate update-order-upload-and-device-switch-mode --strict`