(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[251],{5859:function(A,o,t){"use strict";t.r(o),t.d(o,{default:function(){return j}});var z=t(66456),S=t(10363),B=t(57663),p=t(71577),r=t(39428),h=t(3182),O=t(14965),C=t(34895),v=t(2824),s=t(67294),x=t(48971),g=t(96690),Z={GetData:function(d){return(0,x.WY)((0,g.zr)()+"/api/Reservation/GetConsumeInfo",{method:"POST",data:d})}},y=t(28790),a=t(85893),j=function(){var T=(0,s.useRef)(),d=(0,s.useState)([]),c=(0,v.Z)(d,2),D=c[0],G=c[1],R=(0,s.useState)([]),f=(0,v.Z)(R,2),m=f[0],P=f[1],E=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,Z.GetData({startTime:m[0],endTime:m[1]});case 2:u=n.sent,G(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)}}(),F=[{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}],$=function(l,e){P(e)};return(0,a.jsxs)(y.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)(E,{onChange:$})]}),(0,a.jsx)(p.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)(S.Z,{columns:F,dataSource:D})]})}}}]);
