订单信息
This commit is contained in:
@@ -7,7 +7,8 @@ export interface IStoreOrderItem {
|
||||
product_name?: string;
|
||||
product_spec?: string;
|
||||
price?: string;
|
||||
quantity?: string;
|
||||
image?: string;
|
||||
quantity?: number;
|
||||
weight?: string;
|
||||
amount?: string;
|
||||
remark?: string;
|
||||
@@ -18,12 +19,24 @@ export default interface IStoreOrder {
|
||||
id?: number;
|
||||
order_no?: string;
|
||||
store_id?: number;
|
||||
store?: { id: number; name: string };
|
||||
purchase_id?: number;
|
||||
statement_id?: number;
|
||||
store?: {
|
||||
id: number;
|
||||
name: string;
|
||||
address: string;
|
||||
contact: string;
|
||||
phone: string;
|
||||
};
|
||||
order_date?: string;
|
||||
total_quantity?: string;
|
||||
total_quantity?: number;
|
||||
total_weight?: string;
|
||||
total_amount?: string;
|
||||
/** 0待汇总 1已汇总 2配送中 3已完成 9已取消 */
|
||||
product_amount: string;
|
||||
added_amount: string;
|
||||
box_num: number;
|
||||
tray_num: number;
|
||||
/** 0待接单 1已接单 2采购中 3配送中 4已完成 9已取消 */
|
||||
status?: number;
|
||||
remark?: string;
|
||||
items?: IStoreOrderItem[];
|
||||
@@ -31,10 +44,11 @@ export default interface IStoreOrder {
|
||||
}
|
||||
|
||||
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' },
|
||||
0: { text: '待接单', color: 'default' },
|
||||
1: { text: '已接单', color: 'processing' },
|
||||
2: { text: '采购中', color: 'warning' },
|
||||
3: { text: '配送中', color: 'success' },
|
||||
4: { text: '已完成', color: 'success' },
|
||||
9: { text: '已取消', color: 'error' },
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user