import{c as e}from"./addProject-a0bcade2-1780912037814v=1.0.0.js";import{d as l,r as a,s as o,a as t,b as d,h as u,F as n,i,f as r,c as s,w as p,e as _,Q as f,k as m,j as c,_ as b}from"./index-d052b22f-1780912037814v=1.0.0.js";const V={class:"flex_box"},U={class:"flex_box mt6"},h=b(l({__name:"RelatedUnit",props:{info:{type:Object,default:()=>{}}},emits:["update:info"],setup(l,{emit:b}){const h=a({xs:24,sm:24,md:24,lg:24,xl:12}),x=l,q=b,v=o({get:()=>x.info,set:e=>{q("update:info",e)}});return(l,a)=>{const o=t("el-input"),b=t("el-form-item"),x=t("el-radio"),q=t("el-radio-group"),j=t("FormCol"),k=t("FormRow");return d(),u("div",null,[(d(!0),u(n,null,i(r(v).unit_info_list,((l,t)=>(d(),s(k,{key:t},{default:p((()=>[_(j,f({ref_for:!0},r(h)),{default:p((()=>[_(b,{label:`${l.title}:`,required:l.required},{default:p((()=>[m("div",V,[_(b,{label:"",prop:`unit_info_list[${t}].name`,rules:l.required?r(e).unit_info_name:[]},{default:p((()=>[_(o,{modelValue:l.name,"onUpdate:modelValue":e=>l.name=e,placeholder:"请输入单位名称"},null,8,["modelValue","onUpdate:modelValue"])])),_:2},1032,["prop","rules"]),_(b,{label:"",prop:`unit_info_list[${t}].contacts`,rules:l.required&&2!==l.type_id?r(e).unit_info_contacts:[]},{default:p((()=>[_(o,{modelValue:l.contacts,"onUpdate:modelValue":e=>l.contacts=e,placeholder:"请输入联系人"},null,8,["modelValue","onUpdate:modelValue"])])),_:2},1032,["prop","rules"]),_(b,{label:"",prop:`unit_info_list[${t}].phone`,rules:l.required&&2!==l.type_id?r(e).unit_info_phone:[]},{default:p((()=>[_(o,{modelValue:l.phone,"onUpdate:modelValue":e=>l.phone=e,placeholder:"请输入联系方式"},null,8,["modelValue","onUpdate:modelValue"])])),_:2},1032,["prop","rules"])]),m("div",U,[_(b,{label:"",prop:`unit_info_list[${t}].unit_kind`,rules:l.required?r(e).unit_info_type:[]},{default:p((()=>[_(q,{modelValue:l.unit_kind,"onUpdate:modelValue":e=>l.unit_kind=e},{default:p((()=>[_(x,{label:1},{default:p((()=>a[0]||(a[0]=[c("政府")]))),_:1}),_(x,{label:2},{default:p((()=>a[1]||(a[1]=[c("体育行政部门")]))),_:1}),_(x,{label:3},{default:p((()=>a[2]||(a[2]=[c("事业单位")]))),_:1}),_(x,{label:4},{default:p((()=>a[3]||(a[3]=[c("国有企业")]))),_:1}),_(x,{label:5},{default:p((()=>a[4]||(a[4]=[c("社会组织")]))),_:1}),_(x,{label:6},{default:p((()=>a[5]||(a[5]=[c("其他")]))),_:1})])),_:2},1032,["modelValue","onUpdate:modelValue"])])),_:2},1032,["prop","rules"])])])),_:2},1032,["label","required"])])),_:2},1040)])),_:2},1024)))),128))])}}}),[["__scopeId","data-v-32c1b76d"]]);export{h as default};
