You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

2 lines
8.5 KiB

  1. (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);n<v.length;n++)C.indexOf(v[n])<0&&Object.prototype.propertyIsEnumerable.call(e,v[n])&&(O[v[n]]=e[v[n]]);return O};function x(e){return typeof e=="number"?"".concat(e," ").concat(e," auto"):/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?"0 0 ".concat(e):e}var A=["xs","sm","md","lg","xl","xxl"],L=o.forwardRef(function(e,C){var O,v=o.useContext(c.E_),n=v.getPrefixCls,T=v.direction,E=o.useContext(B.Z),r=E.gutter,f=E.wrap,w=E.supportFlexGap,X=e.prefixCls,R=e.span,F=e.order,u=e.offset,I=e.push,W=e.pull,z=e.className,l=e.children,Q=e.flex,k=e.style,G=j(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),m=n("col",X),S={};A.forEach(function(P){var i,s={},g=e[P];typeof g=="number"?s.span=g:(0,M.Z)(g)==="object"&&(s=g||{}),delete G[P],S=(0,d.Z)((0,d.Z)({},S),(i={},(0,a.Z)(i,"".concat(m,"-").concat(P,"-").concat(s.span),s.span!==void 0),(0,a.Z)(i,"".concat(m,"-").concat(P,"-order-").concat(s.order),s.order||s.order===0),(0,a.Z)(i,"".concat(m,"-").concat(P,"-offset-").concat(s.offset),s.offset||s.offset===0),(0,a.Z)(i,"".concat(m,"-").concat(P,"-push-").concat(s.push),s.push||s.push===0),(0,a.Z)(i,"".concat(m,"-").concat(P,"-pull-").concat(s.pull),s.pull||s.pull===0),(0,a.Z)(i,"".concat(m,"-rtl"),T==="rtl"),i))});var K=h()(m,(O={},(0,a.Z)(O,"".concat(m,"-").concat(R),R!==void 0),(0,a.Z)(O,"".concat(m,"-order-").concat(F),F),(0,a.Z)(O,"".concat(m,"-offset-").concat(u),u),(0,a.Z)(O,"".concat(m,"-push-").concat(I),I),(0,a.Z)(O,"".concat(m,"-pull-").concat(W),W),O),z,S),D={};if(r&&r[0]>0){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);f<r.length;f++)T.indexOf(r[f])<0&&Object.prototype.propertyIsEnumerable.call(n,r[f])&&(E[r[f]]=n[r[f]]);return E},C=(0,A.b)("top","middle","bottom","stretch"),O=(0,A.b)("start","end","center","space-around","space-between","space-evenly"),v=c.forwardRef(function(n,T){var E,r=n.prefixCls,f=n.justify,w=n.align,X=n.className,R=n.style,F=n.children,u=n.gutter,I=u===void 0?0:u,W=n.wrap,z=e(n,["prefixCls","justify","align","className","style","children","gutter","wrap"]),l=c.useContext(B.E_),Q=l.getPrefixCls,k=l.direction,G=c.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),m=(0,p.Z)(G,2),S=m[0],K=m[1],D=(0,j.Z)(),N=c.useRef(I);c.useEffect(function(){var nt=x.ZP.subscribe(function(Y){var Z=N.current||0;(!Array.isArray(Z)&&(0,M.Z)(Z)==="object"||Array.isArray(Z)&&((0,M.Z)(Z[0])==="object"||(0,M.Z)(Z[1])==="object"))&&K(Y)});return function(){return x.ZP.unsubscribe(nt)}},[]);var q=function(){var Y=[void 0,void 0],Z=Array.isArray(I)?I:[I,void 0];return Z.forEach(function(H,rt){if((0,M.Z)(H)==="object")for(var st=0;st<x.c4.length;st++){var V=x.c4[st];if(S[V]&&H[V]!==void 0){Y[rt]=H[V];break}}else Y[rt]=H}),Y},P=Q("row",r),i=q(),s=o()(P,(E={},(0,d.Z)(E,"".concat(P,"-no-wrap"),W===!1),(0,d.Z)(E,"".concat(P,"-").concat(f),f),(0,d.Z)(E,"".concat(P,"-").concat(w),w),(0,d.Z)(E,"".concat(P,"-rtl"),k==="rtl"),E),X),g={},tt=i[0]!=null&&i[0]>0?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<<Math.log(h.length-1)/Math.LN2)-1,j=-~(1.6*B*o/h.length);return(x=o)=>{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),"")}}]);