1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
| export type OrderStatus = 'pending' | 'processing' | 'completed' | 'cancelled';
|
| export interface OrderRecord {
| key: string;
| id: string;
| customer: string;
| contact: string;
| amount: number;
| channel: string;
| status: OrderStatus;
| createdAt: string;
| }
|
| export const ORDER_STATUS_META: Record<OrderStatus, { label: string; color: string }> = {
| pending: { label: '待付款', color: 'orange' },
| processing: { label: '处理中', color: 'processing' },
| completed: { label: '已完成', color: 'success' },
| cancelled: { label: '已取消', color: 'default' },
| };
|
|