export enum EMERGENCY_PLAN_STATUS {
  UNAPPROVED = 0,
  APPROVAL_IN_PROGRESS,
  RETURNED,
  PUBLISHED,
}

export const EMERGENCY_PLAN_STATUS_MAP = {
  [EMERGENCY_PLAN_STATUS.UNAPPROVED]: '未审批',
  [EMERGENCY_PLAN_STATUS.APPROVAL_IN_PROGRESS]: '预案审批中',
  [EMERGENCY_PLAN_STATUS.RETURNED]: '预案已退回',
  [EMERGENCY_PLAN_STATUS.PUBLISHED]: '已公示',
};

export const EMERGENCY_PLAN_STATUS_OPTIONS = [
  {
    label: EMERGENCY_PLAN_STATUS_MAP[EMERGENCY_PLAN_STATUS.UNAPPROVED],
    value: EMERGENCY_PLAN_STATUS.UNAPPROVED,
  },
  {
    label: EMERGENCY_PLAN_STATUS_MAP[EMERGENCY_PLAN_STATUS.APPROVAL_IN_PROGRESS],
    value: EMERGENCY_PLAN_STATUS.APPROVAL_IN_PROGRESS,
  },
  {
    label: EMERGENCY_PLAN_STATUS_MAP[EMERGENCY_PLAN_STATUS.RETURNED],
    value: EMERGENCY_PLAN_STATUS.RETURNED,
  },
  {
    label: EMERGENCY_PLAN_STATUS_MAP[EMERGENCY_PLAN_STATUS.PUBLISHED],
    value: EMERGENCY_PLAN_STATUS.PUBLISHED,
  },
];

export enum APPROVAL_TYPE {
  COUNTER_SIGN = 0,
  ORDINARY_SIGN,
}

export const APPROVAL_TYPE_MAP = {
  [APPROVAL_TYPE.COUNTER_SIGN]: '会签',
  [APPROVAL_TYPE.ORDINARY_SIGN]: '或签',
};

export enum APPROVER_TYPE {
  FIX = 0,
  CUSTOM,
}

export const APPROVER_TYPE_MAP = {
  [APPROVER_TYPE.FIX]: '固定',
  [APPROVER_TYPE.CUSTOM]: '自选',
};

export enum APPROVAL_STATUS {
  PENDING = 1,
  APPROVED,
  REJECTED,
  OHTER,
}

export const APPROVAL_STATUS_MAP = {
  [APPROVAL_STATUS.PENDING]: '待审批',
  [APPROVAL_STATUS.APPROVED]: '已审批',
  [APPROVAL_STATUS.REJECTED]: '退回',
  [APPROVAL_STATUS.OHTER]: '他人已审批',
};

export const APPROVAL_STATUS_OPTIONS = [
  {
    label: APPROVAL_STATUS_MAP[APPROVAL_STATUS.PENDING],
    value: APPROVAL_STATUS.PENDING,
  },
  {
    label: APPROVAL_STATUS_MAP[APPROVAL_STATUS.APPROVED],
    value: APPROVAL_STATUS.APPROVED,
  },
  {
    label: APPROVAL_STATUS_MAP[APPROVAL_STATUS.REJECTED],
    value: APPROVAL_STATUS.REJECTED,
  },
  {
    label: APPROVAL_STATUS_MAP[APPROVAL_STATUS.OHTER],
    value: APPROVAL_STATUS.OHTER,
  },
];

export const PROFESSIONAL_TEST_SITE_DICE = [
  {
    label: '仓储',
    value: '仓储',
  },
  {
    label: '住宿',
    value: '住宿',
  },
  {
    label: '办公',
    value: '办公',
  },
  {
    label: '服务',
    value: '服务',
  },
  {
    label: '试验',
    value: '试验',
  },
  {
    label: '文体活动',
    value: '文体活动',
  },
  {
    label: '施工',
    value: '施工',
  },
  {
    label: '其他',
    value: '其他',
  },
];
