You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2 lines
14KB

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