first version
This commit is contained in:
@@ -0,0 +1,49 @@
|
||||
/** 门店订单明细(商品快照) */
|
||||
export interface IStoreOrderItem {
|
||||
id?: number;
|
||||
order_id?: number;
|
||||
store_id?: number;
|
||||
product_id?: number;
|
||||
product_name?: string;
|
||||
product_spec?: string;
|
||||
price?: string;
|
||||
quantity?: string;
|
||||
weight?: string;
|
||||
amount?: string;
|
||||
remark?: string;
|
||||
}
|
||||
|
||||
/** 门店订单 */
|
||||
export default interface IStoreOrder {
|
||||
id?: number;
|
||||
order_no?: string;
|
||||
store_id?: number;
|
||||
store?: { id: number; name: string };
|
||||
order_date?: string;
|
||||
total_quantity?: string;
|
||||
total_weight?: string;
|
||||
total_amount?: string;
|
||||
/** 0待汇总 1已汇总 2配送中 3已完成 9已取消 */
|
||||
status?: number;
|
||||
remark?: string;
|
||||
items?: IStoreOrderItem[];
|
||||
created_at?: string;
|
||||
}
|
||||
|
||||
export const STORE_ORDER_STATUS_MAP: Record<number, { text: string; color: string }> = {
|
||||
0: { text: '待汇总', color: 'default' },
|
||||
1: { text: '已汇总', color: 'processing' },
|
||||
2: { text: '配送中', color: 'warning' },
|
||||
3: { text: '已完成', color: 'success' },
|
||||
9: { text: '已取消', color: 'error' },
|
||||
};
|
||||
|
||||
/** 待汇总预览行 */
|
||||
export interface IOrderSummaryRow {
|
||||
product_id: number;
|
||||
product_name: string;
|
||||
product_spec: string;
|
||||
unit: string;
|
||||
total_quantity: string;
|
||||
store_count: number;
|
||||
}
|
||||
Reference in New Issue
Block a user