canyin-project/ybcy/views/channel/index20240524/static/js/chunk-503d659e.9602e3e4.js
2024-11-01 16:07:54 +08:00

1 line
13 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-503d659e"],{"17ca":function(t,e,a){},"309f":function(t,e,a){"use strict";var i=a("17ca"),s=a.n(i);s.a},"3bbe":function(t,e,a){var i=a("861d");t.exports=function(t){if(!i(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t}},7156:function(t,e,a){var i=a("861d"),s=a("d2bb");t.exports=function(t,e,a){var n,o;return s&&"function"==typeof(n=e.constructor)&&n!==a&&i(o=n.prototype)&&o!==a.prototype&&s(t,o),t}},8603:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("div",{staticClass:"ba_f outmain"},[t._m(0),a("el-form",{staticClass:"demo-form-inline",attrs:{inline:!1,model:t.form,"label-width":"100px"}},[a("div",{staticClass:"flex ba_f"},[a("el-form-item",{staticClass:"mar_t20",attrs:{label:"查询日期:"}},[a("div",{staticClass:"flex-bet"},[a("div",[a("el-radio-group",{on:{change:t.selectType},model:{value:t.form.timeType,callback:function(e){t.$set(t.form,"timeType",e)},expression:"form.timeType"}},[a("el-radio-button",{attrs:{label:"1"}},[t._v("今天")]),a("el-radio-button",{attrs:{label:"2"}},[t._v("近七天")]),a("el-radio-button",{attrs:{label:"3"}},[t._v("近十五天")]),a("el-radio-button",{attrs:{label:"4"}},[t._v("自定义时间")])],1),"4"==t.form.timeType?a("span",{staticClass:"mar_l20"},[a("el-date-picker",{attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期",format:"yyyy年MM月dd日","picker-options":t.pickerOptions},on:{change:t.selectType},model:{value:t.form.time,callback:function(e){t.$set(t.form,"time",e)},expression:"form.time"}})],1):t._e()],1)])])],1)])],1),a("div",{staticClass:"mar_t20 ba_f outmain"},[t._m(1),a("div",{staticClass:"main-icon flex t_l mar_t20"},[a("div",{staticClass:"flex-1 t_l pad_20 borderBG mar_r20"},[a("div",{staticClass:"flex-bet flex-y-top"},[a("div",[a("p",{staticClass:"color_9 fon_14"},[t._v("今日收款")]),a("p",{staticClass:"fon_30 title35 lh16 pad_tb_20 wei"},[t._v(t._s(t.newDate.money||0))]),a("div",{staticClass:"flex"},[a("p",{staticClass:"fon_14 color_9"},[t._v("有效订单:"+t._s(t.newDate.count||0))])])])])]),a("div",{staticClass:"flex-1 t_l pad_20 borderBG mar_r20"},[a("div",{staticClass:"flex-bet flex-y-top"},[a("div",[a("p",{staticClass:"color_9 fon_14"},[t._v("预计收入")]),a("p",{staticClass:"fon_30 title35 lh16 pad_tb_20 wei"},[t._v(t._s(t.newDate.estimate||0))]),a("div",{staticClass:"flex"},[a("p",{staticClass:"fon_14 color_9"},[t._v("服务费支付:"+t._s(t.newDate.serviceMoney||0))])])])])]),a("div",{staticClass:"flex-1 t_l pad_20 borderBG mar_r20"},[a("div",{staticClass:"flex-bet flex-y-top"},[a("div",[a("p",{staticClass:"color_9 fon_14"},[t._v("总收款")]),a("p",{staticClass:"fon_30 title35 lh16 pad_tb_20 wei"},[t._v(t._s(t.newDate.sumMoney||0))]),a("div",{staticClass:"flex"},[a("p",{staticClass:"fon_14 color_9"},[t._v("有效订单:"+t._s(t.newDate.sumCount||0))])])])])]),a("div",{staticClass:"flex-1 t_l pad_20 borderBG"},[a("div",{staticClass:"flex-bet flex-y-top"},[a("div",[a("p",{staticClass:"color_9 fon_14"},[t._v("总支付人数")]),a("p",{staticClass:"fon_30 title35 lh16 pad_tb_20 wei"},[t._v(t._s(t.newDate.payUserNum||0))]),a("div",{staticClass:"flex yc"},[a("p",{staticClass:"fon_14 color_9"},[t._v("订单:"+t._s(t.newDate.money||0))])])])])])])]),t._m(2),t._m(3)])},s=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"shuju_title"},[a("div",{staticClass:"shuju_title_text"},[a("span",[t._v("筛选条件")])])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"shuju_title"},[a("div",{staticClass:"shuju_title_text"},[a("span",[t._v("当面付概况")])])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"mar_t20"},[a("div",{staticClass:"mar_t20 flex-bet"},[a("div",{staticClass:"flex-g-1 ba_f pad_20 bor_rad5"},[a("div",{staticClass:"shuju_title"},[a("div",{staticClass:"shuju_title_text"},[a("span",[t._v("订单渠道")])])]),a("div",{staticClass:"mar_r20",staticStyle:{height:"280px",width:"580px","margin-top":"40px"},attrs:{id:"mainEch32"}})]),a("div",{staticClass:"flex-g-1 ba_f pad_20 bor_rad5 mar_l20"},[a("div",{staticClass:"shuju_title"},[a("div",{staticClass:"shuju_title_text"},[a("span",[t._v("支付占比")])])]),a("div",{staticClass:"mar_r20",staticStyle:{height:"280px",width:"580px","margin-top":"40px"},attrs:{id:"mainEch34"}})])])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"mar_t20 ba_f outmain"},[a("div",{staticClass:"shuju_title"},[a("div",{staticClass:"shuju_title_text"},[a("span",[t._v("整体看板")])])]),a("div",{staticClass:"mar_t20",staticStyle:{height:"360px"},attrs:{id:"zhentiEch"}})])}],n=(a("d81d"),a("96cf"),a("1da1")),o=a("5530"),r=a("313e"),l=a.n(r),c=a("2f62"),u=a("48fb"),d=a("ed08"),p={mounted:function(){this.getrealCover(),window.addEventListener("resize",this.initchart)},computed:Object(o["a"])({},Object(c["d"])(["storeId"])),data:function(){var t=this;return{selectData:"",pickerOptions:{onPick:function(e){var a=e.maxDate,i=e.minDate;t.selectData=i.getTime(),a&&(t.selectData="")},disabledDate:function(e){if(t.isNull(t.selectData))return!1;var a=new Date(t.selectData);return a.getMonth()>new Date(e).getMonth()||a.getMonth()<new Date(e).getMonth()}},newDate:{},form:{shopValue:"",timeType:"1",time:[new Date,new Date],Mtime:""},value:"",value1:new Date,options:[{value:"1",label:"自然日"},{value:"2",label:"自然月"}],optionsValue:"1",optionsShop:[{value:"1",label:"总店"},{value:"2",label:"总店1"}],tableData:[],echarts2_option:{color:["#4284ED","#42CCF0"],tooltip:{trigger:"axis"},legend:{data:["支付金额","订单数"]},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:{type:"category",boundaryGap:!1,axisTick:{show:!1,lineStyle:{color:"#ccc",type:"dashed"}},axisLabel:{show:!0,textStyle:{color:"#333",fontSize:"12"}},axisLine:{lineStyle:{color:"#4ECB73",width:2}},data:[]},yAxis:{type:"value",axisTick:{show:!1},axisLine:{show:!1},axisLabel:{show:!0,textStyle:{color:"#333",fontSize:"12"}},splitLine:{lineStyle:{type:"dotted",color:"#DDDDDD"},show:!0}},series:[{name:"支付金额",type:"line",stack:"总量",smooth:!0,data:[]},{name:"订单数",type:"line",stack:"总量",smooth:!0,data:[]}]},echarts1_option:{color:["#0095FF","#FDD835","#4EC478","#40C045"],legend:{orient:"vertical",right:0,data:["安卓","IOS","其他"]},series:[{name:"访问来源",type:"pie",radius:["40%","60%"],avoidLabelOverlap:!1,label:{show:!1,position:"center"},emphasis:{label:{show:!0,fontSize:"16",fontWeight:"bold"}},labelLine:{show:!1},data:[{value:35,name:"安卓"},{value:310,name:"IOS"},{value:10,name:"其他"}]}]},echarts3_option:{color:["#0095FF","#4CA8FF","#4EC478","#FBA33F"],legend:{orient:"vertical",right:0,data:["小程序"]},series:[{name:"访问来源",type:"pie",radius:["40%","60%"],avoidLabelOverlap:!1,label:{show:!1,position:"center"},emphasis:{label:{show:!0,fontSize:"16",fontWeight:"bold"}},labelLine:{show:!1},data:[{value:35,name:"小程序"}]}]},echarts32_option:{color:["#5654F5","#4CA8FF","#4EC478","#FBA33F","#EBA675"],tooltip:{trigger:"item"},legend:{orient:"vertical",right:0,data:["微信小程序","支付宝小程序"]},series:[{name:"支付订单数",type:"pie",radius:["40%","60%"],avoidLabelOverlap:!1,label:{show:!1,position:"center"},emphasis:{label:{show:!0,fontSize:"20",fontWeight:"bold"},itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}},labelLine:{show:!1},data:[{value:35,name:"微信小程序"},{value:20,name:"支付宝小程序"}]}]},echarts33_option:{color:["#5654F5","#4CA8FF","#4EC478","#FBA33F","#EBA675"],tooltip:{trigger:"item"},legend:{orient:"vertical",right:0,data:["外卖订单","外卖自提订单","当面付订单"]},series:[{name:"支付金额",type:"pie",radius:["40%","60%"],avoidLabelOverlap:!1,label:{show:!1,position:"center"},emphasis:{label:{show:!0,fontSize:"20",fontWeight:"bold"},itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}},labelLine:{show:!1},data:[{value:35,name:"外卖订单"},{value:20,name:"外卖自提订单"},{value:20,name:"当面付订单"}]}]},echarts34_option:{color:["#5654F5","#4CA8FF","#4EC478","#FBA33F","#EBA675"],tooltip:{trigger:"item"},legend:{orient:"vertical",right:0,data:["微信支付","支付宝支付","余额支付"]},series:[{name:"支付金额",type:"pie",radius:["40%","60%"],avoidLabelOverlap:!1,label:{show:!1,position:"center"},emphasis:{label:{show:!0,fontSize:"20",fontWeight:"bold"},itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}},labelLine:{show:!1},data:[{value:35,name:"微信支付"},{value:20,name:"支付宝支付"},{value:20,name:"余额支付"}]}]}}},methods:{init2:function(){var t=l.a.init(document.getElementById("zhentiEch"));t.setOption(this.echarts2_option,!0)},init:function(){var t=l.a.init(document.getElementById("mainEch"));t.setOption(this.echarts1_option,!0)},init3:function(){var t=l.a.init(document.getElementById("mainEch2"));t.setOption(this.echarts3_option,!0)},initchart:function(){var t=l.a.init(document.getElementById("zhentiEch"));t.resize()},getrealCover:function(){var t=this;return Object(n["a"])(regeneratorRuntime.mark((function e(){var a,i,s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a={storeId:t.storeId,timeType:t.form.timeType,startTime:"4"==t.form.timeType&&t.form.time?Object(d["a"])(t.form.time[0]).substr(0,10):"",endTime:"4"==t.form.timeType&&t.form.time?Object(d["a"])(t.form.time[1]).substr(0,10):""},e.next=3,Object(u["l"])(a);case 3:i=e.sent,s=i.data,console.log(s),s&&(t.newDate=s,t.echarts2_option.series[0].data=s.moneyChar.map((function(t){return t.money})),t.echarts2_option.series[1].data=s.countChar.map((function(t){return t.money})),t.echarts2_option.xAxis.data=s.moneyChar.map((function(t){return t.hours})),t.init2(),t.echarts32_option.series[0].data[0].value=+s.wxCount,t.echarts32_option.series[0].data[1].value=+s.aliCount,t.mainEch32(),t.echarts34_option.series[0].data[0].value=+s.wxMoney,t.echarts34_option.series[0].data[1].value=+s.aliMoney,t.echarts34_option.series[0].data[2].value=+s.balanceMoney,t.mainEch34());case 7:case"end":return e.stop()}}),e)})))()},mainEch32:function(){var t=l.a.init(document.getElementById("mainEch32"));t.setOption(this.echarts32_option,!0)},mainEch33:function(){var t=l.a.init(document.getElementById("mainEch33"));t.setOption(this.echarts33_option,!0)},mainEch34:function(){var t=l.a.init(document.getElementById("mainEch34"));t.setOption(this.echarts34_option,!0)},selectType:function(){this.getrealCover()},changeStore:function(){this.getrealCover()},changeTime:function(){this.getrealCover()},isNull:function(t){return!t}}},h=p,f=(a("309f"),a("2877")),m=Object(f["a"])(h,i,s,!1,null,"c6428fe4",null);e["default"]=m.exports},a9e3:function(t,e,a){"use strict";var i=a("83ab"),s=a("da84"),n=a("94ca"),o=a("6eeb"),r=a("5135"),l=a("c6b6"),c=a("7156"),u=a("c04e"),d=a("d039"),p=a("7c73"),h=a("241c").f,f=a("06cf").f,m=a("9bf2").f,_=a("58a8").trim,v="Number",b=s[v],g=b.prototype,C=l(p(g))==v,y=function(t){var e,a,i,s,n,o,r,l,c=u(t,!1);if("string"==typeof c&&c.length>2)if(c=_(c),e=c.charCodeAt(0),43===e||45===e){if(a=c.charCodeAt(2),88===a||120===a)return NaN}else if(48===e){switch(c.charCodeAt(1)){case 66:case 98:i=2,s=49;break;case 79:case 111:i=8,s=55;break;default:return+c}for(n=c.slice(2),o=n.length,r=0;r<o;r++)if(l=n.charCodeAt(r),l<48||l>s)return NaN;return parseInt(n,i)}return+c};if(n(v,!b(" 0o1")||!b("0b1")||b("+0x1"))){for(var w,x=function(t){var e=arguments.length<1?0:t,a=this;return a instanceof x&&(C?d((function(){g.valueOf.call(a)})):l(a)!=v)?c(new b(y(e)),a,x):y(e)},E=i?h(b):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),D=0;E.length>D;D++)r(b,w=E[D])&&!r(x,w)&&m(x,w,f(b,w));x.prototype=g,g.constructor=x,o(s,v,x)}},bf19:function(t,e,a){"use strict";var i=a("23e7");i({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return URL.prototype.toString.call(this)}})},d2bb:function(t,e,a){var i=a("825a"),s=a("3bbe");t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,a={};try{t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,t.call(a,[]),e=a instanceof Array}catch(n){}return function(a,n){return i(a),s(n),e?t.call(a,n):a.__proto__=n,a}}():void 0)},ed08:function(t,e,a){"use strict";a.d(e,"a",(function(){return i})),a.d(e,"b",(function(){return s})),a.d(e,"c",(function(){return n}));a("a9e3"),a("ac1f"),a("5319"),a("bf19");function i(t){var e=new Date(t).toJSON(),a=new Date(+new Date(e)+288e5).toISOString().replace(/T/g," ").replace(/\.[\d]{3}Z/,"");return a}function s(t){var e=new Date(t),a=e.getFullYear(),i=e.getMonth()+1<10?"0"+(e.getMonth()+1):e.getMonth()+1,s=e.getDate()<10?"0"+e.getDate():e.getDate(),n=e.getHours()<10?"0"+e.getHours():e.getHours(),o=e.getMinutes()<10?"0"+e.getMinutes():e.getMinutes(),r=e.getSeconds()<10?"0"+e.getSeconds():e.getSeconds();return a+"-"+i+"-"+s+" "+n+":"+o+":"+r}function n(t){var e=new Date(1e3*Number(t)),a=e.getFullYear()+"-",i=(e.getMonth()+1<10?"0"+(e.getMonth()+1):e.getMonth()+1)+"-",s=(e.getDate()<10?"0"+e.getDate():e.getDate())+" ",n=(e.getHours()<10?"0"+e.getHours():e.getHours())+":",o=(e.getMinutes()<10?"0"+e.getMinutes():e.getMinutes())+":",r=e.getSeconds()<10?"0"+e.getSeconds():e.getSeconds(),l=a+i+s+n+o+r;return l}}}]);