// 充值订单搜索项：按接口参数保留订单号、用户名称、状态、结束时间、开始时间。
export const search = [
  {
    prop: 'trade_id',
    label: '订单号',
    type: 'input' as const,
    placeholder: '请输入流水号',
    width: '210px',
  },
  {
    prop: 'user_name',
    label: '用户名称',
    type: 'input' as const,
    placeholder: '请输入用户名',
    width: '190px',
  },
  {
    prop: 'status',
    label: '状态',
    type: 'select' as const,
    placeholder: '请选择状态',
    width: '140px',
    options: [
      { label: '未审核', value: '1' },
      { label: '未付款', value: '2' },
      { label: '已付款', value: '3' },
      { label: '驳回', value: '4' },
    ],
  },
  {
    prop: 'start_time',
    label: '开始时间',
    type: 'date' as const,
    dateType: 'date' as const,
    valueFormat: 'YYYY-MM-DD',
    placeholder: '请选择开始时间',
    width: '260px',
  },
  {
    prop: 'end_time',
    label: '结束时间',
    type: 'date' as const,
    dateType: 'date' as const,
    valueFormat: 'YYYY-MM-DD',
    placeholder: '请选择结束时间',
    width: '260px',
  },
]

// 充值订单表格列：对应接口数据映射后的列表字段。
export const tableColumns = [
  { prop: 'orderNo', label: '订单号', align: 'center' as const },
  { prop: 'currency', label: '充值币种', align: 'center' as const },
  { prop: 'amount', label: '金额', align: 'center' as const, isNumber: true },
  { prop: 'statusText', label: '状态', align: 'center' as const },
  { prop: 'rechangeTime', label: '充值时间', align: 'center' as const },
  { prop: 'rechangeAccount', label: '充值账号', align: 'center' as const },
  // { label: '操作', width: '240px', align: 'center' as const, slotName: 'operation' },
]

