import{d as ne,B as I,C as ie,r as P,M as ue,b as U,o as O,D as de,J as k,c as v,e as f,f as y,h as l,i as r,F as V,H as S,u as pe,G as C,k as be,j as B,t as me,X as ve}from"./index.88314652.js";import{_ as fe}from"./index.ce78f549.js";import Pe from"./userDialog.a43047d4.js";import ce from"./lineOrgDialog.dc4435b4.js";import{a as Ce}from"./indicatorTemplate.d39a8306.js";import"./unitManage.f0f6d1ad.js";import"./index.52f0c4e2.js";const De=ne({name:"projectCollectionEnterBasicInfo"}),ke=Object.assign(De,{props:{detail:{type:Object},dictionaryList:{type:Array,default:()=>[]},isSupplemented:{type:Boolean,default:!1}},emits:["getBasicInfoData"],setup(u,{expose:A,emit:E}){const{projectConTypeOptions:R}=I.dictStore.globalDicts||{},_=u,G=ie(I.userStore).userInfo||{},j=P(),a=P({}),N=(o,e,i)=>{e||i(),a.value.baseProjPrincipal===a.value.baseProjContacts&&a.value.baseProjPrincipalCall===a.value.baseProjContactsCall?i("\u9879\u76EE\u8D1F\u8D23\u4EBA\u4E0E\u9879\u76EE\u8054\u7CFB\u4EBA\u4E0D\u80FD\u76F8\u540C"):i()},F=ue(()=>a.value.baseProjIsConfidentiality==="02"?{baseProjIsConfidentiality:[{required:!0,message:"\u8BF7\u9009\u62E9\u662F\u5426\u6D89\u5BC6\u9879\u76EE"}],baseProjName:[{required:!0,message:"\u8BF7\u586B\u5199\u9879\u76EE\u540D\u79F0",trigger:"blur"}]}:{baseProjIsConfidentiality:[{required:!0,message:"\u8BF7\u9009\u62E9\u662F\u5426\u6D89\u5BC6\u9879\u76EE"}],baseProjName:[{required:!0,message:"\u8BF7\u586B\u5199\u9879\u76EE\u540D\u79F0"}],baseProjType:[{required:!0,message:"\u8BF7\u9009\u62E9\u9879\u76EE\u7C7B\u578B"}],baseArea:[{required:!0,message:"\u8BF7\u9009\u62E9\u6240\u5C5E\u533A\u5212"}],baseConstructionType:[{required:!0,message:"\u8BF7\u9009\u62E9\u5185\u5BB9\u7C7B\u522B"}],baseProjSetProg:[{required:!0,message:"\u8BF7\u9009\u62E9\u9879\u76EE\u72B6\u6001"}],baseProvManDeprtType:[{required:!0,message:"\u8BF7\u9009\u62E9\u4E0A\u7EA7\u4E3B\u7BA1\u5355\u4F4D\u7C7B\u578B"}],baseProvManDeprt:[{required:!0,message:"\u8BF7\u9009\u62E9\u4E0A\u7EA7\u4E3B\u7BA1\u5355\u4F4D"}],baseManDeprt:[{required:!0,message:"\u8BF7\u9009\u62E9\u672C\u7EA7\u4E3B\u7BA1\u5355\u4F4D"}],baseManDepartUsci:[{required:!0,message:"\u8BF7\u586B\u5199\u672C\u7EA7\u4E3B\u7BA1\u5355\u4F4D\u7EDF\u4E00\u793E\u4F1A\u4FE1\u7528\u4EE3\u7801"}],baseBuildDeprt:[{required:!0,message:"\u8BF7\u586B\u5199\u5EFA\u8BBE\u5355\u4F4D"}],baseBuildDepartUsci:[{required:!0,message:"\u8BF7\u586B\u5199\u5EFA\u8BBE\u5355\u4F4D\u7EDF\u4E00\u4FE1\u7528\u4EE3\u7801"}],baseProjPrincipal:[{required:!0,message:"\u8BF7\u9009\u62E9\u9879\u76EE\u8D1F\u8D23\u4EBA"},{validator:N}],baseProjPrincipalCall:[{required:!0,message:"\u8BF7\u9009\u62E9\u9879\u76EE\u8D1F\u8D23\u4EBA"}],baseProjContacts:[{required:!0,message:"\u8BF7\u9009\u62E9\u9879\u76EE\u8054\u7CFB\u4EBA"},{validator:N}],baseProjContactsCall:[{required:!0,message:"\u8BF7\u9009\u62E9\u8054\u7CFB\u4EBA\u624B\u673A\u53F7\u7801"}],systemPosition:[{required:!0,message:"\u8BF7\u586B\u5199\u7CFB\u7EDF\u5B9A\u4F4D"}],templateType:[{required:!0,message:"\u8BF7\u9009\u62E9\u7EE9\u6548\u8BC4\u4EF7\u7C7B\u578B"}]}),M=P({}),z=async(o,e)=>{const i=await ve(e||G.value.empPosUnitCode);M.value[o]=!!i.data.unifiedSocialCreditCode,a.value[o]=i.data.unifiedSocialCreditCode||a.value[o]},J=P([]),n=U({field:void 0,unitVisible:!1,data:void 0,title:void 0,type:void 0,params:void 0}),T=o=>{n.fieldName=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=a.value[`${o}Ding`]?[{key:a.value[`${o}Ding`],title:a.value[o]}]:[],console.log(n.data)},H=()=>{n.unitVisible=!1},X=o=>{a.value[n.fieldName+"Ding"]=(o==null?void 0:o[0].key)||void 0,a.value[n.fieldName]=(o==null?void 0:o[0].title)||void 0,(n.fieldName==="baseManDeprt"||n.fieldName==="baseBuildDeprt")&&z(n.fieldName==="baseManDeprt"?"baseManDepartUsci":"baseBuildDepartUsci",a.value[n.fieldName+"Ding"])},D=U({visible:!1,params:{}}),q=P(),w=P(),g=(o,e)=>{D.visible=!0,q.value=o,w.value=e},Y=o=>{a.value[q.value]=o.name,a.value[w.value]=o.phoneNo},K=(o,e)=>{a.value.baseProvManDeprtDing="",a.value.baseProvManDeprt=""},c=U({visible:!1,data:void 0}),Q=()=>{c.visible=!0,c.data={businessStripCode:a.value.baseProvManDeprtDing}},W=o=>{a.value.baseProvManDeprtDing=o.businessStripCode,a.value.baseProvManDeprt=o.businessStripName,c.visible=!1},Z=E,b=P(),h=P(),ee=async()=>{var e;const o=await Ce({pageNumber:1,pageSize:1e4});h.value=((e=o==null?void 0:o.data)==null?void 0:e.records)||[]};return A({formRef:j,formData:a}),O(async()=>{ee();const o=await de({regionCode:330500,regionLevel:2});J.value=o.data}),k(()=>_.detail,o=>{var e,i,d;o&&(_.isSupplemented&&(b.value=o.baseinfo),a.value={...o.baseinfo,baseProvManDeprtType:((e=o.baseinfo)==null?void 0:e.baseProvManDeprtType)+""||"",baseConstructionType:((d=(i=o.baseinfo)==null?void 0:i.baseConstructionType)==null?void 0:d.split("\uFF1B"))||[]})},{deep:!0}),k(()=>a.value.baseProjIsConfidentiality,o=>{j.value.clearValidate()}),k(()=>a.value,o=>{Z("getBasicInfoData",a.value)},{deep:!0}),O(()=>{a.value.baseProjIsConfidentiality="01"}),(o,e)=>{const i=v("el-input"),d=v("el-form-item"),p=v("el-col"),x=v("el-option"),$=v("el-select"),ae=v("el-checkbox"),le=v("el-checkbox-group"),L=v("el-radio"),te=v("el-radio-group"),oe=v("el-row"),se=v("el-form");return f(),y(V,null,[l(se,{ref_key:"formRef",ref:j,model:a.value,rules:F.value,"label-position":"top","label-suffix":":","scroll-to-error":"","validate-on-rule-change":!1},{default:r(()=>[l(oe,{gutter:40},{default:r(()=>[l(p,{span:8},{default:r(()=>[l(d,{label:"\u9879\u76EE\u540D\u79F0",prop:"baseProjName"},{default:r(()=>[l(i,{modelValue:a.value.baseProjName,"onUpdate:modelValue":e[0]||(e[0]=t=>a.value.baseProjName=t),maxlength:"50",placeholder:"\u8BF7\u586B\u5199",disabled:u.isSupplemented},null,8,["modelValue","disabled"])]),_:1})]),_:1}),l(p,{span:8},{default:r(()=>[l(d,{label:"\u9879\u76EE\u7C7B\u578B",prop:"baseProjType"},{default:r(()=>[l($,{modelValue:a.value.baseProjType,"onUpdate:modelValue":e[1]||(e[1]=t=>a.value.baseProjType=t),placeholder:"\u8BF7\u9009\u62E9",class:"w-full",disabled:u.isSupplemented},{default:r(()=>[(f(!0),y(V,null,S(pe(R),(t,s)=>(f(),C(x,{key:s,label:t,value:s},null,8,["label","value"]))),128))]),_:1},8,["modelValue","disabled"])]),_:1})]),_:1}),be("",!0),l(p,{span:8},{default:r(()=>[l(d,{label:"\u5185\u5BB9\u7C7B\u522B",prop:"baseConstructionType"},{default:r(()=>{var t;return[l(le,{modelValue:a.value.baseConstructionType,"onUpdate:modelValue":e[3]||(e[3]=s=>a.value.baseConstructionType=s),disabled:((t=b.value)==null?void 0:t.baseConstructionType)&&u.isSupplemented},{default:r(()=>{var s;return[(f(!0),y(V,null,S((s=u.dictionaryList)==null?void 0:s.filter(m=>m.type==="CONTENT_TYPE"),(m,re)=>(f(),C(ae,{key:re,label:m.value},{default:r(()=>[B(me(m.label),1)]),_:2},1032,["label"]))),128))]}),_:1},8,["modelValue","disabled"])]}),_:1})]),_:1}),l(p,{span:8},{default:r(()=>[l(d,{label:"\u9879\u76EE\u72B6\u6001",prop:"baseProjSetProg"},{default:r(()=>[l($,{modelValue:a.value.baseProjSetProg,"onUpdate:modelValue":e[4]||(e[4]=t=>a.value.baseProjSetProg=t),placeholder:"\u8BF7\u9009\u62E9",class:"w-full",disabled:u.isSupplemented},{default:r(()=>{var t;return[(f(!0),y(V,null,S((t=u.dictionaryList)==null?void 0:t.filter(s=>s.type==="PROJECT_STATUS"),(s,m)=>(f(),C(x,{key:m,label:s.label,value:s.value},null,8,["label","value"]))),128))]}),_:1},8,["modelValue","disabled"])]),_:1})]),_:1}),l(p,{span:8},{default:r(()=>[l(d,{label:"\u4E0A\u7EA7\u4E3B\u7BA1\u5355\u4F4D\u7C7B\u578B",prop:"baseProvManDeprtType"},{default:r(()=>{var t;return[l(te,{modelValue:a.value.baseProvManDeprtType,"onUpdate:modelValue":e[5]||(e[5]=s=>a.value.baseProvManDeprtType=s),disabled:((t=b.value)==null?void 0:t.baseProvManDeprtType)&&u.isSupplemented,onChange:K},{default:r(()=>[l(L,{label:"1"},{default:r(()=>e[25]||(e[25]=[B("\u7701\u7EA7")])),_:1}),l(L,{label:"2"},{default:r(()=>e[26]||(e[26]=[B("\u975E\u7701\u7EA7")])),_:1})]),_:1},8,["modelValue","disabled"])]}),_:1})]),_:1}),l(p,{span:8},{default:r(()=>[l(d,{label:"\u4E0A\u7EA7\u4E3B\u7BA1\u5355\u4F4D",prop:"baseProvManDeprt"},{default:r(()=>{var t,s;return[a.value.baseProvManDeprtType==="2"?(f(),C(i,{key:0,modelValue:a.value.baseProvManDeprt,"onUpdate:modelValue":e[6]||(e[6]=m=>a.value.baseProvManDeprt=m),placeholder:"\u8BF7\u9009\u62E9",readonly:"",disabled:((t=b.value)==null?void 0:t.baseProvManDeprt)&&u.isSupplemented,onClick:e[7]||(e[7]=m=>T("baseProvManDeprt"))},null,8,["modelValue","disabled"])):(f(),C(i,{key:1,modelValue:a.value.baseProvManDeprt,"onUpdate:modelValue":e[8]||(e[8]=m=>a.value.baseProvManDeprt=m),placeholder:"\u8BF7\u9009\u62E9",readonly:"",disabled:((s=b.value)==null?void 0:s.baseProvManDeprt)&&u.isSupplemented,onClick:Q},null,8,["modelValue","disabled"]))]}),_:1})]),_:1}),l(p,{span:8},{default:r(()=>[l(d,{label:"\u672C\u7EA7\u4E3B\u7BA1\u5355\u4F4D",prop:"baseManDeprt"},{default:r(()=>{var t;return[l(i,{modelValue:a.value.baseManDeprt,"onUpdate:modelValue":e[9]||(e[9]=s=>a.value.baseManDeprt=s),placeholder:"\u8BF7\u9009\u62E9",readonly:"",disabled:((t=b.value)==null?void 0:t.baseManDeprt)&&u.isSupplemented,onClick:e[10]||(e[10]=s=>T("baseManDeprt"))},null,8,["modelValue","disabled"])]}),_:1})]),_:1}),l(p,{span:8},{default:r(()=>[l(d,{label:"\u672C\u7EA7\u4E3B\u7BA1\u5355\u4F4D\u7EDF\u4E00\u793E\u4F1A\u4FE1\u7528\u4EE3\u7801",prop:"baseManDepartUsci"},{default:r(()=>{var t;return[l(i,{modelValue:a.value.baseManDepartUsci,"onUpdate:modelValue":e[11]||(e[11]=s=>a.value.baseManDepartUsci=s),placeholder:"\u8BF7\u586B\u5199",disabled:M.value.baseManDepartUsci||((t=b.value)==null?void 0:t.baseManDepartUsci)&&u.isSupplemented},null,8,["modelValue","disabled"])]}),_:1})]),_:1}),l(p,{span:8},{default:r(()=>[l(d,{label:"\u5EFA\u8BBE\u5355\u4F4D",prop:"baseBuildDeprt"},{default:r(()=>{var t;return[l(i,{modelValue:a.value.baseBuildDeprt,"onUpdate:modelValue":e[12]||(e[12]=s=>a.value.baseBuildDeprt=s),placeholder:"\u8BF7\u9009\u62E9",readonly:"",disabled:((t=b.value)==null?void 0:t.baseBuildDeprt)&&u.isSupplemented,onClick:e[13]||(e[13]=s=>T("baseBuildDeprt"))},null,8,["modelValue","disabled"])]}),_:1})]),_:1}),l(p,{span:8},{default:r(()=>[l(d,{label:"\u5EFA\u8BBE\u5355\u4F4D\u7EDF\u4E00\u4FE1\u7528\u4EE3\u7801",prop:"baseBuildDepartUsci"},{default:r(()=>{var t;return[l(i,{modelValue:a.value.baseBuildDepartUsci,"onUpdate:modelValue":e[14]||(e[14]=s=>a.value.baseBuildDepartUsci=s),placeholder:"\u8BF7\u586B\u5199",disabled:M.value.baseBuildDepartUsci||((t=b.value)==null?void 0:t.baseBuildDepartUsci)&&u.isSupplemented},null,8,["modelValue","disabled"])]}),_:1})]),_:1}),l(p,{span:8},{default:r(()=>[l(d,{label:"\u9879\u76EE\u8D1F\u8D23\u4EBA",prop:"baseProjPrincipal"},{default:r(()=>{var t;return[l(i,{modelValue:a.value.baseProjPrincipal,"onUpdate:modelValue":e[15]||(e[15]=s=>a.value.baseProjPrincipal=s),readonly:"",disabled:((t=b.value)==null?void 0:t.baseProjPrincipal)&&u.isSupplemented,placeholder:"\u8BF7\u9009\u62E9\uFF0C\u6E29\u99A8\u63D0\u793A\uFF1A\u9879\u76EE\u8D1F\u8D23\u4EBA\u8BF7\u586B\u5199\u9886\u5BFC\u4FE1\u606F",onClick:e[16]||(e[16]=s=>g("baseProjPrincipal","baseProjPrincipalCall"))},null,8,["modelValue","disabled"])]}),_:1})]),_:1}),l(p,{span:8},{default:r(()=>[l(d,{label:"\u8D1F\u8D23\u4EBA\u624B\u673A\u53F7\u7801",prop:"baseProjPrincipalCall"},{default:r(()=>{var t;return[l(i,{modelValue:a.value.baseProjPrincipalCall,"onUpdate:modelValue":e[17]||(e[17]=s=>a.value.baseProjPrincipalCall=s),readonly:"",disabled:((t=b.value)==null?void 0:t.baseProjPrincipalCall)&&u.isSupplemented,placeholder:"\u8BF7\u9009\u62E9",onClick:e[18]||(e[18]=s=>g("baseProjPrincipal","baseProjPrincipalCall"))},null,8,["modelValue","disabled"])]}),_:1})]),_:1}),l(p,{span:8},{default:r(()=>[l(d,{label:"\u9879\u76EE\u8054\u7CFB\u4EBA",prop:"baseProjContacts"},{default:r(()=>{var t;return[l(i,{modelValue:a.value.baseProjContacts,"onUpdate:modelValue":e[19]||(e[19]=s=>a.value.baseProjContacts=s),readonly:"",disabled:((t=b.value)==null?void 0:t.baseProjContacts)&&u.isSupplemented,placeholder:"\u8BF7\u9009\u62E9",onClick:e[20]||(e[20]=s=>g("baseProjContacts","baseProjContactsCall"))},null,8,["modelValue","disabled"])]}),_:1})]),_:1}),l(p,{span:8},{default:r(()=>[l(d,{label:"\u8054\u7CFB\u4EBA\u624B\u673A\u53F7\u7801",prop:"baseProjContactsCall"},{default:r(()=>{var t;return[l(i,{modelValue:a.value.baseProjContactsCall,"onUpdate:modelValue":e[21]||(e[21]=s=>a.value.baseProjContactsCall=s),readonly:"",disabled:((t=b.value)==null?void 0:t.baseProjContactsCall)&&u.isSupplemented,placeholder:"\u8BF7\u9009\u62E9",onClick:e[22]||(e[22]=s=>g("baseProjContacts","baseProjContactsCall"))},null,8,["modelValue","disabled"])]}),_:1})]),_:1})]),_:1})]),_:1},8,["model","rules"]),l(fe,{visible:n.unitVisible,"show-checkbox":!1,"default-data":n.data,title:n.title,type:n.type,"default-props":n.defaultProps,params:n.params,onClose:H,onGetSelectUnit:X},null,8,["visible","default-data","title","type","default-props","params"]),l(Pe,{visible:D.visible,params:D.params,onClose:e[23]||(e[23]=t=>D.visible=!1),onGetUserData:Y},null,8,["visible","params"]),l(ce,{visible:c.visible,data:c.data,onClose:e[24]||(e[24]=t=>c.visible=!1),onGetBaseProvManDeprt:W},null,8,["visible","data"])],64)}}});export{ke as default};