dev_1.0.1
tangjie 2026-07-08 15:23:50 +08:00
parent 353e40b31a
commit fe3c730afc
3 changed files with 13 additions and 12 deletions

View File

@ -62,12 +62,13 @@ function StaffCertificatePage(props) {
return (
<PageLayout
history={props.history}
previous
title={`人员证书 - ${staffName || ""}`}
extra={
<Button type="primary" onClick={() => { setCurrentId(""); setAddModalOpen(true); }}>新增证书</Button>
}
>
<Button style={{ marginBottom: 16 }} onClick={goBack}>返回</Button>
<SearchForm
style={{ marginBottom: 24 }}
form={searchForm}

View File

@ -91,8 +91,9 @@ function PersonnelInfoPage(props) {
};
const goCertificate = (id, staffName) => {
const base = window.location.pathname.replace(/\/List.*$/, "");
window.location.href = `${base}/Certificate?staffId=${id}&staffName=${encodeURIComponent(staffName || "")}`;
props.history.push(`Certificate?staffId=${id}&staffName=${encodeURIComponent(staffName || "")}`);
};
const onDelete = (id) => {

View File

@ -95,16 +95,15 @@ export function verifyFilingPrerequisites(detail = {}) {
passed: SKIP_PERSONNEL_VERIFY || keyOk,
});
const mgmtUploaded = detail.materials.every((m) => m.attachmentUrl);
const mgmtUploaded =
SKIP_PERSONNEL_VERIFY || detail.materials.every((m) => m.attachmentUrl);
if (SKIP_PERSONNEL_VERIFY) {
items.push({
key: "mgmtSystem",
label: "管理体系",
desc: mgmtUploaded ? "管理体系文件已上传" : "尚未上传管理体系文件",
passed: mgmtUploaded,
});
}
return {
passed: items.every((item) => item.passed),