first version

This commit is contained in:
liu
2026-07-23 20:41:25 +08:00
parent 00a0938a1b
commit 10cff754a4
211 changed files with 11577 additions and 842 deletions
+49
View File
@@ -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;
}