feat
parent
86cc8d7b2a
commit
39da82b548
|
|
@ -25,32 +25,32 @@ import {
|
|||
|
||||
const menuItems = [
|
||||
{
|
||||
key: "/certificate/container/Supervision",
|
||||
key: "/safety-eva/container/Supervision",
|
||||
label: "监管端",
|
||||
icon: <DashboardOutlined />,
|
||||
children: [
|
||||
{
|
||||
key: "/certificate/container/Supervision/BasicInfo",
|
||||
key: "/safety-eva/container/Supervision/BasicInfo",
|
||||
label: "基础信息管理",
|
||||
icon: <FileTextOutlined />,
|
||||
children: [
|
||||
{
|
||||
key: "/certificate/container/Supervision/BasicInfo/OrgAccount",
|
||||
key: "/safety-eva/container/Supervision/BasicInfo/OrgAccount",
|
||||
label: "机构账号管理",
|
||||
icon: <KeyOutlined />,
|
||||
},
|
||||
{
|
||||
key: "/certificate/container/Supervision/BasicInfo/RegisteredOrg/List",
|
||||
key: "/safety-eva/container/Supervision/BasicInfo/RegisteredOrg/List",
|
||||
label: "已备案机构管理",
|
||||
icon: <FileProtectOutlined />,
|
||||
},
|
||||
{
|
||||
key: "/certificate/container/Supervision/BasicInfo/EvaluatorInfo",
|
||||
key: "/safety-eva/container/Supervision/BasicInfo/EvaluatorInfo",
|
||||
label: "评价师信息管理",
|
||||
icon: <UserOutlined />,
|
||||
},
|
||||
{
|
||||
key: "/certificate/container/Supervision/BasicInfo/EnterprisePortrait",
|
||||
key: "/safety-eva/container/Supervision/BasicInfo/EnterprisePortrait",
|
||||
label: "企业画像管理",
|
||||
icon: <BarChartOutlined />,
|
||||
},
|
||||
|
|
@ -59,64 +59,64 @@ const menuItems = [
|
|||
]
|
||||
},
|
||||
{
|
||||
key: "/certificate/container/EnterpriseInfo",
|
||||
key: "/safety-eva/container/EnterpriseInfo",
|
||||
label: "企业信息管理",
|
||||
icon: <ShopOutlined />,
|
||||
children: [
|
||||
{
|
||||
key: "/certificate/container/EnterpriseInfo/OrgInfo",
|
||||
key: "/safety-eva/container/EnterpriseInfo/OrgInfo",
|
||||
label: "机构信息管理",
|
||||
icon: <BankOutlined />,
|
||||
},
|
||||
{
|
||||
key: "/certificate/container/EnterpriseInfo/QualificationCert",
|
||||
key: "/safety-eva/container/EnterpriseInfo/QualificationCert",
|
||||
label: "资质信息管理",
|
||||
icon: <SafetyCertificateOutlined />,
|
||||
},
|
||||
{
|
||||
key: "/certificate/container/EnterpriseInfo/PersonnelChange",
|
||||
key: "/safety-eva/container/EnterpriseInfo/PersonnelChange",
|
||||
label: "人员变更管理",
|
||||
icon: <SwapOutlined />,
|
||||
},
|
||||
{
|
||||
key: "/certificate/container/EnterpriseInfo/PersonnelInfo/List",
|
||||
key: "/safety-eva/container/EnterpriseInfo/PersonnelInfo/List",
|
||||
label: "人员信息管理",
|
||||
icon: <TeamOutlined />,
|
||||
},
|
||||
{
|
||||
key: "/certificate/container/EnterpriseInfo/DepartmentPosition",
|
||||
key: "/safety-eva/container/EnterpriseInfo/DepartmentPosition",
|
||||
label: "部门岗位管理",
|
||||
icon: <ApartmentOutlined />,
|
||||
},
|
||||
{
|
||||
key: "/certificate/container/EnterpriseInfo/ResignationApply",
|
||||
key: "/safety-eva/container/EnterpriseInfo/ResignationApply",
|
||||
label: "人员离职申请",
|
||||
icon: <LogoutOutlined />,
|
||||
},
|
||||
{
|
||||
key: "/certificate/container/EnterpriseInfo/EquipInfo",
|
||||
key: "/safety-eva/container/EnterpriseInfo/EquipInfo",
|
||||
label: "装备信息管理",
|
||||
icon: <ToolOutlined />,
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
key: "/certificate/container/qualApplication",
|
||||
key: "/safety-eva/container/qualApplication",
|
||||
label: "资质申请管理",
|
||||
icon: <FormOutlined />,
|
||||
children: [
|
||||
{
|
||||
key: "/certificate/container/qualApplication/filingApplication/list",
|
||||
key: "/safety-eva/container/qualApplication/filingApplication/list",
|
||||
label: "资质备案申请",
|
||||
icon: <FormOutlined />,
|
||||
},
|
||||
{
|
||||
key: "/certificate/container/qualApplication/filedManage/list",
|
||||
key: "/safety-eva/container/qualApplication/filedManage/list",
|
||||
label: "已备案资质管理",
|
||||
icon: <CheckCircleOutlined />,
|
||||
},
|
||||
{
|
||||
key: "/certificate/container/qualApplication/filingChange/list",
|
||||
key: "/safety-eva/container/qualApplication/filingChange/list",
|
||||
label: "备案变更管理",
|
||||
icon: <SyncOutlined />,
|
||||
},
|
||||
|
|
|
|||
|
|
@ -50,7 +50,6 @@ const MODE_TITLE = {
|
|||
|
||||
function FilingFormPage(props) {
|
||||
const query = tools.router.query;
|
||||
const filingId = query.id;
|
||||
const mode = query.mode;
|
||||
const [loading, setLoading] = useState(false);
|
||||
const [submitting, setSubmitting] = useState(false);
|
||||
|
|
@ -62,7 +61,6 @@ function FilingFormPage(props) {
|
|||
const [basicForm] = Form.useForm();
|
||||
const [commitmentForm] = Form.useForm();
|
||||
|
||||
const [activeFilingId] = useState(filingId);
|
||||
const detailRef = useRef(null);
|
||||
const readOnly =
|
||||
query.readOnly
|
||||
|
|
@ -94,7 +92,15 @@ function FilingFormPage(props) {
|
|||
|
||||
useEffect(() => {
|
||||
loadPersonnelOptions();
|
||||
if(query.id){
|
||||
fetchQualFilingDetail({ id: query.id }).then((res) => {
|
||||
updateDetail((prev) => ({ ...prev, ...res?.data || {} }));
|
||||
});
|
||||
}
|
||||
else{
|
||||
updateDetail((prev) => ({ ...prev, materials: FILING_MATERIAL_TEMPLATE }));
|
||||
}
|
||||
|
||||
}, []);
|
||||
|
||||
|
||||
|
|
@ -133,13 +139,11 @@ function FilingFormPage(props) {
|
|||
? updater(prev)
|
||||
: { ...prev, ...updater };
|
||||
detailRef.current = next;
|
||||
if (!activeFilingId && !readOnly) {
|
||||
saveLocalDraft(mode, next);
|
||||
}
|
||||
|
||||
return next;
|
||||
});
|
||||
},
|
||||
[activeFilingId, mode, readOnly],
|
||||
[ mode, readOnly],
|
||||
);
|
||||
|
||||
const collectCurrentDetail = useCallback(() => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue