/** 检查单模版类别：对应接口 categoryName / categoryCode */
export const CHECK_TEMPLATE_CATEGORY_OPTIONS = [
  { label: '安全管理检查单', categoryName: '安全管理检查单', categoryCode: 'SAFETY_MANAGEMENT' },
  { label: '关键业务活动专项检查单', categoryName: '关键业务活动专项检查单', categoryCode: 'KEY_BUSINESS' },
  { label: '日常安全检查单', categoryName: '日常安全检查单', categoryCode: 'DAILY_SAFETY' },
];

export const CHECK_TEMPLATE_FORM_DATA = {
  templateName: '',
  categoryName: '' as string,
  categoryCode: '' as string,
  businessWork: '',
  fillInstruction: '',
  status: 1,
};

export const CHECK_TEMPLATE_FORM_RULES = {
  templateName: [{ required: true, message: '请输入检查单模版名称', trigger: 'blur' }],
  categoryName: [{ required: true, message: '请选择类别名称', trigger: 'change' }],
  businessWork: [{ required: true, message: '请输入业务工作', trigger: 'blur' }],
  fillInstruction: [{ required: true, message: '请输入填写说明', trigger: 'blur' }],
  status: [{ required: true, message: '请选择状态', trigger: 'change' }],
};
