/** 门店订单明细(商品快照) */ export interface IStoreOrderItem { id?: number; order_id?: number; store_id?: number; product_id?: number; product_name?: string; product_spec?: string; price?: string; image?: string; quantity?: number; weight?: string; amount?: string; remark?: string; } /** 门店订单 */ export default interface IStoreOrder { id?: number; order_no?: string; store_id?: number; purchase_id?: number; statement_id?: number; store?: { id: number; name: string; address: string; contact: string; phone: string; }; order_date?: string; total_quantity?: number; total_weight?: string; total_amount?: string; product_amount: string; added_amount: string; box_num: number; tray_num: number; /** 0待接单 1已接单 2采购中 3配送中 4已完成 9已取消 */ status?: number; remark?: string; items?: IStoreOrderItem[]; created_at?: string; } export const STORE_ORDER_STATUS_MAP: Record = { 0: { text: '待接单', color: 'default' }, 1: { text: '已接单', color: 'processing' }, 2: { text: '采购中', color: 'warning' }, 3: { text: '配送中', color: 'success' }, 4: { 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; }