import{P as L}from"./page.3b4d44cb.js";import{A as R}from"./index.1d26a072.js";import{_ as $}from"./index.vue_vue_type_script_setup_true_lang.8a761348.js";import{d as q,a6 as M,b as v,r as F,p as O,c as r,at as j,e as _,k as g,i as l,g as s,u as a,A as G,h as t,w as H,t as b,q as J,m as c,y as E,N as K,E as Q,R as W,S as X,_ as Y}from"./index.0308b213.js";import{E as Z,g as ee,d as te}from"./EditDialog.66ea686f.js";import"./install.524ae6f2.js";import"./useAgent.c0cb1751.js";import"./list.5526c7ef.js";import"./index.dfdc0704.js";import"./index.vue_vue_type_style_index_0_scoped_f00ed21d_lang.2c48f49b.js";import"./vuedraggable.umd.405b1bec.js";import"./index.35b8c9ab.js";import"./index.9e8820cd.js";import"./sort_out.2008c10d.js";import"./jielong.1fa6c7b2.js";const B=m=>(W("data-v-68a4f9c4"),m=m(),X(),m),ae={style:{display:"flex","padding-bottom":"20px"},class:"filter-form"},oe=B(()=>s("div",{style:{"margin-left":"30px"},class:"grid-content ep-bg-purple"},null,-1)),le=c("\u67E5\u8BE2"),ne={class:"container"},se={style:{width:"100%","padding-bottom":"20px"}},ie=c("\u521B\u5EFA\u6D3B\u52A8"),ue=B(()=>s("span",{style:{padding:"0px 10px"}},"-",-1)),de=c("\u8FDB\u884C\u4E2D"),re=c("\u5DF2\u7ED3\u675F"),pe=c("\u7F16\u8F91"),ce=c("\u5220\u9664"),_e={style:{"margin-top":"20px"},class:"pagination"},ge=q({setup(m){const{OpPlatform:x}=M(),o=v({agentid:"",sid:"",page:1,limit:10}),p=v({loading:!1,delLoading:!1,tableData:[],selectIds:[],count:0});let d=F(!1),y=F(0);const C=()=>{y.value=0,E(()=>{d.value=!0})},w=()=>{o.page=1,f()},f=()=>{ee(o).then(i=>{p.tableData=i.list,p.count=i.count})};f(),O(()=>[o.page,o.limit,o.agentid,o.sid],()=>{f()},{deep:!0});const A=i=>{o.sid=i},k=i=>{K.alert("\u786E\u5B9A\u8981\u5220\u9664\u8FD9\u4E2A\u96C6\u7AE0\u6D3B\u52A8\u5417\uFF1F","\u63D0\u793A",{confirmButtonText:"\u786E\u8BA4",showCancelButton:!0,cancelButtonText:"\u53D6\u6D88"}).then(()=>{te({id:i}).then(n=>{Q({message:n.msg,type:"success"}),f()})}).catch(()=>{})},S=i=>{y.value=i,E(()=>{d.value=!0})},V=()=>{d.value=!1};return(i,n)=>{const D=r("el-button"),u=r("el-table-column"),h=r("el-tag"),I=r("el-table"),P=r("el-pagination"),z=r("el-col"),N=r("el-row"),T=j("loading");return _(),g(L,{showBorder:!1,loading:a(p).loading},{main:l(()=>[s("div",ae,[a(x)==="shangpu"?(_(),g(a(R),{key:0,modelValue:a(o).agentid,"onUpdate:modelValue":n[0]||(n[0]=e=>a(o).agentid=e)},null,8,["modelValue"])):G("",!0),t($,{style:{"margin-left":"30px"},onChangeStore:A,sid:a(o).sid,agentid:a(o).agentid},null,8,["sid","agentid"]),oe,t(D,{class:"tn-el-form-item--item tn-button tn-button--blue"},{default:l(()=>[le]),_:1})]),s("div",ne,[s("div",se,[t(D,{type:"primary",onClick:n[1]||(n[1]=e=>C())},{default:l(()=>[ie]),_:1})]),t(N,null,{default:l(()=>[t(z,null,{default:l(()=>[H((_(),g(I,{border:"",data:a(p).tableData,style:{width:"100%"}},{default:l(()=>[t(u,{align:"center",prop:"id",label:"\u6D3B\u52A8ID"}),t(u,{align:"center",prop:"name",label:"\u6D3B\u52A8\u540D"}),t(u,{align:"center",prop:"store_title",label:"\u5546\u6237"}),t(u,{align:"center",label:"\u6D3B\u52A8\u65F6\u95F4"},{default:l(e=>[s("span",null,b(e.row.starttime),1),ue,s("span",null,b(e.row.endtime),1)]),_:1}),t(u,{align:"center",label:"\u662F\u5426\u5F00\u542F\u7EBF\u4E0B\u76D6\u7AE0"},{default:l(e=>[s("span",null,b(e.row.is_open_offline_seal==1?"\u662F":"\u5426"),1)]),_:1}),t(u,{align:"center",label:"\u662F\u5426\u5F00\u542F\u7EBF\u4E0A\u76D6\u7AE0"},{default:l(e=>[s("span",null,b(e.row.is_open_online_seal==1?"\u662F":"\u5426"),1)]),_:1}),t(u,{align:"center",label:"\u72B6\u6001"},{default:l(e=>[e.row.status==1?(_(),g(h,{key:0,type:"success"},{default:l(()=>[de]),_:1})):(_(),g(h,{key:1,type:"danger"},{default:l(()=>[re]),_:1}))]),_:1}),t(u,{align:"center",label:"\u64CD\u4F5C"},{default:l(e=>[t(D,{onClick:U=>S(e.row.id),ype:"primary"},{default:l(()=>[pe]),_:2},1032,["onClick"]),t(D,{onClick:U=>k(e.row.id),type:"danger"},{default:l(()=>[ce]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])),[[T,a(p).loading]]),s("div",_e,[t(P,{currentPage:a(o).page,"onUpdate:currentPage":n[2]||(n[2]=e=>a(o).page=e),"page-size":a(o).limit,"onUpdate:page-size":n[3]||(n[3]=e=>a(o).limit=e),"page-sizes":[10,20,30,40],layout:"total, sizes, prev, pager, next, jumper",total:a(p).count},null,8,["currentPage","page-size","total"])])]),_:1})]),_:1})]),t(Z,{modelValue:a(d),"onUpdate:modelValue":n[4]||(n[4]=e=>J(d)?d.value=e:d=e),onRefreshData:w,id:a(y),onOnClose:V},null,8,["modelValue","id"])]),_:1},8,["loading"])}}});const Se=Y(ge,[["__scopeId","data-v-68a4f9c4"]]);export{Se as default};
