import { basicInfo, modifyRemarkInfo, enterpriseCusBasicInfo, enterpriseCusCorporationInfo, enterpriseCusFirstStockInfo, enterpriseCusRefereeInfo, individualCusBasicInfo, individualCusFundInfo } from "./formItem.config"; import { IMAGEDATACONFIGDEFVALUE } from "./defValues.config"; import { customerBasicInfoDefault, enterpriseCusBasicInfoDefault, enterpriseCusCorporationInfoDefault, enterpriseCusFirstStockInfoDefault, enterpriseCusRefereeInfoDefault, indiviualCusBasicInfoDefault, fundInfoDefault, modifyRemarkInfoDefault } from "./defValues.config"; import { IMAGEDATACONFIGRULES, modifyMarkMsg } from "./rules.config"; import { historyMaintainInfo, individualCusContactsInfo, individualCusContactsInfoDetail, individualCusHouseInfo, individualCusHouseInfoDetail, enterpriseCusOtherShareholder, enterpriseCusOtherShareholderDetail, enterpriseCusFinanceInfo, enterpriseCusFinanceInfoDetail } from "./column.config"; /** * * @param {*} type 客户类型 01-个人 02-企业 * @param {*} isView */ // 左侧菜单配置基本信息菜单配置 export const clientsConfigMenus = (type, isView, operation = "") => { // 个人客户 if (type === "01") { return [ { label: "基本信息", isActive: true, defColor: "", isShow: true, name: "IMAGEDATACONFIGBASEINFO", type: "FORMS", children: [ { label: "基本信息", isShow: true, name: "baseInfo", type: "FORMS", formItems: [...basicInfo], defValues: { ...customerBasicInfoDefault }, formRules: { ...IMAGEDATACONFIGRULES(isView) } } ] }, { label: "基础信息", isActive: false, defColor: "", isShow: true, name: "IMAGEDATACONFIGBASEINFO", type: "FORMS", children: [ { label: "基础信息", isShow: true, name: "personBasicsInfo", type: "FORMS", formItems: [...individualCusBasicInfo], defValues: { ...indiviualCusBasicInfoDefault }, formRules: { ...IMAGEDATACONFIGRULES(isView) } } ] }, { label: "公积金信息", isActive: false, defColor: "", isShow: true, name: "IMAGEDATACONFIGBASEINFO", type: "FORMS", children: [ { label: "公积金信息", isShow: true, name: "fundInfo", type: "FORMS", formItems: [...individualCusFundInfo], defValues: { ...fundInfoDefault }, formRules: { ...IMAGEDATACONFIGRULES(isView) } } ] }, { label: "联系人信息", isActive: false, defColor: "", isShow: true, name: "IMAGEDATACONFIGBASEINFO", type: "FORMS", children: [ { label: "联系人信息", isShow: true, name: "contactsInfo", type: "TABLE", tableHeader: operation === "01" ? [...individualCusContactsInfo] : [...individualCusContactsInfoDetail], defValues: { ...IMAGEDATACONFIGDEFVALUE }, formRules: { ...IMAGEDATACONFIGRULES(isView) } } ] }, { label: "房产信息", isActive: false, defColor: "", isShow: true, name: "IMAGEDATACONFIGBASEINFO", type: "FORMS", children: [ { label: "房产信息", isShow: true, name: "houseInfo", type: "TABLE", tableHeader: operation === "01" ? [...individualCusHouseInfo] : [...individualCusHouseInfoDetail], defValues: { ...IMAGEDATACONFIGDEFVALUE }, formRules: { ...IMAGEDATACONFIGRULES(isView) } } ] }, { label: "历史维护信息", isActive: false, defColor: "", isShow: true, name: "IMAGEDATACONFIGBASEINFO", type: "FORMS", children: [ { label: "历史维护信息", isShow: true, name: "historyMaintainInfo", type: "TABLE", tableHeader: [...historyMaintainInfo], defValues: { ...IMAGEDATACONFIGDEFVALUE }, formRules: { ...IMAGEDATACONFIGRULES(isView) } } ] }, { label: "修改备注信息", isActive: false, defColor: "", isShow: true, name: "IMAGEDATACONFIGBASEINFO", type: "FORMS", children: [ { label: "修改备注信息", isShow: true, name: "markInfo", type: "FORMS", formItems: [...modifyRemarkInfo], defValues: { ...modifyRemarkInfoDefault }, formRules: { ...modifyMarkMsg(isView) } } ] } ]; } // 企业客户 if (type === "02") { return [ { label: "基本信息", isActive: true, defColor: "", isShow: true, name: "BASEINFO", type: "FORMS", children: [ { label: "基本信息", isShow: true, name: "baseInfo", type: "FORMS", formItems: [...basicInfo], defValues: { ...customerBasicInfoDefault }, formRules: { ...IMAGEDATACONFIGRULES(isView) } } ] }, { label: "基础信息", isActive: false, defColor: "", isShow: true, name: "BASICSINFO", type: "FORMS", children: [ { label: "基础信息", isShow: true, name: "basicsInfo", type: "FORMS", formItems: [...enterpriseCusBasicInfo], defValues: { ...enterpriseCusBasicInfoDefault }, formRules: { ...IMAGEDATACONFIGRULES(isView) } } ] }, { label: "法人信息", isActive: false, defColor: "", isShow: true, name: "LEGALINFO", type: "FORMS", children: [ { label: "法人信息", isShow: true, name: "legalInfo", type: "FORMS", formItems: [...enterpriseCusCorporationInfo], defValues: { ...enterpriseCusCorporationInfoDefault }, formRules: { ...IMAGEDATACONFIGRULES(isView) } } ] }, { label: "第一股东信息", isActive: false, defColor: "", isShow: true, name: "FIRSTSHAREHOLDERINFO", type: "FORMS", children: [ { label: "第一股东信息", isShow: true, name: "firstShareholderInfo", type: "FORMS", formItems: [...enterpriseCusFirstStockInfo], defValues: { ...enterpriseCusFirstStockInfoDefault }, formRules: { ...IMAGEDATACONFIGRULES(isView) } } ] }, { label: "其他股东", isActive: false, defColor: "", isShow: true, name: "OTHERSHAREHOLDINFO", type: "FORMS", children: [ { label: "其他股东", isShow: true, name: "otherShareholderInfo", type: "TABLE", tableHeader: operation === "02" ? [...enterpriseCusOtherShareholderDetail] : [...enterpriseCusOtherShareholder], defValues: { ...IMAGEDATACONFIGDEFVALUE }, formRules: { ...IMAGEDATACONFIGRULES(isView) } } ] }, { label: "推荐人信息", isActive: false, defColor: "", isShow: true, name: "REFEREEINFO", type: "FORMS", children: [ { label: "推荐人信息", isShow: true, name: "refereeInfo", type: "FORMS", formItems: [...enterpriseCusRefereeInfo], defValues: { ...enterpriseCusRefereeInfoDefault }, formRules: { ...IMAGEDATACONFIGRULES(isView) } } ] }, { label: "财务信息", isActive: false, defColor: "", isShow: true, name: "FINANCEINFO", type: "FORMS", children: [ { label: "财务信息", isShow: true, name: "financeInfo", type: "TABLE", tableHeader: operation === "02" ? [...enterpriseCusFinanceInfoDetail] : [...enterpriseCusFinanceInfo], defValues: { ...IMAGEDATACONFIGDEFVALUE }, formRules: { ...IMAGEDATACONFIGRULES(isView) } } ] }, { label: "历史维护信息", isActive: false, defColor: "", isShow: true, name: "HISTORYMAINTAININFO", type: "FORMS", children: [ { label: "历史维护信息", isShow: true, name: "historyMaintainInfo", type: "TABLE", tableHeader: [...historyMaintainInfo], defValues: { ...IMAGEDATACONFIGDEFVALUE }, formRules: { ...IMAGEDATACONFIGRULES(isView) } } ] }, { label: "修改备注信息", isActive: false, defColor: "", isShow: true, name: "MARKINFO", type: "FORMS", children: [ { label: "修改备注信息", isShow: true, name: "markInfo", type: "FORMS", formItems: [...modifyRemarkInfo], defValues: { ...modifyRemarkInfoDefault }, formRules: { ...modifyMarkMsg(isView) } } ] } ]; } };