safety-eval-service-frontend/src/enumerate/constant/index.js

79 lines
2.1 KiB
JavaScript

/**
* 全局常量定义
*/
/** 证书状态 */
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 = {
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 CHANGE_STATUS_MAP = {
stuck: { label: "停滞中", color: "error" },
pending: { label: "待审核", color: "warning" },
approved: { label: "已审核", color: "success" },
};
/** 性别 */
export const GENDER_OPTIONS = [
{ label: "男", value: 1 },
{ label: "女", value: 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" },
};