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.
1 lines
28 KiB
1 lines
28 KiB
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-d99dae52"],{"0c9f":function(t,e,r){"use strict";r.d(e,"k",(function(){return a})),r.d(e,"p",(function(){return o})),r.d(e,"n",(function(){return i})),r.d(e,"m",(function(){return s})),r.d(e,"q",(function(){return c})),r.d(e,"s",(function(){return u})),r.d(e,"t",(function(){return l})),r.d(e,"w",(function(){return h})),r.d(e,"u",(function(){return f})),r.d(e,"v",(function(){return d})),r.d(e,"r",(function(){return p})),r.d(e,"o",(function(){return m})),r.d(e,"l",(function(){return y})),r.d(e,"g",(function(){return g})),r.d(e,"j",(function(){return v})),r.d(e,"a",(function(){return b})),r.d(e,"b",(function(){return w})),r.d(e,"c",(function(){return D})),r.d(e,"d",(function(){return x})),r.d(e,"e",(function(){return _})),r.d(e,"f",(function(){return O})),r.d(e,"h",(function(){return j})),r.d(e,"i",(function(){return C}));var n=r("b6bd");function a(t){return Object(n.a)({url:"/statistic/product/get_basic",method:"get",params:t})}function o(t){return Object(n.a)({url:"/statistic/product/get_trend",method:"get",params:t})}function i(t){return Object(n.a)({url:"/statistic/product/get_product_ranking",method:"get",params:t})}function s(t){return Object(n.a)({url:"/statistic/product/get_excel",method:"get",params:t})}function c(t){return Object(n.a)({url:"/statistic/user/get_basic",method:"get",params:t})}function u(t){return Object(n.a)({url:"/statistic/user/get_trend",method:"get",params:t})}function l(t){return Object(n.a)({url:"/statistic/user/get_wechat",method:"get",params:t})}function h(t){return Object(n.a)({url:"/statistic/user/get_wechat_trend",method:"get",params:t})}function f(t){return Object(n.a)({url:"/statistic/user/get_region",method:"get",params:t})}function d(t){return Object(n.a)({url:"/statistic/user/get_sex",method:"get",params:t})}function p(t){return Object(n.a)({url:"/statistic/user/get_excel",method:"get",params:t})}function m(t){return Object(n.a)({url:"/statistic/trade/top_trade",method:"get",params:t})}function y(t){return Object(n.a)({url:"/statistic/trade/bottom_trade",method:"get",params:t})}function g(t){return Object(n.a)({url:"finance/flow/get_list",method:"get",params:t})}function v(t,e){return Object(n.a)({url:"finance/flow/set_mark/".concat(t),method:"post",data:e})}function b(t){return Object(n.a)({url:"/statistic/balance/get_basic",method:"get",params:t})}function w(t){return Object(n.a)({url:"/statistic/balance/get_channel",method:"get",params:t})}function D(t){return Object(n.a)({url:"/statistic/balance/get_trend",method:"get",params:t})}function x(t){return Object(n.a)({url:"/statistic/balance/get_type",method:"get",params:t})}function _(t){return Object(n.a)({url:"/statistic/order/get_basic",method:"get",params:t})}function O(t){return Object(n.a)({url:"/statistic/order/get_channel",method:"get",params:t})}function j(t){return Object(n.a)({url:"/statistic/order/get_trend",method:"get",params:t})}function C(t){return Object(n.a)({url:"/statistic/order/get_type",method:"get",params:t})}},4192:function(t,e,r){"use strict";r.r(e);var n=r("0c9f"),a=r("c71e"),o=r("313e"),i=r.n(o),s={name:"ToDay",components:{echartsNew:a.a},data:function(){return{style:{height:"200px"},styleToday:{height:"130px"},legendData:["今天","昨天"],seriesData:[],timer:[],grid:{xl:12,lg:12,md:12,sm:24,xs:24},statisticsData:null,optionTodatOrder:{},orderData:{},orderUserData:{},optionData:{},listLoading:!1,optionDataOrder:{},optionOrderUser:{}}},beforeDestroy:function(){this.visitChart&&(this.visitChart.dispose(),this.visitChart=null)},mounted:function(){this.getList()},methods:{getList:function(){var t=this;this.listLoading=!0,Object(n.o)({time:"today"}).then((function(e){t.statisticsData=e.data;var r=e.data.left,n=[],a=r.x;Object.keys(r.series[0].value).forEach((function(t){n.push(Number(r.series[0].value[t]))}));var o=[];Object.keys(r.series[1].value).forEach((function(t){o.push(Number(r.series[1].value[t]))}));var s=[{name:"今天",type:"line",areaStyle:{normal:{color:new i.a.graphic.LinearGradient(0,0,0,1,[{offset:0,color:"#5B8FF9"},{offset:.5,color:"#fff"},{offset:1,color:"#fff"}])}},itemStyle:{normal:{color:"#5B8FF9",lineStyle:{color:"#5B8FF9"}}},data:n,symbol:"none",smooth:!0},{name:"昨天",type:"line",areaStyle:{normal:{color:new i.a.graphic.LinearGradient(0,0,0,1,[{offset:0,color:"#BFBFBF"},{offset:.5,color:"#fff"},{offset:1,color:"#fff"}])}},itemStyle:{normal:{color:"#D9D9D9",lineStyle:{color:"#D9D9D9"}}},data:o,symbol:"none",smooth:!0}];t.optionData={tooltip:{trigger:"axis"},legend:{x:"1px",y:"10px",data:["今天","昨天"]},grid:{left:"0%",right:"4%",bottom:"3%",containLabel:!0},xAxis:[{boundaryGap:!1,data:a,axisLine:{show:!1},show:!1}],yAxis:{show:!1},series:s};var c=e.data.right,u=c.today.x,l=[];Object.keys(c.today.series[0].value).forEach((function(t){l.push(Number(c.today.series[0].value[t]))}));var h=[{name:"今天",type:"line",areaStyle:{normal:{color:new i.a.graphic.LinearGradient(0,0,0,1,[{offset:0,color:"#5B8FF9"},{offset:.5,color:"#fff"},{offset:1,color:"#fff"}])}},itemStyle:{normal:{color:"#5B8FF9",lineStyle:{color:"#5B8FF9"}}},data:l,symbol:"none",smooth:!0}];t.optionTodatOrder={tooltip:{trigger:"axis",axisPointer:{type:"cross",label:{backgroundColor:"#6a7985"}}},legend:{x:"1px",y:"10px",data:["今天"]},grid:{left:"0%",right:"4%",bottom:"3%",containLabel:!0},axisLine:{show:!1},xAxis:[{type:"category",boundaryGap:!1,data:u,axisLine:{show:!1},show:!1}],yAxis:{show:!1},series:h};var f=[];Object.keys(c.today.series[1].value).forEach((function(t){f.push(Number(c.today.series[1].value[t]))}));var d=[{name:"今天",type:"line",areaStyle:{normal:{color:new i.a.graphic.LinearGradient(0,0,0,1,[{offset:0,color:"#5B8FF9"},{offset:.5,color:"#fff"},{offset:1,color:"#fff"}])}},itemStyle:{normal:{color:"#5B8FF9",lineStyle:{color:"#5B8FF9"}}},data:f,symbol:"none",smooth:!0}];t.optionOrderUser={tooltip:{trigger:"axis",axisPointer:{type:"cross",label:{backgroundColor:"#6a7985"}}},legend:{x:"1px",y:"10px",data:["今天"]},grid:{left:"0%",right:"4%",bottom:"3%",containLabel:!0},axisLine:{show:!1},xAxis:[{type:"category",boundaryGap:!1,data:a,axisLine:{show:!1},show:!1}],yAxis:{show:!1},series:d}})).catch((function(e){t.listLoading=!1,t.$Message.error(e.msg)}))},getOrder:function(){},getOrderUser:function(){}}},c=(r("6ee2"),r("2877")),u=Object(c.a)(s,(function(){var t=this,e=t._self._c;return e("Card",{staticClass:"ivu-mt",attrs:{bordered:!1,"dis-hover":""}},[e("Row",[t.statisticsData?e("Col",t._b({staticClass:"br"},"Col",t.grid,!1),[e("div",[e("div",{staticClass:"title mb15"},[t._v("今日订单金额")]),e("div",{staticClass:"price"},[t._v("¥"),e("i",[t._v(t._s(t.statisticsData.left.series[0].money))])])]),t.optionData?e("echarts-new",{key:"1",ref:"visitChart",attrs:{height:"100%",width:"100%","option-data":t.optionData,styles:t.style}}):t._e()],1):t._e(),t.statisticsData?e("Col",t._b({staticStyle:{"padding-left":"20px"}},"Col",t.grid,!1),[e("div",{staticClass:"pl25"},[e("div",{staticClass:"toDay"},[e("span",{staticClass:"toDay-title spBlock mb10"},[t._v("今日订单数")]),e("span",{staticClass:"toDay-number spBlock mb10 ml5"},[t._v(t._s(t.statisticsData.right.today.series[0].now_money))]),e("br"),e("span",{staticClass:"toDay-time spBlock mr10"},[t._v("昨日:"+t._s(t.statisticsData.right.today.series[0].last_money))]),e("span",{staticClass:"toDay-time spBlock"},[t._v("日环比:\n "),e("i",{staticClass:"content-is",class:Number(t.statisticsData.right.today.series[0].rate)>=0?"up":"down"},[t._v(t._s(Math.floor(t.statisticsData.right.today.series[0].rate))+"%")]),e("Icon",{attrs:{color:Number(t.statisticsData.right.today.series[0].rate)>=0?"#F5222D":"#39C15B",type:Number(t.statisticsData.right.today.series[0].rate)>=0?"md-arrow-dropup":"md-arrow-dropdown"}})],1),t.optionTodatOrder?e("echarts-new",{key:"2",ref:"visitChart",attrs:{height:"100%",width:"100%","option-data":t.optionTodatOrder,styles:t.styleToday}}):t._e(),e("span",{staticClass:"toDay-title spBlock mb10"},[t._v("本月订单数")]),e("span",{staticClass:"toDay-number spBlock mb10 ml5"},[t._v(t._s(t.statisticsData.right.month[0].now_money))]),e("br"),e("span",{staticClass:"toDay-time spBlock mr10"},[t._v("上月:"+t._s(t.statisticsData.right.month[0].last_money))]),e("span",{staticClass:"toDay-time spBlock"},[t._v("月环比:\n "),e("i",{staticClass:"content-is",class:Number(t.statisticsData.right.month[0].rate)>=0?"up":"down"},[t._v(t._s(Math.floor(t.statisticsData.right.month[0].rate))+"%")]),e("Icon",{attrs:{color:Number(t.statisticsData.right.month[0].rate)>=0?"#F5222D":"#39C15B",type:Number(t.statisticsData.right.month[0].rate)>=0?"md-arrow-dropup":"md-arrow-dropdown"}})],1)],1),e("div",{staticClass:"toDay",staticStyle:{border:"none"}},[e("span",{staticClass:"toDay-title spBlock mb10"},[t._v("今日支付人数")]),e("span",{staticClass:"toDay-number spBlock mb10 ml5"},[t._v(t._s(t.statisticsData.right.today.series[1].now_money))]),e("br"),e("span",{staticClass:"toDay-time spBlock mr10"},[t._v("昨日:"+t._s(t.statisticsData.right.today.series[1].last_money))]),e("span",{staticClass:"toDay-time spBlock"},[t._v("日环比:\n "),e("i",{staticClass:"content-is",class:Number(t.statisticsData.right.today.series[1].rate)>=0?"up":"down"},[t._v(t._s(Math.floor(t.statisticsData.right.today.series[1].rate))+"%")]),e("Icon",{attrs:{color:Number(t.statisticsData.right.today.series[1].rate)>=0?"#F5222D":"#39C15B",type:Number(t.statisticsData.right.today.series[1].rate)>=0?"md-arrow-dropup":"md-arrow-dropdown"}})],1),t.optionOrderUser?e("echarts-new",{key:"3",ref:"visitChart",attrs:{height:"100%",width:"100%","option-data":t.optionOrderUser,styles:t.styleToday}}):t._e(),e("span",{staticClass:"toDay-title spBlock mb10"},[t._v("本月支付人数")]),e("span",{staticClass:"toDay-number spBlock mb10 ml5"},[t._v(t._s(t.statisticsData.right.month[1].now_money))]),e("br"),e("span",{staticClass:"toDay-time spBlock mr10"},[t._v("上月:"+t._s(t.statisticsData.right.month[1].last_money))]),e("span",{staticClass:"toDay-time spBlock"},[t._v("月环比:\n "),e("i",{staticClass:"content-is",class:Number(t.statisticsData.right.month[1].rate)>=0?"up":"down"},[t._v(t._s(Math.floor(t.statisticsData.right.month[1].rate))+"%")]),e("Icon",{attrs:{color:Number(t.statisticsData.right.month[1].rate)>=0?"#F5222D":"#39C15B",type:Number(t.statisticsData.right.month[1].rate)>=0?"md-arrow-dropup":"md-arrow-dropdown"}})],1)],1)])]):t._e()],1)],1)}),[],!1,null,"2a73a9d4",null).exports,l=r("61f7");function h(t){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function f(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */f=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var o=e&&e.prototype instanceof b?e:b,i=Object.create(o.prototype),s=new B(n||[]);return a(i,"_invoke",{value:L(t,r,s)}),i}function d(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var p="suspendedStart",m="suspendedYield",y="executing",g="completed",v={};function b(){}function w(){}function D(){}var x={};u(x,i,(function(){return this}));var _=Object.getPrototypeOf,O=_&&_(_(E([])));O&&O!==r&&n.call(O,i)&&(x=O);var j=D.prototype=b.prototype=Object.create(x);function C(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function F(t,e){function r(a,o,i,s){var c=d(t[a],t,o);if("throw"!==c.type){var u=c.arg,l=u.value;return l&&"object"==h(l)&&n.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,i,s)}),(function(t){r("throw",t,i,s)})):e.resolve(l).then((function(t){u.value=t,i(u)}),(function(t){return r("throw",t,i,s)}))}s(c.arg)}var o;a(this,"_invoke",{value:function(t,n){function a(){return new e((function(e,a){r(t,n,e,a)}))}return o=o?o.then(a,a):a()}})}function L(e,r,n){var a=p;return function(o,i){if(a===y)throw Error("Generator is already running");if(a===g){if("throw"===o)throw i;return{value:t,done:!0}}for(n.method=o,n.arg=i;;){var s=n.delegate;if(s){var c=S(s,n);if(c){if(c===v)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===p)throw a=g,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=y;var u=d(e,r,n);if("normal"===u.type){if(a=n.done?g:m,u.arg===v)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(a=g,n.method="throw",n.arg=u.arg)}}}function S(e,r){var n=r.method,a=e.iterator[n];if(a===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,S(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var o=d(a,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,v;var i=o.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,v):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function k(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function T(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function B(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function E(e){if(e||""===e){var r=e[i];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var a=-1,o=function r(){for(;++a<e.length;)if(n.call(e,a))return r.value=e[a],r.done=!1,r;return r.value=t,r.done=!0,r};return o.next=o}}throw new TypeError(h(e)+" is not iterable")}return w.prototype=D,a(j,"constructor",{value:D,configurable:!0}),a(D,"constructor",{value:w,configurable:!0}),w.displayName=u(D,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,D):(t.__proto__=D,u(t,c,"GeneratorFunction")),t.prototype=Object.create(j),t},e.awrap=function(t){return{__await:t}},C(F.prototype),u(F.prototype,s,(function(){return this})),e.AsyncIterator=F,e.async=function(t,r,n,a,o){void 0===o&&(o=Promise);var i=new F(l(t,r,n,a),o);return e.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},C(j),u(j,c,"Generator"),u(j,i,(function(){return this})),u(j,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=E,B.prototype={constructor:B,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(T),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function a(n,a){return s.type="throw",s.arg=e,r.next=n,a&&(r.method="next",r.arg=t),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=t,i.arg=e,o?(this.method="next",this.next=o.finallyLoc,v):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),T(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var a=n.arg;T(r)}return a}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:E(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),v}},e}function d(t,e,r,n,a,o,i){try{var s=t[o](i),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,a)}function p(t){return function(){var e=this,r=arguments;return new Promise((function(n,a){var o=t.apply(e,r);function i(t){d(o,n,a,i,s,"next",t)}function s(t){d(o,n,a,i,s,"throw",t)}i(void 0)}))}}var m={name:"transaction",components:{echartsNew:a.a},data:function(){return{grid:{xl:8,lg:8,md:8,sm:24,xs:24},options:{shortcuts:[{text:"今天",value:function(){var t=new Date,e=new Date;return e.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate())),[e,t]}},{text:"昨天",value:function(){var t=new Date,e=new Date;return e.setTime(e.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate()-1))),t.setTime(t.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate()-1))),[e,t]}},{text:"最近7天",value:function(){var t=new Date,e=new Date;return e.setTime(e.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate()-6))),[e,t]}},{text:"最近30天",value:function(){var t=new Date,e=new Date;return e.setTime(e.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate()-29))),[e,t]}},{text:"上月",value:function(){var t=new Date,e=new Date,r=new Date(e.getFullYear(),e.getMonth(),0).getDate();return e.setTime(e.setTime(new Date((new Date).getFullYear(),(new Date).getMonth()-1,1))),t.setTime(t.setTime(new Date((new Date).getFullYear(),(new Date).getMonth()-1,r))),[e,t]}},{text:"本月",value:function(){var t=new Date,e=new Date;return e.setTime(e.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),1))),[e,t]}},{text:"本年",value:function(){var t=new Date,e=new Date;return e.setTime(e.setTime(new Date((new Date).getFullYear(),0,1))),[e,t]}}]},name:"近30天",timeVal:[],dataTime:"",list:{},optionData:{},style:{height:"400px"},getExcel:"",spinShow:!1}},created:function(){var t=new Date,e=new Date;e.setTime(e.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate()-29))),this.timeVal=[e,t],this.dataTime=Object(l.a)(e,"yyyy/MM/dd")+"-"+Object(l.a)(t,"yyyy/MM/dd")},mounted:function(){this.getStatistics()},methods:{onSeach:function(){this.getStatistics()},onchangeTime:function(t){this.timeVal=t,this.dataTime=this.timeVal[0]?this.timeVal.join("-"):"",this.name=this.dataTime,this.getStatistics()},getStatistics:function(){var t=this;this.spinShow=!0,Object(n.l)({data:this.dataTime}).then(function(){var e=p(f().mark((function e(r){var n,a,o;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(n=r.data,a=["iconyingyee","iconjiaoyijine","iconshangpinzhifujine","icongoumaihuiyuanjine","iconchongzhijianshu","iconxianxiashouyinjine","iconzhichujine","iconyuezhifujine","iconzhifuyongjinjine","iconshangpintuikuanjine"],o=0;o<n.series.length;o++)t.$set(n.series[o],"icon",a[o]);t.list=n.series,t.getExcel=n.export,t.get(n),t.spinShow=!1;case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.$Message.error(e.msg),t.spinShow=!1}))},get:function(t){var e=t.series.filter((function(t){return 1===t.type})),r=e.map((function(t){return t.name})),n=["#5B8FF9","#5AD8A6","#5D7092","#F5222D","#FFAB2B","#B37FEB"],a=[];e.map((function(t,e){var r=[];Object.keys(t.value).forEach((function(e){r.push(Number(t.value[e]))})),a.push({name:t.name,type:"line",data:r,itemStyle:{normal:{color:n[e]}},smooth:!0})})),this.optionData={tooltip:{trigger:"axis",axisPointer:{type:"cross",label:{backgroundColor:"#6a7985"}}},legend:{x:"center",data:r},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},toolbox:{show:!0,right:"2%",feature:{saveAsImage:{name:"交易统计_"+Object(l.a)(new Date(Number((new Date).getTime())),"yyyyMMddhhmmss")}}},xAxis:{type:"category",boundaryGap:!0,axisLabel:{interval:0,rotate:40,textStyle:{color:"#000000"}},data:t.x},yAxis:{type:"value",axisLine:{show:!1},axisTick:{show:!1},axisLabel:{textStyle:{color:"#7F8B9C"}},splitLine:{show:!0,lineStyle:{color:"#F5F7F9"}}},series:a}},excel:function(){window.location.href=this.getExcel},getTrend:function(){var t=this;Object(n.p)({data:this.dataTime}).then(function(){var e=p(f().mark((function e(r){var n,a,o,i;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=r.data.series.map((function(t){return t.name})),a=r.data.xAxis,o=["#5B8FF9","#5AD8A6","#5D7092","#5D7092"],i=[],r.data.series.map((function(t,e){i.push({name:t.name,type:"line",data:t.value,itemStyle:{normal:{color:o[e]}}})})),t.optionData={tooltip:{trigger:"axis",axisPointer:{type:"cross",label:{backgroundColor:"#6a7985"}}},legend:{x:"1px",y:"10px",data:n},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},toolbox:{show:!0,right:"2%",feature:{saveAsImage:{}}},xAxis:{type:"category",boundaryGap:!0,axisLabel:{interval:0,rotate:40,textStyle:{color:"#000000"}},data:a},yAxis:{type:"value",splitLine:{show:!1},axisLine:{show:!1}},series:i};case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.$Message.error(e.msg)}))}}},y=(r("f55d"),{name:"index",components:{toDay:u,transactionFrom:Object(c.a)(m,(function(){var t=this,e=t._self._c;return e("Card",{staticClass:"ivu-mt",attrs:{bordered:!1,"dis-hover":""}},[e("div",{staticClass:"acea-row row-between-wrapper mb20"},[e("div",{staticClass:"header-title"},[t._v("交易概况")]),e("div",{staticClass:"acea-row"},[e("div",{staticClass:"acea-row row-middle"},[e("span",{staticClass:"font-sm"},[t._v("时间筛选:")]),e("DatePicker",{staticClass:"mr20 input-add",attrs:{editable:!1,value:t.timeVal,format:"yyyy/MM/dd",type:"datetimerange",placement:"bottom-start",placeholder:"自定义时间",options:t.options},on:{"on-change":t.onchangeTime}}),e("Button",{staticClass:"mr20",attrs:{type:"primary"},on:{click:t.onSeach}},[t._v("查询")]),e("Button",{attrs:{type:"primary"},on:{click:t.excel}},[t._v("导出")])],1)])]),e("div",{staticClass:"acea-row mb20"},t._l(t.list,(function(r,n){return e("div",{key:n,staticClass:"infoBox acea-row mb30"},[e("div",{staticClass:"iconCrl mr15",class:{one:n%4==0,two:n%4==1,three:n%4==2,four:n%4==3}},[e("i",{staticClass:"iconfont",class:r.icon})]),e("div",{staticClass:"info"},[e("div",{staticClass:"sp1"},[e("span",{staticClass:"mr5",domProps:{textContent:t._s(r.name)}}),e("Poptip",{attrs:{"word-wrap":"",trigger:"hover",placement:"right-start"}},[e("Icon",{attrs:{type:"ios-information-circle-outline"}}),e("div",{attrs:{slot:"content"},slot:"content"},[t._v(t._s(r.desc))])],1)],1),(t.list.length,e("span",{staticClass:"sp2",domProps:{textContent:t._s(r.money?(parseInt(100*r.money)/100).toFixed(2):0)}})),e("span",{staticClass:"content-time spBlock"},[t._v("环比增长:"),e("i",{staticClass:"content-is",class:Number(r.rate)>=0?"up":"down"},[t._v(t._s(r.rate)+"%")]),e("Icon",{attrs:{color:Number(r.rate)>=0?"#F5222D":"#39C15B",type:Number(r.rate)>=0?"md-arrow-dropup":"md-arrow-dropdown"}})],1)])])})),0),t.optionData?e("echarts-new",{attrs:{"option-data":t.optionData,styles:t.style,height:"100%",width:"100%"}}):t._e(),t.spinShow?e("Spin",{attrs:{size:"large",fix:""}}):t._e()],1)}),[],!1,null,"6515f866",null).exports}}),g=Object(c.a)(y,(function(){var t=this._self._c;return t("div",[t("to-day"),t("transaction-from")],1)}),[],!1,null,"f9b901b6",null);e.default=g.exports},"61f7":function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function o(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?a(Object(r),!0).forEach((function(e){i(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function i(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var a=r.call(t,e||"default");if("object"!=n(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function s(t,e){/(y+)/.test(e)&&(e=e.replace(RegExp.$1,(t.getFullYear()+"").substr(4-RegExp.$1.length)));var r={"M+":t.getMonth()+1,"d+":t.getDate(),"h+":t.getHours(),"m+":t.getMinutes(),"s+":t.getSeconds()};for(var n in r)if(new RegExp("(".concat(n,")")).test(e)){var a=r[n]+"";e=e.replace(RegExp.$1,1===RegExp.$1.length?a:c(a))}return e}function c(t){return("00"+t).substr(t.length)}r.d(e,"a",(function(){return s})),r.d(e,"c",(function(){return h})),r.d(e,"b",(function(){return f}));var u={min:"%s最小长度为:min",max:"%s最大长度为:max",length:"%s长度必须为:length",range:"%s长度为:range",pattern:"$s格式错误"},l=function(t,e){t.message=function(t){return e.replace("%s",t||"")}};function h(t){return o({required:!0,message:t,type:"string"},arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})}function f(t){return d.pattern(/(^[1-9]([0-9]+)?(\.[0-9]{1,2})?$)|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$)/,t)}l(h,"请输入%s"),l(f,"%s格式不正确");var d=Object.keys(u).reduce((function(t,e){return t[e]=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a="range"===e?{min:t[0],max:t[1]}:i({},e,t);return o(o({message:r.replace(":".concat(e),"range"===e?"".concat(t[0],"-").concat(t[1]):t),type:"string"},a),n)},l(t[e],u[e]),t}),{})},"6ee2":function(t,e,r){"use strict";r("caaf")},a688:function(t,e,r){},c71e:function(t,e,r){"use strict";var n=r("313e"),a=r.n(n),o={name:"Index",props:{styles:{type:Object,default:null},optionData:{type:Object,default:null}},data:function(){return{myChart:null}},computed:{echarts:function(){return"echarts"+Math.ceil(100*Math.random())}},watch:{optionData:{handler:function(t,e){this.handleSetVisitChart()},deep:!0}},mounted:function(){var t=this,e=this;e.$nextTick((function(){e.handleSetVisitChart(),window.addEventListener("resize",t.wsFunc)}))},beforeDestroy:function(){window.removeEventListener("resize",this.wsFunc),this.myChart&&(this.myChart.dispose(),this.myChart=null)},methods:{wsFunc:function(){this.myChart.resize()},handleSetVisitChart:function(){var t;this.myChart=a.a.init(document.getElementById(this.echarts)),t=this.optionData,this.myChart.setOption(t,!0)}}},i=r("2877"),s=Object(i.a)(o,(function(){var t=this._self._c;return t("div",[t("div",{style:this.styles,attrs:{id:this.echarts}})])}),[],!1,null,"458f4634",null);e.a=s.exports},caaf:function(t,e,r){},f55d:function(t,e,r){"use strict";r("a688")}}]); |