import { Tag, Badge } from 'antd';
import React from 'react';

export const appealType = {
  1: '已申诉',
  0: '未申诉',
};
export const column = [
  {
    title: '订单ID',
    dataIndex: 'orderId',
    width: 200,
    render: (orderId, r) => (
      <div>
        {r.auditTimeOut ? <Tag color="red">{orderId}</Tag> : orderId}
        {<Badge count={r.reminderFlag ? '催' : ''} size="small" />}
        {<Badge count={+r.autoCancelTimeType === 1 ? '大额支付' : ''} size="default" />}
      </div>
    ),
  },
  {
    title: '收货人姓名',
    dataIndex: 'receiverName',
    width: 200,
  },
  {
    title: '收货人手机号',
    dataIndex: 'receiverPhone',
    width: 200,
  },
  {
    title: '订单创建时间',
    dataIndex: 'orderTime',
    key: 'orderTime',
    valueType: 'dateRange',
    width: 200,
  },

  {
    title: '订单取消提交时间',
    dataIndex: 'applyTime',
    key: 'applyTime',
    valueType: 'dateRange',
    width: 200,
  },

  {
    title: '支付完成时间',
    dataIndex: 'payFinishTime',
    key: 'payFinishTime',
    // valueType: 'dateRange',
    hideInSearch: true,
    width: 200,
  },

  {
    title: '收货人地址',
    dataIndex: 'receiverAddress',
    width: 200,
    hideInSearch: true,
  },

  {
    title: '提交订单取消时状态',
    dataIndex: 'applyAtOrderStatus',
    hideInSearch: true,
    width: 200,
    valueEnum: {
      1: '待发货',
      2: '待发货（发货中）',
      3: '待收货（已发货）',
    },
  },

  {
    title: '是否催办',
    dataIndex: 'reminderFlag',
    hideInSearch: true,
    width: 120,
    valueEnum: {
      true: '是',
      false: '否',
    },
  },
  {
    title: '审核状态',
    dataIndex: 'auditStatus',
    hideInSearch: true,
    width: 120,
    valueEnum: {
      1: '待审核',
      2: '已审核',
    },
  },
  {
    title: '审核结果',
    dataIndex: 'auditResult',
    hideInSearch: true,
    width: 200,
    valueEnum: {
      0: '待处理',
      1: '同意',
      2: '不同意',
      3: '超时未处理，系统自动审核同意',
    },
  },
  {
    title: '审核拒绝原因',
    dataIndex: 'refuseReason',
    hideInSearch: true,
    width: 200,
  },
  {
    title: '审核超时时间',
    dataIndex: 'auditOverTime',
    hideInSearch: true,
    width: 200,
  },
];
