import{_ as E,d as b,m as l,Q as c,w,r,o as x,c as Y,b as n,h as t,x as s,a as y}from"./index.b5c844d0.js";import{f as B,g as C}from"./index.e4c1dc90.js";const A={class:"wrapper"},g={class:"w-full flex justify-end"},F=b({__name:"index",setup(M){const a=l([c(new Date).format("YYYY-MM-DD"),c(new Date).format("YYYY-MM-DD")]);l(!1);const m=l([]),_=l([]);async function f(){const d=await B({start:a.value[0]+" 00:00:00",end:a.value[1]+" 23:59:59"}),e=d.data.reduce((u,p)=>({...u,num:u.num+p.num}),{name:"\u5408\u8BA1",num:0});m.value=[...d.data,e]}async function D(){await C({start:a.value[0]+" 00:00:00",end:a.value[1]+" 23:59:59"})}return w(()=>a.value,()=>{f(),D()},{immediate:!0}),(d,e)=>{const u=r("ElDatePicker"),p=r("ElRow"),o=r("el-table-column"),i=r("el-table");return x(),Y("div",A,[n("div",g,[t(p,null,{default:s(()=>[t(u,{type:"daterange",modelValue:a.value,"onUpdate:modelValue":e[0]||(e[0]=v=>a.value=v),"value-format":"YYYY-MM-DD",clearable:!1},null,8,["modelValue"])]),_:1})]),e[2]||(e[2]=n("p",{style:{"margin-bottom":"10px"}}," 1.\u7ADE\u4EF7\u54A8\u8BE2\u7EDF\u8BA1",-1)),t(i,{data:m.value,size:"small",border:""},{default:s(()=>[t(o,{label:"\u90E8\u95E8",prop:"name"}),t(o,{label:"\u6570\u91CF",prop:"num"})]),_:1},8,["data"]),e[3]||(e[3]=n("p",{style:{"margin-bottom":"10px"}}," 2.\u7ADE\u4EF7\u53CD\u9988\u7EDF\u8BA1",-1)),t(i,{data:_.value,size:"mini",border:""},{default:s(()=>[t(o,{label:"\u91C7\u8D2D\u5458",prop:"creater",width:"120px"}),t(o,{label:"\u53CD\u9988\u5355\u6570",prop:"num"}),t(o,{label:"\u7ADE\u4EF7\u53C2\u4E0E\u5EA6",prop:"participation",width:"120px"},{default:s(()=>e[1]||(e[1]=[n("template",{"slot-scope":"scope"},[y(" {{ getParticipation(scope.row.num) }} ")],-1)])),_:1})]),_:1},8,["data"])])}}});var k=E(F,[["__file","D:/work/sjtj/report-v3/src/views/dashboard/orders/index.vue"]]);export{k as default};