|
- (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/center/Piabodata/index"],{372:function(t,e,a){"use strict";(function(t){a(5),a(6);s(a(4));var e=s(a(373));function s(t){return t&&t.__esModule?t:{default:t}}wx.__webpack_require_UNI_MP_PLUGIN__=a,t(e.default)}).call(this,a(1)["createPage"])},373:function(t,e,a){"use strict";a.r(e);var s=a(374),n=a(376);for(var i in n)"default"!==i&&function(t){a.d(e,t,(function(){return n[t]}))}(i);a(378);var o,r=a(17),u=Object(r["default"])(n["default"],s["render"],s["staticRenderFns"],!1,null,"66177da1",null,!1,s["components"],o);u.options.__file="pages/center/Piabodata/index.vue",e["default"]=u.exports},374:function(t,e,a){"use strict";a.r(e);var s=a(375);a.d(e,"render",(function(){return s["render"]})),a.d(e,"staticRenderFns",(function(){return s["staticRenderFns"]})),a.d(e,"recyclableRender",(function(){return s["recyclableRender"]})),a.d(e,"components",(function(){return s["components"]}))},375:function(t,e,a){"use strict";var s;a.r(e),a.d(e,"render",(function(){return n})),a.d(e,"staticRenderFns",(function(){return o})),a.d(e,"recyclableRender",(function(){return i})),a.d(e,"components",(function(){return s}));try{s={uTabsSwiper:function(){return Promise.all([a.e("common/vendor"),a.e("uview-ui/components/u-tabs-swiper/u-tabs-swiper")]).then(a.bind(null,638))},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,695))},uLineProgress:function(){return a.e("uview-ui/components/u-line-progress/u-line-progress").then(a.bind(null,601))},uCalendar:function(){return a.e("uview-ui/components/u-calendar/u-calendar").then(a.bind(null,555))},uSelect:function(){return a.e("uview-ui/components/u-select/u-select").then(a.bind(null,548))}}}catch(r){if(-1===r.message.indexOf("Cannot find module")||-1===r.message.indexOf(".vue"))throw r;console.error(r.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件")}var n=function(){var t=this,e=t.$createElement,a=(t._self._c,t.__map(t.newlisttabinfo,(function(e,a){var s=t.__get_orig(e),n=e.name.substring(0,4);return{$orig:s,g0:n}}))),s=t.__map(t.newlisttabinfo1,(function(e,a){var s=t.__get_orig(e),n=e.name.substring(0,4);return{$orig:s,g1:n}}));t._isMounted||(t.e0=function(e){t.staffShow1=!0},t.e1=function(e){t.staffShow=!0}),t.$mp.data=Object.assign({},{$root:{l0:a,l1:s}})},i=!1,o=[];n._withStripped=!0},376:function(t,e,a){"use strict";a.r(e);var s=a(377),n=a.n(s);for(var i in s)"default"!==i&&function(t){a.d(e,t,(function(){return s[t]}))}(i);e["default"]=n.a},377:function(t,e,a){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;getApp(),a(11);var s={data:function(){return{activeTotal:4,activeTotal2:0,houseId:"",timeobj:{statDateStart:"",statDateEnd:""},staffList:[],teamList:[],staffShow:!1,staff:{value:"",label:""},team:{value:"",label:""},teamFlag:!0,bocindex1:0,staffFlag:!0,staffShow1:!1,lastStartDate:"",lastEndDate:"",allnum:"",allavg:"",allnum1:"",allavg1:"",danwei:"单位(次)",totalTimeShow:!1,activeTab:0,numlist:[{name:"接待量",num:"10"},{name:"接待客户",num:"10"},{name:"平均执行率",num:"10"},{name:"接待时长",num:"10"}],lineOptsect:{categories:["2016","2017","2018","2019","2020","2021"],series:[{name:"成交量",data:[35,8,25,37,4,20]}]},lineOptsect1:{categories:[],series:[]},lineOptsect2:{categories:["2016","2017","2018","2019","2020","2021"],series:[{name:"成交量",data:[35,8,25,37,4,20]}]},newlistoj:[],newlistoj1:[{name:"接待量",id:1},{name:"平均执行率",id:2},{name:"接待客户",id:3},{name:"录音时长",id:5}],bocindex:0,newlisttabinfo:[{name:"接待量",zxl:"10"},{name:"平均执行率",zxl:"50"},{name:"接待客户",zxl:"80"}],newlisttabinfo1:[{name:"接待量",zxl:"10"},{name:"平均执行率",zxl:"50"},{name:"接待客户",zxl:"80"}],Theteamcomparedisshow:!1,Groupcontrastisshow:!1,allechar:[],allList:[]}},onShow:function(){this.houseId=t.getStorageSync("buildingID").id,this.getStaffList(),this.getSectionList(),this.queryHaveDept(),this.getReport(),this.getRtrent(),this.getindexZxl()},methods:{queryHaveDept:function(){var t=this;return new Promise((function(e,a){t.$u.get("/user/queryHaveDept?houseId="+t.houseId).then((function(e){t.permissions(e)}))}))},permissions:function(e){if(1==e)return this.Theteamcomparedisshow=!1,void(this.Groupcontrastisshow=!1);var a=t.getStorageSync("weapp_session_userInfo_data").total;1==a?(this.Theteamcomparedisshow=!0,this.Groupcontrastisshow=!1):(this.Theteamcomparedisshow=!0,this.Groupcontrastisshow=!0)},getStaffList:function(){var t=this;this.$u.post("/cusLvStatistics/selectAllAccountIdByHouseId",{houseId:this.houseId}).then((function(e){t.staffList=[],e.map((function(e){var a={};a.value=e.accountId,a.label=e.name,t.staffList.push(a)})),t.staff=t.staffList[0],t.getAward()}))},getRtrent:function(){var t=this;this.$u.post("/cusLvStatistics/receptionTrend",{houseId:this.houseId,timeType:this.lastEndDate?null:this.activeTotal,lastEndDate:this.lastEndDate,lastStartDate:this.lastStartDate}).then((function(e){t.allechar=e,t.tapspagek2(t.bocindex)}))},getindexZxl:function(){var t=this;this.$u.post("/cusLvStatistics/indexZxl",{houseId:this.houseId,timeType:this.lastEndDate?null:this.activeTotal,lastEndDate:this.lastEndDate,lastStartDate:this.lastStartDate}).then((function(e){var a=[];t.newlistoj=[],e.list.map((function(e,s){a.push({name:e.name,zxl:e.zxl}),t.newlistoj.push({name:e.name,id:s})})),t.newlisttabinfo=a,t.allList=e.list,t.tapspagek3(t.bocindex1)}))},getReport:function(){var t=this;this.$u.post("/cusLvStatistics/xiaojiangAnalysis",{houseId:this.houseId,timeType:this.lastEndDate?null:this.activeTotal,lastEndDate:this.lastEndDate,lastStartDate:this.lastStartDate}).then((function(e){t.numlist[0].num=e.receptionCount||0,t.numlist[1].num=e.sumCustomer||0,t.numlist[2].num=(e.fraction||0)+"%",t.numlist[3].num=Math.floor(e.sumDuration/60)||0}))},getSectionList:function(){var t=this;this.$u.post("/cusLvStatistics/findAllDeptIdByHouseId",{houseId:this.houseId}).then((function(e){t.teamList=[],e.map((function(e){var a={};a.value=e.deptId,a.label=e.deptName,t.teamList.push(a)})),t.team=t.teamList[0],t.receptionCountList()}))},getAward:function(){var t=this;if(0==this.staffList.length)return this.staffFlag=!1,void this.$forceUpdate();this.$u.post("/cusLvStatistics/employeeAnalysisExacutiveRate",{userA:this.staff.value,userB:"",houseId:this.houseId,timeType:this.lastEndDate?null:this.activeTotal+"",lastEndDate:this.lastEndDate,lastStartDate:this.lastStartDate}).then((function(e){t.allnum1=e.avg[0],t.allavg1=e.avg[1];var a=e.first;e.second;t.lineOptsect2.categories=[],t.lineOptsect2.series=[{name:a[0].accountName,data:[]}],a.map((function(e){t.lineOptsect2.categories.push(e.statDate.slice(5,10)),t.lineOptsect2.series[0].data.push(e.sumFraction)}))}))},receptionCountList:function(){var t=this;if(0==this.teamList.length)return this.teamFlag=!1,void this.$forceUpdate();this.$u.post("/cusLvStatistics/teamAnalysisExecutionRate",{deptIds:this.team.value,showRank:1,houseId:this.houseId,timeType:this.lastEndDate?null:this.activeTotal+"",lastEndDate:this.lastEndDate,lastStartDate:this.lastStartDate}).then((function(e){var a=e.result;t.allnum=e.avg[0],t.allavg=e.avg[1],t.lineOptsect1={};var s={categories:[],series:[]},n={data:[]};n.name=a[0][0].deptName,a[0].map((function(t){s.categories.push(t.statDate.slice(5,10)),n.data.push(t.data)})),s.series.push(n),t.lineOptsect1=s}))},tabtimetap:function(t){3==t?this.totalTimeShow=!0:(this.activeTotal=t,this.lastEndDate="",this.lastStartDate="",this.getdata())},getdata:function(){this.receptionCountList(),this.getReport(),this.getRtrent(),this.getindexZxl(),this.getAward()},staffSelectCallback:function(t,e){0==e?(this.staff=t[0],this.getAward()):(this.team=t[0],this.receptionCountList())},totalTimeChange:function(t){console.log(t.startDate,t.endDate),this.activeTotal=3,this.lastEndDate=t.endDate,this.lastStartDate=t.startDate,this.getdata()},tapspagek2:function(t){var e={categories:[],series:[{name:"接待量",data:[]}]};0==t?(this.danwei="单位(次)",e.series[0].name="接待量",this.allechar.map((function(t){e.categories.push(t.statDate.slice(5,10)),e.series[0].data.push(t.receptionCount)}))):1==t?(this.danwei="单位(%)",e.series[0].name="平均执行率",this.allechar.map((function(t){e.categories.push(t.statDate.slice(5,10)),e.series[0].data.push(t.fraction)}))):2==t?(this.danwei="单位(个)",e.series[0].name="接待客户",this.allechar.map((function(t){e.categories.push(t.statDate.slice(5,10)),e.series[0].data.push(t.sumCustomer)}))):(this.danwei="单位(min)",e.series[0].name="录音时长",this.allechar.map((function(t){e.categories.push(t.statDate.slice(5,10)),e.series[0].data.push(t.sumDuration)}))),this.bocindex=t,this.lineOptsect=e},tapspagek3:function(t){var e=[];this.allList[t].children.map((function(t){e.push({name:t.name,zxl:t.zxl})})),this.newlisttabinfo1=e,this.bocindex1=t},Groupcontrast:function(){t.navigateTo({url:"/pages/center/Piabodata/Groupcontrast"})},Theteamcompared:function(){0!=this.teamList.length?t.navigateTo({url:"/pages/center/Piabodata/Theteamcompared"}):t.showToast({title:"没有团队呢",icon:"none"})},toUserinsightinto:function(){t.navigateTo({url:"/pages/center/Piabodata/Userinsightinto"})},toTrendAnalysis:function(){t.navigateTo({url:"/pages/center/Piabodata/TrendAnalysis"})},toStaffAnalysis:function(){0!=this.staffList.length?t.navigateTo({url:"/pages/center/Piabodata/StaffAnalysis"}):t.showToast({title:"没有团队呢",icon:"none"})}}};e.default=s}).call(this,a(1)["default"])},378:function(t,e,a){"use strict";a.r(e);var s=a(379),n=a.n(s);for(var i in s)"default"!==i&&function(t){a.d(e,t,(function(){return s[t]}))}(i);e["default"]=n.a},379:function(t,e,a){}},[[372,"common/runtime","common/vendor"]]]);
- //# sourceMappingURL=../../../../.sourcemap/mp-weixin/pages/center/Piabodata/index.js.map
|