feat
parent
353e40b31a
commit
fe3c730afc
|
|
@ -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}
|
||||
|
|
|
|||
|
|
@ -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) => {
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
});
|
||||
}
|
||||
items.push({
|
||||
key: "mgmtSystem",
|
||||
label: "管理体系",
|
||||
desc: mgmtUploaded ? "管理体系文件已上传" : "尚未上传管理体系文件",
|
||||
passed: mgmtUploaded,
|
||||
});
|
||||
|
||||
return {
|
||||
passed: items.every((item) => item.passed),
|
||||
|
|
|
|||
Loading…
Reference in New Issue