2026-06-22 13:48:12 +08:00
|
|
|
/**
|
|
|
|
|
* 全局常量定义
|
|
|
|
|
*/
|
|
|
|
|
|
2026-06-30 15:59:15 +08:00
|
|
|
/** 证书状态 */
|
|
|
|
|
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 = {
|
2026-07-08 16:20:43 +08:00
|
|
|
1: { label: "已审核", color: "success" },
|
2026-07-02 13:50:07 +08:00
|
|
|
2: { label: "审核中", color: "processing" },
|
|
|
|
|
3: { label: "打回", color: "error" },
|
2026-06-30 15:59:15 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
/** 专家核验状态 */
|
|
|
|
|
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" },
|
|
|
|
|
};
|
|
|
|
|
|
2026-07-03 10:35:36 +08:00
|
|
|
/** 备案状态(通用,含变更审核中、暂存) */
|
|
|
|
|
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" },
|
|
|
|
|
};
|
|
|
|
|
|
2026-07-08 20:09:49 +08:00
|
|
|
export const FILING_STATUS_MAP_CHANGE = {
|
|
|
|
|
1: { label: "已备案", color: "success" },
|
|
|
|
|
|
|
|
|
|
3: { label: "已打回", color: "error" },
|
|
|
|
|
4: { label: "变更审核中", color: "processing" },
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
2026-06-30 15:59:15 +08:00
|
|
|
/** 变更状态 */
|
|
|
|
|
export const CHANGE_STATUS_MAP = {
|
|
|
|
|
stuck: { label: "停滞中", color: "error" },
|
|
|
|
|
pending: { label: "待审核", color: "warning" },
|
|
|
|
|
approved: { label: "已审核", color: "success" },
|
|
|
|
|
};
|
|
|
|
|
|
2026-07-14 10:09:08 +08:00
|
|
|
/** 资质保持监控状态 */
|
|
|
|
|
export const QUAL_MONITOR_STATUS_MAP = {
|
2026-07-14 14:53:52 +08:00
|
|
|
normal: { label: "正常", color: "success" },
|
|
|
|
|
person_rate: { label: "人员比例预警", color: "warning" },
|
2026-07-14 10:09:08 +08:00
|
|
|
};
|
|
|
|
|
|
2026-07-02 17:50:43 +08:00
|
|
|
/** 性别 */
|
|
|
|
|
export const GENDER_OPTIONS = [
|
|
|
|
|
{ label: "男", value: 1 },
|
|
|
|
|
{ label: "女", value: 2 },
|
|
|
|
|
];
|
|
|
|
|
|
2026-07-07 15:19:16 +08:00
|
|
|
/** 性别编码(1男2女) → 名称 */
|
|
|
|
|
export const GENDER_MAP = {
|
|
|
|
|
1: "男",
|
|
|
|
|
2: "女",
|
|
|
|
|
};
|
|
|
|
|
|
2026-07-02 18:46:33 +08:00
|
|
|
/** 审核结果 */
|
|
|
|
|
export const REVIEW_RESULT_OPTIONS = [
|
|
|
|
|
{ label: "通过", value: 1 },
|
|
|
|
|
|
|
|
|
|
{ label: "不通过", value: 3 },
|
|
|
|
|
];
|
|
|
|
|
|
2026-06-30 15:59:15 +08:00
|
|
|
/** 专家等级 */
|
|
|
|
|
export const EXPERT_LEVEL_MAP = {
|
|
|
|
|
1: "一级",
|
|
|
|
|
2: "二级",
|
|
|
|
|
3: "三级",
|
|
|
|
|
};
|
2026-07-02 16:58:07 +08:00
|
|
|
export const LEGAL_STATUS_STYLE = {
|
|
|
|
|
PASS: { icon: "✅", borderColor: "#059669", bg: "#f0fdf4" },
|
|
|
|
|
WARN: { icon: "⚠️", borderColor: "#d97706", bg: "#fffbeb" },
|
|
|
|
|
NOT_PASS: { icon: "❌", borderColor: "#dc2626", bg: "#fef2f2" },
|
2026-07-14 14:53:52 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
/** 资质保持监控-条件检查项模板 */
|
|
|
|
|
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: "人员比例预警" },
|
|
|
|
|
];
|