|
- (self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[5259],{37547:function(F,d,t){"use strict";t.r(d),t.d(d,{default:function(){return y}});var A=t(66456),I=t(10363),$=t(57663),p=t(71577),r=t(39428),o=t(3182),B=t(14965),S=t(34895),h=t(2824),s=t(67294),x=t(48971),C={GetData:function(l){return(0,x.WY)("/groupmeal/api/Reservation/GetTimeIntervalConsumeInfo",{method:"POST",data:l})}},g=t(28790),a=t(85893),y=function(){var Z=(0,s.useRef)(),l=(0,s.useState)([]),c=(0,h.Z)(l,2),j=c[0],T=c[1],D=(0,s.useState)([]),v=(0,h.Z)(D,2),m=v[0],G=v[1],R=S.Z.RangePicker;(0,s.useEffect)(function(){f()},[]);var f=function(){var i=(0,o.Z)((0,r.Z)().mark(function u(){var e;return(0,r.Z)().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,C.GetData({startTime:m[0],endTime:m[1]});case 2:e=n.sent,T(e.data.data);case 4:case"end":return n.stop()}},u)}));return function(){return i.apply(this,arguments)}}(),P=function(u,e){G(e)},E=[{title:"\u59D3\u540D",dataIndex:"name",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}];return(0,a.jsxs)(g.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)(R,{onChange:P})]}),(0,a.jsx)(p.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,f();case 2:case"end":return e.stop()}},i)})),children:"\u67E5\u8BE2"})]}),(0,a.jsx)(I.Z,{columns:E,dataSource:j})]})}}}]);
|