25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
 
 
 

2 satır
8.5 KiB

  1. (self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[3666,1322,8821,3416,3729,2320,2359,858],{14837:function(g){g.exports={"welcome-head":"welcome-head___2tdoO","welcome-head-org":"welcome-head-org___M_H7T","echarts-card-choose":"echarts-card-choose___XEPoy","my-loading":"my-loading___3FU_O","device-list":"device-list___hC3Qm","my-range-picker":"my-range-picker___2rgCG","tabs-title":"tabs-title___3XoKj"}},80638:function(){},31436:function(g,_,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),T=t(89032),L=t(15746),e=t(3182),C=t(2824),y=t(14965),v=t(91774),n=t(18106),A=t(51752),E=t(94043),r=t.n(E),f=t(67294),w=t(78009),J=t(14837),R=t.n(J),G=t(30381),u=t.n(G),I=t(48971),U={GetSalesReport:function(S){return(0,I.WY)("/kitchen/api/Order/GetDailyReport",{method:"Post",data:S})}},Q=t(51496),l=t(85893),z=A.Z.TabPane,k=v.Z.RangePicker,N=function(){var S=(0,f.useState)("left"),D=(0,C.Z)(S,2),F=D[0],q=D[1],P=(0,f.useState)(1),i=(0,C.Z)(P,2),s=i[0],O=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",width:100,hideInSearch:!0},{title:"\u91D1\u989D",dataIndex:"saleMoney",hideInSearch:!0}];(0,f.useEffect)(function(){V()},[s]);var V=function(){var X=(0,e.Z)(r().mark(function b(){var W,ut,dt;return r().wrap(function(lt){for(;;)switch(lt.prev=lt.next){case 0:return rt(!0),W=u()(at[0]).format("YYYY-MM-DD HH:mm:ss"),ut=u()(at[1]).format("YYYY-MM-DD HH:mm:ss"),lt.next=5,U.GetSalesReport({type:s,startTime:W,endTime:ut});case 5:dt=lt.sent,dt.forEach(function(ft){ft.key=(0,Q.x0)()}),ot(dt),rt(!1);case 9:case"end":return lt.stop()}},b)}));return function(){return X.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,W){var ut=[u()(u()(new Date(W[0])).format("YYYY-MM-DD 00:00:00")),u()(u()(new Date(W[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)(A.Z,{tabPosition:F,value:s,onChange:function(b){O(b)},items:new Array(2).fill(null).map(function(X,b){var W=String(b+1);return{label:W==1?"\u8425\u6536\u603B\u89C8":"\u652F\u4ED8\u6E20\u9053",key:W,children:(0,l.jsx)(p.Z,{columns:st,dataSource:it})}})})})})]})})},m=N},15746:function(g,_,t){"use strict";var a=t(21584);_.Z=a.Z},89032:function(g,_,t){"use strict";var a=t(38663),d=t.n(a),M=t(6999)},99134:function(g,_,t){"use strict";var a=t(67294),d=(0,a.createContext)({});_.Z=d},21584:function(g,_,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 y={};for(var v in e)Object.prototype.hasOwnProperty.call(e,v)&&C.indexOf(v)<0&&(y[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])&&(y[v[n]]=e[v[n]]);return y};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 T=["xs","sm","md","lg","xl","xxl"],L=o.forwardRef(function(e,C){var y,v=o.useContext(c.E_),n=v.getPrefixCls,A=v.direction,E=o.useContext(B.Z),r=E.gutter,f=E.wrap,w=E.supportFlexGap,J=e.prefixCls,R=e.span,G=e.order,u=e.offset,I=e.push,U=e.pull,Q=e.className,l=e.children,z=e.flex,k=e.style,N=j(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),m=n("col",J),K={};T.forEach(function(P){var i,s={},O=e[P];typeof O=="number"?s.span=O:(0,M.Z)(O)==="object"&&(s=O||{}),delete N[P],K=(0,d.Z)((0,d.Z)({},K),(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"),A==="rtl"),i))});var S=h()(m,(y={},(0,a.Z)(y,"".concat(m,"-").concat(R),R!==void 0),(0,a.Z)(y,"".concat(m,"-order-").concat(G),G),(0,a.Z)(y,"".concat(m,"-offset-").concat(u),u),(0,a.Z)(y,"".concat(m,"-push-").concat(I),I),(0,a.Z)(y,"".concat(m,"-pull-").concat(U),U),y),Q,K),D={};if(r&&r[0]>0){var F=r[0]/2;D.paddingLeft=F,D.paddingRight=F}if(r&&r[1]>0&&!w){var q=r[1]/2;D.paddingTop=q,D.paddingBottom=q}return z&&(D.flex=x(z),f===!1&&!D.minWidth&&(D.minWidth=0)),o.createElement("div",(0,d.Z)({},N,{style:(0,d.Z)((0,d.Z)({},D),k),className:S,ref:C}),l)});_.Z=L},92820:function(g,_,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),T=t(93355),L=t(99134),e=function(n,A){var E={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&A.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++)A.indexOf(r[f])<0&&Object.prototype.propertyIsEnumerable.call(n,r[f])&&(E[r[f]]=n[r[f]]);return E},C=(0,T.b)("top","middle","bottom","stretch"),y=(0,T.b)("start","end","center","space-around","space-between","space-evenly"),v=c.forwardRef(function(n,A){var E,r=n.prefixCls,f=n.justify,w=n.align,J=n.className,R=n.style,G=n.children,u=n.gutter,I=u===void 0?0:u,U=n.wrap,Q=e(n,["prefixCls","justify","align","className","style","children","gutter","wrap"]),l=c.useContext(B.E_),z=l.getPrefixCls,k=l.direction,N=c.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),m=(0,p.Z)(N,2),K=m[0],S=m[1],D=(0,j.Z)(),F=c.useRef(I);c.useEffect(function(){var nt=x.ZP.subscribe(function(Y){var Z=F.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"))&&S(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(K[V]&&H[V]!==void 0){Y[rt]=H[V];break}}else Y[rt]=H}),Y},P=z("row",r),i=q(),s=o()(P,(E={},(0,d.Z)(E,"".concat(P,"-no-wrap"),U===!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),J),O={},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&&(O.marginLeft=tt,O.marginRight=tt),D){var it=(0,p.Z)(i,2);O.rowGap=it[1]}else $&&(O.marginTop=$,O.marginBottom=$);var ot=(0,p.Z)(i,2),ct=ot[0],et=ot[1],at=c.useMemo(function(){return{gutter:[ct,et],wrap:U,supportFlexGap:D}},[ct,et,U,D]);return c.createElement(L.Z.Provider,{value:at},c.createElement("div",(0,a.Z)({},Q,{className:s,style:(0,a.Z)((0,a.Z)({},O),R),ref:A}),G))});_.Z=v},6999:function(g,_,t){"use strict";var a=t(38663),d=t.n(a),M=t(80638),p=t.n(M)},71230:function(g,_,t){"use strict";var a=t(92820);_.Z=a.Z},13062:function(g,_,t){"use strict";var a=t(38663),d=t.n(a),M=t(6999)},51496:function(g,_,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 T="";for(;;){let L=c(j),e=j;for(;e--;)if(T+=h[L[e]&B]||"",T.length===x)return T}}},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),"")}}]);