canyin-project/ybcy/views/channel/index/static/js/chunk-2044d9a8.f7bd7271.js
2024-11-01 16:07:54 +08:00

1 line
7.9 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2044d9a8"],{"10c2":function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("el-form",{staticClass:"demo-form-inline",attrs:{inline:!1,model:t.form,"label-width":"100px"}},[a("div",{staticClass:"flex ba_f pad_t_20"},[a("el-form-item",{attrs:{label:"选择店铺:"}},[a("div",{},[a("el-select",{attrs:{placeholder:"请选择"},on:{change:t.changeStore},model:{value:t.form.shopValue,callback:function(e){t.$set(t.form,"shopValue",e)},expression:"form.shopValue"}},t._l(t.options,(function(t){return a("el-option",{key:t.id,attrs:{label:t.name+"(ID:"+t.id+")",value:t.id}})})),1)],1)])],1)]),a("div",{staticClass:"ba_f pad_20 mar_t20"},[t._m(0),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.cwData.allMoney||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.cwData.waitMoney||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.cwData.financeMoney||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.cwData.cumulative||0))])])])])])]),t._m(1)],1)},i=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"shuju_title mar_b20"},[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:"outmain ba_f mar_t20"},[a("div",{staticClass:"shuju_title mar_b20"},[a("div",{staticClass:"shuju_title_text"},[a("span",[t._v("交易概况")])])]),a("div",{staticClass:"mar_t40",staticStyle:{height:"360px"},attrs:{id:"zhentiEch"}})])}],o=(a("d81d"),a("96cf"),a("1da1")),r=a("5530"),s=a("313e"),c=a.n(s),l=a("48fb"),u=(a("ed08"),a("2f62")),f={mounted:function(){this.bus.$emit("loading",!0),this.init()},created:function(){this.form.shopValue=this.market[0].id,this.options=this.market},computed:Object(r["a"])({},Object(u["d"])(["market"])),data:function(){var t=this;return{form:{shopValue:"1",timeType:"1",time:[new Date,new Date],Mtime:""},selectData:"",pickerOptions:{onPick:function(e){var a=e.maxDate,n=e.minDate;t.selectData=n.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()}},options:[{value:"1",label:"全部"}],options2:[{value:"1",label:"自然日"},{value:"2",label:"自然月"}],cwData:{},tsData:{},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:"#f7f7f7",width:2}},data:[0,2,4,6,8,10,12,14,16,18,20]},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:[10,52,75,35,40,75,30,10,52,80,25]},{name:"有效订单数",type:"line",stack:"总量",smooth:!0,data:[10,52,20,30,25,35,80,10,52,50,60]}]},storeBillData:{}}},methods:{init:function(){this.getFinanceData()},getFinanceData:function(){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function e(){var a,n,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a={storeId:t.form.shopValue},e.next=3,Object(l["b"])(a);case 3:n=e.sent,i=n.data,i&&(t.cwData=i,t.echarts2_option.series[0].data=i.allMoneyArr.map((function(t){return t.money})),t.echarts2_option.series[1].data=i.effectiveArr.map((function(t){return t.money})),t.echarts2_option.xAxis.data=i.allMoneyArr.map((function(t){return t.hours})),t.zhentiEch(),t.bus.$emit("loading",!1));case 6:case"end":return e.stop()}}),e)})))()},changeTime:function(){this.getFinanceData()},changeStore:function(){this.getFinanceData()},zhentiEch:function(){var t=c.a.init(document.getElementById("zhentiEch"));t.setOption(this.echarts2_option,!0)},isNull:function(t){return!t}}},d=f,p=a("2877"),_=Object(p["a"])(d,n,i,!1,null,null,null);e["default"]=_.exports},"3bbe":function(t,e,a){var n=a("861d");t.exports=function(t){if(!n(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t}},7156:function(t,e,a){var n=a("861d"),i=a("d2bb");t.exports=function(t,e,a){var o,r;return i&&"function"==typeof(o=e.constructor)&&o!==a&&n(r=o.prototype)&&r!==a.prototype&&i(t,r),t}},a9e3:function(t,e,a){"use strict";var n=a("83ab"),i=a("da84"),o=a("94ca"),r=a("6eeb"),s=a("5135"),c=a("c6b6"),l=a("7156"),u=a("c04e"),f=a("d039"),d=a("7c73"),p=a("241c").f,_=a("06cf").f,h=a("9bf2").f,g=a("58a8").trim,v="Number",m=i[v],b=m.prototype,D=c(d(b))==v,y=function(t){var e,a,n,i,o,r,s,c,l=u(t,!1);if("string"==typeof l&&l.length>2)if(l=g(l),e=l.charCodeAt(0),43===e||45===e){if(a=l.charCodeAt(2),88===a||120===a)return NaN}else if(48===e){switch(l.charCodeAt(1)){case 66:case 98:n=2,i=49;break;case 79:case 111:n=8,i=55;break;default:return+l}for(o=l.slice(2),r=o.length,s=0;s<r;s++)if(c=o.charCodeAt(s),c<48||c>i)return NaN;return parseInt(o,n)}return+l};if(o(v,!m(" 0o1")||!m("0b1")||m("+0x1"))){for(var w,x=function(t){var e=arguments.length<1?0:t,a=this;return a instanceof x&&(D?f((function(){b.valueOf.call(a)})):c(a)!=v)?l(new m(y(e)),a,x):y(e)},C=n?p(m):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),S=0;C.length>S;S++)s(m,w=C[S])&&!s(x,w)&&h(x,w,_(m,w));x.prototype=b,b.constructor=x,r(i,v,x)}},bf19:function(t,e,a){"use strict";var n=a("23e7");n({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return URL.prototype.toString.call(this)}})},d2bb:function(t,e,a){var n=a("825a"),i=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(o){}return function(a,o){return n(a),i(o),e?t.call(a,o):a.__proto__=o,a}}():void 0)},ed08:function(t,e,a){"use strict";a.d(e,"a",(function(){return n})),a.d(e,"b",(function(){return i})),a.d(e,"c",(function(){return o}));a("a9e3"),a("ac1f"),a("5319"),a("bf19");function n(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 i(t){var e=new Date(t),a=e.getFullYear(),n=e.getMonth()+1<10?"0"+(e.getMonth()+1):e.getMonth()+1,i=e.getDate()<10?"0"+e.getDate():e.getDate(),o=e.getHours()<10?"0"+e.getHours():e.getHours(),r=e.getMinutes()<10?"0"+e.getMinutes():e.getMinutes(),s=e.getSeconds()<10?"0"+e.getSeconds():e.getSeconds();return a+"-"+n+"-"+i+" "+o+":"+r+":"+s}function o(t){var e=new Date(1e3*Number(t)),a=e.getFullYear()+"-",n=(e.getMonth()+1<10?"0"+(e.getMonth()+1):e.getMonth()+1)+"-",i=(e.getDate()<10?"0"+e.getDate():e.getDate())+" ",o=(e.getHours()<10?"0"+e.getHours():e.getHours())+":",r=(e.getMinutes()<10?"0"+e.getMinutes():e.getMinutes())+":",s=e.getSeconds()<10?"0"+e.getSeconds():e.getSeconds(),c=a+n+i+o+r+s;return c}}}]);