订单信息

This commit is contained in:
liu
2026-08-11 18:35:54 +08:00
parent cba0e7d1bb
commit 5a3995d6ba
6 changed files with 194 additions and 45 deletions
+22 -8
View File
@@ -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' },
};