import{A as U}from"./index.1d26a072.js";import{az as j,d as N,a6 as O,r as y,b as F,p as q,c as n,e as s,f as k,g as m,h as e,i as a,u,k as r,A as d,F as h,j as I,m as i,t as L,_ as S}from"./index.0308b213.js";import"./install.524ae6f2.js";import"./useAgent.c0cb1751.js";import"./list.5526c7ef.js";const P=D=>j.request({url:"addon/jielong.SdupromotionJielongOrders/list",params:D}),J={class:"filter-form"},T=i("\u67E5\u8BE2"),G={class:"data"},H={class:"table"},K=i("\u5DF2\u652F\u4ED8"),M=i("\u672A\u652F\u4ED8"),Q=i("\u5F85\u652F\u4ED8"),R=i("\u5F85\u53D1\u8D27"),W=i("\u5DF2\u53D1\u8D27"),X=i("\u5DF2\u53D6\u6D88"),Y=i("\u5DF2\u5B8C\u6210"),Z={class:"bottom"},$={class:"pagination"},ee=N({setup(D){const{OpPlatform:E}=O();y(!1),y(!1),y(0);const l=F({page:1,limit:10,sid:"",agentid:"",keyword:""}),c=F({total:0,list:[],stores:[]}),g=()=>{P(l).then(f=>{c.list=f.list,c.total=f.count,c.stores=f.stores})};g();const v=()=>{g()};return q(()=>[l.page,l.limit,l.sid,l.agentid],()=>{g()}),(f,_)=>{const b=n("el-form-item"),w=n("el-option"),x=n("el-select"),B=n("el-button"),C=n("el-form"),o=n("el-table-column"),p=n("el-tag"),A=n("el-table"),V=n("el-pagination");return s(),k(h,null,[m("div",J,[e(C,{model:u(l),"label-width":"90px"},{default:a(()=>[u(E)==="shangpu"?(s(),r(b,{key:0,label:"\u4EE3\u7406\u533A\u57DF"},{default:a(()=>[e(u(U),{modelValue:u(l).agentid,"onUpdate:modelValue":_[0]||(_[0]=t=>u(l).agentid=t)},null,8,["modelValue"])]),_:1})):d("",!0),e(b,{label:"\u5546\u6237"},{default:a(()=>[e(x,{modelValue:u(l).sid,"onUpdate:modelValue":_[1]||(_[1]=t=>u(l).sid=t),placeholder:"\u8BF7\u9009\u62E9\u5546\u6237",filterable:"",clearable:""},{default:a(()=>[(s(!0),k(h,null,I(u(c).stores,(t,z)=>(s(),r(w,{key:z,value:t.id,label:t.title},{default:a(()=>[i(L(t.title),1)]),_:2},1032,["value","label"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(b,null,{default:a(()=>[e(B,{class:"tn-el-form-item--item tn-button tn-button--blue",onClick:v},{default:a(()=>[T]),_:1})]),_:1})]),_:1},8,["model"])]),m("div",G,[m("div",H,[e(A,{data:u(c).list},{default:a(()=>[e(o,{label:"ID",prop:"id",width:"100"}),e(o,{label:"\u4EE3\u7406\u533A\u57DF",prop:"agent_title"}),e(o,{label:"\u6D3B\u52A8\u540D\u79F0",prop:"jielong_name"}),e(o,{label:"\u5546\u6237\u540D\u79F0",prop:"store_name"}),e(o,{label:"\u5546\u54C1\u540D\u79F0",prop:"goods_title"}),e(o,{label:"\u7528\u6237UID",prop:"uid"}),e(o,{label:"\u5546\u54C1\u89C4\u683C",prop:"options_title"}),e(o,{label:"\u8D2D\u4E70\u6570\u91CF",prop:"num"}),e(o,{label:"\u5546\u54C1\u603B\u989D",prop:"goods_money"}),e(o,{label:"\u652F\u4ED8\u65B9\u5F0F",prop:"pay_type_cn"}),e(o,{label:"\u652F\u4ED8\u72B6\u6001"},{default:a(t=>[t.row.is_pay==1?(s(),r(p,{key:0,type:"warning",class:"mx-1",effect:"dark"},{default:a(()=>[K]),_:1})):d("",!0),t.row.is_pay==0?(s(),r(p,{key:1,type:"danger",class:"mx-1",effect:"dark"},{default:a(()=>[M]),_:1})):d("",!0)]),_:1}),e(o,{label:"\u8BA2\u5355\u72B6\u6001"},{default:a(t=>[t.row.order_status==0?(s(),r(p,{key:0,type:"warning",class:"mx-1",effect:"dark"},{default:a(()=>[Q]),_:1})):d("",!0),t.row.order_status==1?(s(),r(p,{key:1,type:"warning",class:"mx-1",effect:"dark"},{default:a(()=>[R]),_:1})):d("",!0),t.row.order_status==2?(s(),r(p,{key:2,type:"primary",class:"mx-1",effect:"dark"},{default:a(()=>[W]),_:1})):d("",!0),t.row.order_status==3?(s(),r(p,{key:3,type:"danger",class:"mx-1",effect:"dark"},{default:a(()=>[X]),_:1})):d("",!0),t.row.order_status==4?(s(),r(p,{key:4,type:"success",class:"mx-1",effect:"dark"},{default:a(()=>[Y]),_:1})):d("",!0)]),_:1}),e(o,{label:"\u4E0B\u5355\u65F6\u95F4",prop:"create_time"}),e(o,{label:"\u652F\u4ED8\u65F6\u95F4",prop:"pay_time"})]),_:1},8,["data"])])]),m("div",Z,[m("div",$,[e(V,{"current-page":u(l).page,"onUpdate:current-page":_[2]||(_[2]=t=>u(l).page=t),"page-size":u(l).limit,"onUpdate:page-size":_[3]||(_[3]=t=>u(l).limit=t),"page-limit":[10,20,30,40],layout:"total, sizes, prev, pager, next, jumper",total:u(c).total},null,8,["current-page","page-size","total"])])])],64)}}});const se=S(ee,[["__scopeId","data-v-90e27038"]]);export{se as default};
