// 状态选项
const statusOptions = [
  { label: '未完成', value: 1 },
  { label: '成功', value: 2 },
  { label: '失败', value: 3 },
]

// 提现订单列表页面表格列配置
export const tableColumns = [
  // 序号
  { label: '序号', type: 'index', width: 60, align: 'center' as const },
  // 用户ID
//   { label: '用户ID', prop: 'user_id' },
  // 订单号
  { label: '订单号', prop: 'order_n', width: 300, align: 'center' as const, copy: true },
  // 通知号
  { label: '通知号', prop: 'notify_n', width: 200, align: 'center' as const },
  // 来源地址
  { label: '来源地址', prop: 'from', width: 400, align: 'center' as const, copy: true },
  // 目标地址
  { label: '目标地址', prop: 'to', width: 400, align: 'center' as const, copy: true },
  // 金额
  { label: '金额', prop: 'amount', width: 160, align: 'center' as const },
  // 地址类型
  { label: '地址类型', prop: 'addressType', width: 100, align: 'center' as const },
  // 余额
  { label: '余额', prop: 'balance', width: 160, align: 'center' as const },
  // 状态
  { label: '状态', prop: 'status', width: 100, align: 'center' as const, options: statusOptions },
  // 创建时间
  { label: '创建时间', prop: 'create_time', width: 200, align: 'center' as const },
  // 成功时间
  { label: '成功时间', prop: 'success_time', width: 200, align: 'center' as const },
  // 交易ID
  { label: '交易ID', prop: 'tx_id', width: 400, align: 'center' as const },
]

// 搜索配置
export const searchOptions = [
  {
    prop: 'status',
    label: '状态',
    type: 'select' as const,
    placeholder: '请选择状态',
    width: '160px',
    options: statusOptions,
  },
  {
    prop: 'start_time',
    label: '开始时间',
    type: 'date' as const,
    dateType: 'datetime' as const,
    placeholder: '开始时间',
    valueFormat: 'YYYY-MM-DD HH:mm:ss',
    format: 'YYYY-MM-DD',
    clearable: false,
    width: '220px',
    defaultTime: 'start' as const,
  },
  {
    prop: 'end_time',
    label: '结束时间',
    type: 'date' as const,
    dateType: 'datetime' as const,
    clearable: false,
    placeholder: '结束时间',
    valueFormat: 'YYYY-MM-DD HH:mm:ss',
    format: 'YYYY-MM-DD',
    width: '220px',
    defaultTime: 'end' as const,
  },
]
