export const ACT_TABLE_SEARCH_OPTIONS: SelectOption[] = [
  {
    label: '车牌号',
    value: 'carNumber',
    disabled: false,
  },
  {
    label: '车主',
    value: 'violateName',
    disabled: false,
  },
  {
    label: '所属部门',
    value: 'deptName',
    disabled: false,
  },
];

export enum ACT_VIOLATION_TYPE {
  SPEEDING = 1,
  WRONG_WAY_DRIVING = 2,
  ILLEGAL_PARKING = 3,
}

export const ACT_VIOLATION_TYPE_LABEL = {
  [ACT_VIOLATION_TYPE.SPEEDING]: '超速',
  [ACT_VIOLATION_TYPE.WRONG_WAY_DRIVING]: '逆行',
  [ACT_VIOLATION_TYPE.ILLEGAL_PARKING]: '违规停车',
};

export const ACT_VIOLATION_TYPE_OPTIONS: SelectOption[] = [
  {
    label: ACT_VIOLATION_TYPE_LABEL[ACT_VIOLATION_TYPE.SPEEDING],
    value: ACT_VIOLATION_TYPE.SPEEDING,
    disabled: false,
  },
  {
    label: ACT_VIOLATION_TYPE_LABEL[ACT_VIOLATION_TYPE.WRONG_WAY_DRIVING],
    value: ACT_VIOLATION_TYPE.WRONG_WAY_DRIVING,
    disabled: false,
  },
  {
    label: ACT_VIOLATION_TYPE_LABEL[ACT_VIOLATION_TYPE.ILLEGAL_PARKING],
    value: ACT_VIOLATION_TYPE.ILLEGAL_PARKING,
    disabled: false,
  },
];

export enum ACT_NOTICE_STATE {
  INACTIVE = 0,
  ACTIVE = 1,
}

export const ACT_NOTICE_STATE_LABEL = {
  [ACT_NOTICE_STATE.INACTIVE]: '未通知',
  [ACT_NOTICE_STATE.ACTIVE]: '已通知',
};

export const ACT_NOTICE_STATE_COLOR = {
  [ACT_NOTICE_STATE.INACTIVE]: '#ff4d4f',
  [ACT_NOTICE_STATE.ACTIVE]: '#52c41a',
};

export const ACT_NOTICE_STATE_OPTIONS: SelectOption[] = [
  {
    label: ACT_NOTICE_STATE_LABEL[ACT_NOTICE_STATE.ACTIVE],
    value: ACT_NOTICE_STATE.ACTIVE,
    disabled: false,
  },
  {
    label: ACT_NOTICE_STATE_LABEL[ACT_NOTICE_STATE.INACTIVE],
    value: ACT_NOTICE_STATE.INACTIVE,
    disabled: false,
  },
];

export enum ACT_NOTICE_DATA_SOURCE {
  ARTIFICAL = 1,
  OUTSIDE = 2,
}

export const ACT_NOTICE_DATA_SOURCE_LABEL = {
  [ACT_NOTICE_DATA_SOURCE.ARTIFICAL]: '手动录入',
  [ACT_NOTICE_DATA_SOURCE.OUTSIDE]: '车辆管理平台',
};

export const ACT_MANAGEMENT_PROMISSION_CODE = 'traffic_business_module:violation_record';
export const NOTICE_MANAGEMENT_PROMISSION_CODE = 'traffic_business_module:violation_notice';
