import{M as j,g as q,a as G}from"./orderDetail.3d1a6cf3.js";import{d as J,a6 as K,b as M,r as D,p as Q,c as d,e as i,f as Y,g as r,h as a,i as l,u as o,k as m,A as c,q as A,t as P,F as W,m as f,a as v,y as R,aN as X,_ as Z}from"./index.0308b213.js";import{A as $}from"./index.1d26a072.js";import"./useInstance.233fbdde.js";import"./install.524ae6f2.js";import"./useAgent.c0cb1751.js";import"./list.5526c7ef.js";const ee={class:"filter-form"},te=f("\u7B5B\u9009"),ae={class:"data"},le={class:"table"},oe=["src"],ue=f("\u5DF2\u652F\u4ED8"),se=f("\u672A\u652F\u4ED8"),ne=f("\u968F\u5355\u8D2D\u4E70"),re=f("\u5355\u72EC\u8D2D\u4E70"),de={key:2},ie={class:""},ce={class:"top"},_e=f("\u8BE6\u60C5"),pe={class:"pagination"},me=J({setup(fe){const{OpPlatform:E}=K(),H=[{text:"\u4E00\u5468\u5185",value:()=>{const t=v();return[t.subtract(1,"week").toDate(),t.toDate()]}},{text:"\u4E24\u5468\u5185",value:()=>{const t=v();return[t.subtract(2,"week").toDate(),t.toDate()]}},{text:"\u4E00\u4E2A\u6708\u5185",value:()=>{const t=v();return[t.subtract(1,"month").toDate(),t.toDate()]}}],u=M({page:1,limit:10,agentid:"",addtime:{start:"",end:""}}),_=M({list:[],count:0});let p=D([]);D([]);const O=()=>{const t=X(p.value,"YYYY-MM-DD HH:mm:ss");u.addtime.start=t[0]||"",u.addtime.end=t[1]||""},h=()=>{O(),E.value==="agent"?q(u).then(t=>{_.list=t.list,_.count=t.count}):G(u).then(t=>{_.list=t.list,_.count=t.count})},T=()=>{h()};h();let g=D(!1),F=D(!1),x=D(0);const U=t=>{x.value=t,F.value=!0,R(()=>{g.value=!0})},z=()=>{R(()=>{F.value=!1})};return Q(()=>[u.page,u.limit,p.value,u.agentid],()=>{h()}),(t,s)=>{const k=d("el-form-item"),N=d("el-date-picker"),w=d("el-button"),I=d("el-form"),n=d("el-table-column"),y=d("el-tag"),L=d("el-table"),S=d("el-pagination");return i(),Y(W,null,[r("div",ee,[a(I,{"label-width":"80px"},{default:l(()=>[o(E)==="shangpu"?(i(),m(k,{key:0,class:"tn-el-form-item",label:"\u4EE3\u7406\u533A\u57DF"},{default:l(()=>[a(o($),{modelValue:o(u).agentid,"onUpdate:modelValue":s[0]||(s[0]=e=>o(u).agentid=e)},null,8,["modelValue"])]),_:1})):c("",!0),a(k,{label:"\u5151\u6362\u65F6\u95F4"},{default:l(()=>[a(N,{modelValue:o(p),"onUpdate:modelValue":s[1]||(s[1]=e=>A(p)?p.value=e:p=e),type:"datetimerange","range-separator":"\u81F3","start-placeholder":"\u5F00\u59CB\u65F6\u95F4","end-placeholder":"\u7ED3\u675F\u65F6\u95F4",format:"YYYY-MM-DD HH:mm:ss","value-format":"YYYY-MM-DD HH:mm:ss",shortcuts:H},null,8,["modelValue"])]),_:1}),a(k,{class:"tn-el-form-item"},{default:l(()=>[a(w,{type:"primary",onClick:T},{default:l(()=>[te]),_:1})]),_:1})]),_:1})]),r("div",ae,[r("div",le,[a(L,{data:o(_).list},{default:l(()=>[a(n,{label:"ID",prop:"id"}),a(n,{label:"\u8D2D\u4E70\u4EBAUID",prop:"uid"}),a(n,{label:"\u7528\u6237\u4FE1\u606F",prop:"user"},{default:l(e=>{var b,C,V,B;return[r("img",{style:{width:"50px",height:"50px"},src:(C=(b=e.row)==null?void 0:b.user)==null?void 0:C.avatar},null,8,oe),r("span",null,P((B=(V=e.row)==null?void 0:V.user)==null?void 0:B.nickname),1)]}),_:1}),a(n,{label:"\u4EE3\u7406\u533A\u57DF",prop:"agentid_title"}),a(n,{label:"\u8D39\u7528",prop:"final_fee"}),a(n,{label:"\u652F\u4ED8\u72B6\u6001"},{default:l(e=>[e.row.is_pay==1?(i(),m(y,{key:0,type:"success",class:"mx-1",effect:"dark"},{default:l(()=>[ue]),_:1})):c("",!0),e.row.is_pay==0?(i(),m(y,{key:1,type:"danger",class:"mx-1",effect:"dark"},{default:l(()=>[se]),_:1})):c("",!0)]),_:1}),a(n,{label:"\u652F\u4ED8\u65B9\u5F0F",prop:"pay_type_cn"}),a(n,{label:"\u8D2D\u4E70\u65B9\u5F0F",prop:"buy_method"},{default:l(e=>[e.row.buy_method==1?(i(),m(y,{key:0,type:"success",class:"mx-1",effect:"dark"},{default:l(()=>[ne]),_:1})):c("",!0),e.row.buy_method==2?(i(),m(y,{key:1,type:"danger",class:"mx-1",effect:"dark"},{default:l(()=>[re]),_:1})):c("",!0),e.row.buy_method==0?(i(),Y("span",de)):c("",!0)]),_:1}),a(n,{label:"\u652F\u4ED8\u65F6\u95F4"},{default:l(e=>[r("span",null,P(e.row.addtime_cn),1)]),_:1}),a(n,{label:"\u64CD\u4F5C",width:"auto"},{default:l(e=>[r("div",ie,[r("div",ce,[a(w,{type:"primary",onClick:b=>U(e.row.id)},{default:l(()=>[_e]),_:2},1032,["onClick"])])])]),_:1})]),_:1},8,["data"])])]),r("div",pe,[a(S,{currentPage:o(u).page,"onUpdate:currentPage":s[2]||(s[2]=e=>o(u).page=e),"page-size":o(u).limit,"onUpdate:page-size":s[3]||(s[3]=e=>o(u).limit=e),"page-sizes":[10,20,30,40],layout:"total, sizes, prev, pager, next, jumper",total:o(_).count},null,8,["currentPage","page-size","total"])]),o(F)?(i(),m(j,{key:0,modelValue:o(g),"onUpdate:modelValue":s[4]||(s[4]=e=>A(g)?g.value=e:g=e),id:o(x),onOnClose:z},null,8,["modelValue","id"])):c("",!0)],64)}}});const ve=Z(me,[["__scopeId","data-v-a4ae688d"]]);export{ve as default};
