crm_second_opening_mini/pagesA/crm/statisticalFrom/achieveRank.js

1 line
6.0 KiB
JavaScript

require('../../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pagesA/crm/statisticalFrom/achieveRank"],{"28be":function(t,a,e){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var n=e("dc92"),r=e("0c59"),i={data:function(){return{BASE_IMG_URL:r.BASE_IMG_URL,list:[],dataYear:"",typeList:["本人及下属","仅本人","仅下属"],typeIndex:0,chartData:{},twoChart:{color:["#B81BCF","#1B67CF"],enableScroll:!0,xAxis:{type:"grid",gridType:"dash",itemCount:3,scrollShow:!0,scrollAlign:"left",scrollBackgroundColor:"#F7F7FF",scrollColor:"#DEE7F7"}}}},created:function(){var t=new Date,a=t.getFullYear();this.dataYear=a,this.getData()},methods:{getData:function(){var t=this;(0,n.netPaymentRank)({year:this.dataYear,type:this.typeIndex}).then((function(a){t.list=a.data.data,t.handleData(a.data.ranking)}))},handleData:function(t){t.reverse();var a=[],e=[];t.forEach((function(t,n){a.push(t.name),e.push(t.number)})),this.chartData={categories:a,series:[{name:"完成量",data:e}]}},changeYeay:function(t){this.dataYear=t.detail.value,this.getData()},changeDataType:function(t){this.typeIndex=t.detail.value,this.getData()}}};a.default=i},3451:function(t,a,e){"use strict";e.r(a);var n=e("db3d"),r=e("5279");for(var i in r)["default"].indexOf(i)<0&&function(t){e.d(a,t,(function(){return r[t]}))}(i);e("eae6");var u=e("f0c5"),o=Object(u["a"])(r["default"],n["b"],n["c"],!1,null,"7b9ff462",null,!1,n["a"],void 0);a["default"]=o.exports},"398f":function(t,a,e){"use strict";e.r(a);var n=e("6059"),r=e.n(n);for(var i in n)["default"].indexOf(i)<0&&function(t){e.d(a,t,(function(){return n[t]}))}(i);a["default"]=r.a},5279:function(t,a,e){"use strict";e.r(a);var n=e("7d47"),r=e.n(n);for(var i in n)["default"].indexOf(i)<0&&function(t){e.d(a,t,(function(){return n[t]}))}(i);a["default"]=r.a},6053:function(t,a,e){"use strict";e.d(a,"b",(function(){return r})),e.d(a,"c",(function(){return i})),e.d(a,"a",(function(){return n}));var n={qiunDataCharts:function(){return Promise.all([e.e("common/vendor"),e.e("uni_modules/qiun-data-charts/components/qiun-data-charts/qiun-data-charts")]).then(e.bind(null,"2e67"))}},r=function(){var t=this.$createElement;this._self._c},i=[]},6059:function(t,a,e){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var n=e("dc92"),r=e("0c59"),i={data:function(){return{BASE_IMG_URL:r.BASE_IMG_URL,show:!0,list:[],dataYear:"",typeList:["本人及下属","仅本人","仅下属"],typeIndex:0,arrList:["按年","按月"],arrIndex:0,dataMonth:"",chartData:{},twoChart:{color:["#B81BCF","#1B67CF"],enableScroll:!0,xAxis:{type:"grid",gridType:"dash",itemCount:3,scrollShow:!0,scrollAlign:"left",scrollBackgroundColor:"#F7F7FF",scrollColor:"#DEE7F7"}}}},created:function(){var t=new Date,a=t.getFullYear(),e=t.getMonth()+1;this.dataYear=a,this.dataMonth=a+"-"+e,this.getData()},methods:{getData:function(){var t=this,a={year:0==this.arrIndex?this.dataYear:this.dataMonth,type:this.typeIndex};(0,n.netDealRank)(a).then((function(a){t.list=a.data.data,t.handleData(a.data.ranking)}))},handleData:function(t){t.reverse();var a=[],e=[];t.forEach((function(t,n){a.push(t.name),e.push(t.number)})),this.chartData={categories:a,series:[{name:"完成量",data:e}]}},changeYeay:function(t){this.dataYear=t.detail.value,this.getData()},changeDataType:function(t){this.typeIndex=t.detail.value,this.getData()},changeMonth:function(t){this.dataMonth=t.detail.value,this.getData()},changeArr:function(t){this.arrIndex=t.detail.value,this.getData()}},components:{},onReady:function(){}};a.default=i},"67f0":function(t,a,e){},"6b49":function(t,a,e){},"76be":function(t,a,e){"use strict";var n=e("67f0"),r=e.n(n);r.a},7725:function(t,a,e){"use strict";e.r(a);var n=e("28be"),r=e.n(n);for(var i in n)["default"].indexOf(i)<0&&function(t){e.d(a,t,(function(){return n[t]}))}(i);a["default"]=r.a},"7d47":function(t,a,e){"use strict";var n=e("4ea4");Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var r=n(e("ae44")),i=n(e("8541")),u={components:{paymentRank:r.default,dealRank:i.default,customerAddRank:function(){e.e("pagesA/crm/statisticalFrom/customerAddRank/customerAddRank").then(function(){return resolve(e("7dfc"))}.bind(null,e)).catch(e.oe)},customerFollowRank:function(){e.e("pagesA/crm/statisticalFrom/customerFollowRank/customerFollowRank").then(function(){return resolve(e("260e"))}.bind(null,e)).catch(e.oe)}},data:function(){return{typeIndex:0}},methods:{changeFirTab:function(t){this.typeIndex=t}}};a.default=u},8163:function(t,a,e){},8541:function(t,a,e){"use strict";e.r(a);var n=e("d6fa"),r=e("398f");for(var i in r)["default"].indexOf(i)<0&&function(t){e.d(a,t,(function(){return r[t]}))}(i);e("76be");var u=e("f0c5"),o=Object(u["a"])(r["default"],n["b"],n["c"],!1,null,"0f44ecba",null,!1,n["a"],void 0);a["default"]=o.exports},"9a4e":function(t,a,e){"use strict";(function(t,a){var n=e("4ea4");e("8886");n(e("66fd"));var r=n(e("3451"));t.__webpack_require_UNI_MP_PLUGIN__=e,a(r.default)}).call(this,e("bc2e")["default"],e("543d")["createPage"])},ae44:function(t,a,e){"use strict";e.r(a);var n=e("6053"),r=e("7725");for(var i in r)["default"].indexOf(i)<0&&function(t){e.d(a,t,(function(){return r[t]}))}(i);e("eb06");var u=e("f0c5"),o=Object(u["a"])(r["default"],n["b"],n["c"],!1,null,"028e2f5f",null,!1,n["a"],void 0);a["default"]=o.exports},d6fa:function(t,a,e){"use strict";e.d(a,"b",(function(){return r})),e.d(a,"c",(function(){return i})),e.d(a,"a",(function(){return n}));var n={qiunDataCharts:function(){return Promise.all([e.e("common/vendor"),e.e("uni_modules/qiun-data-charts/components/qiun-data-charts/qiun-data-charts")]).then(e.bind(null,"2e67"))}},r=function(){var t=this.$createElement;this._self._c},i=[]},db3d:function(t,a,e){"use strict";e.d(a,"b",(function(){return n})),e.d(a,"c",(function(){return r})),e.d(a,"a",(function(){}));var n=function(){var t=this.$createElement;this._self._c},r=[]},eae6:function(t,a,e){"use strict";var n=e("8163"),r=e.n(n);r.a},eb06:function(t,a,e){"use strict";var n=e("6b49"),r=e.n(n);r.a}},[["9a4e","common/runtime","common/vendor"]]]);