1(self.webpackChunk=self.webpackChunk||[]).push([[669],{49830:(function(D,c,e){"use strict";var j=e(83373),h=e(82170),o=e(52389),O=e(64365);const p=Object.assign({},(0,j.L)()),f=(0,o.X)(h.v,p);e.d(c,["t1",0,f])}),68949:(function(D,c,e){"use strict";e.d(c,{A:function(){return d}});var j=e(37810),h=e.n(j),o=e(26572),O=e.n(o),p=e(37953),f={warp:"warp___YwEJM",title:"title___DMVwk",content:"content___Q1eqL"},R=e(15621),E=["children","title","style","titleStyle","className","contentClassName","contentStyle"],F=function(C){var Q=C.children,W=C.title,L=C.style,w=C.titleStyle,z=C.className,U=C.contentClassName,k=C.contentStyle,H=O()(C,E);return(0,R.jsxs)("div",h()(h()({className:f.warp+" "+z,style:L},H),{},{children:[W&&(0,R.jsx)("div",{style:w,className:f.title,children:W}),(0,R.jsx)("div",{className:f.content+" "+U,style:k,children:Q})]}))},d=F}),63110:(function(D,c,e){"use strict";var j=e(48211),h=e(37953),o=e(15621),O=function(f){var R=f.name,E=f.children,F=f.style,d=f.loading,y=d===void 0?!1:d;return(0,h.useEffect)(function(){document.title=R},[R]),F?(0,o.jsx)(j.A,{spinning:y,style:F,children:E}):(0,o.jsx)(j.A,{spinning:y,children:E})};c.A=O}),72092:(function(D,c,e){"use strict";e.d(c,{v:function(){return O}});var j=e(37953),h=e(9182),o=e.n(h);function O(){return(0,j.useMemo)(function(){var p={};p.\u672C\u6708=function(){return[o()().startOf("month").startOf("day"),o()().endOf("day")]};for(var f=function(){var F=o()().subtract(12-R,"month");p[F.format("YYYY-MM")]=function(){return[F.startOf("month").startOf("day"),F.endOf("month").endOf("day")]}},R=11;R>0;R--)f();return p},[])}}),13107:(function(D,c,e){"use strict";e.r(c),e.d(c,{default:function(){return re}});var j=e(55472),h=e.n(j),o=e(63110),O=e(57065),p=e(57704),f=e.n(p),R=e(65788),E=e.n(R),F=e(37810),d=e.n(F),y=e(37953),C={container:"container___di11H",filter:"filter___CRVgH",chart:"chart___BwaiN"},Q=e(47215),W=e(98529),L=e(4975),w=e(15322),z=e(41313),U=e(86807),k=e(72092),H=e(39976);function q(){return d()(d()({},H.A),{},{lang:d()(d()({},H.A.lang),{},{shortMonths:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],shortWeekDays:["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"]})})}var t=e(15621),le={wrapCol:{flex:1}};function se(n){var l=n.btnQueryDisabled,s=l===void 0?!1:l,a=n.btnResetDisabled,i=a===void 0?!1:a,r=n.initValues,v=n.onQuery,g=n.onReset,P=(0,y.useState)(!1),I=h()(P,2),T=I[0],b=I[1],N=Q.A.useForm(),Y=h()(N,1),S=Y[0],B=(0,k.v)(),m=function(){var M=S.getFieldsValue();b(!0),v==null||v(M,function(){return b(!1)})},x=function(){S.resetFields();var M=S.getFieldsValue();b(!0),g==null||g(M,function(){return b(!1)})};return(0,t.jsx)(Q.A,d()(d()({form:S,initialValues:r},le),{},{children:(0,t.jsxs)(W.A,{gutter:[8,4],children:[(0,t.jsx)(L.A,{span:8,children:(0,t.jsx)(Q.A.Item,{label:"\u65F6\u95F4\u8303\u56F4",name:"timeRange",children:(0,t.jsx)(w.A.RangePicker,{locale:q(),style:{width:"100%"},ranges:B})})}),(0,t.jsx)(L.A,{span:8,children:(0,t.jsx)(Q.A.Item,{children:(0,t.jsxs)(z.A,{size:"small",children:[(0,t.jsx)(U.A,{type:"primary",onClick:m,disabled:s||T,children:"\u67E5\u8BE2"}),(0,t.jsx)(U.A,{onClick:x,disabled:i||T,children:"\u91CD\u7F6E"})]})})})]})}))}var ie=se,V=e(54299),G=e(49830),J=e(48211),X=e(44945);function ue(n){var l=n.loading,s=n.data,a=(0,V.UO)(s),i=(0,y.useRef)();return(0,y.useEffect)(function(){if(a.length){i.current&&i.current.destroy();var r=new G.t1({container:"day_num_data_chart",autoFit:!0});i.current=r,r.options({type:"interval",data:a,encode:{x:"time",y:"num",color:"time",size:32},scale:{color:{type:"ordinal",range:["#fb7701"]}},axis:{x:{title:"\u65F6\u95F4"},y:{title:"\u7F5A\u6B3E\u6B21\u6570"}},tooltip:{items:[function(v){return{name:"\u7F5A\u6B3E\u6B21\u6570",value:"".concat(v.num,"\u6B21")}}]},legend:!1,labels:[{text:"num",style:{textAlign:"center",dy:-18}}]}),r.render()}},[a]),(0,t.jsx)("div",{id:"day_num_data_chart",style:{width:"100%",height:"320px"},children:l?(0,t.jsx)(J.A,{spinning:l,style:{width:"100%",height:"100%"}}):a.length?null:(0,t.jsx)(X.A,{description:"\u6682\u65E0\u6570\u636E",style:{width:"100%",height:"100%"}})})}var oe=ue,te=e(30006);function de(n){var l=n.loading,s=n.data,a=(0,V.UO)(s),i=(0,y.useRef)();return(0,y.useEffect)(function(){if(a.length){i.current&&i.current.destroy();var r=new G.t1({container:"day_amount_data_chart",autoFit:!0});i.current=r,r.options({type:"line",data:a,encode:{x:"time",y:"amount",color:"\u7F5A\u6B3E\u91D1\u989D"},scale:{x:{range:[0,1],nice:!0},y:{domainMin:0,nice:!0},color:{domain:["\u7F5A\u6B3E\u91D1\u989D"],range:["#fb7701"]}},style:{lineWidth:2},tooltip:{title:"\u7F5A\u6B3E\u91D1\u989D",items:[function(v){return{name:"\u7F5A\u6B3E\u91D1\u989D",value:"".concat(v.amount).concat((0,te.l)())}}]},legend:!1,axis:{x:{title:"\u65F6\u95F4"},y:{title:"\u7F5A\u6B3E\u91D1\u989D"}},labels:[{text:"amount",style:{textAlign:"center",dy:-12}}]}),r.render()}},[a]),(0,t.jsx)("div",{id:"day_amount_data_chart",style:{width:"100%",height:"320px"},children:l?(0,t.jsx)(J.A,{spinning:l,style:{width:"100%",height:"100%"}}):a.length?null:(0,t.jsx)(X.A,{description:"\u6682\u65E0\u6570\u636E",style:{width:"100%",height:"100%"}})})}var ce=de,ae=e(52709),K=e(68949),$=e(55880),he=e(9182),_=e.n(he);function ve(){var n=(0,$.useModel)("base"),l=n.mallId,s="DAY",a={mallId:l,timeType:s,timeRange:[_()().subtract(7,"day"),_()()]}
1,i=(0,y.useState)(a),r=h()(i,2),v=r[0],g=r[1],P=(0,ae.Ay)(function(m){var x=me(s,m);return ye(d()(d()({},x),{},{timeType:s,mallId:l}))},{manual:!1,ready:!0,defaultParams:[a],refreshDeps:[l]}),I=P.loading,T=P.data,b=P.runAsync,N=((T==null?void 0:T.data)||[]).map(function(m){return d()(d()({},m),{},{amount:(0,V.Et)(m.amount)?m.amount/100:0})}),Y=function(x){var A=d()(d()({},v),x);return g(A),b(A)},S=(function(){var m=E()(f()().mark(function x(A,M){return f()().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.prev=0,u.next=3,Y(A);case 3:return u.prev=3,M(),u.finish(3);case 6:case"end":return u.stop()}},x,null,[[0,,3,6]])}));return function(A,M){return m.apply(this,arguments)}})(),B=(function(){var m=E()(f()().mark(function x(A,M){return f()().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.prev=0,u.next=3,Y(A);case 3:return u.prev=3,M(),u.finish(3);case 6:case"end":return u.stop()}},x,null,[[0,,3,6]])}));return function(A,M){return m.apply(this,arguments)}})();return(0,t.jsxs)("div",{className:C.container,children:[(0,t.jsx)("div",{className:C.filter,children:(0,t.jsx)(ie,{initValues:{timeRange:a.timeRange},onQuery:S,onReset:B})}),(0,t.jsx)("div",{className:C.chart,children:(0,t.jsx)(K.A,{title:"\u65E5\u6263\u6B3E\u7B14\u6570",children:(0,t.jsx)(oe,{loading:I,data:N})})}),(0,t.jsx)("div",{className:C.chart,children:(0,t.jsx)(K.A,{title:"\u65E5\u6263\u6B3E\u91D1\u989D",children:(0,t.jsx)(ce,{loading:I,data:N})})})]})}var fe=ve;function me(n,l){var s=l.timeRange,a={},i=s||[],r=h()(i,2),v=r[0],g=r[1];return v&&g&&(a={startTime:v.startOf("day").valueOf(),endTime:g.endOf(n==="DAY"?"day":"month").valueOf()}),d()({},a)}function ye(n){return(0,$.request)("/api/v1/platform/deduct",{method:"POST",data:n})}var Z={container:"container___L8Aw2",filter:"filter___VlwBR",chart:"chart___zAddQ"},ge=e(76979),ne=e.n(ge);function xe(n){var l=n.value,s=n.onChange,a=l||[],i=function(g){var P=ne()(a);P[0]=g,s==null||s(P)},r=function(g){var P=ne()(a);P[1]=g,s==null||s(P)};return(0,t.jsxs)("div",{style:{display:"flex",rowGap:4,alignItems:"center"},children:[(0,t.jsx)(w.A.MonthPicker,{style:{width:160},locale:q(),value:a==null?void 0:a[0],onChange:i}),(0,t.jsx)("span",{style:{padding:"0 4px"},children:"-"}),(0,t.jsx)(w.A.MonthPicker,{style:{width:180},locale:q(),value:a==null?void 0:a[1],onChange:r})]})}var Ae=xe,De={wrapCol:{flex:1}};function je(n){var l=n.btnQueryDisabled,s=l===void 0?!1:l,a=n.btnResetDisabled,i=a===void 0?!1:a,r=n.initValues,v=n.onQuery,g=n.onReset,P=(0,y.useState)(!1),I=h()(P,2),T=I[0],b=I[1],N=Q.A.useForm(),Y=h()(N,1),S=Y[0],B=function(){var A=S.getFieldsValue();b(!0),v==null||v(A,function(){return b(!1)})},m=function(){S.resetFields();var A=S.getFieldsValue();b(!0),g==null||g(A,function(){return b(!1)})};return(0,t.jsx)(Q.A,d()(d()({form:S,initialValues:r},De),{},{children:(0,t.jsxs)(W.A,{gutter:[8,4],children:[(0,t.jsx)(L.A,{span:8,children:(0,t.jsx)(Q.A.Item,{label:"\u65F6\u95F4\u8303\u56F4",name:"timeRange",children:(0,t.jsx)(Ae,{})})}),(0,t.jsx)(L.A,{span:8,children:(0,t.jsx)(Q.A.Item,{children:(0,t.jsxs)(z.A,{size:"small",children:[(0,t.jsx)(U.A,{type:"primary",onClick:B,disabled:s||T,children:"\u67E5\u8BE2"}),(0,t.jsx)(U.A,{onClick:m,disabled:i||T,children:"\u91CD\u7F6E"})]})})})]})}))}var pe=je;function Ce(n){var l=n.loading,s=n.data,a=(0,V.UO)(s),i=(0,y.useRef)();return(0,y.useEffect)(function(){if(a.length){i.current&&i.current.destroy();var r=new G.t1({container:"day_num_data_chart",autoFit:!0});i.current=r,r.options({type:"interval",data:a,encode:{x:"time",y:"num",size:32,color:"time"},scale:{color:{type:"ordinal",range:["#fb7701"]}},axis:{x:{title:"\u65F6\u95F4"},y:{title:"\u7F5A\u6B3E\u6B21\u6570"}},tooltip:{items:[function(v){return{name:"\u7F5A\u6B3E\u6B21\u6570",value:"".concat(v.num,"\u6B21")}}]},legend:!1,labels:[{text:"num",style:{textAlign:"center",dy:-18}}]}),r.render()}},[a]),(0,t.jsx)("div",{id:"day_num_data_chart",style:{width:"100%",height:"320px"},children:l?(0,t.jsx)(J.A,{spinning:l,style:{width:"100%",height:"100%"}}):a.length?null:(0,t.jsx)(X.A,{description:"\u6682\u65E0\u6570\u636E",style:{width:"100%",height:"100%"}})})}var Pe=Ce;function Re(n){var l=n.loading,s=n.data,a=(0,V.UO)(s),i=(0,y.useRef)();return(0,y.useEffect)(function(){if(a.length){i.current&&i.current.destroy();var r=new G.t1({container:"day_amount_data_chart",autoFit:!0});i.current=r,r.options({type:"line",data:a,encode:{x:"time",y:"amount",color:"\u7F5A\u6B3E\u91D1\u989D"},scale:{x:{range:[0,1],nice:!0},y:{domainMin:0,nice:!0},color:{domain:["\u7F5A\u6B3E\u91D1\u989D"],range:["#fb7701"]}},style:{lineWidth:2},tooltip:{title:"\u7F5A\u6B3E\u91D1\u989D",items:[function(v){return{name:"\u7F5A\u6B3E\u91D1\u989D",value:"".concat(v.amount).concat((0,te.l)())}}]},legend:!1,axis:{x:{title:"\u65F6\u95F4"},y:{title:"\u7F5A\u6B3E\u91D1\u989D"}},labels:[{text:"amount",style:{textAlign:"center",dy:-12}}]}),r.render()}},[a]),(0,t.jsx)("div",{id:"day_amount_data_chart",style:{width:"100%",height:"320px"},children:l?(0,t.jsx)(J.A,{spinning:l,style:{width:"100%",height:"100%"}}):a.length?null:(0,t.jsx)(X.A,{description:"\u6682\u65E0\u6570\u636E",style:{width:"100%",height:"100%"}})})}var Me=Re;function Oe(){var n=(0,$.useModel)("base"),l=n.mallId,s="MONTH",a={mallId:l,timeType:s,timeRange:[_()().startOf("month"),_()().endOf("month")]}
1,i=(0,y.useState)(a),r=h()(i,2),v=r[0],g=r[1],P=(0,ae.Ay)(function(m){var x=Fe(s,m);return Te(d()(d()({},x),{},{timeType:s,mallId:l}))},{manual:!1,ready:!0,defaultParams:[a],refreshDeps:[l]}),I=P.loading,T=P.data,b=P.runAsync,N=((T==null?void 0:T.data)||[]).map(function(m){return d()(d()({},m),{},{amount:(0,V.Et)(m.amount)?m.amount/100:0})}),Y=function(x){var A=d()(d()({},v),x);return g(A),b(A)},S=(function(){var m=E()(f()().mark(function x(A,M){return f()().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.prev=0,u.next=3,Y(A);case 3:return u.prev=3,M(),u.finish(3);case 6:case"end":return u.stop()}},x,null,[[0,,3,6]])}));return function(A,M){return m.apply(this,arguments)}})(),B=(function(){var m=E()(f()().mark(function x(A,M){return f()().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.prev=0,u.next=3,Y(A);case 3:return u.prev=3,M(),u.finish(3);case 6:case"end":return u.stop()}},x,null,[[0,,3,6]])}));return function(A,M){return m.apply(this,arguments)}})();return(0,t.jsxs)("div",{className:Z.container,children:[(0,t.jsx)("div",{className:Z.filter,children:(0,t.jsx)(pe,{initValues:{timeRange:a.timeRange},onQuery:S,onReset:B})}),(0,t.jsx)("div",{className:Z.chart,children:(0,t.jsx)(K.A,{title:"\u6708\u6263\u6B3E\u7B14\u6570",children:(0,t.jsx)(Pe,{loading:I,data:N})})}),(0,t.jsx)("div",{className:Z.chart,children:(0,t.jsx)(K.A,{title:"\u6708\u6263\u6B3E\u91D1\u989D",children:(0,t.jsx)(Me,{loading:I,data:N})})})]})}var Ee=Oe;function Fe(n,l){var s=l.timeRange,a={},i=s||[],r=h()(i,2),v=r[0],g=r[1];return v&&g&&(a={startTime:v.startOf("day").valueOf(),endTime:g.endOf(n==="DAY"?"day":"month").valueOf()}),d()({},a)}function Te(n){return(0,$.request)("/api/v1/platform/deduct",{method:"POST",data:n})}var be={container:"container___tKhS5"},re=(function(){var n=(0,$.useSearchParams)(),l=h()(n,2),s=l[0],a=l[1],i=s.get("tab")||"day",r=function(g){var P=new URLSearchParams(s);P.set("tab",g),a(P)};return(0,t.jsx)(o.A,{name:"\u552E\u540E\u6263\u6B3E",children:(0,t.jsx)(K.A,{className:be.container,children:(0,t.jsxs)(O.A,{activeKey:i,onChange:r,destroyInactiveTabPane:!0,children:[(0,t.jsx)(O.A.TabPane,{tab:"\u6309\u65E5\u5206\u6790",children:(0,t.jsx)(fe,{})},"day"),(0,t.jsx)(O.A.TabPane,{tab:"\u6309\u6708\u5206\u6790",children:(0,t.jsx)(Ee,{})},"month")]})})})});e.dn(re)}),39976:(function(D,c,e){"use strict";var j,h=e(9380).default;j={value:!0},c.A=void 0;var o=h(e(86436)),O=h(e(57382)),p=h(e(43373)),f={lang:(0,o.default)({placeholder:"\u8BF7\u9009\u62E9\u65E5\u671F",yearPlaceholder:"\u8BF7\u9009\u62E9\u5E74\u4EFD",quarterPlaceholder:"\u8BF7\u9009\u62E9\u5B63\u5EA6",monthPlaceholder:"\u8BF7\u9009\u62E9\u6708\u4EFD",weekPlaceholder:"\u8BF7\u9009\u62E9\u5468",rangePlaceholder:["\u5F00\u59CB\u65E5\u671F","\u7ED3\u675F\u65E5\u671F"],rangeYearPlaceholder:["\u5F00\u59CB\u5E74\u4EFD","\u7ED3\u675F\u5E74\u4EFD"],rangeMonthPlaceholder:["\u5F00\u59CB\u6708\u4EFD","\u7ED3\u675F\u6708\u4EFD"],rangeQuarterPlaceholder:["\u5F00\u59CB\u5B63\u5EA6","\u7ED3\u675F\u5B63\u5EA6"],rangeWeekPlaceholder:["\u5F00\u59CB\u5468","\u7ED3\u675F\u5468"]},O.default),timePickerLocale:(0,o.default)({},p.default)};f.lang.ok="\u786E\u5B9A";var R=c.A=f}),43373:(function(D,c){"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.default=void 0;var e={placeholder:"\u8BF7\u9009\u62E9\u65F6\u95F4",rangePlaceholder:["\u5F00\u59CB\u65F6\u95F4","\u7ED3\u675F\u65F6\u95F4"]},j=c.default=e}),57382:(function(D,c){"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.default=void 0;var e={locale:"zh_CN",today:"\u4ECA\u5929",now:"\u6B64\u523B",backToToday:"\u8FD4\u56DE\u4ECA\u5929",ok:"\u786E\u5B9A",timeSelect:"\u9009\u62E9\u65F6\u95F4",dateSelect:"\u9009\u62E9\u65E5\u671F",weekSelect:"\u9009\u62E9\u5468",clear:"\u6E05\u9664",month:"\u6708",year:"\u5E74",previousMonth:"\u4E0A\u4E2A\u6708 (\u7FFB\u9875\u4E0A\u952E)",nextMonth:"\u4E0B\u4E2A\u6708 (\u7FFB\u9875\u4E0B\u952E)",monthSelect:"\u9009\u62E9\u6708\u4EFD",yearSelect:"\u9009\u62E9\u5E74\u4EFD",decadeSelect:"\u9009\u62E9\u5E74\u4EE3",yearFormat:"YYYY\u5E74",dayFormat:"D\u65E5",dateFormat:"YYYY\u5E74M\u6708D\u65E5",dateTimeFormat:"YYYY\u5E74M\u6708D\u65E5 HH\u65F6mm\u5206ss\u79D2",previousYear:"\u4E0A\u4E00\u5E74 (Control\u952E\u52A0\u5DE6\u65B9\u54
111\u952E)",nextYear:"\u4E0B\u4E00\u5E74 (Control\u952E\u52A0\u53F3\u65B9\u5411\u952E)",previousDecade:"\u4E0A\u4E00\u5E74\u4EE3",nextDecade:"\u4E0B\u4E00\u5E74\u4EE3",previousCentury:"\u4E0A\u4E00\u4E16\u7EAA",nextCentury:"\u4E0B\u4E00\u4E16\u7EAA"},j=e;c.default=j}),86436:(function(D){function c(){return D.exports=c=Object.assign?Object.assign.bind():function(e){for(var j=1;j<arguments.length;j++){var h=arguments[j];for(var o in h)({}).hasOwnProperty.call(h,o)&&(e[o]=h[o])}return e},D.exports.__esModule=!0,D.exports.default=D.exports,c.apply(null,arguments)}D.exports=c,D.exports.__esModule=!0,D.exports.default=D.exports}),9380:(function(D){function c(e){return e&&e.__esModule?e:{default:e}}D.exports=c,D.exports.__esModule=!0,D.exports.default=D.exports}),26935:(function(D,c,e){"use strict";e.d(c,{A:function(){return h}});var j=e(2710);function h(o,O){var p=typeof Symbol!="undefined"&&o[Symbol.iterator]||o["@@iterator"];if(!p){if(Array.isArray(o)||(p=(0,j.A)(o))||O&&o&&typeof o.length=="number"){p&&(o=p);var f=0,R=function(){};return{s:R,n:function(){return f>=o.length?{done:!0}:{done:!1,value:o[f++]}},e:function(C){throw C},f:R}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. 2In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var E,F=!0,d=!1;return{s:function(){p=p.call(o)},n:function(){var C=p.next();return F=C.done,C},e:function(C){d=!0,E=C},f:function(){try{F||p.return==null||p.return()}finally{if(d)throw E}}}}})}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.