import type { OrderStatus, PaymentMethod } from './data';

// 订单状态配置
export const ORDER_STATUS_CONFIG: Record<OrderStatus, { label: string; color: string; status: any }> = {
  pending: { label: '待支付', color: 'orange', status: 'Warning' },
  paid: { label: '已支付', color: 'blue', status: 'Processing' },
  shipped: { label: '已发货', color: 'cyan', status: 'Processing' },
  completed: { label: '已完成', color: 'green', status: 'Success' },
  cancelled: { label: '已取消', color: 'red', status: 'Error' },
};

// 支付方式配置
export const PAYMENT_METHOD_CONFIG: Record<PaymentMethod, { label: string; color: string }> = {
  wechat: { label: '微信支付', color: 'green' },
  alipay: { label: '支付宝', color: 'blue' },
  bank: { label: '银行转账', color: 'purple' },
};

// 订单状态选项
export const ORDER_STATUS_OPTIONS = [
  { label: '待支付', value: 'pending' },
  { label: '已支付', value: 'paid' },
  { label: '已发货', value: 'shipped' },
  { label: '已完成', value: 'completed' },
  { label: '已取消', value: 'cancelled' },
];

// 支付方式选项
export const PAYMENT_METHOD_OPTIONS = [
  { label: '微信支付', value: 'wechat' },
  { label: '支付宝', value: 'alipay' },
  { label: '银行转账', value: 'bank' },
];

// 物流公司选项
export const SHIPPING_COMPANY_OPTIONS = [
  { label: '顺丰速运', value: '顺丰速运' },
  { label: '京东物流', value: '京东物流' },
  { label: '中通快递', value: '中通快递' },
  { label: '圆通速递', value: '圆通速递' },
  { label: '韵达快递', value: '韵达快递' },
  { label: '申通快递', value: '申通快递' },
];

// 取消原因选项
export const CANCEL_REASON_OPTIONS = [
  { label: '不想买了', value: '不想买了' },
  { label: '价格问题', value: '价格问题' },
  { label: '商品信息有误', value: '商品信息有误' },
  { label: '其他原因', value: '其他原因' },
];
