import{C as e,D as a,Z as l,_ as d,y as s,G as t}from"./element-plus-DSMJnpwa.js";import{d as o}from"./index-mv7arXuk.js";/* empty css                     *//* empty css                 *//* empty css                       */import{g as u}from"./index-CowHPec6.js";import{_ as r}from"./index-9_f6rNAP.js";import{B as i,g as c,a4 as m,aB as p,aE as n,H as v,L as _,M as f,P as y,O as b,F as j,ab as V,u as x,I as C,Y as h,d as g}from"./vue-vendor-DZekML78.js";import"./utils-cPVb2Haz.js";const B={class:"p-2"},k={class:"EditBody"},D={class:"bodybox"},E=o(i({__name:"addSdbElectricityDevice",setup(o){const{proxy:i}=c(),{com_electricity_readrecord_status:E}=m(i?.useDict("com_electricity_readrecord_status")),R=p(),U=n(),q=g({id:null,deviceCode:"",address:"",electricityRecord:{status:"1"}}),w=g(null);function I(){U.back()}return R.query.id&&(w.value=R.query.id,u(w.value).then(e=>{q.value={...q.value,...e.data}})),(o,u)=>{const i=a,c=e,m=d,p=l,n=s,g=t;return v(),_("div",B,[f(r),y("div",k,[u[5]||(u[5]=y("div",{class:"title"},[y("div",null,"基本信息")],-1)),y("div",D,[f(g,{"label-width":"100px","label-position":"right"},{default:b(()=>[f(c,{label:"设备编码",prop:"deviceCode"},{default:b(()=>[f(i,{modelValue:q.value.deviceCode,"onUpdate:modelValue":u[0]||(u[0]=e=>q.value.deviceCode=e),placeholder:"请输入"},null,8,["modelValue"])]),_:1}),f(c,{label:"地址",prop:"address"},{default:b(()=>[f(i,{modelValue:q.value.address,"onUpdate:modelValue":u[1]||(u[1]=e=>q.value.address=e),placeholder:"请输入"},null,8,["modelValue"])]),_:1}),f(c,{label:"分合状态"},{default:b(()=>[f(p,{modelValue:q.value.electricityRecord.status,"onUpdate:modelValue":u[2]||(u[2]=e=>q.value.electricityRecord.status=e)},{default:b(()=>[(v(!0),_(j,null,V(x(E),(e,a)=>(v(),C(m,{key:a,value:e.value,label:e.label},null,8,["value","label"]))),128))]),_:1},8,["modelValue"])]),_:1}),f(c,null,{default:b(()=>[f(n,{type:"primary"},{default:b(()=>[...u[3]||(u[3]=[h("提交",-1)])]),_:1}),f(n,{onClick:I},{default:b(()=>[...u[4]||(u[4]=[h("返回",-1)])]),_:1})]),_:1})]),_:1})])])])}}}),[["__scopeId","data-v-8dd7af90"]]);export{E as default};
