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

This commit is contained in:
sexygoat
2026-04-30 10:39:51 +08:00
parent 1a4eb00440
commit 044c07fae6
10 changed files with 437 additions and 158 deletions

View File

@@ -19,11 +19,22 @@ export type BuyerType = 'personal' | 'agent'
// 订单支付方式
export type OrderPaymentMethod = 'wallet' | 'wechat' | 'alipay' | 'offline'
// 订单佣金状态
// 订单操作者类型
export type OrderOperatorType = 'platform' | 'agent' | 'enterprise' | 'personal_customer'
// 订单佣金流程状态
export enum OrderCommissionStatus {
NOT_APPLICABLE = 0, // 不适用
PENDING = 1, // 待结算
SETTLED = 2 // 已结算
PENDING = 1, // 待计算
COMPLETED = 2, // 已完成
MANUAL_REVIEW = 3 // 待人工处理
}
// 订单佣金业务结果
export enum OrderCommissionResult {
UNKNOWN = 0, // 未知
HAS_COMMISSION = 1, // 有佣金
NO_COMMISSION = 2, // 无佣金
LINK_EXCEPTION = 3 // 链路异常
}
// 订单明细
@@ -52,8 +63,10 @@ export interface Order {
total_amount: number // 订单总金额(分)
actual_paid_amount?: number // 实付金额(分)
paid_at: string | null
commission_status: OrderCommissionStatus
commission_status_name?: string // 佣金状态名称(中文)
commission_status: OrderCommissionStatus // 佣金流程状态
commission_status_name?: string // 佣金流程状态名称(中文)
commission_result?: OrderCommissionResult // 佣金业务结果
commission_result_name?: string // 佣金业务结果名称(中文)
commission_config_version: number
device_id: number | null
iot_card_id: number | null
@@ -61,7 +74,14 @@ export interface Order {
asset_type?: string // 资产类型single_card 或 device
purchase_role?: string // 订单渠道
purchase_remark?: string // 购买备注
operator_name?: string // 操作者
is_purchased_by_parent?: boolean // 是否由上级代购
is_expired?: boolean // 是否已过期
expires_at?: string | null // 订单超时时间
operator_id?: number | null // 真实操作者ID
operator_type?: OrderOperatorType // 真实操作者类型
operator_name?: string // 真实操作者名称
seller_shop_id?: number | null // 销售店铺ID
seller_shop_name?: string // 销售店铺名称
items: OrderItem[] | null
payment_voucher_key?: string // 支付凭证(线下支付时才有值)
created_at: string