diff --git a/src/api/qualReview/index.js b/src/api/qualReview/index.js index d333ad1..10321cb 100644 --- a/src/api/qualReview/index.js +++ b/src/api/qualReview/index.js @@ -67,7 +67,7 @@ export const modifyFilingMaterial = declareRequest( export const queryQualMonitorPage = declareRequest( "qualReviewLoading", - "Get > /safetyEval/qual-monitor/page", + "Get > /safetyEval/qual-filing/qualificationMonitoringPage", 'qualMonitorList: [] | res.data || [] & qualMonitorTotal: 0 | res.total || 0', ); diff --git a/src/components/StaffViewModal/index.js b/src/components/StaffViewModal/index.js index fae4d9f..30c9fe0 100644 --- a/src/components/StaffViewModal/index.js +++ b/src/components/StaffViewModal/index.js @@ -9,6 +9,7 @@ import { fetchStaffCertListByPersonnelId, } from "~/api/staffCertificate"; import { fetchOrgPersonnelDetail } from "~/utils/qualFiling/personnelHelper"; +import { TITLE_LEVEL_MAP } from "~/enumerate/enterpriseOptions"; const GENDER_MAP = { 1: "男", 2: "女" }; const REGISTER_ENGINEER_MAP = { 1: "是", 2: "否" }; @@ -120,7 +121,7 @@ export default function StaffViewModal({ onCancel={onCancel} > - {info.titleName} + {info.userName} {GENDER_MAP[info.genderCode]} @@ -152,7 +153,7 @@ export default function StaffViewModal({ {info.educationLevelName || "-"} - {info.titleName || "-"} + {TITLE_LEVEL_MAP[info.titleCode] ?? (info.titleCode || "-")} {REGISTER_ENGINEER_MAP[info.registerEngineerFlag] ?? "-"} diff --git a/src/enumerate/constant/index.js b/src/enumerate/constant/index.js index 4ffa5b8..c9ac7de 100644 --- a/src/enumerate/constant/index.js +++ b/src/enumerate/constant/index.js @@ -63,10 +63,8 @@ export const CHANGE_STATUS_MAP = { /** 资质保持监控状态 */ export const QUAL_MONITOR_STATUS_MAP = { - normal: { label: "保持正常", color: "success" }, - person_warning: { label: "人员比例预警", color: "warning" }, - focus_warning: { label: "重点预警", color: "error" }, - area_pending: { label: "属地待核验", color: "warning" }, + normal: { label: "正常", color: "success" }, + person_rate: { label: "人员比例预警", color: "warning" }, }; /** 性别 */ @@ -98,4 +96,25 @@ export const LEGAL_STATUS_STYLE = { PASS: { icon: "✅", borderColor: "#059669", bg: "#f0fdf4" }, WARN: { icon: "⚠️", borderColor: "#d97706", bg: "#fffbeb" }, NOT_PASS: { icon: "❌", borderColor: "#dc2626", bg: "#fef2f2" }, -}; \ No newline at end of file +}; + +/** 资质保持监控-条件检查项模板 */ +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: "人员比例预警" }, +]; \ No newline at end of file diff --git a/src/enumerate/enterpriseOptions.js b/src/enumerate/enterpriseOptions.js index f47067a..c9525af 100644 --- a/src/enumerate/enterpriseOptions.js +++ b/src/enumerate/enterpriseOptions.js @@ -173,3 +173,15 @@ export const REGISTER_ENGINEER_OPTIONS = [ { label: "是", value: 1 }, { label: "否", value: 2 }, ]; + +/** 职称等级 */ +export const TITLE_LEVEL_OPTIONS = [ + { value: "SENIOR", label: "高级" }, + { value: "MIDDLE", label: "中级" }, + { value: "JUNIOR", label: "初级" }, +]; + +export const TITLE_LEVEL_MAP = TITLE_LEVEL_OPTIONS.reduce( + (acc, cur) => ({ ...acc, [cur.value]: cur.label }), + {}, +); diff --git a/src/pages/Container/EnterpriseInfo/PersonnelInfo/List/index.js b/src/pages/Container/EnterpriseInfo/PersonnelInfo/List/index.js index dc27879..fff0113 100644 --- a/src/pages/Container/EnterpriseInfo/PersonnelInfo/List/index.js +++ b/src/pages/Container/EnterpriseInfo/PersonnelInfo/List/index.js @@ -28,6 +28,7 @@ import { PROFESSIONAL_LEVEL_OPTIONS, QUALIFICATION_INDUSTRY_OPTIONS, REGISTER_ENGINEER_OPTIONS, + TITLE_LEVEL_OPTIONS, } from "~/enumerate/enterpriseOptions"; import { getBirthDateFromIdCard } from "~/utils"; import { idCardRule, mobileRule } from "~/utils/validators"; @@ -689,11 +690,11 @@ function StaffFormModal({ - +