/**
 * 任务模板常量
 */
import Previous from '../images/previous@1X.png';
import Midterm from '../images/midterm@1X.png';
import Later from '../images/later@1X.png';
import { INSPECT_TYPE } from './task-execution';

export const TASK_TEMPLATE_LIST = [
  {
    id: INSPECT_TYPE.Previous,
    name: '台汛前期安全检查模板',
    img: Previous
  },
  {
    id: INSPECT_TYPE.Midterm,
    name: '台汛中期安全检查任务模板',
    img: Midterm
  },
  {
    id: INSPECT_TYPE.Later,
    name: '台汛后期安全检查模板',
    img: Later
  },
];

export const TASK_TEMPLATE_HEADER = [
  {
    title: '检查目的',
    content: '贯彻公司台汛期间安全工作要求，落实公司对台汛期间的安全工作要求，保障员工和企业一方平安。',
  },
  {
    title: '要求',
    content: '对照公司领导及工作会议、通知或相关文件精神要求。',
  },
];
export const TASK_TEMPLATE_MAIN_COLUMNS = [
  { prop: 'index', label: '序号', width: 110 },
  { prop: 'inspectItem', label: '检查项目', width: 200 },
  { prop: 'inspectStandard', label: '检查标准', width: 500 },
  { prop: 'inspectMethod', label: '检查方法', width: 200 },
];
export const MERGE_FIELDS = ['index', 'inspectItem', 'inspectMethod'];

export enum COMPLIANCE {
  ACCORDANCE = 1,
  NOT_ACCORDANCE,
  NOT_INVOLVED,
}
