(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[5679,1322,8821,3416,3729,2320,2359,858],{33388:function(y){y.exports={"welcome-head":"welcome-head___2uLA1","welcome-head-org":"welcome-head-org___TTx63","echarts-card-choose":"echarts-card-choose___2oFaE","my-loading":"my-loading___11j2H","device-list":"device-list___D-nOI","my-range-picker":"my-range-picker___3WXGc","tabs-title":"tabs-title___3n9F2"}},80638:function(){},74457:function(y,_,t){"use strict";t.r(_),t.d(_,{default:function(){return m}});var a=t(20228),d=t(11382),M=t(66456),p=t(61128),h=t(58024),o=t(91894),c=t(13062),B=t(71230),j=t(57663),x=t(71577),A=t(89032),L=t(15746),e=t(3182),C=t(2824),O=t(14965),v=t(91774),n=t(18106),T=t(51752),E=t(94043),r=t.n(E),f=t(67294),w=t(78009),X=t(33388),R=t.n(X),F=t(30381),u=t.n(F),I=t(48971),W={GetSalesReport:function(K){return(0,I.WY)("/kitchen/api/Order/GetSalesReport",{method:"Post",data:K})}},z=t(51496),l=t(85893),Q=T.Z.TabPane,k=v.Z.RangePicker,G=function(){var K=(0,f.useState)("left"),D=(0,C.Z)(K,2),N=D[0],q=D[1],P=(0,f.useState)(1),i=(0,C.Z)(P,2),s=i[0],g=i[1],tt=(0,f.useState)([]),$=(0,C.Z)(tt,2),it=$[0],ot=$[1],ct=(0,f.useState)([u()(u()(new Date(Date.now())).format("YYYY-MM-DD 00:00:00")),u()(u()(new Date(Date.now())).format("YYYY-MM-DD 23:59:59"))]),et=(0,C.Z)(ct,2),at=et[0],nt=et[1],Y=(0,f.useState)(!1),Z=(0,C.Z)(Y,2),H=Z[0],rt=Z[1],st=[{title:"\u540D\u79F0",dataIndex:"name",hideInSearch:!0},{title:"\u9500\u552E\u6570\u91CF",dataIndex:"saleCount",hideInSearch:!0}];(0,f.useEffect)(function(){V()},[s]);var V=function(){var J=(0,e.Z)(r().mark(function b(){var U,ut,dt;return r().wrap(function(lt){for(;;)switch(lt.prev=lt.next){case 0:return rt(!0),U=u()(at[0]).format("YYYY-MM-DD HH:mm:ss"),ut=u()(at[1]).format("YYYY-MM-DD HH:mm:ss"),lt.next=5,W.GetSalesReport({type:s,startTime:U,endTime:ut});case 5:dt=lt.sent,dt.forEach(function(ft){ft.key=(0,z.x0)()}),ot(dt),rt(!1);case 9:case"end":return lt.stop()}},b)}));return function(){return J.apply(this,arguments)}}();return(0,l.jsx)(l.Fragment,{children:(0,l.jsxs)(w.ZP,{children:[(0,l.jsx)(o.Z,{style:{marginBottom:"30px"},children:(0,l.jsxs)(B.Z,{children:[(0,l.jsx)(L.Z,{xs:24,sm:12,md:12,lg:12,xl:6,style:{margin:"10px 0"},children:(0,l.jsxs)("div",{className:R()["echarts-card-choose"],children:[(0,l.jsx)("div",{className:R()["echarts-card-choose-text"],children:"\u8D77\u6B62\u65F6\u95F4\uFF1A"}),(0,l.jsx)(k,{showTime:!0,style:{width:"70%"},className:R()["my-range-picker"],value:at,onChange:function(b,U){var ut=[u()(u()(new Date(U[0])).format("YYYY-MM-DD 00:00:00")),u()(u()(new Date(U[1])).format("YYYY-MM-DD 23:59:59"))];nt(ut)}})]})}),(0,l.jsxs)(L.Z,{xs:24,sm:12,md:12,lg:12,xl:6,style:{margin:"10px 0"},children:[(0,l.jsx)(x.Z,{className:R()["echarts-card-btn"],type:"primary",style:{width:"100px",marginRight:"10px"},onClick:function(){return V()},children:"\u67E5\u8BE2"}),(0,l.jsx)(x.Z,{className:R()["echarts-card-btn"],style:{width:"100px"},onClick:function(){nt([u()(u()(new Date(Date.now())).format("YYYY-MM-DD 00:00:00")),u()(u()(new Date(Date.now())).format("YYYY-MM-DD 23:59:59"))])},children:"\u91CD\u7F6E"})]})]})}),(0,l.jsx)(o.Z,{children:(0,l.jsx)(d.Z,{spinning:H,delay:500,children:(0,l.jsx)(T.Z,{tabPosition:N,value:s,onChange:function(b){g(b)},items:new Array(2).fill(null).map(function(J,b){var U=String(b+1);return{label:U==1?"\u5206\u7C7B\u7EDF\u8BA1":"\u5355\u54C1\u7EDF\u8BA1",key:U,children:(0,l.jsx)(p.Z,{columns:st,dataSource:it})}})})})})]})})},m=G},15746:function(y,_,t){"use strict";var a=t(21584);_.Z=a.Z},89032:function(y,_,t){"use strict";var a=t(38663),d=t.n(a),M=t(6999)},99134:function(y,_,t){"use strict";var a=t(67294),d=(0,a.createContext)({});_.Z=d},21584:function(y,_,t){"use strict";var a=t(96156),d=t(22122),M=t(90484),p=t(94184),h=t.n(p),o=t(67294),c=t(53124),B=t(99134),j=function(e,C){var O={};for(var v in e)Object.prototype.hasOwnProperty.call(e,v)&&C.indexOf(v)<0&&(O[v]=e[v]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,v=Object.getOwnPropertySymbols(e);n0){var N=r[0]/2;D.paddingLeft=N,D.paddingRight=N}if(r&&r[1]>0&&!w){var q=r[1]/2;D.paddingTop=q,D.paddingBottom=q}return Q&&(D.flex=x(Q),f===!1&&!D.minWidth&&(D.minWidth=0)),o.createElement("div",(0,d.Z)({},G,{style:(0,d.Z)((0,d.Z)({},D),k),className:K,ref:C}),l)});_.Z=L},92820:function(y,_,t){"use strict";var a=t(22122),d=t(96156),M=t(90484),p=t(28481),h=t(94184),o=t.n(h),c=t(67294),B=t(53124),j=t(98082),x=t(24308),A=t(93355),L=t(99134),e=function(n,T){var E={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&T.indexOf(r)<0&&(E[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var f=0,r=Object.getOwnPropertySymbols(n);f0?i[0]/-2:void 0,$=i[1]!=null&&i[1]>0?i[1]/-2:void 0;if(tt&&(g.marginLeft=tt,g.marginRight=tt),D){var it=(0,p.Z)(i,2);g.rowGap=it[1]}else $&&(g.marginTop=$,g.marginBottom=$);var ot=(0,p.Z)(i,2),ct=ot[0],et=ot[1],at=c.useMemo(function(){return{gutter:[ct,et],wrap:W,supportFlexGap:D}},[ct,et,W,D]);return c.createElement(L.Z.Provider,{value:at},c.createElement("div",(0,a.Z)({},z,{className:s,style:(0,a.Z)((0,a.Z)({},g),R),ref:T}),F))});_.Z=v},6999:function(y,_,t){"use strict";var a=t(38663),d=t.n(a),M=t(80638),p=t.n(M)},71230:function(y,_,t){"use strict";var a=t(92820);_.Z=a.Z},13062:function(y,_,t){"use strict";var a=t(38663),d=t.n(a),M=t(6999)},51496:function(y,_,t){"use strict";t.d(_,{x0:function(){return p}});let a=h=>crypto.getRandomValues(new Uint8Array(h)),d=(h,o,c)=>{let B=(2<{let A="";for(;;){let L=c(j),e=j;for(;e--;)if(A+=h[L[e]&B]||"",A.length===x)return A}}},M=(h,o=21)=>d(h,o,a),p=(h=21)=>crypto.getRandomValues(new Uint8Array(h)).reduce((o,c)=>(c&=63,c<36?o+=c.toString(36):c<62?o+=(c-26).toString(36).toUpperCase():c>62?o+="-":o+="_",o),"")}}]);