Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

2 linhas
6.7KB

  1. import{_ as L}from"./index.be610ec2.js";import{d as S,B as $,r as m,b as E,J as I,o as D,D as R,c as i,e as f,f as v,h as e,i as t,F as C,H as j,u as B,G}from"./index.de29349e.js";import{a as T}from"./getIsShowRegionTree.4961acc7.js";import"./unitManage.9716e421.js";const A=S({name:"projectCollectionEnterManageInfo"}),K=Object.assign(A,{props:{detail:{type:Object}},setup(V,{expose:h}){const M=V,{baseProjConsClassOptions:y}=$.dictStore.globalDicts||{},b=m([]),c=m(),r=m({}),O=(o,l,p)=>{if(l==="")return p(new Error("\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u624B\u673A\u53F7"));if(/^(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[0-35-9])\d{8}$/.test(l))p();else return p(new Error("\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u624B\u673A\u53F7"))},U={areaCode:[{required:!0,message:"\u8BF7\u9009\u62E9\u884C\u653F\u533A\u5212",trigger:"change"}],buildOrg:[{required:!0,message:"\u8BF7\u9009\u62E9\u5EFA\u8BBE\u5355\u4F4D",trigger:"change"}],responsibleMan:[{required:!0,message:"\u8BF7\u586B\u5199\u9879\u76EE\u8D1F\u8D23\u4EBA",trigger:"blur"}],responsibleManMobile:[{required:!0,message:"\u8BF7\u586B\u5199\u9879\u76EE\u8D1F\u8D23\u4EBA\u624B\u673A\u53F7",trigger:"blur"},{validator:O,trigger:"blur"}],contactName:[{required:!0,message:"\u8BF7\u586B\u5199\u9879\u76EE\u8054\u7CFB\u4EBA",trigger:"blur"}],contactPhone:[{required:!0,message:"\u8BF7\u586B\u5199\u9879\u76EE\u8054\u7CFB\u4EBA\u624B\u673A\u53F7",trigger:"blur"},{validator:O,trigger:"blur"}],higherSuperOrg:[{required:!0,message:"\u8BF7\u9009\u62E9\u4E0A\u7EA7\u4E1A\u52A1\u4E3B\u7BA1\u90E8\u95E8",trigger:"change"}],superOrg:[{required:!0,message:"\u8BF7\u9009\u62E9\u672C\u7EA7\u4E1A\u52A1\u4E3B\u7BA1\u90E8\u95E8",trigger:"change"}],constructionOrg:[{required:!0,message:"\u8BF7\u9009\u62E9\u5EFA\u8BBE\u5355\u4F4D",trigger:"change"}],buildLevel:[{required:!0,message:"\u8BF7\u9009\u62E9\u5EFA\u8BBE\u5C42\u7EA7",trigger:"change"}]},n=E({field:void 0,unitVisible:!1,data:void 0,title:void 0,type:void 0,params:void 0}),g=o=>{n.field=o,n.unitVisible=!0,n.title="\u9009\u62E9\u5355\u4F4D",n.type="UNIT",n.showCheckbox=!0,n.defaultProps={children:"children",label:"title",value:"key",isLeaf:"isLeaf"},n.params={onlyUnit:!0},n.data=r.value[`${o}Code`]?[{key:r.value[`${o}Code`],title:r.value[o]}]:[]},P=()=>{n.unitVisible=!1},w=o=>{r.value[`${n.field}Code`]=(o==null?void 0:o[0].key)||void 0,r.value[n.field]=(o==null?void 0:o[0].title)||void 0};return h({formRef:c,formData:r}),I(()=>M.detail,o=>{o&&(r.value={areaCode:["330500",o.areaCode],responsibleMan:o.responsibleMan,responsibleManMobile:o.responsibleManMobile,contactName:o.contactName,contactPhone:o.contactPhone,higherSuperOrg:o.higherSuperOrg,superOrg:o.superOrg,constructionOrg:o.constructionOrg,constructionOrgCreditCode:o.constructionOrgCreditCode,buildLevel:o.buildLevel,buildOrg:o.buildOrg,buildOrgCode:o.buildOrgCode})}),D(async()=>{b.value=[(await R(T({SUPER_ADMIN:!1,REGION_MANAGER:!1}))).data]}),(o,l)=>{const p=i("el-cascader"),u=i("el-form-item"),s=i("el-col"),d=i("el-input"),x=i("el-option"),k=i("el-select"),N=i("el-row"),q=i("el-form");return f(),v(C,null,[e(q,{ref_key:"formRef",ref:c,model:r.value,rules:U,"label-position":"top","label-suffix":":","scroll-to-error":""},{default:t(()=>[e(N,{gutter:40},{default:t(()=>[e(s,{span:8},{default:t(()=>[e(u,{label:"\u884C\u653F\u533A\u5212",prop:"areaCode"},{default:t(()=>[e(p,{modelValue:r.value.areaCode,"onUpdate:modelValue":l[0]||(l[0]=a=>r.value.areaCode=a),class:"w-full",props:{label:"name",value:"regionCode"},options:b.value},null,8,["modelValue","options"])]),_:1})]),_:1}),e(s,{span:8},{default:t(()=>[e(u,{label:"\u9879\u76EE\u8D1F\u8D23\u4EBA",prop:"responsibleMan"},{default:t(()=>[e(d,{modelValue:r.value.responsibleMan,"onUpdate:modelValue":l[1]||(l[1]=a=>r.value.responsibleMan=a),maxlength:"50",placeholder:"\u8BF7\u586B\u5199"},null,8,["modelValue"])]),_:1})]),_:1}),e(s,{span:8},{default:t(()=>[e(u,{label:"\u9879\u76EE\u8D1F\u8D23\u4EBA\u624B\u673A\u53F7",prop:"responsibleManMobile"},{default:t(()=>[e(d,{modelValue:r.value.responsibleManMobile,"onUpdate:modelValue":l[2]||(l[2]=a=>r.value.responsibleManMobile=a),maxlength:"11",placeholder:"\u8BF7\u586B\u5199"},null,8,["modelValue"])]),_:1})]),_:1}),e(s,{span:6},{default:t(()=>[e(u,{label:"\u9879\u76EE\u8054\u7CFB\u4EBA",prop:"contactName"},{default:t(()=>[e(d,{modelValue:r.value.contactName,"onUpdate:modelValue":l[3]||(l[3]=a=>r.value.contactName=a),maxlength:"50",placeholder:"\u8BF7\u586B\u5199"},null,8,["modelValue"])]),_:1})]),_:1}),e(s,{span:6},{default:t(()=>[e(u,{label:"\u9879\u76EE\u8054\u7CFB\u4EBA\u624B\u673A\u53F7",prop:"contactPhone"},{default:t(()=>[e(d,{modelValue:r.value.contactPhone,"onUpdate:modelValue":l[4]||(l[4]=a=>r.value.contactPhone=a),maxlength:"11",placeholder:"\u8BF7\u586B\u5199"},null,8,["modelValue"])]),_:1})]),_:1}),e(s,{span:6},{default:t(()=>[e(u,{label:"\u4E0A\u7EA7\u4E1A\u52A1\u4E3B\u7BA1\u90E8\u95E8",prop:"higherSuperOrg"},{default:t(()=>[e(d,{modelValue:r.value.higherSuperOrg,"onUpdate:modelValue":l[5]||(l[5]=a=>r.value.higherSuperOrg=a),placeholder:"\u8BF7\u9009\u62E9",readonly:"",onClick:l[6]||(l[6]=a=>g("higherSuperOrg"))},null,8,["modelValue"])]),_:1})]),_:1}),e(s,{span:6},{default:t(()=>[e(u,{label:"\u672C\u7EA7\u4E1A\u52A1\u4E3B\u7BA1\u90E8\u95E8",prop:"superOrg"},{default:t(()=>[e(d,{modelValue:r.value.superOrg,"onUpdate:modelValue":l[7]||(l[7]=a=>r.value.superOrg=a),placeholder:"\u8BF7\u9009\u62E9",readonly:"",onClick:l[8]||(l[8]=a=>g("superOrg"))},null,8,["modelValue"])]),_:1})]),_:1}),e(s,{span:8},{default:t(()=>[e(u,{label:"\u5EFA\u8BBE\u5355\u4F4D",prop:"buildOrg"},{default:t(()=>[e(d,{modelValue:r.value.buildOrg,"onUpdate:modelValue":l[9]||(l[9]=a=>r.value.buildOrg=a),placeholder:"\u8BF7\u9009\u62E9",readonly:"",onClick:l[10]||(l[10]=a=>g("buildOrg"))},null,8,["modelValue"])]),_:1})]),_:1}),e(s,{span:8},{default:t(()=>[e(u,{label:"\u5EFA\u8BBE\u5355\u4F4D\u7EDF\u4E00\u4FE1\u7528\u4EE3\u7801",prop:"constructionOrgCreditCode"},{default:t(()=>[e(d,{modelValue:r.value.constructionOrgCreditCode,"onUpdate:modelValue":l[11]||(l[11]=a=>r.value.constructionOrgCreditCode=a),maxlength:"50",placeholder:"\u8BF7\u586B\u5199"},null,8,["modelValue"])]),_:1})]),_:1}),e(s,{span:8},{default:t(()=>[e(u,{label:"\u5EFA\u8BBE\u5C42\u7EA7",prop:"buildLevel"},{default:t(()=>[e(k,{modelValue:r.value.buildLevel,"onUpdate:modelValue":l[12]||(l[12]=a=>r.value.buildLevel=a),placeholder:"\u8BF7\u9009\u62E9",class:"w-full"},{default:t(()=>[(f(!0),v(C,null,j(B(y),(a,_)=>(f(),G(x,{key:_,label:a,value:_*1},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1})]),_:1},8,["model"]),e(L,{visible:n.unitVisible,"show-checkbox":!1,"default-data":n.data,title:n.title,type:n.type,"default-props":n.defaultProps,params:n.params,onClose:P,onGetSelectUnit:w},null,8,["visible","default-data","title","type","default-props","params"])],64)}}});export{K as default};