import{az as U,d as L,a6 as M,r as N,b as B,p as j,c as n,e as p,f as E,g as s,h as e,i as u,u as o,k as v,A as f,F as k,j as q,t as b,m as D,a as y,R as T,S as O,_ as G}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 J=c=>U.request({url:"addon/teamReward.web.DeliveryerRewardRecord/list",params:c}),h=c=>(T("data-v-c0b7b719"),c=c(),O(),c),K={class:"filter-form"},Q=D("\u7B5B\u9009"),W=h(()=>s("div",{class:"header"},[s("div",{class:"tn-title--vertical-line title"},"\u603B\u89C8")],-1)),X={class:"body"},Z={class:"data"},$=h(()=>s("div",{class:"data-title"},"\u8BA2\u5355\u603B\u6570\u91CF",-1)),ee={class:"data-value"},te={class:"data"},ae=h(()=>s("div",{class:"data-title"},"\u5956\u52B1\u603B\u91D1\u989D",-1)),le={class:"data-value"},oe={class:"data"},ue={class:"table"},se=D("\u5DF2\u53D1\u653E"),ne=D("\u672A\u53D1\u653E"),re={class:"pagination"},de=L({setup(c){const{OpPlatform:A}=M(),_=N([]),x=[{text:"\u4E00\u5468\u5185",value:()=>{const a=y();return[a.subtract(1,"week").toDate(),a.toDate()]}},{text:"\u4E24\u5468\u5185",value:()=>{const a=y();return[a.subtract(2,"week").toDate(),a.toDate()]}},{text:"\u4E00\u4E2A\u6708\u5185",value:()=>{const a=y();return[a.subtract(1,"month").toDate(),a.toDate()]}}],l=B({page:1,limit:10,agentid:"",deliveryer_id:"",startday:"",endday:""}),r=B({deliverys:[],total_nums:0,total_prices:0,lists:[],count:0}),g=()=>{_.value||(_.value=[]),l.startday=_.value[0],l.endday=_.value[1],J(l).then(a=>{r.lists=a.lists,r.count=a.count,r.deliverys=a.deliverys,r.total_nums=a.total_nums,r.total_prices=a.total_prices})};g(),j(()=>[l.page,l.limit,l.agentid,l.deliveryer_id],()=>{g()},{deep:!0});const V=()=>{g()};return(a,d)=>{const m=n("el-form-item"),w=n("el-option"),C=n("el-select"),R=n("el-date-picker"),S=n("el-button"),Y=n("el-form"),z=n("el-card"),i=n("el-table-column"),F=n("el-tag"),P=n("el-table"),I=n("el-pagination");return p(),E(k,null,[s("div",K,[e(Y,{"label-width":"120px"},{default:u(()=>[o(A)==="shangpu"?(p(),v(m,{key:0,label:"\u4EE3\u7406\u533A\u57DF"},{default:u(()=>[e(o(H),{modelValue:o(l).agentid,"onUpdate:modelValue":d[0]||(d[0]=t=>o(l).agentid=t)},null,8,["modelValue"])]),_:1})):f("",!0),e(m,{class:"tn-el-form-item",label:"\u9A91\u624B"},{default:u(()=>[e(C,{modelValue:o(l).deliveryer_id,"onUpdate:modelValue":d[1]||(d[1]=t=>o(l).deliveryer_id=t),placeholder:"\u8BF7\u9009\u62E9\u9A91\u624B",filterable:"",clearable:""},{default:u(()=>[(p(!0),E(k,null,q(o(r).deliverys,(t,ie)=>(p(),v(w,{value:t.id,label:t.title},null,8,["value","label"]))),256))]),_:1},8,["modelValue"])]),_:1}),e(m,{class:"tn-el-form-item",label:"\u7B5B\u9009\u65F6\u95F4"},{default:u(()=>[e(R,{modelValue:_.value,"onUpdate:modelValue":d[2]||(d[2]=t=>_.value=t),type:"daterange","range-separator":"\u81F3","start-placeholder":"\u5F00\u59CB\u65F6\u95F4","end-placeholder":"\u7ED3\u675F\u65F6\u95F4",format:"YYYY-MM-DD","value-format":"YYYY-MM-DD",shortcuts:x,style:{"margin-left":"8px"},onChange:V},null,8,["modelValue"])]),_:1}),e(m,null,{default:u(()=>[e(S,{type:"primary",onClick:a.getStoreRewardList},{default:u(()=>[Q]),_:1},8,["onClick"])]),_:1})]),_:1})]),e(z,{class:"overview"},{header:u(()=>[W]),default:u(()=>[s("div",X,[s("div",Z,[$,s("div",ee,b(o(r).total_nums),1)]),s("div",te,[ae,s("div",le,"\xA5 "+b(o(r).total_prices),1)])])]),_:1}),s("div",oe,[s("div",ue,[e(P,{data:o(r).lists},{default:u(()=>[e(i,{label:"ID",prop:"id"}),e(i,{prop:"agent_title",label:"\u4EE3\u7406\u533A\u57DF"}),e(i,{prop:"price",label:"\u9A91\u624B"},{default:u(({row:t})=>[s("span",null,b(t.deliveryer.title),1)]),_:1}),e(i,{prop:"num",label:"\u8BA2\u5355\u6570\u91CF"}),e(i,{prop:"price",label:"\u5956\u52B1\u91D1\u989D"}),e(i,{label:"\u5956\u52B1\u662F\u5426\u53D1\u653E"},{default:u(({row:t})=>[t.is_pay==1?(p(),v(F,{key:0,type:"success"},{default:u(()=>[se]),_:1})):f("",!0),t.is_pay==0?(p(),v(F,{key:1,type:"danger"},{default:u(()=>[ne]),_:1})):f("",!0)]),_:1}),e(i,{prop:"date",label:"\u53D1\u653E\u65E5\u671F"}),e(i,{prop:"createtime",label:"\u53D1\u653E\u65F6\u95F4"})]),_:1},8,["data"])])]),s("div",re,[e(I,{currentPage:o(l).page,"onUpdate:currentPage":d[3]||(d[3]=t=>o(l).page=t),"page-size":o(l).limit,"onUpdate:page-size":d[4]||(d[4]=t=>o(l).limit=t),"page-sizes":[10,20,30,40],layout:"total, sizes, prev, pager, next, jumper",total:o(r).count},null,8,["currentPage","page-size","total"])])],64)}}});const ge=G(de,[["__scopeId","data-v-c0b7b719"]]);export{ge as default};
