diff --git a/src/api/qualificationApply/index.js b/src/api/qualificationApply/index.js index 511f112..d693fc8 100644 --- a/src/api/qualificationApply/index.js +++ b/src/api/qualificationApply/index.js @@ -3,6 +3,10 @@ import { declareRequest } from "@cqsjjb/jjb-dva-runtime"; export const corpInfoList = declareRequest( `Post > @/basicInfo/corpInfo/list`, ); +export const corpInfoListAll = declareRequest( + "domainGroupLoading", + "Get > /basicInfo/corpInfo/listAll", +); export const qualificationsListAll = declareRequest( `Post > @/xgfManager/qualifications/listAll`, ); diff --git a/src/api/qualificationStatistics/index.js b/src/api/qualificationStatistics/index.js index 058aae6..732d02e 100644 --- a/src/api/qualificationStatistics/index.js +++ b/src/api/qualificationStatistics/index.js @@ -3,6 +3,10 @@ import { declareRequest } from "@cqsjjb/jjb-dva-runtime"; export const corpInfoList = declareRequest( `Post > @/basicInfo/corpInfo/list`, ); +export const corpInfoListAll = declareRequest( + "domainGroupLoading", + "Get > /basicInfo/corpInfo/listAll", +); export const qualificationStatistics = declareRequest( "qualificationStatisticsLoading", `Get > /xgfManager/qualificationsApply/statistics`, diff --git a/src/pages/Container/BranchCompany/Qualification/Apply/Add/index.js b/src/pages/Container/BranchCompany/Qualification/Apply/Add/index.js index 8d70752..24e8d19 100644 --- a/src/pages/Container/BranchCompany/Qualification/Apply/Add/index.js +++ b/src/pages/Container/BranchCompany/Qualification/Apply/Add/index.js @@ -25,7 +25,7 @@ const validateQualificationBusiness = (values) => { if (values.qualificationsTypeId !== "sbl") return true; - if ([values.maintain, values.detection, values.otherHighRiskName].some(hasSelectedValue)) + if ([values.maintain, values.detection, values.otherHighRisk].some(hasSelectedValue)) return true; message.error("“维修、保养”“检测”“其它高风险业务”,至少选择一项。"); @@ -46,14 +46,14 @@ function Add(props) { const getData = async () => { const { data } = await props["qualificationApplyInfo"]({ id: query.id }); - console.log(data); data.maintain = data.maintain && data.maintain.split(",") data.detection = data.detection && data.detection.split(",") data.otherHighRisk = data.otherHighRisk && data.otherHighRisk.split(",") + data.serviceEnterprise = data.serviceEnterprise && data.serviceEnterprise.split(",") data.detectionName = data.detectionName && data.detectionName.split(",") data.maintainName = data.maintainName && data.maintainName.split(",") data.otherHighRiskName = data.otherHighRiskName && data.otherHighRiskName.split(",") - + data.serviceEnterpriseName = data.serviceEnterpriseName && data.serviceEnterpriseName.split(",") // 重新提交时,删除id if (query.resubmit) { delete data.id; @@ -66,9 +66,6 @@ function Add(props) { setSpecialList(data.specialList); }; - useEffect(()=>{ - console.log(qualificationsTypeId); - },[qualificationsTypeId]) useEffect(() => { query.id && getData(); }, []); @@ -139,6 +136,7 @@ const StepOneComponent = (props) => { // const [corpTypeList, setCorpTypeList] = useState([2]); const [corpInfoList, setCorpInfoList] = useState([]); + const [fgsCorpInfoList, setFgsCorpInfoList] = useState([]); const [qualificationsListAll, setQualificationsListAll] = useState([]); const getQualificationsListAll = async () => { @@ -152,9 +150,15 @@ const StepOneComponent = (props) => { const { data } = await props["corpInfoList"]({ pageIndex: 1, pageSize: 1000, eqType: type || 1, exCludeSelf: exCludeSelf ?? 1 }); setCorpInfoList(data); }; + const getFgscorpFun = async () => { + const { data } = await props["corpInfoListAll"]({inType:[0,6]}); + setFgsCorpInfoList(data); + } + useEffect(() => { getCorpInfoList(1, 0); + getFgscorpFun() form.setFieldsValue(props.formValues); }, []); @@ -356,6 +360,32 @@ const StepOneComponent = (props) => { ), }, { name: "otherHighRiskName", label: "其它高风险业务名称", onlyForLabel: true }, + { + name: "serviceEnterprise", + label: "服务企业(多选)", + hidden:qualificationsTypeId !=="sbl", + items: fgsCorpInfoList, + render: FORM_ITEM_RENDER_ENUM.SELECT, + itemsField: { valueKey: "id", labelKey: "corpName" }, + componentProps: { + mode:"multiple", + onChange: (event) => { + const arr = [] + if(event.length >0){ + event.forEach(item => { + arr.push(getLabelName({ + list: fgsCorpInfoList, + status: item, + idKey: "id", + nameKey: "corpName", + })); + }) + } + form.setFieldValue("serviceEnterpriseName", arr); + }, + }, + }, + { name: "serviceEnterpriseName", label: "服务企业名称", onlyForLabel: true }, { name: "remarks", label: "备注", required: false, span: 24, render: FORM_ITEM_RENDER_ENUM.TEXTAREA }, ]} /> diff --git a/src/pages/Container/BranchCompany/Qualification/Apply/View/index.js b/src/pages/Container/BranchCompany/Qualification/Apply/View/index.js index 888ff2a..44e4f9e 100644 --- a/src/pages/Container/BranchCompany/Qualification/Apply/View/index.js +++ b/src/pages/Container/BranchCompany/Qualification/Apply/View/index.js @@ -75,7 +75,9 @@ function View(props) { info.qualificationsTypeId === "sbl" ? [ {label: "维修、保养", children: info.maintainName && info.maintainName}, {label: "检测", children: info.detectionName && info.detectionName}, - {label: "其它高风险业务", children: info.otherHighRiskName && info.otherHighRiskName, span: 2}, + {label: "其它高风险业务", children: info.otherHighRiskName && info.otherHighRiskName, }, + {label: "服务企业", children: info.serviceEnterpriseName && info.serviceEnterpriseName, }, + ] : [] ), { label: "备注", children: info.remarks }, diff --git a/src/pages/Container/Stakeholder/ProjectReview/ProjectFilingApplication/Add/index.js b/src/pages/Container/Stakeholder/ProjectReview/ProjectFilingApplication/Add/index.js index d5eabf0..803d441 100644 --- a/src/pages/Container/Stakeholder/ProjectReview/ProjectFilingApplication/Add/index.js +++ b/src/pages/Container/Stakeholder/ProjectReview/ProjectFilingApplication/Add/index.js @@ -71,7 +71,7 @@ function Add(props) { } setProjectFileAddCmdList(data.projectFileAddCmdList); setUsercontentAddCmdList(projectUserAddCmdList); - console.log(projectUserAddCmdList); + setProjectLocalCompanyAddCmdList(data.projectLocalCompanyAddCmdList); setProjectApprovalUserAddCmdList(data.projectApprovalUserAddCmdList); setProjectApprovalFlowAddCmdList(data.projectApprovalFlowAddCmdList); @@ -298,7 +298,6 @@ const StepOneComponent = (props) => { isNeedDepartmentId={false} onGetLabel={(label) => { form.setFieldValue("userName", label); - console.log(label); }} onGetOption={(option) => { if (option) { @@ -699,7 +698,6 @@ const StepTwoComponent = forwardRef((props, ref) => { const projectApprovalUserAddCmdList = props.projectApprovalUserAddCmdList || []; // 项目审核人员 const projectApprovalFlowAddCmdList = props.projectApprovalFlowAddCmdList || []; // 项目审核流程 const corpinfoId = props.corpinfoId; // 公司id - console.log(usercontentList); const [uploadFileModalOpen, setUploadFileModalOpen] = useState(false); // 上传文件弹窗显示 const [usercontentOpen, setUsercontentOpen] = useState(false); // 选择项目审核人员弹窗显示 const [uploadFileModalData, setUploadFileModalData] = useState({ // 上传文件弹窗数据 diff --git a/src/pages/Container/Stakeholder/ProjectReview/ProjectFilingApplication/ReView/index.js b/src/pages/Container/Stakeholder/ProjectReview/ProjectFilingApplication/ReView/index.js index 4f4509f..c04cb8d 100644 --- a/src/pages/Container/Stakeholder/ProjectReview/ProjectFilingApplication/ReView/index.js +++ b/src/pages/Container/Stakeholder/ProjectReview/ProjectFilingApplication/ReView/index.js @@ -203,6 +203,7 @@ function Review(props) { }; const openKeyProjectModal = (params = {}) => { + setAuditPassParams(params); keyProjectForm.resetFields(); keyProjectForm.setFieldsValue({ @@ -214,7 +215,7 @@ function Review(props) { jurisdictionCorpinfoId: userInfo.corpinfoId, jurisdictionDepartmentId: userInfo.departmentId, xgfCorpinfoId: info.corpInfo && info.corpInfo.id, - xgfMasterUserId: info.corpInfo && info.corpInfo.accountContactId, + xgfMasterUserId: info.corpInfo && info.corpInfo.updateId, xgfMasterPhone: info.corpInfo && info.corpInfo.lrMobile, supervisionUnitFlag: 0, }); @@ -264,7 +265,7 @@ function Review(props) { jurisdictionCorpinfoId: userInfo.corpinfoId, jurisdictionDepartmentId: userInfo.departmentId, xgfCorpinfoId: info.corpInfo && info.corpInfo.id, - xgfMasterUserId: info.corpInfo && info.corpInfo.accountContactId, + xgfMasterUserId: info.corpInfo && info.corpInfo.updateId, xgfMasterPhone: info.corpInfo && info.corpInfo.lrMobile, keyProjectId: agreementFileUuid, @@ -669,7 +670,7 @@ function Review(props) { form={keyProjectForm} showActionButtons={false} labelCol={{ span: 8 }} - values={{ projectWorkFlag: 1, supervisionUnitFlag: 0 }} + values={{ projectWorkFlag: 1, supervisionUnitFlag: 0,masterDepartmentId: userInfo.departmentId }} onValuesChange={(changedValues) => { if ("projectWorkFlag" in changedValues) { keyProjectForm.setFieldsValue({ @@ -705,7 +706,7 @@ function Review(props) { hidden: projectWorkFlag !== 1, render: (