import{az as A,aa as E,d as k,a6 as w,b as B,p as O,c,e as g,f as q,g as p,h as e,i as s,u,k as b,A as h,F as P,m as F,N as V,E as D,_ as z}from"./index.0308b213.js";import{A as H}from"./index.1d26a072.js";import"./install.524ae6f2.js";import"./useAgent.c0cb1751.js";import"./list.5526c7ef.js";const N=r=>A.request({url:"addon/hand2.hand_order/list",params:r}),T=r=>A.request({url:"addon/hand2.hand_order/cancel",method:"POST",data:{id:r}}),U=r=>E.request({url:"agent/plugin.hand2.hand_order/list",params:r}),I=r=>E.request({url:"agent/hand2.hand_order/cancel",method:"POST",data:{id:r}}),S={class:"filter-form"},M=F("\u7B5B\u9009"),$={class:"data"},j={class:"table"},L=F("\u53D6\u6D88\u8BA2\u5355"),G={class:"pagination"},J=k({setup(r){const{OpPlatform:_}=w(),a=B({page:1,limit:10,agentid:""}),i=B({list:[],count:0}),d=()=>{_.value=="agent"?U(a).then(o=>{i.list=o.list,i.count=o.count}):N(a).then(o=>{i.list=o.list,i.count=o.count})};d();const x=o=>{V.alert("\u786E\u5B9A\u9700\u8981\u53D6\u6D88\u8BE5\u8BA2\u5355\u5E76\u9000\u6B3E\u5417?","\u63D0\u793A",{confirmButtonText:"\u786E\u8BA4",showCancelButton:!0,cancelButtonText:"\u53D6\u6D88"}).then(()=>{_.value=="agent"?I(o).then(n=>{D.success(n.msg)}):T(o).then(n=>{D.success(n.msg)}),d()})};return O(()=>[a.page,a.limit,a.agentid],()=>{d()},{deep:!0}),(o,n)=>{const m=c("el-form-item"),f=c("el-button"),v=c("el-form"),t=c("el-table-column"),y=c("el-table"),C=c("el-pagination");return g(),q(P,null,[p("div",S,[e(v,{"label-width":"90px"},{default:s(()=>[u(_)==="shangpu"?(g(),b(m,{key:0,label:"\u4EE3\u7406\u533A\u57DF"},{default:s(()=>[e(u(H),{modelValue:u(a).agentid,"onUpdate:modelValue":n[0]||(n[0]=l=>u(a).agentid=l)},null,8,["modelValue"])]),_:1})):h("",!0),e(m,null,{default:s(()=>[e(f,{type:"primary",onClick:d},{default:s(()=>[M]),_:1})]),_:1})]),_:1})]),p("div",$,[p("div",j,[e(y,{data:u(i).list},{default:s(()=>[e(t,{prop:"id",align:"center",label:"ID"}),e(t,{prop:"agent_title",align:"center",label:"\u4EE3\u7406\u533A\u57DF"}),e(t,{prop:"uid",align:"center",label:"\u5356\u5BB6UID"}),e(t,{prop:"seller_uid",align:"center",label:"\u4E70\u5BB6UID"}),e(t,{prop:"realname",align:"center",label:"\u5356\u5BB6\u540D\u79F0"}),e(t,{prop:"address",align:"center",label:"\u6536\u83B7\u5730\u5740"}),e(t,{prop:"goods_price",align:"center",label:"\u5546\u54C1\u603B\u4EF7"}),e(t,{prop:"express_price",align:"center",label:"\u90AE\u8D39"}),e(t,{prop:"final_fee",align:"center",label:"\u652F\u4ED8\u91D1\u989D"}),e(t,{prop:"ordersn",align:"center",label:"\u8BA2\u5355\u7F16\u53F7"}),e(t,{prop:"status_text",align:"center",label:"\u8BA2\u5355\u72B6\u6001"}),e(t,{prop:"addtime",align:"center",label:"\u4E0B\u5355\u65F6\u95F4"}),e(t,{prop:"paytime",align:"center",label:"\u652F\u4ED8\u65F6\u95F4"}),e(t,{align:"center",label:"\u64CD\u4F5C"},{default:s(l=>[(l.row.status==1||l.row.status==2)&&l.row.is_pay==1?(g(),b(f,{key:0,type:"warning",onClick:K=>x(l.row.id)},{default:s(()=>[L]),_:2},1032,["onClick"])):h("",!0)]),_:1})]),_:1},8,["data"])])]),p("div",G,[e(C,{currentPage:u(a).page,"onUpdate:currentPage":n[1]||(n[1]=l=>u(a).page=l),"page-size":u(a).limit,"onUpdate:page-size":n[2]||(n[2]=l=>u(a).limit=l),"page-sizes":[10,20,30,40],layout:"total, sizes, prev, pager, next, jumper",total:u(i).count},null,8,["currentPage","page-size","total"])])],64)}}});const Z=z(J,[["__scopeId","data-v-512e78a3"]]);export{Z as default};
