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
10 KiB
1 lines
10 KiB
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-a378f8c2"],{"0c9f":function(t,e,a){"use strict";a.d(e,"k",(function(){return i})),a.d(e,"p",(function(){return r})),a.d(e,"n",(function(){return s})),a.d(e,"m",(function(){return c})),a.d(e,"q",(function(){return o})),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 h})),a.d(e,"v",(function(){return m})),a.d(e,"r",(function(){return f})),a.d(e,"o",(function(){return g})),a.d(e,"l",(function(){return p})),a.d(e,"e",(function(){return b})),a.d(e,"h",(function(){return w})),a.d(e,"f",(function(){return v})),a.d(e,"i",(function(){return _})),a.d(e,"g",(function(){return y})),a.d(e,"a",(function(){return x})),a.d(e,"c",(function(){return j})),a.d(e,"b",(function(){return O})),a.d(e,"d",(function(){return C})),a.d(e,"x",(function(){return L})),a.d(e,"j",(function(){return k}));var n=a("6b6c");function i(t){return Object(n.a)({url:"/statistic/product/get_basic",method:"get",params:t})}function r(t){return Object(n.a)({url:"/statistic/product/get_trend",method:"get",params:t})}function s(t){return Object(n.a)({url:"/statistic/product/get_product_ranking",method:"get",params:t})}function c(t){return Object(n.a)({url:"/statistic/product/get_excel",method:"get",params:t})}function o(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 h(t){return Object(n.a)({url:"/statistic/user/get_region",method:"get",params:t})}function m(t){return Object(n.a)({url:"/statistic/user/get_sex",method:"get",params:t})}function f(t){return Object(n.a)({url:"/statistic/user/get_excel",method:"get",params:t})}function g(t){return Object(n.a)({url:"/statistic/trade/top_trade",method:"get",params:t})}function p(t){return Object(n.a)({url:"/statistic/trade/bottom_trade",method:"get",params:t})}function b(t){return Object(n.a)({url:"/statistic/order/get_basic",method:"get",params:t})}function w(t){return Object(n.a)({url:"/statistic/order/get_trend",method:"get",params:t})}function v(t){return Object(n.a)({url:"/statistic/order/get_channel",method:"get",params:t})}function _(t){return Object(n.a)({url:"/statistic/order/get_type",method:"get",params:t})}function y(t){return Object(n.a)({url:"/statistic/flow/get_record",method:"get",params:t})}function x(t){return Object(n.a)({url:"/statistic/balance/get_basic",method:"get",params:t})}function j(t){return Object(n.a)({url:"/statistic/balance/get_trend",method:"get",params:t})}function O(t){return Object(n.a)({url:"/statistic/balance/get_channel",method:"get",params:t})}function C(t){return Object(n.a)({url:"/statistic/balance/get_type",method:"get",params:t})}function L(t,e){return Object(n.a)({url:"app/wechat_qrcode/statistic/".concat(t),method:"get",params:e})}function k(t){return Object(n.a)({url:"/statistic/schoolStatistic",method:"get",data:t})}},"5b16":function(t,e,a){"use strict";a("87ef")},"6d5b":function(t,e,a){"use strict";a.r(e),a("b0c0");var n=a("c7eb"),i=a("1da1"),r=(a("d81d"),a("a15b"),a("14d9"),a("a584")),s=a("c71e"),c=a("0c9f"),o=a("61f7"),l=a("9901"),u=a("1031");r={name:"index",components:{cardsData:r.a,echartsNew:s.a,echartsFrom:l.a},data:function(){return{timeVal:[],style:{height:"400px"},infoList:{},infoList2:{},echartLeft:!0,echartRight:!1,loading:!1,loading2:!1,formValidate:{time:""},cardLists:[{col:6,count:0,name:"订单量",className:"icondingdanliang"},{col:6,count:0,name:"订单销售额",className:"icondingdanjine"},{col:6,count:0,name:"退款订单数",className:"icontuikuandingdanliang"},{col:6,count:0,name:"退款金额",className:"icontuikuanjine"}],optionData:{},spinShow:!1,tabList:[],tabList2:[],pickerOptions:u.a}},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.formValidate.time=Object(o.a)(e,"yyyy/MM/dd")+"-"+Object(o.a)(t,"yyyy/MM/dd"),this.onInit()},methods:{onInit:function(){this.getBasic(),this.getTrend(),this.getChannel(),this.getType()},onSelectDate:function(t){this.formValidate.time=t,this.onInit()},timeG:function(t){return t=new Date(t),t.getFullYear()+"-"+(t.getMonth()+1)+"-"+t.getDate()+" "+t.getHours()+":"+t.getMinutes()+":"+t.getSeconds()},getBasic:function(){var t=this;Object(c.e)(this.formValidate).then((function(e){var a=["pay_count","pay_price","refund_count","refund_price"];t.cardLists.map((function(t,n){t.count=e.data[a[n]]}))}))},getChannel:function(){var t=this;this.loading=!0,Object(c.f)(this.formValidate).then((function(e){t.infoList=e.data,t.tabList=e.data.list,t.loading=!1}))},getType:function(){var t=this;this.loading2=!0,Object(c.i)(this.formValidate).then((function(e){t.infoList2=e.data,t.tabList2=e.data.list,t.loading2=!1}))},selectChange:function(t){},onchangeTime:function(t){this.timeVal=t,this.formValidate.time=this.timeVal?this.timeVal.join("-"):"",this.name=this.formValidate.time,this.getBasic(),this.getTrend()},getTrend:function(){var t=this;this.spinShow=!0,Object(c.h)(this.formValidate).then(function(){var e=Object(i.a)(Object(n.a)().mark((function e(a){var i,r,s,c;return Object(n.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:i=a.data.series.map((function(t){return t.name})),r=a.data.xAxis,s=["#5B8FF9","#5AD8A6","#FFAB2B","#5D7092"],c=[],a.data.series.map((function(t,e){c.push({name:t.name,type:"line",data:t.data,itemStyle:{normal:{color:s[e]}},smooth:0})})),t.optionData={tooltip:{trigger:"axis",axisPointer:{type:"cross",label:{backgroundColor:"#6a7985"}}},legend:{x:"center",data:i},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},toolbox:{feature:{saveAsImage:{}}},xAxis:{type:"category",boundaryGap:!0,axisLabel:{interval:0,rotate:40,textStyle:{color:"#000000"}},data:r},yAxis:{type:"value",axisLine:{show:!1},axisTick:{show:!1},axisLabel:{textStyle:{color:"#7F8B9C"}},splitLine:{show:!0,lineStyle:{color:"#F5F7F9"}}},series:c},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}))}}},a("5b16"),s=a("2877"),l=Object(s.a)(r,(function(){var t=this,e=t._self._c;return e("div",{directives:[{name:"loading",rawName:"v-loading",value:t.spinShow,expression:"spinShow"}]},[e("el-card",{staticClass:"ivu-mb-16",attrs:{bordered:!1,shadow:"never"}},[e("div",{staticClass:"acea-row row-middle"},[e("span",{staticClass:"label_text"},[t._v("时间选择:")]),e("el-date-picker",{staticClass:"mr20",staticStyle:{width:"250px"},attrs:{clearable:"",type:"daterange",editable:!1,format:"yyyy/MM/dd","value-format":"yyyy/MM/dd","start-placeholder":"开始日期","end-placeholder":"结束日期","picker-options":t.pickerOptions},on:{change:t.onchangeTime},model:{value:t.timeVal,callback:function(e){t.timeVal=e},expression:"timeVal"}})],1)]),0<=t.cardLists.length?e("cards-data",{attrs:{cardLists:t.cardLists}}):t._e(),e("el-card",{staticClass:"ivu-mb-16",attrs:{bordered:!1,shadow:"never"}},[e("h4",{staticClass:"statics-header-title"},[t._v("营业趋势")]),t.optionData?e("echarts-new",{attrs:{"option-data":t.optionData,styles:t.style,height:"100%",width:"100%"}}):t._e()],1),e("div",{staticClass:"code-row-bg"},[e("el-card",{staticClass:"ivu-mt",attrs:{bordered:!1,shadow:"never"}},[e("div",{staticClass:"acea-row row-between-wrapper"},[e("h4",{staticClass:"statics-header-title"},[t._v("订单来源分析")]),e("div",{staticClass:"change-style",on:{click:function(e){t.echartLeft=!t.echartLeft}}},[t._v("切换样式")])]),e("div",{staticClass:"ech-box"},[t.echartLeft?e("echarts-from",{ref:"visitChart",attrs:{infoList:t.infoList,echartsTitle:"circle"}}):t._e(),e("el-table",{directives:[{name:"show",rawName:"v-show",value:!t.echartLeft,expression:"!echartLeft"},{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"selection",attrs:{data:t.tabList,"empty-text":"暂无数据","highlight-current-row":""}},[e("el-table-column",{attrs:{type:"index",label:"序号",width:"50"}}),e("el-table-column",{attrs:{label:"来源","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("span",[t._v(t._s(a.row.name))])]}}])}),e("el-table-column",{attrs:{label:"金额","min-width":"130"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("span",[t._v(t._s(a.row.value))])]}}])}),e("el-table-column",{attrs:{label:"占比率","min-width":"130"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("div",{staticClass:"percent-box"},[e("div",{staticClass:"line"},[e("div",{staticClass:"bg"}),e("div",{staticClass:"percent",style:"width:"+a.row.percent+"%;"})]),e("div",{staticClass:"num"},[t._v(t._s(a.row.percent)+"%")])])]}}])})],1)],1)]),e("el-card",{staticClass:"ivu-mt",attrs:{bordered:!1,shadow:"never"}},[e("div",{staticClass:"acea-row row-between-wrapper"},[e("h4",{staticClass:"statics-header-title"},[t._v("订单类型分析")]),e("div",{staticClass:"change-style",on:{click:function(e){t.echartRight=!t.echartRight}}},[t._v("切换样式")])]),e("div",{staticClass:"ech-box"},[t.echartRight?e("echarts-from",{ref:"visitChart",attrs:{infoList:t.infoList2,echartsTitle:"circle"}}):t._e(),e("el-table",{directives:[{name:"show",rawName:"v-show",value:!t.echartRight,expression:"!echartRight"},{name:"loading",rawName:"v-loading",value:t.loading2,expression:"loading2"}],ref:"selection",attrs:{data:t.tabList2,"empty-text":"暂无数据","highlight-current-row":""}},[e("el-table-column",{attrs:{type:"index",label:"序号",width:"50"}}),e("el-table-column",{attrs:{label:"来源","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("span",[t._v(t._s(a.row.name))])]}}])}),e("el-table-column",{attrs:{label:"金额","min-width":"130"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("span",[t._v(t._s(a.row.value))])]}}])}),e("el-table-column",{attrs:{label:"占比率","min-width":"130"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("div",{staticClass:"percent-box"},[e("div",{staticClass:"line"},[e("div",{staticClass:"bg"}),e("div",{staticClass:"percent",style:"width:"+a.row.percent+"%;"})]),e("div",{staticClass:"num"},[t._v(t._s(a.row.percent)+"%")])])]}}])})],1)],1)])],1)],1)}),[],!1,null,"75453832",null);e.default=l.exports},"87ef":function(t,e,a){}}]); |