refactor(project-review): 更新项目审查相关接口和组件配置
- 修改资质审查API接口路径从 basicInfo 到 certificate 模块 - 调整项目文件上传类型从 151 改为 148 - 统一特殊证书标题显示为"特种证书" - 修复查询参数字段名从 eqStakeholderLevelL 改为 eqStakeholderLevel - 清理项目审查页面中的调试日志输出 - 简化项目审查二级页面的操作按钮功能 - 在配置文件中注释本地开发API地址选项master
parent
16d266eef3
commit
5e3122f399
|
|
@ -14,7 +14,7 @@ export const corpInfoDetails = declareRequest(
|
||||||
);
|
);
|
||||||
export const userQualificationList = declareRequest(
|
export const userQualificationList = declareRequest(
|
||||||
"userQualificationLoading",
|
"userQualificationLoading",
|
||||||
"Post > @/basicInfo/userQualificationInfo/list",
|
"Post > @/certificate/userCertificate/listPage",
|
||||||
);
|
);
|
||||||
export const qualificationReviewSubmit = declareRequest(
|
export const qualificationReviewSubmit = declareRequest(
|
||||||
"userQualificationLoading",
|
"userQualificationLoading",
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,7 @@ export const projectUpdate = declareRequest(
|
||||||
`Put > @/xgfManager/project/edit`,
|
`Put > @/xgfManager/project/edit`,
|
||||||
);
|
);
|
||||||
export const userQualificationInfo = declareRequest(
|
export const userQualificationInfo = declareRequest(
|
||||||
`Post > @/basicInfo/userQualificationInfo/list`,
|
`Post > @/certificate/userCertificate/listPage`,
|
||||||
);
|
);
|
||||||
export const projectDetail = declareRequest(
|
export const projectDetail = declareRequest(
|
||||||
"qualificationStatisticsLoading",
|
"qualificationStatisticsLoading",
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@ const ViewProjectReviewDetailsModal = (props) => {
|
||||||
const { getFile } = useGetFile();
|
const { getFile } = useGetFile();
|
||||||
const getData = async () => {
|
const getData = async () => {
|
||||||
const file = await getFile({
|
const file = await getFile({
|
||||||
eqType: UPLOAD_FILE_TYPE_ENUM["151"],
|
eqType: UPLOAD_FILE_TYPE_ENUM["148"],
|
||||||
eqForeignKey: props.data.projectFileId,
|
eqForeignKey: props.data.projectFileId,
|
||||||
});
|
});
|
||||||
props.data.files = file;
|
props.data.files = file;
|
||||||
|
|
|
||||||
|
|
@ -59,7 +59,7 @@ const ViewProjectReviewUserModal = (props) => {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Modal
|
<Modal
|
||||||
title="特种作业人员证书"
|
title="特种证书"
|
||||||
width={1200}
|
width={1200}
|
||||||
open
|
open
|
||||||
maskClosable={false}
|
maskClosable={false}
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@ function List(props) {
|
||||||
const { tableProps, getData } = useTable(props["inCheckList"], {
|
const { tableProps, getData } = useTable(props["inCheckList"], {
|
||||||
form,
|
form,
|
||||||
params: {
|
params: {
|
||||||
eqStakeholderLevelL: "two-level",
|
eqStakeholderLevel: "two-level",
|
||||||
eqProjectStatus: 7,
|
eqProjectStatus: 7,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@ function List(props) {
|
||||||
const { tableProps, getData } = useTable(props["inCheckList"], {
|
const { tableProps, getData } = useTable(props["inCheckList"], {
|
||||||
form,
|
form,
|
||||||
params: {
|
params: {
|
||||||
eqStakeholderLevelL: "one-level",
|
eqStakeholderLevel: "one-level",
|
||||||
eqSubcontractFlag: 0,
|
eqSubcontractFlag: 0,
|
||||||
eqProjectStatus: 3,
|
eqProjectStatus: 3,
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@ function List(props) {
|
||||||
const { tableProps, getData } = useTable(props["inCheckList"], {
|
const { tableProps, getData } = useTable(props["inCheckList"], {
|
||||||
form,
|
form,
|
||||||
params: {
|
params: {
|
||||||
eqStakeholderLevelL: "one-level",
|
eqStakeholderLevel: "one-level",
|
||||||
eqSubcontractFlag: 0,
|
eqSubcontractFlag: 0,
|
||||||
eqProjectStatus: 2,
|
eqProjectStatus: 2,
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@ function List(props) {
|
||||||
const { tableProps, getData } = useTable(props["inCheckList"], {
|
const { tableProps, getData } = useTable(props["inCheckList"], {
|
||||||
form,
|
form,
|
||||||
params: {
|
params: {
|
||||||
eqStakeholderLevelL: "one-level",
|
eqStakeholderLevel: "one-level",
|
||||||
eqSubcontractFlag: 1,
|
eqSubcontractFlag: 1,
|
||||||
eqProjectStatus: 3,
|
eqProjectStatus: 3,
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@ function List(props) {
|
||||||
const { tableProps, getData } = useTable(props["inCheckList"], {
|
const { tableProps, getData } = useTable(props["inCheckList"], {
|
||||||
form,
|
form,
|
||||||
params: {
|
params: {
|
||||||
eqStakeholderLevelL: "one-level",
|
eqStakeholderLevel: "one-level",
|
||||||
eqSubcontractFlag: 1,
|
eqSubcontractFlag: 1,
|
||||||
eqProjectStatus: 2,
|
eqProjectStatus: 2,
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@ function List(props) {
|
||||||
const { tableProps, getData } = useTable(props["inCheckList"], {
|
const { tableProps, getData } = useTable(props["inCheckList"], {
|
||||||
form,
|
form,
|
||||||
params: {
|
params: {
|
||||||
eqStakeholderLevelL: "two-level",
|
eqStakeholderLevel: "two-level",
|
||||||
eqProjectStatus: 3,
|
eqProjectStatus: 3,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@ function List(props) {
|
||||||
const { tableProps, getData } = useTable(props["inCheckList"], {
|
const { tableProps, getData } = useTable(props["inCheckList"], {
|
||||||
form,
|
form,
|
||||||
params: {
|
params: {
|
||||||
eqStakeholderLevelL: "two-level",
|
eqStakeholderLevel: "two-level",
|
||||||
eqProjectStatus: 2,
|
eqProjectStatus: 2,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -567,7 +567,7 @@ const StepTwoComponent = (props) => {
|
||||||
const [setChooseFilsListModalData] = useState({});
|
const [setChooseFilsListModalData] = useState({});
|
||||||
const getData = async () => {
|
const getData = async () => {
|
||||||
for (let i = 0; i < projectFileList.length; i++) {
|
for (let i = 0; i < projectFileList.length; i++) {
|
||||||
const files = await getFile({ eqType: UPLOAD_FILE_TYPE_ENUM["151"], eqForeignKey: projectFileList[i].projectFileId });
|
const files = await getFile({ eqType: UPLOAD_FILE_TYPE_ENUM["148"], eqForeignKey: projectFileList[i].projectFileId });
|
||||||
projectFileList[i].files = files;
|
projectFileList[i].files = files;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
@ -674,7 +674,7 @@ const StepTwoComponent = (props) => {
|
||||||
const { id } = await uploadFile({
|
const { id } = await uploadFile({
|
||||||
single: false,
|
single: false,
|
||||||
files: projectFileList[i].files,
|
files: projectFileList[i].files,
|
||||||
params: { type: UPLOAD_FILE_TYPE_ENUM["151"], foreignKey: projectFileList[i].projectFileId },
|
params: { type: UPLOAD_FILE_TYPE_ENUM["148"], foreignKey: projectFileList[i].projectFileId },
|
||||||
});
|
});
|
||||||
projectFileList[i].projectFileId = id;
|
projectFileList[i].projectFileId = id;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -80,8 +80,6 @@ function Review(props) {
|
||||||
const unlisten = props.history.listen((location) => {
|
const unlisten = props.history.listen((location) => {
|
||||||
const searchParams = new URLSearchParams(location.search);
|
const searchParams = new URLSearchParams(location.search);
|
||||||
const newId = searchParams.get("id");
|
const newId = searchParams.get("id");
|
||||||
console.log(newId);
|
|
||||||
|
|
||||||
getData(newId);
|
getData(newId);
|
||||||
});
|
});
|
||||||
return unlisten;
|
return unlisten;
|
||||||
|
|
|
||||||
|
|
@ -389,7 +389,7 @@ const StepTwoComponent = (props) => {
|
||||||
const [chooseFilsListModalData, setChooseFilsListModalData] = useState([]);
|
const [chooseFilsListModalData, setChooseFilsListModalData] = useState([]);
|
||||||
const getData = async () => {
|
const getData = async () => {
|
||||||
for (let i = 0; i < projectFileList.length; i++) {
|
for (let i = 0; i < projectFileList.length; i++) {
|
||||||
const files = await getFile({ eqType: UPLOAD_FILE_TYPE_ENUM["151"], eqForeignKey: projectFileList[i].projectFileId });
|
const files = await getFile({ eqType: UPLOAD_FILE_TYPE_ENUM["148"], eqForeignKey: projectFileList[i].projectFileId });
|
||||||
projectFileList[i].files = files;
|
projectFileList[i].files = files;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
@ -496,7 +496,7 @@ const StepTwoComponent = (props) => {
|
||||||
const { id } = await uploadFile({
|
const { id } = await uploadFile({
|
||||||
single: false,
|
single: false,
|
||||||
files: projectFileList[i].files,
|
files: projectFileList[i].files,
|
||||||
params: { type: UPLOAD_FILE_TYPE_ENUM["151"], foreignKey: projectFileList[i].projectFileId },
|
params: { type: UPLOAD_FILE_TYPE_ENUM["148"], foreignKey: projectFileList[i].projectFileId },
|
||||||
});
|
});
|
||||||
projectFileList[i].projectFileId = id;
|
projectFileList[i].projectFileId = id;
|
||||||
}
|
}
|
||||||
|
|
@ -635,23 +635,10 @@ const StepTwoComponent = (props) => {
|
||||||
setViewProjectReviewUserModalOpen(true);
|
setViewProjectReviewUserModalOpen(true);
|
||||||
setViewProjectReviewUserModalData({
|
setViewProjectReviewUserModalData({
|
||||||
...record,
|
...record,
|
||||||
eqQualificationinfoType: 1,
|
|
||||||
});
|
});
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
特种作业人员证书
|
特种证书
|
||||||
</Button>
|
|
||||||
<Button
|
|
||||||
type="link"
|
|
||||||
onClick={() => {
|
|
||||||
setViewProjectReviewUserModalOpen(true);
|
|
||||||
setViewProjectReviewUserModalData({
|
|
||||||
...record,
|
|
||||||
eqQualificationinfoType: 2,
|
|
||||||
});
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
安全人员证书列表
|
|
||||||
</Button>
|
</Button>
|
||||||
</Space>
|
</Space>
|
||||||
),
|
),
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@ function List(props) {
|
||||||
const { tableProps, getData } = useTable(props["inCheckList"], {
|
const { tableProps, getData } = useTable(props["inCheckList"], {
|
||||||
form,
|
form,
|
||||||
params: {
|
params: {
|
||||||
eqStakeholderLevelL: "one-level",
|
eqStakeholderLevel: "one-level",
|
||||||
eqSubcontractFlag: 0,
|
eqSubcontractFlag: 0,
|
||||||
eqProjectStatus: 1,
|
eqProjectStatus: 1,
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@ function List(props) {
|
||||||
const { tableProps, getData } = useTable(props["inCheckList"], {
|
const { tableProps, getData } = useTable(props["inCheckList"], {
|
||||||
form,
|
form,
|
||||||
params: {
|
params: {
|
||||||
eqStakeholderLevelL: "one-level",
|
eqStakeholderLevel: "one-level",
|
||||||
eqSubcontractFlag: 1,
|
eqSubcontractFlag: 1,
|
||||||
eqProjectStatus: 1,
|
eqProjectStatus: 1,
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@ function List(props) {
|
||||||
const { tableProps, getData } = useTable(props["inCheckList"], {
|
const { tableProps, getData } = useTable(props["inCheckList"], {
|
||||||
form,
|
form,
|
||||||
params: {
|
params: {
|
||||||
eqStakeholderLevelL: "two-level",
|
eqStakeholderLevel: "two-level",
|
||||||
eqProjectStatus: 1,
|
eqProjectStatus: 1,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue