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.
 
 
 

2 lines
6.0 KiB

  1. (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/center/Piabodata/Groupcontrast"],{104:function(t,e,a){"use strict";a.r(e);var n=a(105),i=a.n(n);for(var s in n)"default"!==s&&function(t){a.d(e,t,(function(){return n[t]}))}(s);e["default"]=i.a},105:function(t,e,a){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;getApp(),a(6),a(4);var n={data:function(){return{activeTotal:4,activeTotal2:0,bocindex:0,totalTimeShow:!1,houseId:"",staffShow:!1,staffList:[],lastStartDate:"",lastEndDate:"",newTeam1:"",newAvg1:"",newTeam2:"",newAvg2:"",newTeam3:"",newAvg3:"",newTeam4:"",newAvg4:"",staff:{value:"",label:""},newlisttabinfo1:[{name:"接待量",zxl:"10"},{name:"平均执行率",zxl:"50"},{name:"接待客户",zxl:"80"}],newlisttabinfo2:[{name:"接待量",zxl:"10"},{name:"平均执行率",zxl:"50"},{name:"接待客户",zxl:"80"}],newlisttabinfo3:[{name:"接待量",zxl:"10"},{name:"平均执行率",zxl:"50"},{name:"接待客户",zxl:"80"}],newlisttabinfo4:[{name:"接待量",zxl:"10"},{name:"平均执行率",zxl:"50"},{name:"接待客户",zxl:"80"}],chartData:{categories:[],series:[]}}},onLoad:function(){var e=this;t.$on("updateGroup",(function(t){console.log(t),e.houseId=t.arr.join(","),e.getPowerList()})),this.getSectionList()},methods:{getSectionList:function(){var t=this;this.$u.post("/user/getHouseByToken").then((function(e){t.staffList=[],e.map((function(e,a){var n={};n.value=e.id,n.label=e.propertyName,t.staffList.push(n)})),t.houseId=t.staffList[0].value,t.staff=t.staffList[0],t.getdata()}))},tapspagek2:function(t){this.bocindex=t},staffSelectCallback:function(t){this.staff=t[0],this.houseId=t[0].value,this.getPowerList()},getdata:function(){this.receptionCountList("1","/cusLvStatistics/groupComparisonReception"),this.receptionCountList("2","/cusLvStatistics/groupComparisonReceptionTime"),this.receptionCountList("3","/cusLvStatistics/groupComparisonTalkRank"),this.receptionCountList("4","/cusLvStatistics/groupComparisonTalkRankByConsultant"),this.getPowerList()},tabtimetap:function(t){3==t?this.totalTimeShow=!0:(this.activeTotal=t,this.lastEndDate="",this.lastStartDate="",this.getdata())},receptionCountList:function(t,e){var a=this;this.$u.post(e,{timeType:this.lastEndDate?null:this.activeTotal+"",lastEndDate:this.lastEndDate,lastStartDate:this.lastStartDate}).then((function(e){var n=e.result;a["newTeam"+t]=e.avg[0],a["newAvg"+t]=e.avg[1],a["newlisttabinfo"+t]=[];var i=[];n.map((function(t){var e={};e.name=t.houseName,e.zxl=t.data,i.push(e)})),i=a.dealData(i),a["newlisttabinfo"+t]=i}))},getPowerList:function(){var t=this;this.chartData={categories:[],series:[]},this.$u.post("/cusLvStatistics/groupComparisonMarketingAbility",{houseIds:this.houseId,timeType:this.lastEndDate?null:this.activeTotal+"",lastEndDate:this.lastEndDate,lastStartDate:this.lastStartDate}).then((function(e){var a={categories:[],series:[]};0!=e.result&&(e.result.map((function(t,e){var n={name:t[0].houseName,data:[]};t.map((function(t){0==e&&a.categories.push(t.name),n.data.push(t.avgExecutionRate)})),a.series.push(n)})),t.chartData=a,t.$forceUpdate())}))},totalTimeChange:function(t){console.log(t.startDate,t.endDate),this.activeTotal=3,this.lastEndDate=t.endDate,this.lastStartDate=t.startDate,this.getdata()},Groupcontrast:function(){t.navigateTo({url:"/pages/center/Piabodata/selectGroup?ids=".concat(this.houseId)})},dealData:function(t){var e=Math.max.apply(Math,t.map((function(t){return t.zxl})));return e>100?(t.map((function(t){t.zxl1=Math.floor(t.zxl/e*100)})),t):(t.map((function(t){t.zxl1=t.zxl})),t)}}};e.default=n}).call(this,a(0)["default"])},106:function(t,e,a){},195:function(t,e,a){"use strict";var n;a.d(e,"b",(function(){return i})),a.d(e,"c",(function(){return s})),a.d(e,"a",(function(){return n}));try{n={uLineProgress:function(){return a.e("uview-ui/components/u-line-progress/u-line-progress").then(a.bind(null,590))},qiunDataCharts:function(){return Promise.all([a.e("common/vendor"),a.e("uni_modules/qiun-data-charts/components/qiun-data-charts/qiun-data-charts")]).then(a.bind(null,589))},uCalendar:function(){return a.e("uview-ui/components/u-calendar/u-calendar").then(a.bind(null,583))},uSelect:function(){return a.e("uview-ui/components/u-select/u-select").then(a.bind(null,582))}}}catch(o){if(-1===o.message.indexOf("Cannot find module")||-1===o.message.indexOf(".vue"))throw o;console.error(o.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件")}var i=function(){var t=this,e=t.$createElement,a=(t._self._c,t.__map(t.newlisttabinfo1,(function(e,a){var n=t.__get_orig(e),i=e.name.substring(0,4);return{$orig:n,g0:i}}))),n=t.__map(t.newlisttabinfo2,(function(e,a){var n=t.__get_orig(e),i=e.name.substring(0,4);return{$orig:n,g1:i}})),i=t.__map(t.newlisttabinfo3,(function(e,a){var n=t.__get_orig(e),i=e.name.substring(0,4);return{$orig:n,g2:i}})),s=t.__map(t.newlisttabinfo4,(function(e,a){var n=t.__get_orig(e),i=e.name.substring(0,4);return{$orig:n,g3:i}}));t._isMounted||(t.e0=function(e){t.staffShow=!0}),t.$mp.data=Object.assign({},{$root:{l0:a,l1:n,l2:i,l3:s}})},s=[];i._withStripped=!0},369:function(t,e,a){"use strict";(function(t){a(3);n(a(2));var e=n(a(370));function n(t){return t&&t.__esModule?t:{default:t}}wx.__webpack_require_UNI_MP_PLUGIN__=a,t(e.default)}).call(this,a(0)["createPage"])},370:function(t,e,a){"use strict";a.r(e);var n=a(195),i=a(104);for(var s in i)"default"!==s&&function(t){a.d(e,t,(function(){return i[t]}))}(s);a(371);var o,r=a(1),u=Object(r["a"])(i["default"],n["b"],n["c"],!1,null,"0403cea0",null,!1,n["a"],o);u.options.__file="pages/center/Piabodata/Groupcontrast.vue",e["default"]=u.exports},371:function(t,e,a){"use strict";var n=a(106),i=a.n(n);i.a}},[[369,"common/runtime","common/vendor"]]]);
  2. //# sourceMappingURL=../../../../.sourcemap/mp-weixin/pages/center/Piabodata/Groupcontrast.js.map