import{E as I,a as q}from"./el-form-item-BvJauXBe.js";import{d as F,o as n,c as i,m as o,q as p,p as u,I as g,J as b,a0 as f,t as U,A as C,y as c,r as t,G as D}from"./index-XuO881sr.js";import{E as R,a as S}from"./el-select-BHeVexdj.js";/* empty css               */import{P}from"./index-6fE1mQ4R.js";import"./cloneDeep-CQdyn166.js";import"./_baseClone-CIlxLVYA.js";import"./strings-giQSq8zG.js";import"./index-B7j6XCDK.js";import"./_baseIteratee-CskuuWpP.js";const w={class:"AddBuildingBox"},H={class:"AddBuildingBody"},G={class:"addBuildingFormBody"},J=F({__name:"addStoreRoom",setup(L){const v=t(),a=t({buildingID:"",unit:"",floor:"",buildingName:"",buildingArea:"",internalFloorArea:"",CommonArea:"",Housetype:"",ParkingSpaceNumber:"",storeroom:""}),N=t({buildingID:[{required:!0,message:"请输入楼栋",trigger:"blur"}],unit:[{required:!0,message:"请选择单元",trigger:"blur"}],floor:[{required:!0,message:"请选择楼层",trigger:"blur"}],buildingName:[{required:!0,message:"请输入房间号",trigger:"blur"}],buildingArea:[{required:!0,message:"请输入建筑面积",trigger:"blur"}],internalFloorArea:[{required:!0,message:"请输入套内面积",trigger:"blur"}],CommonArea:[{required:!0,message:"请输入公摊面积",trigger:"blur"}]}),y=t([{id:"1",name:"1号楼"}]),B=t([{no:"1",name:"1单元"},{no:"2",name:"2单元"}]),k=t([{no:"1",name:"1层"},{no:"2",name:"2层"}]),x=()=>{v.value?.validate(async _=>{_&&console.log(a.value)})},A=()=>{console.log("取消")};return(_,l)=>{const m=S,s=R,r=I,d=U,V=C,E=q;return n(),i("div",w,[o(P,{title:"新建储藏室"}),p("div",H,[l[10]||(l[10]=p("div",{class:"title"},"基本信息",-1)),p("div",G,[o(E,{class:"formBody","label-position":"left",ref_key:"formRef",ref:v,model:a.value,rules:N.value,"label-width":"100px"},{default:u(()=>[o(r,{label:"楼栋",prop:"buildingID"},{default:u(()=>[o(s,{modelValue:a.value.buildingID,"onUpdate:modelValue":l[0]||(l[0]=e=>a.value.buildingID=e),class:"m-2",placeholder:"请选择"},{default:u(()=>[(n(!0),i(g,null,b(y.value,e=>(n(),f(m,{key:e.id,label:e.name,value:e.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),o(r,{label:"单元",prop:"unit"},{default:u(()=>[o(s,{modelValue:a.value.unit,"onUpdate:modelValue":l[1]||(l[1]=e=>a.value.unit=e),class:"m-2",placeholder:"请选择"},{default:u(()=>[(n(!0),i(g,null,b(B.value,e=>(n(),f(m,{key:e.no,label:e.name,value:e.no},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),o(r,{label:"楼层",prop:"floor"},{default:u(()=>[o(s,{modelValue:a.value.floor,"onUpdate:modelValue":l[2]||(l[2]=e=>a.value.floor=e),class:"m-2",placeholder:"请选择"},{default:u(()=>[(n(!0),i(g,null,b(k.value,e=>(n(),f(m,{key:e.no,label:e.name,value:e.no},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),o(r,{label:"储藏室号",prop:"buildingName"},{default:u(()=>[o(d,{modelValue:a.value.buildingName,"onUpdate:modelValue":l[3]||(l[3]=e=>a.value.buildingName=e),placeholder:"请输入储藏室号"},null,8,["modelValue"])]),_:1}),o(r,{label:"建筑面积",prop:"buildingName"},{default:u(()=>[o(d,{modelValue:a.value.buildingName,"onUpdate:modelValue":l[4]||(l[4]=e=>a.value.buildingName=e),placeholder:"请输入建筑面积"},null,8,["modelValue"])]),_:1}),o(r,{label:"公摊面积",prop:"buildingName"},{default:u(()=>[o(d,{modelValue:a.value.buildingName,"onUpdate:modelValue":l[5]||(l[5]=e=>a.value.buildingName=e),placeholder:"请输入公摊面积"},null,8,["modelValue"])]),_:1}),o(r,{label:"实用面积",prop:"buildingName"},{default:u(()=>[o(d,{modelValue:a.value.buildingName,"onUpdate:modelValue":l[6]||(l[6]=e=>a.value.buildingName=e),placeholder:"请输入实用面积"},null,8,["modelValue"])]),_:1}),o(r,{label:"备注",prop:"buildingName"},{default:u(()=>[o(d,{textarea:"",modelValue:a.value.buildingName,"onUpdate:modelValue":l[7]||(l[7]=e=>a.value.buildingName=e),placeholder:"请输入备注"},null,8,["modelValue"])]),_:1}),o(r,{style:{"margin-top":"30px"}},{default:u(()=>[o(V,{type:"primary",onClick:x},{default:u(()=>[...l[8]||(l[8]=[c("提交",-1)])]),_:1}),o(V,{onClick:A},{default:u(()=>[...l[9]||(l[9]=[c("取消",-1)])]),_:1})]),_:1})]),_:1},8,["model","rules"])])])])}}}),Z=D(J,[["__scopeId","data-v-9176cb7e"]]);export{Z as default};
