/** * 全局常量定义 */ /** 证书状态 */ export const CERT_STATUS_MAP = { normal: { label: "正常", color: "success" }, expiring: { label: "即将到期", color: "warning" }, expired: { label: "已过期", color: "error" }, }; /** 核验状态 */ export const VERIFY_STATUS_MAP = { pending: { label: "待确认", color: "warning" }, passed: { label: "确认通过", color: "success" }, rejected: { label: "打回", color: "error" }, }; /** 审核状态 */ export const REVIEW_STATUS_MAP = { 1: { label: "已审核", color: "success" }, 2: { label: "审核中", color: "processing" }, 3: { label: "打回", color: "error" }, }; /** 专家核验状态 */ export const EXPERT_STATUS_MAP = { pending: { label: "待核验", color: "blue" }, arranging: { label: "待安排", color: "warning" }, passed: { label: "已核验", color: "success" }, }; /** 公示状态 */ export const PUBLICITY_STATUS_MAP = { pending: { label: "待公示", color: "warning" }, published: { label: "已公示", color: "success" }, }; /** 备案状态(通用,含变更审核中、暂存) */ export const FILING_STATUS_MAP = { 1: { label: "已备案", color: "success" }, 2: { label: "审核中", color: "processing" }, 3: { label: "已打回", color: "error" }, 4: { label: "变更审核中", color: "processing" }, 5: { label: "暂存", color: "default" }, }; export const FILING_STATUS_MAP_CHANGE = { 1: { label: "已备案", color: "success" }, 3: { label: "已打回", color: "error" }, 4: { label: "变更审核中", color: "processing" }, }; /** 变更状态 */ export const CHANGE_STATUS_MAP = { stuck: { label: "停滞中", color: "error" }, pending: { label: "待审核", color: "warning" }, approved: { label: "已审核", color: "success" }, }; /** 资质保持监控状态 */ export const QUAL_MONITOR_STATUS_MAP = { normal: { label: "正常", color: "success" }, person_rate: { label: "人员比例预警", color: "warning" }, }; /** 性别 */ export const GENDER_OPTIONS = [ { label: "男", value: 1 }, { label: "女", value: 2 }, ]; /** 性别编码(1男2女) → 名称 */ export const GENDER_MAP = { 1: "男", 2: "女", }; /** 审核结果 */ export const REVIEW_RESULT_OPTIONS = [ { label: "通过", value: 1 }, { label: "不通过", value: 3 }, ]; /** 专家等级 */ export const EXPERT_LEVEL_MAP = { 1: "一级", 2: "二级", 3: "三级", }; export const LEGAL_STATUS_STYLE = { PASS: { icon: "✅", borderColor: "#059669", bg: "#f0fdf4" }, WARN: { icon: "⚠️", borderColor: "#d97706", bg: "#fffbeb" }, NOT_PASS: { icon: "❌", borderColor: "#dc2626", bg: "#fef2f2" }, }; /** 资质保持监控-条件检查项模板 */ export const QUAL_MONITOR_CONDITION_ITEMS = [ { key: "legalPerson", label: "独立法人资格" }, { key: "fixedAsset", label: "固定资产" }, { key: "workplace", label: "工作场所" }, { key: "equipment", label: "设施设备软件" }, { key: "staffCount", label: "专职技术人员数量" }, { key: "staffRatio", label: "人员比例" }, { key: "leader", label: "负责人配备" }, { key: "system", label: "制度与过程控制体系" }, { key: "website", label: "承诺书/网站/报告查询" }, { key: "credit", label: "三年重大违法失信记录" }, { key: "area", label: "属地满足情况" }, ]; /** 资质保持监控-预警状态筛选选项 */ export const QUAL_MONITOR_STATUS_OPTIONS = [ { value: "normal", label: "正常" }, { value: "person_rate", label: "人员比例预警" }, ]; /** 证书类型选项 */ export const CERT_TYPE_OPTIONS = [ { value: "registered_safety_engineer", label: "注册安全工程师" }, { value: "senior_engineer", label: "高工" }, { value: "evaluator", label: "评价师" }, ]; /** 证书类型 value → label 映射 */ export const CERT_TYPE_MAP = { registered_safety_engineer: "注册安全工程师", senior_engineer: "高工", evaluator: "评价师", };