Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

p__order__DailyReport.3051486a.async.js 8.9 KiB

1
  1. (self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[3666,1322,9464,1981,2869,7013,9719,2383],{14837:function(T){T.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(T,_,e){"use strict";e.r(_),e.d(_,{default:function(){return Q}});var a=e(20228),i=e(11382),O=e(66456),x=e(64411),D=e(58024),c=e(91894),s=e(13062),b=e(71230),$=e(57663),P=e(71577),j=e(89032),w=e(15746),t=e(39428),H=e(3182),d=e(2824),v=e(14965),C=e(91774),n=e(18106),g=e(95562),r=e(67294),f=e(78009),y=e(14837),p=e.n(y),N=e(30381),u=e.n(N),I=e(48971),B={GetSalesReport:function(L){return(0,I.WY)("/kitchen/api/Order/GetDailyReport",{method:"Post",data:L})}},R=e(51496),l=e(85893),oe=g.Z.TabPane,J=C.Z.RangePicker,ee=function(){var L=(0,r.useState)("left"),z=(0,d.Z)(L,2),Z=z[0],te=z[1],V=(0,r.useState)(1),M=(0,d.Z)(V,2),h=M[0],o=M[1],W=(0,r.useState)([]),k=(0,d.Z)(W,2),ue=k[0],ie=k[1],X=(0,r.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"))]),S=(0,d.Z)(X,2),ae=S[0],K=S[1],ne=(0,r.useState)(!1),q=(0,d.Z)(ne,2),fe=q[0],re=q[1],ce=[{title:"\u540D\u79F0",dataIndex:"name",width:100,hideInSearch:!0},{title:"\u91D1\u989D",dataIndex:"saleMoney",hideInSearch:!0}];(0,r.useEffect)(function(){se()},[h]);var se=function(){var G=(0,H.Z)((0,t.Z)().mark(function U(){var E,A,F;return(0,t.Z)().wrap(function(Y){for(;;)switch(Y.prev=Y.next){case 0:return re(!0),E=u()(ae[0]).format("YYYY-MM-DD HH:mm:ss"),A=u()(ae[1]).format("YYYY-MM-DD HH:mm:ss"),Y.next=5,B.GetSalesReport({type:h,startTime:E,endTime:A});case 5:F=Y.sent,F.forEach(function(le){le.key=(0,R.x0)()}),ie(F),re(!1);case 9:case"end":return Y.stop()}},U)}));return function(){return G.apply(this,arguments)}}();return(0,l.jsx)(l.Fragment,{children:(0,l.jsxs)(f.ZP,{children:[(0,l.jsx)(c.Z,{style:{marginBottom:"30px"},children:(0,l.jsxs)(b.Z,{children:[(0,l.jsx)(w.Z,{xs:24,sm:12,md:12,lg:12,xl:6,style:{margin:"10px 0"},children:(0,l.jsxs)("div",{className:p()["echarts-card-choose"],children:[(0,l.jsx)("div",{className:p()["echarts-card-choose-text"],children:"\u8D77\u6B62\u65F6\u95F4\uFF1A"}),(0,l.jsx)(J,{showTime:!0,style:{width:"70%"},className:p()["my-range-picker"],value:ae,onChange:function(U,E){var A=[u()(u()(new Date(E[0])).format("YYYY-MM-DD 00:00:00")),u()(u()(new Date(E[1])).format("YYYY-MM-DD 23:59:59"))];K(A)}})]})}),(0,l.jsxs)(w.Z,{xs:24,sm:12,md:12,lg:12,xl:6,style:{margin:"10px 0"},children:[(0,l.jsx)(P.Z,{className:p()["echarts-card-btn"],type:"primary",style:{width:"100px",marginRight:"10px"},onClick:function(){return se()},children:"\u67E5\u8BE2"}),(0,l.jsx)(P.Z,{className:p()["echarts-card-btn"],style:{width:"100px"},onClick:function(){K([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)(c.Z,{children:(0,l.jsx)(i.Z,{spinning:fe,delay:500,children:(0,l.jsx)(g.Z,{tabPosition:Z,value:h,onChange:function(U){o(U)},items:new Array(2).fill(null).map(function(G,U){var E=String(U+1);return{label:E==1?"\u8425\u6536\u603B\u89C8":"\u652F\u4ED8\u6E20\u9053",key:E,children:(0,l.jsx)(x.Z,{columns:ce,dataSource:ue})}})})})})]})})},Q=ee},15746:function(T,_,e){"use strict";var a=e(21584);_.Z=a.Z},89032:function(T,_,e){"use strict";var a=e(38663),i=e.n(a),O=e(6999)},99134:function(T,_,e){"use strict";var a=e(67294),i=(0,a.createContext)({});_.Z=i},21584:function(T,_,e){"use strict";var a=e(96156),i=e(22122),O=e(90484),x=e(94184),D=e.n(x),c=e(67294),s=e(53124),b=e(99134),$=function(t,H){var d={};for(var v in t)Object.prototype.hasOwnProperty.call(t,v)&&H.indexOf(v)<0&&(d[v]=t[v]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var C=0,v=Object.getOwnPropertySymbols(t);C<v.length;C++)H.indexOf(v[C])<0&&Object.prototype.propertyIsEnumerable.call(t,v[C])&&(d[v[C]]=t[v[C]]);return d};function P(t){return typeof t=="number"?"".concat(t," ").concat(t," auto"):/^\d+(\.\d+)?(px|em|rem|%)$/.test(t)?"0 0 ".concat(t):t}var j=["xs","sm","md","lg","xl","xxl"],w=c.forwardRef(function(t,H){var d,v=c.useContext(s.E_),C=v.getPrefixCls,n=v.direction,g=c.useContext(b.Z),r=g.gutter,f=g.wrap,y=g.supportFlexGap,p=t.prefixCls,N=t.span,u=t.order,I=t.offset,B=t.push,R=t.pull,l=t.className,oe=t.children,J=t.flex,ee=t.style,Q=$(t,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),m=C("col",p),L={};j.forEach(function(M){var h,o={},W=t[M];typeof W=="number"?o.span=W:(0,O.Z)(W)==="object"&&(o=W||{}),delete Q[M],L=(0,i.Z)((0,i.Z)({},L),(h={},(0,a.Z)(h,"".concat(m,"-").concat(M,"-").concat(o.span),o.span!==void 0),(0,a.Z)(h,"".concat(m,"-").concat(M,"-order-").concat(o.order),o.order||o.order===0),(0,a.Z)(h,"".concat(m,"-").concat(M,"-offset-").concat(o.offset),o.offset||o.offset===0),(0,a.Z)(h,"".concat(m,"-").concat(M,"-push-").concat(o.push),o.push||o.push===0),(0,a.Z)(h,"".concat(m,"-").concat(M,"-pull-").concat(o.pull),o.pull||o.pull===0),(0,a.Z)(h,"".concat(m,"-rtl"),n==="rtl"),h))});var z=D()(m,(d={},(0,a.Z)(d,"".concat(m,"-").concat(N),N!==void 0),(0,a.Z)(d,"".concat(m,"-order-").concat(u),u),(0,a.Z)(d,"".concat(m,"-offset-").concat(I),I),(0,a.Z)(d,"".concat(m,"-push-").concat(B),B),(0,a.Z)(d,"".concat(m,"-pull-").concat(R),R),d),l,L),Z={};if(r&&r[0]>0){var te=r[0]/2;Z.paddingLeft=te,Z.paddingRight=te}if(r&&r[1]>0&&!y){var V=r[1]/2;Z.paddingTop=V,Z.paddingBottom=V}return J&&(Z.flex=P(J),f===!1&&!Z.minWidth&&(Z.minWidth=0)),c.createElement("div",(0,i.Z)({},Q,{style:(0,i.Z)((0,i.Z)({},Z),ee),className:z,ref:H}),oe)});_.Z=w},92820:function(T,_,e){"use strict";var a=e(22122),i=e(96156),O=e(90484),x=e(28481),D=e(94184),c=e.n(D),s=e(67294),b=e(53124),$=e(98082),P=e(24308),j=e(93355),w=e(99134),t=function(n,g){var r={};for(var f in n)Object.prototype.hasOwnProperty.call(n,f)&&g.indexOf(f)<0&&(r[f]=n[f]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var y=0,f=Object.getOwnPropertySymbols(n);y<f.length;y++)g.indexOf(f[y])<0&&Object.prototype.propertyIsEnumerable.call(n,f[y])&&(r[f[y]]=n[f[y]]);return r},H=(0,j.b)("top","middle","bottom","stretch"),d=(0,j.b)("start","end","center","space-around","space-between","space-evenly");function v(n,g){var r=s.useState(typeof n=="string"?n:""),f=(0,x.Z)(r,2),y=f[0],p=f[1],N=function(){if(typeof n=="string"&&p(n),(0,O.Z)(n)==="object")for(var I=0;I<P.c4.length;I++){var B=P.c4[I];if(!!g[B]){var R=n[B];if(R!==void 0){p(R);return}}}};return s.useEffect(function(){N()},[JSON.stringify(n),g]),y}var C=s.forwardRef(function(n,g){var r,f=n.prefixCls,y=n.justify,p=n.align,N=n.className,u=n.style,I=n.children,B=n.gutter,R=B===void 0?0:B,l=n.wrap,oe=t(n,["prefixCls","justify","align","className","style","children","gutter","wrap"]),J=s.useContext(b.E_),ee=J.getPrefixCls,Q=J.direction,m=s.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),L=(0,x.Z)(m,2),z=L[0],Z=L[1],te=s.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),V=(0,x.Z)(te,2),M=V[0],h=V[1],o=v(p,M),W=v(y,M),k=(0,$.Z)(),ue=s.useRef(R);s.useEffect(function(){var U=P.ZP.subscribe(function(E){h(E);var A=ue.current||0;(!Array.isArray(A)&&(0,O.Z)(A)==="object"||Array.isArray(A)&&((0,O.Z)(A[0])==="object"||(0,O.Z)(A[1])==="object"))&&Z(E)});return function(){return P.ZP.unsubscribe(U)}},[]);var ie=function(){var E=[void 0,void 0],A=Array.isArray(R)?R:[R,void 0];return A.forEach(function(F,de){if((0,O.Z)(F)==="object")for(var Y=0;Y<P.c4.length;Y++){var le=P.c4[Y];if(z[le]&&F[le]!==void 0){E[de]=F[le];break}}else E[de]=F}),E},X=ee("row",f),S=ie(),ae=c()(X,(r={},(0,i.Z)(r,"".concat(X,"-no-wrap"),l===!1),(0,i.Z)(r,"".concat(X,"-").concat(W),W),(0,i.Z)(r,"".concat(X,"-").concat(o),o),(0,i.Z)(r,"".concat(X,"-rtl"),Q==="rtl"),r),N),K={},ne=S[0]!=null&&S[0]>0?S[0]/-2:void 0,q=S[1]!=null&&S[1]>0?S[1]/-2:void 0;if(ne&&(K.marginLeft=ne,K.marginRight=ne),k){var fe=(0,x.Z)(S,2);K.rowGap=fe[1]}else q&&(K.marginTop=q,K.marginBottom=q);var re=(0,x.Z)(S,2),ce=re[0],se=re[1],G=s.useMemo(function(){return{gutter:[ce,se],wrap:l,supportFlexGap:k}},[ce,se,l,k]);return s.createElement(w.Z.Provider,{value:G},s.createElement("div",(0,a.Z)({},oe,{className:ae,style:(0,a.Z)((0,a.Z)({},K),u),ref:g}),I))});_.Z=C},6999:function(T,_,e){"use strict";var a=e(38663),i=e.n(a),O=e(80638),x=e.n(O)},71230:function(T,_,e){"use strict";var a=e(92820);_.Z=a.Z},13062:function(T,_,e){"use strict";var a=e(38663),i=e.n(a),O=e(6999)},51496:function(T,_,e){"use strict";e.d(_,{x0:function(){return x}});let a=D=>crypto.getRandomValues(new Uint8Array(D)),i=(D,c,s)=>{let b=(2<<Math.log(D.length-1)/Math.LN2)-1,$=-~(1.6*b*c/D.length);return(P=c)=>{let j="";for(;;){let w=s($),t=$;for(;t--;)if(j+=D[w[t]&b]||"",j.length===P)return j}}},O=(D,c=21)=>i(D,c,a),x=(D=21)=>crypto.getRandomValues(new Uint8Array(D)).reduce((c,s)=>(s&=63,s<36?c+=s.toString(36):s<62?c+=(s-26).toString(36).toUpperCase():s>62?c+="-":c+="_",c),"")}}]);