update order items

This commit is contained in:
2026-03-20 09:09:41 +08:00
parent 419778a53b
commit c56698f843
4 changed files with 167 additions and 106 deletions
+44
View File
@@ -19,6 +19,50 @@ export interface PaginationParams {
per_page?: number
}
/** 父订单摘要(订单项详情接口返回) */
export interface ParentOrderSummary {
id: number
platform_order_id: string
order_status_id: number
total_amount: string
total_paid: string
created_date: string | null
paid_date: string | null
}
/** 订单项详情(含父订单摘要) */
export interface OrderItemDetail {
id: number
company_id: number
platform_id: number
store_id: number
order_id: number
platform_order_id: string
sub_order_id: string | null
sub_order_type_id: number
product_id: number
platform_product_id: string
product_sku: string | null
product_barcode: string | null
unit_price: string
quantity: number
discount: string
total: string
created_date: string | null
ext: Record<string, unknown> | null
created_at: string
updated_at: string
parent_order: ParentOrderSummary | null
}
/** 订单项筛选参数 */
export interface OrderItemFilters {
platform_order_id: string
platform_product_id: string
product_sku: string
created_date_range: [string, string] | null
}
/** 业务异常 */
export class ApiError extends Error {
code: number