import{D as l,d as h,b as f,c as o,e as E,k as F,i as s,h as n,u as i,g as y,m as C,E as x}from"./index.0308b213.js";const b=()=>l.get("merchant/shop.cash_register_setting/getConfig"),D=a=>l.post("merchant/shop.cash_register_setting/setConfig",a),V=y("h3",{style:{padding:"0 0 20px 0"}},"\u5FAE\u4FE1\u652F\u4ED8\u914D\u7F6E",-1),A=C("\u63D0\u4EA4"),k=h({setup(a){let t=f({mch_id:""});const d=()=>{D(t).then(e=>{x.success("\u8BBE\u7F6E\u6210\u529F"),c()})},c=()=>{b().then(e=>{console.log(e),e&&e.data&&(t.mch_id=e.data.mch_id)})};return c(),(e,u)=>{const m=o("el-input"),_=o("el-form-item"),r=o("el-button"),p=o("el-card");return E(),F(p,{shadow:"always",style:{"margin-top":"20px"}},{default:s(()=>[V,n(_,{label:"\u5FAE\u4FE1\u652F\u4ED8\u5546\u6237\u53F7(Mch_Id)"},{default:s(()=>[n(m,{modelValue:i(t).mch_id,"onUpdate:modelValue":u[0]||(u[0]=g=>i(t).mch_id=g)},null,8,["modelValue"])]),_:1}),n(_,{label:"",class:"continer-item"},{default:s(()=>[n(r,{type:"primary",onClick:d},{default:s(()=>[A]),_:1})]),_:1})]),_:1})}}});export{k as default};
