import{b7 as S,b as f,jm as V,ar as P,as as A,_ as E,c as n,e as s,k as u,i as m,g as b,f as _,j as k,m as $,t as w,F as L,A as D}from"./index.0308b213.js";import{P as I}from"./page.3b4d44cb.js";import Q from"./tableStatus.bd7f21b7.js";import q from"./wxQrcode.89b2a606.js";import x from"./systemQrcode.583806ba.js";import W from"./wxXcxQrcode.29bcc282.js";import j from"./zfbXcxQrcode.03f219fb.js";import N from"./tableList.c179f0bc.js";import{g as U}from"./tableType.fbccd912.js";import"./index.d8f9fa2a.js";import"./nopic.59e90ddb.js";const R={components:{Page:I,TableStatus:Q,WxQrcode:q,SystemQrcode:x,WxXcxQrcode:W,ZfbXcxQrcode:j,TableList:N},setup(){const t=S(),o=(e,a,p)=>({icon:e,type:a,text:p}),l=f({loading:!1,currentIndex:2,btnList:[o("","button","\u684C\u53F0\u72B6\u6001"),o("","button","\u684C\u53F0\u5FAE\u4FE1\u4E8C\u7EF4\u7801"),o("","button","\u684C\u53F0\u5217\u8868"),o("","button","\u65B0\u5EFA\u684C\u53F0"),o("","input","\u540D\u5B57\u684C\u53F0\u53F7"),o("","select","\u684C\u53F0\u7C7B\u578B"),o("","button","\u641C\u7D22")],tableTypeList:[],tableList:[],tableStatusList:[],qrcodeList:[]}),d=f({t:-1,cid:"",keyword:""});U({status:-1,keyword:""}).then(e=>{console.log("\u8F93\u51FA\u684C\u53F0\u7C7B\u578B",e),l.tableTypeList=e.list,c()});const c=()=>{l.loading=!0,V(d).then(e=>{console.log("\u8BF7\u6C42\u6570\u636E\uFF1A",e),l.tableList=e.list,l.tableStatusList=e.list.map(a=>({id:a.id,name:a.title,status:a.status})),l.qrcodeList=e.list.map(a=>({id:a.id,name:a.title,tableType:a.c_title,status:a.status,kongma_qrcode:a.kongma_qrcode}))}).finally(()=>{l.loading=!1})},g=e=>{console.log("\u7D22\u5F15",e),e==0||e==1||e==2||e==6?(e!=6&&(l.currentIndex=e),c()):e==3&&t.push({path:"/store/storeInside/addTable"})};return{...P(l),Search:A,btnClick:g,params:d,getPage:c}}};const X={class:"container"},O={class:"nav"},Z=["onClick"],z={class:"main"};function G(t,o,l,d,c,g){const e=n("el-button"),a=n("el-input"),p=n("el-option"),F=n("el-select"),C=n("TableStatus"),v=n("WxQrcode"),T=n("TableList",!0),B=n("Page");return s(),u(B,{showBorder:!1,loading:t.loading},{main:m(()=>[b("div",X,[b("div",O,[(s(!0),_(L,null,k(t.btnList,(r,y)=>(s(),_("div",{class:"nav-col",key:y,onClick:i=>t.btnClick(y)},[r.type=="button"?(s(),u(e,{key:0,type:"primary",icon:t.Search},{default:m(()=>[$(w(r.text),1)]),_:2},1032,["icon"])):r.type=="input"?(s(),u(a,{key:1,modelValue:t.params.keyword,"onUpdate:modelValue":o[0]||(o[0]=i=>t.params.keyword=i),clearable:"",placeholder:r.text},null,8,["modelValue","placeholder"])):r.type=="select"?(s(),u(F,{key:2,modelValue:t.params.cid,"onUpdate:modelValue":o[1]||(o[1]=i=>t.params.cid=i),clearable:"",placeholder:r.text},{default:m(()=>[(s(!0),_(L,null,k(t.tableTypeList,(i,h)=>(s(),u(p,{key:h,label:i.title,value:i.id},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","placeholder"])):D("",!0)],8,Z))),128))]),b("div",z,[t.currentIndex==0?(s(),u(C,{key:0,list:t.tableStatusList},null,8,["list"])):t.currentIndex==1?(s(),u(v,{key:1,list:t.qrcodeList},null,8,["list"])):(s(),u(T,{key:2,tableData:t.tableList,onUpdateList:o[2]||(o[2]=r=>t.getPage())},null,8,["tableData"]))])])]),_:1},8,["loading"])}const ne=E(R,[["render",G],["__scopeId","data-v-c2c463e6"]]);export{ne as default};
