Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

2 lines
13KB

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