// import { Input } from 'antd'; import AppealModal from './AppealModal'; import { qualify_applyAppeal, qualify_trainQualifyApplyCancel, qualify_appealApplyOnDutyCheck } from '../../../../services/bkt/qualify'; import $nModal from '../../../../utils/modal/nModal'; import $modal from '../../../../utils/modal'; const warnColor = '#F59A23'; const okColor = '#4B7902'; const errColor = '#D9001B'; export default function () { return [ { title: '姓名', dataIndex: 'fullName', key: 'fullName', width: 100, fixed: 'left', render: value => value || '-', }, { title: '手机号码', dataIndex: 'mobile', key: 'mobile', }, { title: '身份证号', dataIndex: 'identityNumber', key: 'identityNumber', }, { title: '部门', dataIndex: 'departName', key: 'departName', render: value => value || '-' }, { title: '报名时间', dataIndex: 'applyDate', key: 'applyDate', render: value => value || '-' }, { title: '申报状态', dataIndex: 'applyStatus', key: 'applyStatus', render: (value) => { let text = '-'; let color = ''; switch (true) { case value == '0': text = '申报中'; color = warnColor; break; case value == '1': text = '申报通过'; color = okColor; break; case value == '2': text = '申报不通过'; color = errColor; break; case value == '3': text = '已撤销'; color = errColor; } return ( {text} ); } }, { title: '背景筛查状态', dataIndex: 'backgroundStatus', key: 'backgroundStatus', render: (value) => { let text = '-'; let color = ''; switch (true) { case value == '0': text = '审核中'; color = warnColor; break; case value == '1': text = '正常'; color = okColor; break; case value == '2': color = errColor; text = '关注'; break; case value == '3': color = okColor; text = '申诉通过'; break; case value == '4': color = errColor; text = '申诉不通过'; break; case value == '5': color = warnColor; text = '申诉中'; } return ( {text} ); } }, { title: '缴费状态', dataIndex: 'orderStatus', key: 'orderStatus', render: (value) => { let text = '未缴费'; let color = ''; switch (true) { case value == '0': color = errColor; text = '未缴费'; break; case value == '1': color = okColor; text = '已缴费'; } return ( {text} ); } }, { title: '材料核对状态', dataIndex: 'materialApproveStatus', key: 'materialApproveStatus', render: (value) => { let text = '-'; let color = ''; switch (true) { case value == '0': text = '未核对'; color = warnColor; break; case value == '1': text = '核对通过'; color = okColor; break; case value == '2': text = '核对不通过'; color = errColor; } return ( {text} ); } }, { title: '理论学习进度', dataIndex: 'progress', key: 'progress', render: value => value ? value + '%' : '-' }, { title: '考试安排', dataIndex: 'examStatus', key: 'examStatus', render: (value) => { let text = '未安排考试'; let color = ''; switch (true) { case value == '0': color = warnColor; text = '未安排考试'; break; case value == '1': color = okColor; text = '已安排考试'; } return ( {text} ); } }, { title: '考试时间', dataIndex: 'examDate', key: 'examDate', render: value => value || '-' }, { title: '考试结果', // dataIndex: 'testStateName', dataIndex: 'testState', key: 'testState', render: (value) => { let text = '未考试'; let color = ''; switch (true) { case value == '0': color = warnColor; text = '不合格'; break; case value == '1': color = okColor; text = '合格'; } return ( {text} ); } }, { title: '理论成绩', dataIndex: 'writtenScore', key: 'writtenScore', render: value => value || '-' }, { title: '实操成绩', dataIndex: 'operateScore', key: 'operateScore', render: value => value || '-' }, { title: '保安员证', dataIndex: 'cerNo', key: 'cerNo', render: value => value || '-' }, { title: '课程名称', dataIndex: 'trackName', key: 'trackName', render: value => value || '-' }, { title: '确认成绩时间', dataIndex: 'confirmDate', key: 'confirmDate', render: value => value || '-' }, { title: '操作', dataIndex: 'operation', key: 'operation', width: 150, fixed: 'right', render: (text, record) => { const { personApplyId, applyStatus, backgroundStatus, fullName, examStatus, applyDate } = record; return (