/**
 * 发布状态
 */
export enum PUBLISH_ENUM {
  PENDING = 0,
  PUBLISHED = 1,
  ENDED = 2,
}

export const PUBLISH_STATUS_MAP = {
  [PUBLISH_ENUM.PENDING]: {
    label: "待发布",
    color: "#FF5858",
  },
  [PUBLISH_ENUM.PUBLISHED]: {
    label: "已发布",
    color: "#242424",
  },
  [PUBLISH_ENUM.ENDED]: {
    label: "已结束",
    color: "#6BC6FF",
  },
};

/**
 * 考核单状态
 */
export enum ASSESSMENT_ENUM {
  PENDING = 0,
  RETURN = 1,
  FAIL = 2,
}

export const ASSESSMENT_STATUS_MAP = {
  [ASSESSMENT_ENUM.PENDING]: {
    label: "待填报",
    color: "#4284ff",
  },
  [ASSESSMENT_ENUM.RETURN]: {
    label: "已退回",
    color: "#E6A23C",
  },
  [ASSESSMENT_ENUM.FAIL]: {
    label: "未通过",
    color: "#FF5858",
  },
};

/**
 * 初始化指标
 */
export const DEFAULT_INDEX_ITEM = {
  level: "",
  name: "",
  type: "",
  num: null,
};

/**
 * 初始化加分项
 */
export const DEFAULT_BONUS_ITEM = {
  name: "",
  num: null,
};
