From ffb2b480a08ee93051a068c29d46ec537e974f1d Mon Sep 17 00:00:00 2001
From: fangjiakai <450850793@qq.com>
Date: Mon, 19 Jan 2026 15:12:11 +0800
Subject: [PATCH] =?UTF-8?q?fix(inspection):=20=E4=BF=AE=E5=A4=8D=E6=A3=80?=
=?UTF-8?q?=E6=9F=A5=E4=BA=BA=E6=98=BE=E7=A4=BA=E5=92=8C=E8=AE=A1=E5=88=92?=
=?UTF-8?q?=E7=8A=B6=E6=80=81=E5=88=A4=E6=96=AD=E9=80=BB=E8=BE=91?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
- 将确认人字段标签更正为检查人
- 修复检查人信息展示时电话号码为空的情况处理
- 修正检查时间显示中的变量引用错误
- 添加审核意见和签字的条件渲染逻辑
- 增加被检查单位签字的条件显示控制
- 在计划管理列表中新增计划执行单位列
- 修复计划完成状态判断逻辑,使用正确的执行总数进行比较
---
.../BranchCompany/Inspection/Defense/List/index.js | 2 +-
.../Container/BranchCompany/InspectionView/index.js | 10 +++++-----
.../BranchCompany/Plan/Management/List/index.js | 5 +++--
3 files changed, 9 insertions(+), 8 deletions(-)
diff --git a/src/pages/Container/BranchCompany/Inspection/Defense/List/index.js b/src/pages/Container/BranchCompany/Inspection/Defense/List/index.js
index 361666b..5a35b19 100644
--- a/src/pages/Container/BranchCompany/Inspection/Defense/List/index.js
+++ b/src/pages/Container/BranchCompany/Inspection/Defense/List/index.js
@@ -231,7 +231,7 @@ function DefenseHandlingModalComponent(props) {
},
{
name: "signature",
- label: "确认人",
+ label: "检查人",
required: false,
rules: [{ required: true, message: "请签名" }],
dependencies: ["status"],
diff --git a/src/pages/Container/BranchCompany/InspectionView/index.js b/src/pages/Container/BranchCompany/InspectionView/index.js
index 6499d58..784fe88 100644
--- a/src/pages/Container/BranchCompany/InspectionView/index.js
+++ b/src/pages/Container/BranchCompany/InspectionView/index.js
@@ -62,7 +62,7 @@ function InspectionView(props) {
}
}
data.inspectorVerificationList.forEach((item) => {
- setCurrentInspectorUserName(prev => [...prev, `${item.userName}(${item.phone})` || ""]);
+ setCurrentInspectorUserName(prev => [...prev, `${item.userName}(${item.phone || "-"})` || ""]);
});
setInfo(data);
const { data: hiddenList } = await props["hiddenList"]({ foreignKey: query.inspectionId, pageIndex: 1, pageSize: 999 });
@@ -90,7 +90,7 @@ function InspectionView(props) {
{ label: "牵头检查部门", children: info.inspector?.departmentName },
{ label: "检查人", children: currentInspectorUserName.join(",") },
{ label: "检查类型", children: info.typeName },
- { label: "检查时间", children: (info.timeStart && info.timeEnd) ? `自${formatDate(record.timeStart)}至${formatDate(record.timeEnd)}止` : "" },
+ { label: "检查时间", children: (info.timeStart && info.timeEnd) ? `自${formatDate(info.timeStart)}至${formatDate(info.timeEnd)}止` : "" },
{ label: "检查场所", children: info.place, span: 2 },
{ label: "计划属性", children: getLabelName({ list: PLAN_ENUM, status: info.planType }), span: 2 },
...(info.planType === 1 ? [{ label: "计划名称", children: info.planName, span: 2 }] : []),
@@ -178,8 +178,8 @@ function InspectionView(props) {
options={false}
columns={[
{ title: "审核人员", dataIndex: "userName" },
- { title: "审核意见", dataIndex: "userRemarks" },
- { title: "签字", render: (_, record) => (record.signature &&