(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[1897],{9466:function($,d,t){"use strict";t.r(d),t.d(d,{default:function(){return D}});var A=t(66456),p=t(10363),M=t(57663),S=t(71577),r=t(39428),o=t(3182),z=t(14965),x=t(34895),h=t(2824),s=t(67294),C=t(48971),g=t(96690),y={GetData:function(u){return(0,C.WY)((0,g.zr)()+"/api/Reservation/GetDayConsumeInfo",{method:"POST",data:u})}},Z=t(28790),a=t(85893),D=function(){var j=(0,s.useRef)(),u=(0,s.useState)([]),c=(0,h.Z)(u,2),G=c[0],T=c[1],R=(0,s.useState)([]),v=(0,h.Z)(R,2),f=v[0],F=v[1],P=x.Z.RangePicker;(0,s.useEffect)(function(){m()},[]);var m=function(){var i=(0,o.Z)((0,r.Z)().mark(function l(){var e,I;return(0,r.Z)().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,y.GetData({startTime:f[0],endTime:f[1]});case 2:I=n.sent,T((e=I.data)===null||e===void 0?void 0:e.data);case 4:case"end":return n.stop()}},l)}));return function(){return i.apply(this,arguments)}}(),B="YYYY/MM/DD",Y=[{title:"\u59D3\u540D",dataIndex:"name",ellipsis:!0,hideInSearch:!0},{title:"\u65F6\u95F4",dataIndex:"date",ellipsis:!0,hideInSearch:!0},{title:"\u673A\u6784",dataIndex:"tag",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}],E=function(l,e){F(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:E})]}),(0,a.jsx)(S.Z,{type:"primary",style:{float:"right"},onClick:(0,o.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,m();case 2:case"end":return e.stop()}},i)})),children:"\u67E5\u8BE2"})]}),(0,a.jsx)(p.Z,{columns:Y,dataSource:G})]})}}}]);
