fix: 换货
All checks were successful
构建并部署前端到测试环境 / build-and-deploy (push) Successful in 5m12s

This commit is contained in:
sexygoat
2026-06-03 17:53:19 +08:00
parent 3e6b3981f4
commit c5dae2993b
23 changed files with 797 additions and 10804 deletions

View File

@@ -10,7 +10,8 @@ export interface ExchangeQueryParams {
page?: number
page_size?: number
status?: number // 换货状态
identifier?: string // 资产标识符(模糊匹配
flow_type?: string // 流程类型shipping/direct
identifier?: string // 资产标识符(模糊匹配,同时匹配旧资产、新资产)
created_at_start?: string // 创建时间起始
created_at_end?: string // 创建时间结束
}
@@ -20,6 +21,9 @@ export interface CreateExchangeRequest {
exchange_reason: string // 换货原因
old_asset_type: string // 旧资产类型 (iot_card 或 device)
old_identifier: string // 旧资产标识符(ICCID/虚拟号/IMEI/SN)
flow_type?: string // 流程类型shipping/direct默认 shipping
new_identifier?: string // 新资产标识符direct 时必填)
migrate_data?: boolean // 是否迁移数据(默认 false
remark?: string // 备注(可选)
}
@@ -34,6 +38,10 @@ export interface ExchangeResponse {
new_asset_identifier: string
status: number // 换货状态1:待填写信息, 2:待发货, 3:已发货待确认, 4:已完成, 5:已取消)
status_text: string
flow_type: string // 流程类型shipping/direct
flow_type_name: string // 流程类型名称
shipped_at?: string | null // 发货时间(仅 shipping 发货后有值)
completed_at?: string | null // 换货完成时间
recipient_name?: string
recipient_phone?: string
recipient_address?: string