import{b as p}from"./addProject-ef818039-1778929502341v=1.0.0.js";import{d as q,r as v,a as y,e as a,o as f,c,L as R,M as D,f as $,w as l,g as o,W as w,h as d,n as F,l as r,_ as A}from"./index-17740f03-1778929502341v=1.0.0.js";const L={class:"flex_box"},N={class:"flex_box mt6"},j=q({__name:"RelatedUnit",props:{info:{type:Object,default:()=>{}}},emits:["update:info"],setup(V,{emit:b}){const B=v({xs:24,sm:24,md:24,lg:24,xl:12}),E=V,C=b,U=y({get:()=>E.info,set:m=>{C("update:info",m)}});return(m,u)=>{const i=a("el-input"),s=a("el-form-item"),n=a("el-radio"),g=a("el-radio-group"),x=a("FormCol"),k=a("FormRow");return f(),c("div",null,[(f(!0),c(R,null,D(d(U).unit_info_list,(e,_)=>(f(),$(k,{key:_},{default:l(()=>[o(x,w({ref_for:!0},d(B)),{default:l(()=>[o(s,{label:`${e.title}:`,required:e.required},{default:l(()=>[F("div",L,[o(s,{label:"",prop:`unit_info_list[${_}].name`,rules:e.required?d(p).unit_info_name:[]},{default:l(()=>[o(i,{modelValue:e.name,"onUpdate:modelValue":t=>e.name=t,placeholder:"\u8BF7\u8F93\u5165\u5355\u4F4D\u540D\u79F0"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1032,["prop","rules"]),o(s,{label:"",prop:`unit_info_list[${_}].contacts`,rules:e.required&&e.type_id!==2?d(p).unit_info_contacts:[]},{default:l(()=>[o(i,{modelValue:e.contacts,"onUpdate:modelValue":t=>e.contacts=t,placeholder:"\u8BF7\u8F93\u5165\u8054\u7CFB\u4EBA"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1032,["prop","rules"]),o(s,{label:"",prop:`unit_info_list[${_}].phone`,rules:e.required&&e.type_id!==2?d(p).unit_info_phone:[]},{default:l(()=>[o(i,{modelValue:e.phone,"onUpdate:modelValue":t=>e.phone=t,placeholder:"\u8BF7\u8F93\u5165\u8054\u7CFB\u65B9\u5F0F"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1032,["prop","rules"])]),F("div",N,[o(s,{label:"",prop:`unit_info_list[${_}].unit_kind`,rules:e.required?d(p).unit_info_type:[]},{default:l(()=>[o(g,{modelValue:e.unit_kind,"onUpdate:modelValue":t=>e.unit_kind=t},{default:l(()=>[o(n,{label:1},{default:l(()=>u[0]||(u[0]=[r("\u653F\u5E9C")])),_:1}),o(n,{label:2},{default:l(()=>u[1]||(u[1]=[r("\u4F53\u80B2\u884C\u653F\u90E8\u95E8")])),_:1}),o(n,{label:3},{default:l(()=>u[2]||(u[2]=[r("\u4E8B\u4E1A\u5355\u4F4D")])),_:1}),o(n,{label:4},{default:l(()=>u[3]||(u[3]=[r("\u56FD\u6709\u4F01\u4E1A")])),_:1}),o(n,{label:5},{default:l(()=>u[4]||(u[4]=[r("\u793E\u4F1A\u7EC4\u7EC7")])),_:1}),o(n,{label:6},{default:l(()=>u[5]||(u[5]=[r("\u5176\u4ED6")])),_:1})]),_:2},1032,["modelValue","onUpdate:modelValue"])]),_:2},1032,["prop","rules"])])]),_:2},1032,["label","required"])]),_:2},1040)]),_:2},1024))),128))])}}});const M=A(j,[["__scopeId","data-v-32c1b76d"]]);export{M as default};
