// 搜索区域配置：按充值审核接口的实际查询参数保留订单号、用户名、开始时间、结束时间。
export const rechangeCheckSearch = [
  {
    prop: 'orderNo',
    label: '订单号',
    type: 'input' as const,
    placeholder: '请输入流水号',
    width: '220px',
  },
  {
    prop: 'userName',
    label: '用户名称',
    type: 'input' as const,
    placeholder: '请输入用户名',
    width: '200px',
  },
  {
    prop: 'startTime',
    label: '开始时间',
    type: 'date' as const,
    dateType: 'datetime' as const,
    valueFormat: 'YYYY-MM-DD HH:mm:ss',
    placeholder: '请选择开始时间',
    clearable: false,
    width: '260px',
  },
  {
    prop: 'endTime',
    label: '结束时间',
    type: 'date' as const,
    dateType: 'datetime' as const,
    valueFormat: 'YYYY-MM-DD HH:mm:ss',
    placeholder: '请选择结束时间',
    clearable: false,
    width: '260px',
  },
]

// 表格列配置：返回数据与 `rechargeOrder` 一致，因此按同一份结构展示。
export const rechangeCheckTableColumns = [
    { prop: 'orderNo', label: '订单号', align: 'center' as const, width: 220 },
    { prop: 'userName', label: '用户名', align: 'center' as const },
    { prop: 'currency', label: '充值币种', align: 'center' as const, width: 120 },
    { prop: 'amount', label: '充值金额', align: 'center' as const, width: 120, isNumber: true },
    { prop: 'realCurrency', label: '实际币种', align: 'center' as const, width: 120 },
    { prop: 'realAmount', label: '实际金额', align: 'center' as const, width: 120, isNumber: true },
    { prop: 'rate', label: '汇率', align: 'center' as const, width: 100 },
    { prop: 'statusText', label: '状态', align: 'center' as const, width: 100 },
    { prop: 'rechangeTime', label: '充值时间', align: 'center' as const },
]
