(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[251],{5859:function($,o,t){"use strict";t.r(o),t.d(o,{default:function(){return y}});var A=t(66456),p=t(10363),B=t(57663),S=t(71577),r=t(39428),h=t(3182),O=t(14965),C=t(34895),c=t(2824),s=t(67294),x=t(48971),g={GetData:function(d){return(0,x.WY)("/groupmeal/api/Reservation/GetConsumeInfo",{method:"POST",data:d})}},Z=t(28790),a=t(85893),y=function(){var j=(0,s.useRef)(),d=(0,s.useState)([]),v=(0,c.Z)(d,2),T=v[0],D=v[1],G=(0,s.useState)([]),f=(0,c.Z)(G,2),m=f[0],R=f[1],P=C.Z.RangePicker;(0,s.useEffect)(function(){I()},[]);var I=function(){var i=(0,h.Z)((0,r.Z)().mark(function l(){var e,u;return(0,r.Z)().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,g.GetData({startTime:m[0],endTime:m[1]});case 2:u=n.sent,D(u==null||(e=u.data)===null||e===void 0?void 0:e.data);case 4:case"end":return n.stop()}},l)}));return function(){return i.apply(this,arguments)}}(),E=[{title:"\u65F6\u95F4",dataIndex:"date",ellipsis:!0,hideInSearch:!0},{title:"\u65E9\u4E0A\u6D88\u8D39\u6B21\u6570",dataIndex:"amCount",ellipsis:!0,hideInSearch:!0},{title:"\u65E9\u4E0A\u6D88\u8D39\u91D1\u989D",dataIndex:"amCount1",ellipsis:!0,hideInSearch:!0},{title:"\u4E2D\u5348\u6D88\u8D39\u6B21\u6570",dataIndex:"pmCount",ellipsis:!0,hideInSearch:!0},{title:"\u4E2D\u5348\u6D88\u8D39\u91D1\u989D",dataIndex:"pmCount1",ellipsis:!0,hideInSearch:!0},{title:"\u665A\u4E0A\u6D88\u8D39\u6B21\u6570",dataIndex:"atCount",ellipsis:!0,hideInSearch:!0},{title:"\u665A\u4E0A\u6D88\u8D39\u91D1\u989D",dataIndex:"atCount1",ellipsis:!0,hideInSearch:!0},{title:"\u603B\u8BA1\u6D88\u8D39\u6B21\u6570",dataIndex:"totalCount",ellipsis:!0,hideInSearch:!0},{title:"\u91D1\u989D\u603B\u8BA1",dataIndex:"totalCount1",ellipsis:!0,hideInSearch:!0}],F=function(l,e){R(e)};return(0,a.jsxs)(Z.ZP,{header:{title:"",breadcrumb:{}},children:[(0,a.jsxs)("div",{style:{height:"50px"},children:[(0,a.jsxs)("div",{style:{float:"left"},children:[(0,a.jsx)("span",{children:"\u65F6\u95F4\uFF1A"}),(0,a.jsx)(P,{onChange:F})]}),(0,a.jsx)(S.Z,{type:"primary",style:{float:"right"},onClick:(0,h.Z)((0,r.Z)().mark(function i(){return(0,r.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,I();case 2:case"end":return e.stop()}},i)})),children:"\u67E5\u8BE2"})]}),(0,a.jsx)(p.Z,{columns:E,dataSource:T})]})}}}]);
