import{u as M,C as D,A as j}from"./useSignupTemplate-94c0c1aa-1782572373740v=1.0.0.js";import{y as q,r as B,c as H,al as m,z as n,I as v,J as s,B as f,R as t,u as l,M as d,A as p,Q as y,a4 as c,O as N,k as x}from"./vendor-866bb149-1782572373740v=1.0.0.js";const K={class:"flex items-center"},P={key:0,class:"mb16"},W={key:1,class:"mb16"},X={key:2,class:"mb16"},h=q({__name:"TeamFormCom",props:{value:Object},emits:["update:value"],setup(_,{emit:J}){const{commonFields:b}=M(),S=_,w=B(),o=H({get(){return $(S.value)},set(a){R("update:value",a)}}),C=B(!1),E=B({fieldConfId:null,trainId:null,fieldName:"",fieldValue:"",fieldType:"input",prompt:"",isFill:0,isUnique:0,isLike:0,selectOption:[]}),F=B(null),V={leader:"leaderCustomInfo",doctor:"doctorCustomInfo",coach:"coachCustomInfo",register:"registerInfo"},O=B(null),z=a=>{O.value===null?o.value[V[F.value]].customFieldConfList.push(a):o.value[V[F.value]].customFieldConfList[O.value]=a},A=(a,e)=>{var i,g;F.value=e,O.value=a,E.value=JSON.parse(JSON.stringify(o.value[V[F.value]].customFieldConfList[a]));const r=JSON.parse(JSON.stringify(o.value[V[F.value]].customFieldConfList[a]));((i=r.selectValues)==null?void 0:i.length)>0&&(r.selectOption=(g=r.selectValues)==null?void 0:g.map(k=>({label:k,value:k}))),E.value=r,C.value=!0},R=J,$=a=>a,I=a=>{F.value=a,C.value=!0};return(a,e)=>{const r=m("el-checkbox"),i=m("el-form-item"),g=m("InfoFilled"),k=m("el-icon"),Q=m("el-tooltip"),T=m("el-input-number"),L=m("el-checkbox-group"),U=m("el-button"),G=m("el-form");return n(),v(G,{model:l(o),ref_key:"formRef",ref:w},{default:s(()=>[e[33]||(e[33]=f("div",{class:"divider mb8"},"\u56E2\u961F\u4FE1\u606F",-1)),t(i,{label:"",prop:"registerInfo"},{default:s(()=>[t(r,{modelValue:l(o).isGroupName,"onUpdate:modelValue":e[0]||(e[0]=u=>l(o).isGroupName=u),label:"\u56E2\u961F\u540D\u79F0",value:"\u56E2\u961F\u540D\u79F0","true-value":1,"false-value":0},null,8,["modelValue"])]),_:1}),e[34]||(e[34]=f("div",{class:"divider mb8"},"\u4EBA\u5458\u4FE1\u606F",-1)),d(" \u4EBA\u5458\u7C7B\u578B "),t(i,{label:"\u4EBA\u5458\u7C7B\u578B",prop:"registerInfo"},{label:s(()=>[f("div",K,[e[25]||(e[25]=f("span",null,"\u4EBA\u5458\u7C7B\u578B",-1)),t(Q,{content:"\u52FE\u9009\u9700\u8981\u586B\u5199\u7684\u4EBA\u5458\u7C7B\u578B\uFF0C\u53EF\u8BBE\u7F6E\u8BE5\u7C7B\u578B\u586B\u51E0\u4E2A\u4EBA",placement:"top"},{default:s(()=>[t(k,null,{default:s(()=>[t(g)]),_:1})]),_:1})])]),default:s(()=>[f("div",null,[t(r,{label:"\u9886\u961F",value:"leader",modelValue:l(o).isLeader,"onUpdate:modelValue":e[2]||(e[2]=u=>l(o).isLeader=u),"true-value":1,"false-value":0},{default:s(()=>[e[26]||(e[26]=f("span",{class:"mr8"},"\u9886\u961F",-1)),l(o).isLeader?(n(),v(T,{key:0,modelValue:l(o).leaderNum,"onUpdate:modelValue":e[1]||(e[1]=u=>l(o).leaderNum=u),size:"small","controls-position":"right",step:1,min:1},null,8,["modelValue"])):d("v-if",!0)]),_:1,__:[26]},8,["modelValue"]),t(r,{label:"\u961F\u533B",value:"doctor",modelValue:l(o).isDoctor,"onUpdate:modelValue":e[4]||(e[4]=u=>l(o).isDoctor=u),"true-value":1,"false-value":0},{default:s(()=>[e[27]||(e[27]=f("span",{class:"mr8"},"\u961F\u533B",-1)),l(o).isDoctor?(n(),v(T,{key:0,modelValue:l(o).doctorNum,"onUpdate:modelValue":e[3]||(e[3]=u=>l(o).doctorNum=u),size:"small","controls-position":"right",step:1,min:1},null,8,["modelValue"])):d("v-if",!0)]),_:1,__:[27]},8,["modelValue"]),t(r,{label:"\u6559\u7EC3\u5458",value:"coach",modelValue:l(o).isCoach,"onUpdate:modelValue":e[6]||(e[6]=u=>l(o).isCoach=u),"true-value":1,"false-value":0},{default:s(()=>[e[28]||(e[28]=f("span",{class:"mr8"},"\u6559\u7EC3\u5458",-1)),l(o).isCoach?(n(),v(T,{key:0,modelValue:l(o).coachNum,"onUpdate:modelValue":e[5]||(e[5]=u=>l(o).coachNum=u),size:"small","controls-position":"right",step:1,min:1},null,8,["modelValue"])):d("v-if",!0)]),_:1,__:[28]},8,["modelValue"]),d(` <el-checkbox label="\u88C1\u5224\u5458" value="referee" v-model="form.isJudge" :true-value="1" :false-value="0">\r
					<span class="mr8">\u88C1\u5224\u5458</span>\r
				</el-checkbox>\r
				<el-checkbox label="\u5FD7\u613F\u8005" value="volunteer" v-model="form.isVolunteer" :true-value="1" :false-value="0">\r
					<span class="mr8">\u5FD7\u613F\u8005</span>\r
				</el-checkbox> `)])]),_:1}),d(" \u9886\u961F\u4FE1\u606F "),l(o).isLeader?(n(),p("div",P,[t(i,{label:"\u9886\u961F\u4FE1\u606F",prop:"registerInfo"},{default:s(()=>[t(L,{modelValue:l(o).leaderCustomInfo.commonUseFieldDTOList,"onUpdate:modelValue":e[7]||(e[7]=u=>l(o).leaderCustomInfo.commonUseFieldDTOList=u)},{default:s(()=>[(n(!0),p(y,null,c(l(b),u=>(n(),v(r,{key:u.value,label:u.label,value:u.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),t(D,{value:l(o).leaderCustomInfo.customFieldConfList,"onUpdate:value":e[8]||(e[8]=u=>l(o).leaderCustomInfo.customFieldConfList=u),onEdit:e[9]||(e[9]=u=>A(u,"leader")),showEmpty:!1},null,8,["value"]),t(U,{onClick:e[10]||(e[10]=u=>I("leader"))},{default:s(()=>e[29]||(e[29]=[N(" \u81EA\u5B9A\u4E49\u6DFB\u52A0\u5185\u5BB9 ",-1)])),_:1,__:[29]})])):d("v-if",!0),d(" \u961F\u533B\u4FE1\u606F "),l(o).isDoctor?(n(),p("div",W,[t(i,{label:"\u961F\u533B\u4FE1\u606F",prop:"registerInfo"},{default:s(()=>[t(L,{modelValue:l(o).doctorCustomInfo.commonUseFieldDTOList,"onUpdate:modelValue":e[11]||(e[11]=u=>l(o).doctorCustomInfo.commonUseFieldDTOList=u)},{default:s(()=>[(n(!0),p(y,null,c(l(b),u=>(n(),v(r,{key:u.value,label:u.label,value:u.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),t(D,{value:l(o).doctorCustomInfo.customFieldConfList,"onUpdate:value":e[12]||(e[12]=u=>l(o).doctorCustomInfo.customFieldConfList=u),onEdit:e[13]||(e[13]=u=>A(u,"doctor")),showEmpty:!1},null,8,["value"]),t(U,{onClick:e[14]||(e[14]=u=>I("doctor"))},{default:s(()=>e[30]||(e[30]=[N(" \u81EA\u5B9A\u4E49\u6DFB\u52A0\u5185\u5BB9 ",-1)])),_:1,__:[30]})])):d("v-if",!0),d(" \u6559\u7EC3\u5458\u4FE1\u606F "),l(o).isCoach?(n(),p("div",X,[t(i,{label:"\u6559\u7EC3\u5458\u4FE1\u606F",prop:"registerInfo"},{default:s(()=>[t(L,{modelValue:l(o).coachCustomInfo.commonUseFieldDTOList,"onUpdate:modelValue":e[15]||(e[15]=u=>l(o).coachCustomInfo.commonUseFieldDTOList=u)},{default:s(()=>[(n(!0),p(y,null,c(l(b),u=>(n(),v(r,{key:u.value,label:u.label,value:u.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),t(D,{value:l(o).coachCustomInfo.customFieldConfList,"onUpdate:value":e[16]||(e[16]=u=>l(o).coachCustomInfo.customFieldConfList=u),onEdit:e[17]||(e[17]=u=>A(u,"coach")),showEmpty:!1},null,8,["value"]),t(U,{onClick:e[18]||(e[18]=u=>I("coach"))},{default:s(()=>e[31]||(e[31]=[N(" \u81EA\u5B9A\u4E49\u6DFB\u52A0\u5185\u5BB9 ",-1)])),_:1,__:[31]})])):d("v-if",!0),d("  \u62A5\u540D\u4EBA\u57FA\u672C\u4FE1\u606F"),e[35]||(e[35]=f("div",{class:"divider mb8"},"\u62A5\u540D\u4EBA\u57FA\u672C\u4FE1\u606F",-1)),t(i,{label:"\u62A5\u540D\u4EBA\u57FA\u672C\u4FE1\u606F",prop:"registerInfo"},{default:s(()=>[t(L,{modelValue:l(o).registerInfo.commonUseFieldDTOList,"onUpdate:modelValue":e[19]||(e[19]=u=>l(o).registerInfo.commonUseFieldDTOList=u)},{default:s(()=>[(n(!0),p(y,null,c(l(b),u=>(n(),v(r,{key:u.value,label:u.label,value:u.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),t(D,{value:l(o).registerInfo.customFieldConfList,"onUpdate:value":e[20]||(e[20]=u=>l(o).registerInfo.customFieldConfList=u),onEdit:e[21]||(e[21]=u=>A(u,"register")),showEmpty:!1},null,8,["value"]),t(U,{onClick:e[22]||(e[22]=u=>I("register"))},{default:s(()=>e[32]||(e[32]=[N(" \u81EA\u5B9A\u4E49\u6DFB\u52A0\u5185\u5BB9 ",-1)])),_:1,__:[32]}),d(" \u81EA\u5B9A\u4E49\u8868\u5355\u6DFB\u52A0\u5185\u5BB9 "),t(j,{visible:l(C),"onUpdate:visible":e[23]||(e[23]=u=>x(C)?C.value=u:null),value:l(E),"onUpdate:value":e[24]||(e[24]=u=>x(E)?E.value=u:null),onSubmit:z},null,8,["visible","value"])]),_:1,__:[33,34,35]},8,["model"])}}});export{h as _};
