dev_1.0.1
tangjie 2026-07-01 15:29:53 +08:00
parent 86cc8d7b2a
commit 39da82b548
2 changed files with 29 additions and 25 deletions

View File

@ -25,32 +25,32 @@ import {
const menuItems = [ const menuItems = [
{ {
key: "/certificate/container/Supervision", key: "/safety-eva/container/Supervision",
label: "监管端", label: "监管端",
icon: <DashboardOutlined />, icon: <DashboardOutlined />,
children: [ children: [
{ {
key: "/certificate/container/Supervision/BasicInfo", key: "/safety-eva/container/Supervision/BasicInfo",
label: "基础信息管理", label: "基础信息管理",
icon: <FileTextOutlined />, icon: <FileTextOutlined />,
children: [ children: [
{ {
key: "/certificate/container/Supervision/BasicInfo/OrgAccount", key: "/safety-eva/container/Supervision/BasicInfo/OrgAccount",
label: "机构账号管理", label: "机构账号管理",
icon: <KeyOutlined />, icon: <KeyOutlined />,
}, },
{ {
key: "/certificate/container/Supervision/BasicInfo/RegisteredOrg/List", key: "/safety-eva/container/Supervision/BasicInfo/RegisteredOrg/List",
label: "已备案机构管理", label: "已备案机构管理",
icon: <FileProtectOutlined />, icon: <FileProtectOutlined />,
}, },
{ {
key: "/certificate/container/Supervision/BasicInfo/EvaluatorInfo", key: "/safety-eva/container/Supervision/BasicInfo/EvaluatorInfo",
label: "评价师信息管理", label: "评价师信息管理",
icon: <UserOutlined />, icon: <UserOutlined />,
}, },
{ {
key: "/certificate/container/Supervision/BasicInfo/EnterprisePortrait", key: "/safety-eva/container/Supervision/BasicInfo/EnterprisePortrait",
label: "企业画像管理", label: "企业画像管理",
icon: <BarChartOutlined />, icon: <BarChartOutlined />,
}, },
@ -59,64 +59,64 @@ const menuItems = [
] ]
}, },
{ {
key: "/certificate/container/EnterpriseInfo", key: "/safety-eva/container/EnterpriseInfo",
label: "企业信息管理", label: "企业信息管理",
icon: <ShopOutlined />, icon: <ShopOutlined />,
children: [ children: [
{ {
key: "/certificate/container/EnterpriseInfo/OrgInfo", key: "/safety-eva/container/EnterpriseInfo/OrgInfo",
label: "机构信息管理", label: "机构信息管理",
icon: <BankOutlined />, icon: <BankOutlined />,
}, },
{ {
key: "/certificate/container/EnterpriseInfo/QualificationCert", key: "/safety-eva/container/EnterpriseInfo/QualificationCert",
label: "资质信息管理", label: "资质信息管理",
icon: <SafetyCertificateOutlined />, icon: <SafetyCertificateOutlined />,
}, },
{ {
key: "/certificate/container/EnterpriseInfo/PersonnelChange", key: "/safety-eva/container/EnterpriseInfo/PersonnelChange",
label: "人员变更管理", label: "人员变更管理",
icon: <SwapOutlined />, icon: <SwapOutlined />,
}, },
{ {
key: "/certificate/container/EnterpriseInfo/PersonnelInfo/List", key: "/safety-eva/container/EnterpriseInfo/PersonnelInfo/List",
label: "人员信息管理", label: "人员信息管理",
icon: <TeamOutlined />, icon: <TeamOutlined />,
}, },
{ {
key: "/certificate/container/EnterpriseInfo/DepartmentPosition", key: "/safety-eva/container/EnterpriseInfo/DepartmentPosition",
label: "部门岗位管理", label: "部门岗位管理",
icon: <ApartmentOutlined />, icon: <ApartmentOutlined />,
}, },
{ {
key: "/certificate/container/EnterpriseInfo/ResignationApply", key: "/safety-eva/container/EnterpriseInfo/ResignationApply",
label: "人员离职申请", label: "人员离职申请",
icon: <LogoutOutlined />, icon: <LogoutOutlined />,
}, },
{ {
key: "/certificate/container/EnterpriseInfo/EquipInfo", key: "/safety-eva/container/EnterpriseInfo/EquipInfo",
label: "装备信息管理", label: "装备信息管理",
icon: <ToolOutlined />, icon: <ToolOutlined />,
}, },
], ],
}, },
{ {
key: "/certificate/container/qualApplication", key: "/safety-eva/container/qualApplication",
label: "资质申请管理", label: "资质申请管理",
icon: <FormOutlined />, icon: <FormOutlined />,
children: [ children: [
{ {
key: "/certificate/container/qualApplication/filingApplication/list", key: "/safety-eva/container/qualApplication/filingApplication/list",
label: "资质备案申请", label: "资质备案申请",
icon: <FormOutlined />, icon: <FormOutlined />,
}, },
{ {
key: "/certificate/container/qualApplication/filedManage/list", key: "/safety-eva/container/qualApplication/filedManage/list",
label: "已备案资质管理", label: "已备案资质管理",
icon: <CheckCircleOutlined />, icon: <CheckCircleOutlined />,
}, },
{ {
key: "/certificate/container/qualApplication/filingChange/list", key: "/safety-eva/container/qualApplication/filingChange/list",
label: "备案变更管理", label: "备案变更管理",
icon: <SyncOutlined />, icon: <SyncOutlined />,
}, },

View File

@ -50,7 +50,6 @@ const MODE_TITLE = {
function FilingFormPage(props) { function FilingFormPage(props) {
const query = tools.router.query; const query = tools.router.query;
const filingId = query.id;
const mode = query.mode; const mode = query.mode;
const [loading, setLoading] = useState(false); const [loading, setLoading] = useState(false);
const [submitting, setSubmitting] = useState(false); const [submitting, setSubmitting] = useState(false);
@ -62,7 +61,6 @@ function FilingFormPage(props) {
const [basicForm] = Form.useForm(); const [basicForm] = Form.useForm();
const [commitmentForm] = Form.useForm(); const [commitmentForm] = Form.useForm();
const [activeFilingId] = useState(filingId);
const detailRef = useRef(null); const detailRef = useRef(null);
const readOnly = const readOnly =
query.readOnly query.readOnly
@ -94,7 +92,15 @@ function FilingFormPage(props) {
useEffect(() => { useEffect(() => {
loadPersonnelOptions(); loadPersonnelOptions();
if(query.id){
fetchQualFilingDetail({ id: query.id }).then((res) => {
updateDetail((prev) => ({ ...prev, ...res?.data || {} }));
});
}
else{
updateDetail((prev) => ({ ...prev, materials: FILING_MATERIAL_TEMPLATE })); updateDetail((prev) => ({ ...prev, materials: FILING_MATERIAL_TEMPLATE }));
}
}, []); }, []);
@ -133,13 +139,11 @@ function FilingFormPage(props) {
? updater(prev) ? updater(prev)
: { ...prev, ...updater }; : { ...prev, ...updater };
detailRef.current = next; detailRef.current = next;
if (!activeFilingId && !readOnly) {
saveLocalDraft(mode, next);
}
return next; return next;
}); });
}, },
[activeFilingId, mode, readOnly], [ mode, readOnly],
); );
const collectCurrentDetail = useCallback(() => { const collectCurrentDetail = useCallback(() => {