From 70bee2fe2ccc55b1bcf8e3696cf791661a9956e6 Mon Sep 17 00:00:00 2001
From: tangjie <122778500@qq.com>
Date: Mon, 17 Aug 2026 13:43:46 +0800
Subject: [PATCH] fix
---
.../EnterpriseInfo/ResignationApply/index.js | 33 +++++++++++------
.../QualApplication/FilingForm/index.js | 37 ++++++++++---------
.../QualApplication/FilingListTable.jsx | 6 +--
.../EvalProject/Create/StaffPickerModal.js | 4 +-
4 files changed, 46 insertions(+), 34 deletions(-)
diff --git a/src/pages/Container/EnterpriseInfo/ResignationApply/index.js b/src/pages/Container/EnterpriseInfo/ResignationApply/index.js
index 16f5106..8d61f35 100644
--- a/src/pages/Container/EnterpriseInfo/ResignationApply/index.js
+++ b/src/pages/Container/EnterpriseInfo/ResignationApply/index.js
@@ -220,12 +220,7 @@ function AddModal({ open, staffOptions, requestAdd, onCancel, onSuccess }) {
const handleSubmit = async () => {
try {
const values = await form.validateFields();
- if (!values.reportFileUrl?.length) {
- form.setFields([
- { name: "reportFileUrl", errors: ["请上传离职通知报告"] },
- ]);
- return;
- }
+
setSubmitting(true);
values.applyTime =
values.applyTime?.format?.("YYYY-MM-DD HH:mm:ss") || values.applyTime;
@@ -233,13 +228,17 @@ function AddModal({ open, staffOptions, requestAdd, onCancel, onSuccess }) {
values.expectedResignDate =
values.expectedResignDate?.format?.("YYYY-MM-DD") ||
values.expectedResignDate;
- values.reportFileUrl = values.reportFileUrl?.map?.((f) => f.url).filter(Boolean).join(",") || undefined;
+ values.reportFileUrl =
+ values.reportFileUrl
+ ?.map?.((f) => f.url)
+ .filter(Boolean)
+ .join(",") || undefined;
const res = await requestAdd(values);
if (res?.success !== false) {
message.success("提交成功");
handleCancel();
onSuccess();
- }
+ }
} catch {
// validation error
} finally {
@@ -289,15 +288,16 @@ function AddModal({ open, staffOptions, requestAdd, onCancel, onSuccess }) {
label="离职原因"
rules={[{ required: true, message: "请输入离职原因" }]}
>
-
+
-
+
@@ -354,13 +354,22 @@ function ViewModal({ open, currentId, requestDetail, onCancel }) {
{info.remark}
{info.reportFileUrl ? (
-
+
查看文件
) : (
"-"
)}
+ {info.rejectReason && (
+
+ {info.rejectReason}
+
+ )}
);
diff --git a/src/pages/Container/QualApplication/FilingForm/index.js b/src/pages/Container/QualApplication/FilingForm/index.js
index dfb8b14..5366c3b 100644
--- a/src/pages/Container/QualApplication/FilingForm/index.js
+++ b/src/pages/Container/QualApplication/FilingForm/index.js
@@ -89,7 +89,10 @@ function FilingFormPage(props) {
});
});
} else {
- setDetail((prev) => ({ ...prev, materials: getFilingMaterialTemplate(mode) }));
+ setDetail((prev) => ({
+ ...prev,
+ materials: getFilingMaterialTemplate(mode),
+ }));
}
}, []);
@@ -141,7 +144,7 @@ function FilingFormPage(props) {
return;
}
const currentDetail = collectCurrentDetail();
- if(!currentDetail?.commitment.legalRepSignatureUrl){
+ if (!currentDetail?.commitment.legalRepSignatureUrl) {
message.warning("法定代表人尚未签字");
return;
}
@@ -221,10 +224,9 @@ function FilingFormPage(props) {
message.success("已推送签字");
} else {
message.success(config.isSaveDraft ? "暂存成功" : "提交成功");
- if(!config.isSaveDraft){
+ if (!config.isSaveDraft) {
props.history.goBack();
}
-
}
}
}
@@ -359,7 +361,10 @@ function FilingFormPage(props) {
label: "2. 管理人员基本情况汇总表",
children: (
item.technicalDirectorFlag || item.processControlLeaderFlag)}
+ personnelList={(detail?.personnelList || []).filter(
+ (item) =>
+ item.technicalDirectorFlag || item.processControlLeaderFlag,
+ )}
disabled={readOnly}
onAdd={handlePersonnelAdd}
key="managementPersonnel"
@@ -373,7 +378,10 @@ function FilingFormPage(props) {
label: "3. 专职安全评价师基本情况汇总表",
children: (
!item.technicalDirectorFlag && !item.processControlLeaderFlag)}
+ personnelList={(detail?.personnelList || []).filter(
+ (item) =>
+ !item.technicalDirectorFlag && !item.processControlLeaderFlag,
+ )}
disabled={readOnly}
onAdd={handlePersonnelAdd}
key="personnel"
@@ -421,8 +429,6 @@ function FilingFormPage(props) {
),
forceRender: true,
},
-
-
];
const stepIndex = STEP_ITEMS.findIndex((item) => item.key === activeStep);
@@ -444,15 +450,8 @@ function FilingFormPage(props) {
) : null
}
- >
-
-
-
-
+ footer={
+
{stepIndex > 0 && (
+ }
+ >
+
+
REVIEW_RESULT_MAP[v] || v || "-",
},
- { title: "审核专家", dataIndex: "filingExpertName", width: 120 },
+ mode !== 'change' && { title: "审核专家", dataIndex: "filingExpertName", width: 120 },
{ title: "综合审核意见", dataIndex: "reviewOpinion", ellipsis: true },
- ];
+ ].filter(Boolean);
const handleShowReview = async (record) => {
setReviewModalOpen(true);
diff --git a/src/pages/Container/SafetyEvalBusiness/EvalProject/Create/StaffPickerModal.js b/src/pages/Container/SafetyEvalBusiness/EvalProject/Create/StaffPickerModal.js
index eee241e..de7919f 100644
--- a/src/pages/Container/SafetyEvalBusiness/EvalProject/Create/StaffPickerModal.js
+++ b/src/pages/Container/SafetyEvalBusiness/EvalProject/Create/StaffPickerModal.js
@@ -75,9 +75,9 @@ const StaffPickerModal = (props) => {
delete next[key];
}
});
- // 添加/更新当前页勾选的行
+ // 添加/更新当前页勾选的行(跨页时 rows 中可能存在 undefined 占位,需过滤)
rows.forEach((row) => {
- next[row.id] = row;
+ if (row?.id) next[row.id] = row;
});
return next;
});