feat
parent
a3b3c3e35f
commit
8cc5abbd52
|
|
@ -10,7 +10,7 @@ module.exports = {
|
|||
javaGitBranch: "<branch-name>",
|
||||
// 本地联调 safety-eval-service(context-path: /safety-eval,默认端口 8095)
|
||||
// 可通过环境变量覆盖: SAFETY_EVAL_API_HOST=http://192.168.x.x:8095
|
||||
API_HOST: "http://192.168.0.149:8095",
|
||||
API_HOST: "http://192.168.0.204:8095",
|
||||
},
|
||||
production: {
|
||||
// 应用后端分支名称,部署上线需要
|
||||
|
|
|
|||
|
|
@ -69,7 +69,7 @@ export const FILING_BUSINESS_SCOPE_OPTIONS = [
|
|||
];
|
||||
|
||||
export const FILING_FORM_MODE = {
|
||||
APPLICATION: "application",
|
||||
APPLICATION: "safety-eval",
|
||||
FILED: "filed",
|
||||
CHANGE: "change",
|
||||
};
|
||||
|
|
|
|||
|
|
@ -9,11 +9,10 @@ import {
|
|||
FILING_FORM_MODE,
|
||||
isQualFilingEditable,
|
||||
} from "~/enumerate/qualFilingOptions";
|
||||
import { createLocalMaterials } from "../filingMaterialTemplate";
|
||||
import { createLocalMaterials, FILING_MATERIAL_TEMPLATE } from "../filingMaterialTemplate";
|
||||
import {
|
||||
clearLocalDraft,
|
||||
createEmptyFilingDetail,
|
||||
loadLocalDraft,
|
||||
|
||||
saveLocalDraft,
|
||||
} from "../filingLocalDraft";
|
||||
import {
|
||||
|
|
@ -24,7 +23,6 @@ import {
|
|||
persistFilingToBackend,
|
||||
} from "../filingPersist";
|
||||
import { verifyFilingPrerequisites } from "../filingVerify";
|
||||
import { toDayjs } from "~/utils/dateFormat";
|
||||
import { resolveUploadFileId } from "~/utils/mockUpload";
|
||||
import { goFilingList } from "../filingPaths";
|
||||
import BasicInfoStep from "./components/BasicInfoStep";
|
||||
|
|
@ -96,36 +94,11 @@ function FilingFormPage(props) {
|
|||
}, [detail]);
|
||||
|
||||
useEffect(() => {
|
||||
if (
|
||||
!detail?.commitment?.legalRepPersonnelId &&
|
||||
!detail?.commitment?.legalRepName
|
||||
) {
|
||||
return;
|
||||
}
|
||||
loadPersonnelOptions();
|
||||
}, [
|
||||
detail?.commitment?.legalRepPersonnelId,
|
||||
detail?.commitment?.legalRepName,
|
||||
loadPersonnelOptions,
|
||||
]);
|
||||
updateDetail((prev) => ({ ...prev, materials: FILING_MATERIAL_TEMPLATE }));
|
||||
}, []);
|
||||
|
||||
useEffect(() => {
|
||||
if (
|
||||
activeStep !== "commitment" &&
|
||||
!detail?.commitment?.legalRepPersonnelId
|
||||
) {
|
||||
return;
|
||||
}
|
||||
if (personnelOptions.length) {
|
||||
return;
|
||||
}
|
||||
loadPersonnelOptions();
|
||||
}, [
|
||||
activeStep,
|
||||
detail?.commitment?.legalRepPersonnelId,
|
||||
loadPersonnelOptions,
|
||||
personnelOptions.length,
|
||||
]);
|
||||
|
||||
|
||||
useEffect(() => {
|
||||
if (!personnelOptions.length) {
|
||||
|
|
@ -153,6 +126,7 @@ function FilingFormPage(props) {
|
|||
}
|
||||
}, [commitmentForm, personnelOptions]);
|
||||
|
||||
|
||||
const updateDetail = useCallback(
|
||||
(updater) => {
|
||||
setDetail((prev) => {
|
||||
|
|
@ -404,7 +378,7 @@ function FilingFormPage(props) {
|
|||
basicForm.getFieldValue("filingUnitName") ||
|
||||
detail?.filingUnitName,
|
||||
});
|
||||
loadPersonnelOptions();
|
||||
|
||||
}
|
||||
setActiveStep(key);
|
||||
}}
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
export const FILING_FORM_PATH = "/certificate/container/qualApplication/filingForm";
|
||||
export const FILING_FORM_PATH = "/safety-eval/container/qualApplication/filingForm";
|
||||
|
||||
export const FILING_LIST_PATH = {
|
||||
application: "/certificate/container/qualApplication/filingApplication/list",
|
||||
filed: "/certificate/container/qualApplication/filedManage/list",
|
||||
change: "/certificate/container/qualApplication/filingChange/list",
|
||||
application: "/safety-eval/container/qualApplication/filingApplication/list",
|
||||
filed: "/safety-eval/container/qualApplication/filedManage/list",
|
||||
change: "/safety-eval/container/qualApplication/filingChange/list",
|
||||
};
|
||||
|
||||
export function goFilingForm({ mode, id, originFilingId, readOnly }) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue