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 ( return (
<PageLayout <PageLayout
history={props.history}
previous
title={`人员证书 - ${staffName || ""}`} title={`人员证书 - ${staffName || ""}`}
extra={ extra={
<Button type="primary" onClick={() => { setCurrentId(""); setAddModalOpen(true); }}>新增证书</Button> <Button type="primary" onClick={() => { setCurrentId(""); setAddModalOpen(true); }}>新增证书</Button>
} }
> >
<Button style={{ marginBottom: 16 }} onClick={goBack}>返回</Button>
<SearchForm <SearchForm
style={{ marginBottom: 24 }} style={{ marginBottom: 24 }}
form={searchForm} form={searchForm}

View File

@ -91,8 +91,9 @@ function PersonnelInfoPage(props) {
}; };
const goCertificate = (id, staffName) => { 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) => { const onDelete = (id) => {

View File

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