import{b as C,c as h,g as w,d as A}from"./order.84a9233c.js";import{d as E,a6 as O,b as v,p as x,c as i,e as F,k as S,i as u,h as o,u as a,m as V,E as b,R as y,S as U,g as k,_ as I}from"./index.0308b213.js";const N=d=>(y("data-v-5b24f155"),d=d(),U(),d),j=N(()=>k("h1",null," \u4FEE\u6539\u8BA2\u5355# ",-1)),P=V("\u786E\u5B9A"),M=V("\u53D6\u6D88"),R=E({props:{editShow:{type:Boolean,default:!1},id:{type:Number,default:0}},emits:["onDetaiClose"],setup(d,{emit:_}){const n=d,{OpPlatform:f}=O(),e=v({id:0,username:"",address:"",mobile:"",note:"",serial_sn:""}),g=()=>{_("onDetaiClose"),f.value==="agent"?C(e).then(s=>{b.success("\u66F4\u65B0\u6570\u636E\u6210\u529F"),p()}):h(e).then(s=>{b.success("\u66F4\u65B0\u6570\u636E\u6210\u529F"),p()})},p=()=>{_("onDetaiClose")};return x(()=>n.id,()=>{f.value==="agent"?w(n.id).then(s=>{Object.assign(e,s.order_info)}):A(n.id).then(s=>{Object.assign(e,s.order_info)})}),(s,t)=>{const m=i("el-input"),r=i("el-form-item"),c=i("el-button"),B=i("el-form"),D=i("el-dialog");return F(),S(D,{modelValue:n.editShow,"onUpdate:modelValue":t[4]||(t[4]=l=>n.editShow=l),width:"30%","align-center":"",onClose:p},{default:u(()=>[j,o(B,{model:a(e),"label-width":"100px"},{default:u(()=>[o(r,{label:"\u6536\u8D27\u4EBA\u59D3\u540D"},{default:u(()=>[o(m,{modelValue:a(e).username,"onUpdate:modelValue":t[0]||(t[0]=l=>a(e).username=l)},null,8,["modelValue"])]),_:1}),o(r,{label:"\u6536\u8D27\u5730\u5740"},{default:u(()=>[o(m,{modelValue:a(e).address,"onUpdate:modelValue":t[1]||(t[1]=l=>a(e).address=l)},null,8,["modelValue"])]),_:1}),o(r,{label:"\u624B\u673A\u53F7"},{default:u(()=>[o(m,{modelValue:a(e).mobile,"onUpdate:modelValue":t[2]||(t[2]=l=>a(e).mobile=l)},null,8,["modelValue"])]),_:1}),o(r,{label:"\u8BA2\u5355\u5907\u6CE8"},{default:u(()=>[o(m,{modelValue:a(e).note,"onUpdate:modelValue":t[3]||(t[3]=l=>a(e).note=l),rows:6,type:"textarea"},null,8,["modelValue"])]),_:1}),o(r,null,{default:u(()=>[o(c,{type:"success",onClick:g},{default:u(()=>[P]),_:1}),o(c,null,{default:u(()=>[M]),_:1})]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"])}}});const z=I(R,[["__scopeId","data-v-5b24f155"]]);export{z as default};
