From 9c849f8d5b027b405d647542a56d2ac42bce8bd6 Mon Sep 17 00:00:00 2001 From: LiuJiaNan <15703339975@163.com> Date: Mon, 2 Mar 2026 15:54:30 +0800 Subject: [PATCH] =?UTF-8?q?fix(ViewProjectReviewUserModal):=20=E4=BF=AE?= =?UTF-8?q?=E6=AD=A3=E8=AF=81=E4=B9=A6=E4=BF=A1=E6=81=AF=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E5=AD=97=E6=AE=B5=E6=98=A0=E5=B0=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 交换了操作项目和作业类别的字段映射关系 - 确保 assignmentOperatingItemsName 映射到操作项目 - 确保 assignmentCategoryName 映射到作业类别 fix(ProjectFilingApplication): 添加资质类型选择验证 - 在获取资质类型列表后验证当前选中值是否有效 - 如果当前资质类型ID不存在于列表中则清空表单字段 - 防止无效资质类型导致的数据不一致问题 --- src/components/ViewProjectReviewUserModal/index.js | 4 ++-- .../ProjectReview/ProjectFilingApplication/Add/index.js | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/components/ViewProjectReviewUserModal/index.js b/src/components/ViewProjectReviewUserModal/index.js index 0bf1681..b7d7d20 100644 --- a/src/components/ViewProjectReviewUserModal/index.js +++ b/src/components/ViewProjectReviewUserModal/index.js @@ -207,8 +207,8 @@ const ViewInfoModalComponent = (props) => { items={[ { label: "证书名称", children: info.certificateName }, { label: "证书编号", children: info.certificateCode }, - { label: "操作项目", children: info.assignmentCategoryName }, - { label: "作业类别", children: info.assignmentOperatingItemsName }, + { label: "操作项目", children: info.assignmentOperatingItemsName }, + { label: "作业类别", children: info.assignmentCategoryName }, { label: "发证机构", children: info.issuingAuthority }, { label: "发证日期", children: info.dateIssue }, { label: "复审日期", children: info.reviewDate }, diff --git a/src/pages/Container/Stakeholder/ProjectReview/ProjectFilingApplication/Add/index.js b/src/pages/Container/Stakeholder/ProjectReview/ProjectFilingApplication/Add/index.js index 3d472a9..d544c9f 100644 --- a/src/pages/Container/Stakeholder/ProjectReview/ProjectFilingApplication/Add/index.js +++ b/src/pages/Container/Stakeholder/ProjectReview/ProjectFilingApplication/Add/index.js @@ -174,6 +174,9 @@ const StepOneComponent = (props) => { const getQualificationsTypeList = async () => { const { data } = await props["qualificationsTypeList"](); setQualificationsTypeList(data); + if (!data.find(item => item.qualificationsTypeId === props.formValues.qualificationsTypeId)) { + form.setFieldValue("qualificationsTypeId", ""); + } }; // 获取项目执行属地公司名称列表数据 const getDeptList = async (id) => {