
import { taskPerJointlyCardBatchNotice } from '../../../../services/apiSmartCard';
// import $modal from '../../../../utils/modal';
// const warnColor = '#F59A23';
// const okColor = '#4B7902';
// const errColor = '#D9001B';
export default function () {

  return [
    {
      title: '序号',
      dataIndex: 'number',
      key: 'number',
      // width: 80,
      // fixed: 'left'
    },
    {
      title: '姓名',
      dataIndex: 'name',
      key: 'name',
      render: value => value || '-',
    },
    {
      title: '身份证号',
      dataIndex: 'idCardNo',
      key: 'idCardNo',
    },
    {
      title: '性别',
      dataIndex: 'sex',
      key: 'sex',
    },
    {
      title: '手机号',
      dataIndex: 'mobilePhone',
      key: 'mobilePhone',
    },
    {
      title: '部门',
      dataIndex: 'departName',
      key: 'departName',
    },
    {
      title: '人员类别',
      dataIndex: 'perType',
      key: 'perType',
    },
    {
      title: '认证状态',
      dataIndex: 'authStatus',
      key: 'authStatus',
    },
    {
      title: '资格证号',
      dataIndex: 'cerNo',
      key: 'cerNo',
    },
    {
      title: '发证日期',
      dataIndex: 'licenceDate',
      key: 'licenceDate',
    },
    {
      title: '是否采集证件照',
      dataIndex: 'isExistsCerPhoto',
      key: 'isExistsCerPhoto',
    },
    {
      title: '操作',
      dataIndex: 'operation',
      key: 'operation',
      width: 130,
      fixed: 'right',
      render: (text, record) => {
        const { perId } = record;
        return(
          <a onClick={() => {
            taskPerJointlyCardBatchNotice({
              perIds: perId, isCheckAll: '0'
            }).then(res => {
              // $modal(res.msg);
            });
          }}>提醒开通</a>
        );
      }
    }
  ];
}