相关方资质准入申请添加 维修、保养 检测 其它高风险业务字段

master
853931625@qq.com 2026-05-28 17:48:00 +08:00
parent c915451215
commit ae6730336e
6 changed files with 74 additions and 16 deletions

View File

@ -22,6 +22,7 @@ import { NS_QUALIFICATION_APPLY, NS_QUALIFICATION_MAINTENANCE } from "~/enumerat
function Add(props) {
const query = useGetUrlQuery();
const [form] = Form.useForm();
const qualificationsTypeId = Form.useWatch("qualificationsTypeId", form);
const [currentStep, setCurrentStep] = useState(1);
const [formValues, setFormValues] = useState({});
const [specialList, setSpecialList] = useState([]);
@ -44,6 +45,9 @@ function Add(props) {
setSpecialList(data.specialList);
};
useEffect(()=>{
console.log(qualificationsTypeId);
},[qualificationsTypeId])
useEffect(() => {
query.id && getData();
}, []);
@ -274,6 +278,53 @@ const StepOneComponent = (props) => {
items: qualificationsListAll,
itemsField: { labelKey: "qualificationsName", valueKey: "id" },
},
{
name: "maintain",
label: "维修、保养",
hidden:qualificationsTypeId !=="sbl",
render: (
<DictionarySelect
dictValue="maintain"
mode="multiple"
onGetLabel={(label) => {
form.setFieldValue("maintainName", label);
}}
/>
),
},
{ name: "maintainName", label: "维修、保养名称", onlyForLabel: true },
{
name: "detection",
label: "检测",
hidden:qualificationsTypeId !=="sbl",
render: (
<DictionarySelect
dictValue="detection"
mode="multiple"
onGetLabel={(label) => {
form.setFieldValue("detectionName", label);
}}
/>
),
},
{ name: "detectionName", label: "检测名称", onlyForLabel: true },
{
name: "otherHighRisk",
label: "其它高风险业务",
hidden:qualificationsTypeId !=="sbl",
render: (
<DictionarySelect
dictValue="otherHighRisk"
mode="multiple"
onGetLabel={(label) => {
form.setFieldValue("otherHighRiskName", label);
}}
/>
),
},
{ name: "otherHighRiskName", label: "其它高风险业务名称", onlyForLabel: true },
{ name: "remarks", label: "备注", required: false, span: 24, render: FORM_ITEM_RENDER_ENUM.TEXTAREA },
]}
/>

View File

@ -50,6 +50,7 @@ function Add(props) {
const files = await getFile({ eqType: UPLOAD_FILE_TYPE_ENUM["156"], eqForeignKey: data.agreementFileUuid });
data.projectFiles = files;
}
setFormValues(data);
form.setFieldsValue(data);
let projectUserAddCmdList = [];
@ -70,6 +71,7 @@ function Add(props) {
}
setProjectFileAddCmdList(data.projectFileAddCmdList);
setUsercontentAddCmdList(projectUserAddCmdList);
console.log(projectUserAddCmdList);
setProjectLocalCompanyAddCmdList(data.projectLocalCompanyAddCmdList);
setProjectApprovalUserAddCmdList(data.projectApprovalUserAddCmdList);
setProjectApprovalFlowAddCmdList(data.projectApprovalFlowAddCmdList);
@ -131,6 +133,7 @@ function Add(props) {
{currentStep === 2
&& (
<StepTwo
ref={stepTwoRef}
formValues={formValues}
query={query}
@ -295,6 +298,7 @@ const StepOneComponent = (props) => {
isNeedDepartmentId={false}
onGetLabel={(label) => {
form.setFieldValue("userName", label);
console.log(label);
}}
onGetOption={(option) => {
if (option) {
@ -695,7 +699,7 @@ 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({ // 上传文件弹窗数据

View File

@ -306,6 +306,8 @@ function Review(props) {
{ label: "企业状态", children: (info.corpInfo?.corpStateName) ? info.corpInfo?.corpStateName : "-" },
{ label: "开户人", children: info.corpInfo?.accountContactName },
{ label: "统一社会信号代码", children: info.corpInfo?.code },
{ label: "开户银行", children: info.corpInfo?.depositBank },
{ label: "开户银行账号", children: info.corpInfo?.depositBankAccount },
{ label: "属地", children: (info.corpInfo?.provinceName) ? `${info.corpInfo?.provinceName}/${info.corpInfo?.cityName}/${info.corpInfo?.countryName}` : "-" },
{ label: "所属行业", children: [info.corpInfo?.corpType2Name, info.corpInfo?.corpType3Name, info.corpInfo?.corpType4Name, info.corpInfo?.corpTypeName].filter(Boolean).join("/") },
{ label: "单位经营地址", children: info.corpInfo?.addressBusiness },

View File

@ -38,11 +38,15 @@ function List(props) {
<Page headerTitle="隐患列表">
<Search
options={[
// { name: "source", label: "隐患来源", render: FORM_ITEM_RENDER_ENUM.SELECT, items: HIDDEN_SOURCE_ENUM },
// { name: "hiddenDesc", label: "隐患描述" },
{ name: "source", label: "隐患来源", render: FORM_ITEM_RENDER_ENUM.SELECT, items: HIDDEN_SOURCE_ENUM },
{ name: "hiddenDesc", label: "隐患描述" },
{ name: "hiddenFindTime", label: "隐患发现时间", render: FORM_ITEM_RENDER_ENUM.DATE_RANGE },
{ name: "hiddenFindDept", label: "隐患发现部门", render: <DepartmentSelectTree searchType={props.type === "corp" ? "current" : "inType"} params={{inType:[0,1,2]}} /> },
{
name: "hiddenType",
label: "隐患类型",
render: <DictionarySelectTree dictValue="hiddenType" onlyLastLevel />,
},
{
name: "hiddenLevel",
label: "隐患级别",
@ -59,20 +63,15 @@ function List(props) {
},
{ name: "confirmUserName", label: "确认人" },
{ name: "rectificationUserName", label: "整改人" },
{ name: "rectificationDeptId", label: "整改部门", render: <DepartmentSelectTree /> },
{ name: "rectificationDeptId", label: "整改部门", render: <DepartmentSelectTree searchType={props.type ==="corp" ?"current":"all" }/> },
{ name: "checkUserName", label: "验收人" },
// {
// name: "isRelated",
// label: "是否相关方",
// render: FORM_ITEM_RENDER_ENUM.SELECT,
// items: IS_RELATED_ENUM,
// },
{
name: "hiddenType",
label: "隐患类型",
render: <DictionarySelectTree dictValue="hiddenType" onlyLastLevel />,
name: "isAi",
label: "是否使用AI",
render: FORM_ITEM_RENDER_ENUM.SELECT,
items: [{ bianma: "1", name: "是" }, { bianma: "0", name: "否" }],
},
]}
form={form}
onFinish={getData}

View File

@ -26,7 +26,7 @@ function ScoreList(props) {
});
return (
<Page isShowAllAction={false}>
<Page headerTitle="得分列表" >
<Search
options={[
{

View File

@ -146,6 +146,8 @@ function ViewInfo(props) {
{ label: "企业状态", children: (corpInfoData.corpStateName) ? corpInfoData.corpStateName : "-" },
{ label: "开户人", children: corpInfoData.createName },
{ label: "统一社会信号代码", children: corpInfoData.code },
{ label: "开户银行", children: corpInfoData.depositBank },
{ label: "开户银行账号", children: corpInfoData.depositBankAccount },
{ label: "属地", children: corpInfoData.cityName },
{
label: "所属行业",