(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-174c2b9a"],{"0c9f":function(t,e,a){"use strict";a.d(e,"k",(function(){return r})),a.d(e,"p",(function(){return s})),a.d(e,"n",(function(){return i})),a.d(e,"m",(function(){return o})),a.d(e,"q",(function(){return c})),a.d(e,"s",(function(){return l})),a.d(e,"t",(function(){return u})),a.d(e,"w",(function(){return d})),a.d(e,"u",(function(){return m})),a.d(e,"v",(function(){return h})),a.d(e,"r",(function(){return p})),a.d(e,"o",(function(){return f})),a.d(e,"l",(function(){return g})),a.d(e,"g",(function(){return y})),a.d(e,"j",(function(){return b})),a.d(e,"a",(function(){return w})),a.d(e,"b",(function(){return D})),a.d(e,"c",(function(){return v})),a.d(e,"d",(function(){return x})),a.d(e,"e",(function(){return _})),a.d(e,"f",(function(){return C})),a.d(e,"h",(function(){return O})),a.d(e,"i",(function(){return j}));var n=a("b6bd");function r(t){return Object(n.a)({url:"/statistic/product/get_basic",method:"get",params:t})}function s(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 o(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 l(t){return Object(n.a)({url:"/statistic/user/get_trend",method:"get",params:t})}function u(t){return Object(n.a)({url:"/statistic/user/get_wechat",method:"get",params:t})}function d(t){return Object(n.a)({url:"/statistic/user/get_wechat_trend",method:"get",params:t})}function m(t){return Object(n.a)({url:"/statistic/user/get_region",method:"get",params:t})}function h(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 f(t){return Object(n.a)({url:"/statistic/trade/top_trade",method:"get",params:t})}function g(t){return Object(n.a)({url:"/statistic/trade/bottom_trade",method:"get",params:t})}function y(t){return Object(n.a)({url:"finance/flow/get_list",method:"get",params:t})}function b(t,e){return Object(n.a)({url:"finance/flow/set_mark/".concat(t),method:"post",data:e})}function w(t){return Object(n.a)({url:"/statistic/balance/get_basic",method:"get",params:t})}function D(t){return Object(n.a)({url:"/statistic/balance/get_channel",method:"get",params:t})}function v(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 C(t){return Object(n.a)({url:"/statistic/order/get_channel",method:"get",params:t})}function O(t){return Object(n.a)({url:"/statistic/order/get_trend",method:"get",params:t})}function j(t){return Object(n.a)({url:"/statistic/order/get_type",method:"get",params:t})}},"1c90":function(t,e,a){},4192:function(t,e,a){"use strict";a.r(e);var n=a("0c9f"),r=a("c71e"),s=a("313e"),i=a.n(s),o={name:"ToDay",components:{echartsNew:r.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 a=e.data.left,n=[],r=a.x;Object.keys(a.series[0].value).forEach((function(t){n.push(Number(a.series[0].value[t]))}));var s=[];Object.keys(a.series[1].value).forEach((function(t){s.push(Number(a.series[1].value[t]))}));var o=[{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:s,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:r,axisLine:{show:!1},show:!1}],yAxis:{show:!1},series:o};var c=e.data.right,l=c.today.x,u=[];Object.keys(c.today.series[0].value).forEach((function(t){u.push(Number(c.today.series[0].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:u,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:l,axisLine:{show:!1},show:!1}],yAxis:{show:!1},series:d};var m=[];Object.keys(c.today.series[1].value).forEach((function(t){m.push(Number(c.today.series[1].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:m,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:r,axisLine:{show:!1},show:!1}],yAxis:{show:!1},series:h}})).catch((function(e){t.listLoading=!1,t.$Message.error(e.msg)}))},getOrder:function(){},getOrderUser:function(){}}},c=(a("834d"),a("2877")),l=Object(c.a)(o,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("Card",{staticClass:"ivu-mt",attrs:{bordered:!1,"dis-hover":""}},[a("Row",[t.statisticsData?a("Col",t._b({staticClass:"br"},"Col",t.grid,!1),[a("div",[a("div",{staticClass:"title mb15"},[t._v("今日订单金额")]),a("div",{staticClass:"price"},[t._v("¥"),a("i",[t._v(t._s(t.statisticsData.left.series[0].money))])])]),t.optionData?a("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?a("Col",t._b({staticStyle:{"padding-left":"20px"}},"Col",t.grid,!1),[a("div",{staticClass:"pl25"},[a("div",{staticClass:"toDay"},[a("span",{staticClass:"toDay-title spBlock mb10"},[t._v("今日订单数")]),a("span",{staticClass:"toDay-number spBlock mb10 ml5"},[t._v(t._s(t.statisticsData.right.today.series[0].now_money))]),a("br"),a("span",{staticClass:"toDay-time spBlock mr10"},[t._v("昨日:"+t._s(t.statisticsData.right.today.series[0].last_money))]),a("span",{staticClass:"toDay-time spBlock"},[t._v("日环比:\n "),a("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))+"%")]),a("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?a("echarts-new",{key:"2",ref:"visitChart",attrs:{height:"100%",width:"100%","option-data":t.optionTodatOrder,styles:t.styleToday}}):t._e(),a("span",{staticClass:"toDay-title spBlock mb10"},[t._v("本月订单数")]),a("span",{staticClass:"toDay-number spBlock mb10 ml5"},[t._v(t._s(t.statisticsData.right.month[0].now_money))]),a("br"),a("span",{staticClass:"toDay-time spBlock mr10"},[t._v("上月:"+t._s(t.statisticsData.right.month[0].last_money))]),a("span",{staticClass:"toDay-time spBlock"},[t._v("月环比:\n "),a("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))+"%")]),a("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),a("div",{staticClass:"toDay",staticStyle:{border:"none"}},[a("span",{staticClass:"toDay-title spBlock mb10"},[t._v("今日支付人数")]),a("span",{staticClass:"toDay-number spBlock mb10 ml5"},[t._v(t._s(t.statisticsData.right.today.series[1].now_money))]),a("br"),a("span",{staticClass:"toDay-time spBlock mr10"},[t._v("昨日:"+t._s(t.statisticsData.right.today.series[1].last_money))]),a("span",{staticClass:"toDay-time spBlock"},[t._v("日环比:\n "),a("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))+"%")]),a("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?a("echarts-new",{key:"3",ref:"visitChart",attrs:{height:"100%",width:"100%","option-data":t.optionOrderUser,styles:t.styleToday}}):t._e(),a("span",{staticClass:"toDay-title spBlock mb10"},[t._v("本月支付人数")]),a("span",{staticClass:"toDay-number spBlock mb10 ml5"},[t._v(t._s(t.statisticsData.right.month[1].now_money))]),a("br"),a("span",{staticClass:"toDay-time spBlock mr10"},[t._v("上月:"+t._s(t.statisticsData.right.month[1].last_money))]),a("span",{staticClass:"toDay-time spBlock"},[t._v("月环比:\n "),a("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))+"%")]),a("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,u=a("a34a"),d=a.n(u),m=a("61f7");function h(t,e,a,n,r,s,i){try{var o=t[s](i),c=o.value}catch(t){return void a(t)}o.done?e(c):Promise.resolve(c).then(n,r)}function p(t){return function(){var e=this,a=arguments;return new Promise((function(n,r){var s=t.apply(e,a);function i(t){h(s,n,r,i,o,"next",t)}function o(t){h(s,n,r,i,o,"throw",t)}i(void 0)}))}}var f={name:"transaction",components:{echartsNew:r.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,a=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,a))),[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(m.a)(e,"yyyy/MM/dd")+"-"+Object(m.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},getStatistics:function(){var t=this;this.spinShow=!0,Object(n.l)({data:this.dataTime}).then(function(){var e=p(d.a.mark((function e(a){var n,r,s;return d.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(n=a.data,r=["iconyingyee","iconjiaoyijine","iconshangpinzhifujine","icongoumaihuiyuanjine","iconchongzhijianshu","iconxianxiashouyinjine","iconzhichujine","iconyuezhifujine","iconzhifuyongjinjine","iconshangpintuikuanjine"],s=0;s=0?"up":"down"},[t._v(t._s(e.rate)+"%")]),a("Icon",{attrs:{color:Number(e.rate)>=0?"#F5222D":"#39C15B",type:Number(e.rate)>=0?"md-arrow-dropup":"md-arrow-dropdown"}})],1)])])})),0),t.optionData?a("echarts-new",{attrs:{"option-data":t.optionData,styles:t.style,height:"100%",width:"100%"}}):t._e(),t.spinShow?a("Spin",{attrs:{size:"large",fix:""}}):t._e()],1)}),[],!1,null,"4024bb8b",null).exports}}),y=Object(c.a)(g,(function(){var t=this.$createElement,e=this._self._c||t;return e("div",[e("to-day"),e("transaction-from")],1)}),[],!1,null,"f9b901b6",null);e.default=y.exports},"61f7":function(t,e,a){"use strict";function n(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,n)}return a}function r(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{})}function d(t){return m.pattern(/(^[1-9]([0-9]+)?(\.[0-9]{1,2})?$)|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$)/,t)}l(u,"请输入%s"),l(d,"%s格式不正确");var m=Object.keys(c).reduce((function(t,e){return t[e]=function(t){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i="range"===e?{min:t[0],max:t[1]}:s({},e,t);return r({message:a.replace(":".concat(e),"range"===e?"".concat(t[0],"-").concat(t[1]):t),type:"string"},i,{},n)},l(t[e],c[e]),t}),{})},"834d":function(t,e,a){"use strict";var n=a("a33b");a.n(n).a},a33b:function(t,e,a){},b19d:function(t,e,a){"use strict";var n=a("1c90");a.n(n).a},c71e:function(t,e,a){"use strict";var n=a("313e"),r=a.n(n),s={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=r.a.init(document.getElementById(this.echarts)),t=this.optionData,this.myChart.setOption(t,!0)}}},i=a("2877"),o=Object(i.a)(s,(function(){var t=this.$createElement,e=this._self._c||t;return e("div",[e("div",{style:this.styles,attrs:{id:this.echarts}})])}),[],!1,null,"458f4634",null);e.a=o.exports}}]);