更新筛选条件,增加订单统计

This commit is contained in:
PC-202306242200\Administrator
2024-09-23 18:15:22 +08:00
parent ee8c853b79
commit 480adb69af
23 changed files with 292 additions and 85 deletions

File diff suppressed because one or more lines are too long

10
dist/6709.04f236d8.async.js vendored Normal file

File diff suppressed because one or more lines are too long

4
dist/index.html vendored
View File

@@ -3,11 +3,11 @@
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>广东星动</title>
<link rel="stylesheet" href="/umi.d4b01ce4.css">
<link rel="stylesheet" href="/umi.7b0758b1.css">
<script async="" src="/scripts/loading.js"></script>
</head>
<body>
<div id="root"></div>
<script src="/umi.60eced26.js"></script>
<script src="/umi.d07eaff9.js"></script>
</body></html>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -1 +0,0 @@
"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[9037],{63768:function(N,m,n){n.r(m),n.d(m,{default:function(){return P}});var T=n(26068),x=n.n(T),G=n(48305),f=n.n(G),v=n(50959),j=n(40676),F=n(14417),a=n(87980),s=n(23885),r=n(57385),$=n(90228),p=n.n($),D=n(87999),g=n.n(D),y=n(7485);function M(i){return Z.apply(this,arguments)}function Z(){return Z=g()(p()().mark(function i(o){return p()().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",(0,y.request)("/api/orders/statMallStatistics",x()({method:"GET"},o||{})));case 1:case"end":return u.stop()}},i)})),Z.apply(this,arguments)}function R(i){return E.apply(this,arguments)}function E(){return E=g()(p()().mark(function i(o){return p()().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",(0,y.request)("/api/orders/getAmountAndGoodsCount",x()({method:"GET"},o||{})));case 1:case"end":return u.stop()}},i)})),E.apply(this,arguments)}var B=n(54569),t=n(11527),P=function(){var i,o,d,u,W=(0,v.useState)([]),A=f()(W,2),z=A[0],H=A[1],I=(0,v.useState)([]),S=f()(I,2),e=S[0],J=S[1],K=(0,v.useState)([]),C=f()(K,2),O=C[0],Q=C[1],L={data:z,xField:"name",yField:"value",seriesField:"type",xAxis:{type:"time"},padding:"auto",legend:{position:"right-top"},yAxis:{label:{formatter:function(c){return"".concat(c).replace(/\d{1,3}(?=(\d{3})+$)/g,function(l){return"".concat(l,",")})}}}};return(0,v.useEffect)(function(){M().then(function(h){J(h.data)}),R().then(function(h){var c=[];h.data.map(function(l,U){c.push({name:l.createTime,category:"\u5546\u54C1\u6570\u91CF",value:l.goodsCount,type:1}),c.push({name:l.createTime,category:"\u91D1\u989D",value:l.amountCount,type:2})}),H(c)})},[]),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(j.Z,{children:"\u5145\u7535\u6869"}),(0,t.jsxs)(F.Z,{gutter:10,children:[(0,t.jsx)(a.Z,{span:6,children:(0,t.jsx)(s.Z,{children:(0,t.jsx)(r.Z,{title:"\u4ECA\u65E5\u5145\u7535",value:e==null||(i=e.device_count)===null||i===void 0?void 0:i.today,precision:2,prefix:"\uFFE5"})})}),(0,t.jsx)(a.Z,{span:6,children:(0,t.jsx)(s.Z,{children:(0,t.jsx)(r.Z,{title:"\u6628\u65E5\u5145\u7535",value:e==null||(o=e.device_count)===null||o===void 0?void 0:o.yesterday,precision:2,prefix:"\uFFE5"})})}),(0,t.jsx)(a.Z,{span:6,children:(0,t.jsx)(s.Z,{children:(0,t.jsx)(r.Z,{title:"\u4E0A\u5468\u5145\u7535",value:e==null||(d=e.device_count)===null||d===void 0?void 0:d.week,precision:2,prefix:"\uFFE5"})})}),(0,t.jsx)(a.Z,{span:6,children:(0,t.jsx)(s.Z,{children:(0,t.jsx)(r.Z,{title:"\u4E0A\u6708\u5145\u7535",value:e==null||(u=e.device_count)===null||u===void 0?void 0:u.month,precision:2,prefix:"\uFFE5"})})})]}),(0,t.jsx)(j.Z,{children:"\u5546\u57CE"}),(0,t.jsxs)(F.Z,{gutter:10,children:[(0,t.jsx)(a.Z,{span:6,children:(0,t.jsx)(s.Z,{children:(0,t.jsx)(r.Z,{title:"\u4ECA\u5929\u6210\u4EA4",value:e==null?void 0:e.todayTransaction,precision:2,prefix:"\uFFE5"})})}),(0,t.jsx)(a.Z,{span:6,children:(0,t.jsx)(s.Z,{children:(0,t.jsx)(r.Z,{title:"\u6628\u5929\u6210\u4EA4",value:e==null?void 0:e.yesterdayTransaction,precision:2,prefix:"\uFFE5"})})}),(0,t.jsx)(a.Z,{span:6,children:(0,t.jsx)(s.Z,{children:(0,t.jsx)(r.Z,{title:"\u4E0A\u5468\u6210\u4EA4",value:e==null?void 0:e.lastWeekTransaction,precision:2,prefix:"\uFFE5"})})}),(0,t.jsx)(a.Z,{span:6,children:(0,t.jsx)(s.Z,{children:(0,t.jsx)(r.Z,{title:"\u4E0A\u6708\u6210\u4EA4",value:e==null?void 0:e.lastMonthTransaction,precision:2,prefix:"\uFFE5"})})})]}),(0,t.jsx)(j.Z,{children:"\u5546\u57CE(\u5546\u54C1\u6570\u91CF/\u91D1\u989D)-\u6298\u7EBF\u56FE"}),(0,t.jsx)(B.Z,x()({},L))]})}}}]);

View File

@@ -0,0 +1 @@
"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[9037],{63768:function(L,m,n){n.r(m),n.d(m,{default:function(){return P}});var D=n(26068),f=n.n(D),G=n(48305),x=n.n(G),p=n(50959),j=n(40676),F=n(14417),r=n(87980),s=n(23885),a=n(57385),$=n(90228),h=n.n($),M=n(87999),g=n.n(M),y=n(7485);function N(i){return Z.apply(this,arguments)}function Z(){return Z=g()(h()().mark(function i(l){return h()().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",(0,y.request)("/api/orders/statMallStatistics",f()({method:"GET"},l||{})));case 1:case"end":return u.stop()}},i)})),Z.apply(this,arguments)}function R(i){return E.apply(this,arguments)}function E(){return E=g()(h()().mark(function i(l){return h()().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",(0,y.request)("/api/orders/getAmountAndGoodsCount",f()({method:"GET"},l||{})));case 1:case"end":return u.stop()}},i)})),E.apply(this,arguments)}var B=n(54569),t=n(11527),P=function(){var i,l,c,u,W=(0,p.useState)([]),A=x()(W,2),S=A[0],z=A[1],H=(0,p.useState)([]),C=x()(H,2),e=C[0],I=C[1],J=(0,p.useState)([]),T=x()(J,2),O=T[0],Q=T[1],K={title:{visible:!0,text:"\u5546\u57CE(\u5546\u54C1\u6570\u91CF/\u91D1\u989D)-\u6298\u7EBF\u56FE"},padding:"auto",forceFit:!0,data:S,xField:"date",yField:"value",yAxis:{label:{formatter:function(o){return"".concat(o).replace(/\d{1,3}(?=(\d{3})+$)/g,function(d){return"".concat(d,",")})}}},legend:{position:"right-top"},seriesField:"type",color:function(o){return o==="register"?"#93D072":"#2D71E7"},responsive:!0};return(0,p.useEffect)(function(){N().then(function(v){I(v.data)}),R().then(function(v){var o=[];v.data.map(function(d,U){o.push({date:d.createTime,type:"shop",value:Number(d.goodsCount)}),o.push({date:d.createTime,type:"money",value:Number(d.amountCount)})}),console.log(o),z(o)})},[]),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(j.Z,{children:"\u5145\u7535\u6869"}),(0,t.jsxs)(F.Z,{gutter:10,children:[(0,t.jsx)(r.Z,{span:6,children:(0,t.jsx)(s.Z,{children:(0,t.jsx)(a.Z,{title:"\u4ECA\u65E5\u5145\u7535",value:e==null||(i=e.device_count)===null||i===void 0?void 0:i.today,precision:2,prefix:"\uFFE5"})})}),(0,t.jsx)(r.Z,{span:6,children:(0,t.jsx)(s.Z,{children:(0,t.jsx)(a.Z,{title:"\u6628\u65E5\u5145\u7535",value:e==null||(l=e.device_count)===null||l===void 0?void 0:l.yesterday,precision:2,prefix:"\uFFE5"})})}),(0,t.jsx)(r.Z,{span:6,children:(0,t.jsx)(s.Z,{children:(0,t.jsx)(a.Z,{title:"\u4E0A\u5468\u5145\u7535",value:e==null||(c=e.device_count)===null||c===void 0?void 0:c.week,precision:2,prefix:"\uFFE5"})})}),(0,t.jsx)(r.Z,{span:6,children:(0,t.jsx)(s.Z,{children:(0,t.jsx)(a.Z,{title:"\u4E0A\u6708\u5145\u7535",value:e==null||(u=e.device_count)===null||u===void 0?void 0:u.month,precision:2,prefix:"\uFFE5"})})})]}),(0,t.jsx)(j.Z,{children:"\u5546\u57CE"}),(0,t.jsxs)(F.Z,{gutter:10,children:[(0,t.jsx)(r.Z,{span:6,children:(0,t.jsx)(s.Z,{children:(0,t.jsx)(a.Z,{title:"\u4ECA\u5929\u6210\u4EA4",value:e==null?void 0:e.todayTransaction,precision:2,prefix:"\uFFE5"})})}),(0,t.jsx)(r.Z,{span:6,children:(0,t.jsx)(s.Z,{children:(0,t.jsx)(a.Z,{title:"\u6628\u5929\u6210\u4EA4",value:e==null?void 0:e.yesterdayTransaction,precision:2,prefix:"\uFFE5"})})}),(0,t.jsx)(r.Z,{span:6,children:(0,t.jsx)(s.Z,{children:(0,t.jsx)(a.Z,{title:"\u4E0A\u5468\u6210\u4EA4",value:e==null?void 0:e.lastWeekTransaction,precision:2,prefix:"\uFFE5"})})}),(0,t.jsx)(r.Z,{span:6,children:(0,t.jsx)(s.Z,{children:(0,t.jsx)(a.Z,{title:"\u4E0A\u6708\u6210\u4EA4",value:e==null?void 0:e.lastMonthTransaction,precision:2,prefix:"\uFFE5"})})})]}),(0,t.jsx)(j.Z,{children:"\u5546\u57CE(\u5546\u54C1\u6570\u91CF/\u91D1\u989D)-\u6298\u7EBF\u56FE"}),S.length!=0?(0,t.jsx)(B.Z,f()({},K)):(0,t.jsx)(t.Fragment,{})]})}}}]);

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long