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