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(
|
||||
"userQualificationLoading",
|
||||
"Post > @/basicInfo/userQualificationInfo/list",
|
||||
"Post > @/certificate/userCertificate/listPage",
|
||||
);
|
||||
export const qualificationReviewSubmit = declareRequest(
|
||||
"userQualificationLoading",
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ export const projectUpdate = declareRequest(
|
|||
`Put > @/xgfManager/project/edit`,
|
||||
);
|
||||
export const userQualificationInfo = declareRequest(
|
||||
`Post > @/basicInfo/userQualificationInfo/list`,
|
||||
`Post > @/certificate/userCertificate/listPage`,
|
||||
);
|
||||
export const projectDetail = declareRequest(
|
||||
"qualificationStatisticsLoading",
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ const ViewProjectReviewDetailsModal = (props) => {
|
|||
const { getFile } = useGetFile();
|
||||
const getData = async () => {
|
||||
const file = await getFile({
|
||||
eqType: UPLOAD_FILE_TYPE_ENUM["151"],
|
||||
eqType: UPLOAD_FILE_TYPE_ENUM["148"],
|
||||
eqForeignKey: props.data.projectFileId,
|
||||
});
|
||||
props.data.files = file;
|
||||
|
|
|
|||
|
|
@ -59,7 +59,7 @@ const ViewProjectReviewUserModal = (props) => {
|
|||
|
||||
return (
|
||||
<Modal
|
||||
title="特种作业人员证书"
|
||||
title="特种证书"
|
||||
width={1200}
|
||||
open
|
||||
maskClosable={false}
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ function List(props) {
|
|||
const { tableProps, getData } = useTable(props["inCheckList"], {
|
||||
form,
|
||||
params: {
|
||||
eqStakeholderLevelL: "two-level",
|
||||
eqStakeholderLevel: "two-level",
|
||||
eqProjectStatus: 7,
|
||||
},
|
||||
});
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ function List(props) {
|
|||
const { tableProps, getData } = useTable(props["inCheckList"], {
|
||||
form,
|
||||
params: {
|
||||
eqStakeholderLevelL: "one-level",
|
||||
eqStakeholderLevel: "one-level",
|
||||
eqSubcontractFlag: 0,
|
||||
eqProjectStatus: 3,
|
||||
},
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ function List(props) {
|
|||
const { tableProps, getData } = useTable(props["inCheckList"], {
|
||||
form,
|
||||
params: {
|
||||
eqStakeholderLevelL: "one-level",
|
||||
eqStakeholderLevel: "one-level",
|
||||
eqSubcontractFlag: 0,
|
||||
eqProjectStatus: 2,
|
||||
},
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ function List(props) {
|
|||
const { tableProps, getData } = useTable(props["inCheckList"], {
|
||||
form,
|
||||
params: {
|
||||
eqStakeholderLevelL: "one-level",
|
||||
eqStakeholderLevel: "one-level",
|
||||
eqSubcontractFlag: 1,
|
||||
eqProjectStatus: 3,
|
||||
},
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ function List(props) {
|
|||
const { tableProps, getData } = useTable(props["inCheckList"], {
|
||||
form,
|
||||
params: {
|
||||
eqStakeholderLevelL: "one-level",
|
||||
eqStakeholderLevel: "one-level",
|
||||
eqSubcontractFlag: 1,
|
||||
eqProjectStatus: 2,
|
||||
},
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ function List(props) {
|
|||
const { tableProps, getData } = useTable(props["inCheckList"], {
|
||||
form,
|
||||
params: {
|
||||
eqStakeholderLevelL: "two-level",
|
||||
eqStakeholderLevel: "two-level",
|
||||
eqProjectStatus: 3,
|
||||
},
|
||||
});
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ function List(props) {
|
|||
const { tableProps, getData } = useTable(props["inCheckList"], {
|
||||
form,
|
||||
params: {
|
||||
eqStakeholderLevelL: "two-level",
|
||||
eqStakeholderLevel: "two-level",
|
||||
eqProjectStatus: 2,
|
||||
},
|
||||
});
|
||||
|
|
|
|||
|
|
@ -567,7 +567,7 @@ const StepTwoComponent = (props) => {
|
|||
const [setChooseFilsListModalData] = useState({});
|
||||
const getData = async () => {
|
||||
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;
|
||||
}
|
||||
};
|
||||
|
|
@ -674,7 +674,7 @@ const StepTwoComponent = (props) => {
|
|||
const { id } = await uploadFile({
|
||||
single: false,
|
||||
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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -80,8 +80,6 @@ function Review(props) {
|
|||
const unlisten = props.history.listen((location) => {
|
||||
const searchParams = new URLSearchParams(location.search);
|
||||
const newId = searchParams.get("id");
|
||||
console.log(newId);
|
||||
|
||||
getData(newId);
|
||||
});
|
||||
return unlisten;
|
||||
|
|
|
|||
|
|
@ -389,7 +389,7 @@ const StepTwoComponent = (props) => {
|
|||
const [chooseFilsListModalData, setChooseFilsListModalData] = useState([]);
|
||||
const getData = async () => {
|
||||
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;
|
||||
}
|
||||
};
|
||||
|
|
@ -496,7 +496,7 @@ const StepTwoComponent = (props) => {
|
|||
const { id } = await uploadFile({
|
||||
single: false,
|
||||
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;
|
||||
}
|
||||
|
|
@ -635,23 +635,10 @@ const StepTwoComponent = (props) => {
|
|||
setViewProjectReviewUserModalOpen(true);
|
||||
setViewProjectReviewUserModalData({
|
||||
...record,
|
||||
eqQualificationinfoType: 1,
|
||||
});
|
||||
}}
|
||||
>
|
||||
特种作业人员证书
|
||||
</Button>
|
||||
<Button
|
||||
type="link"
|
||||
onClick={() => {
|
||||
setViewProjectReviewUserModalOpen(true);
|
||||
setViewProjectReviewUserModalData({
|
||||
...record,
|
||||
eqQualificationinfoType: 2,
|
||||
});
|
||||
}}
|
||||
>
|
||||
安全人员证书列表
|
||||
特种证书
|
||||
</Button>
|
||||
</Space>
|
||||
),
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ function List(props) {
|
|||
const { tableProps, getData } = useTable(props["inCheckList"], {
|
||||
form,
|
||||
params: {
|
||||
eqStakeholderLevelL: "one-level",
|
||||
eqStakeholderLevel: "one-level",
|
||||
eqSubcontractFlag: 0,
|
||||
eqProjectStatus: 1,
|
||||
},
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ function List(props) {
|
|||
const { tableProps, getData } = useTable(props["inCheckList"], {
|
||||
form,
|
||||
params: {
|
||||
eqStakeholderLevelL: "one-level",
|
||||
eqStakeholderLevel: "one-level",
|
||||
eqSubcontractFlag: 1,
|
||||
eqProjectStatus: 1,
|
||||
},
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ function List(props) {
|
|||
const { tableProps, getData } = useTable(props["inCheckList"], {
|
||||
form,
|
||||
params: {
|
||||
eqStakeholderLevelL: "two-level",
|
||||
eqStakeholderLevel: "two-level",
|
||||
eqProjectStatus: 1,
|
||||
},
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue