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.
 
 
 

338 lines
10 KiB

  1. <template>
  2. <view class="box">
  3. <view class="boxtittab">
  4. <view class="tabbox">
  5. <view :class="{ activecllasscet: activeTotal == 4 }" @click="tabtimetap(4)">近七天</view>
  6. </view>
  7. <view class="tabbox">
  8. <view :class="{ activecllasscet: activeTotal == 5 }" @click="tabtimetap(5)">近15天</view>
  9. </view>
  10. <view class="tabbox">
  11. <view :class="{ activecllasscet: activeTotal == 6 }" @click="tabtimetap(6)">近30天</view>
  12. </view>
  13. <view class="tabbox">
  14. <view :class="{ activecllasscet: activeTotal == 3 }" @click="tabtimetap(3)">自定义</view>
  15. </view>
  16. </view>
  17. <view style="width: 100%;height: 20rpx;background: #FAFAFA;"></view>
  18. <view class="single">
  19. <view class="title">
  20. <view class="title1">接待量(TOP10)</view>
  21. </view>
  22. <view class="hejibox">
  23. <view class="heji">合计:50</view>
  24. <view class="heji">均值:25</view>
  25. </view>
  26. <view class="jindu">
  27. <view class="jindu-box" v-for="(item,index) in newlisttabinfo1" :key="index">
  28. <view class="jindu-boxche">
  29. <view class="jindu-name">{{item.name.substring(0, 4)}}</view>
  30. <view style="width: 440rpx;margin-left: 10rpx;">
  31. <u-line-progress height="24" :show-percent="false" active-color="#FBA448" :percent="item.zxl"></u-line-progress>
  32. </view>
  33. <view class="jindu-zxl">{{item.zxl==null?0:item.zxl}}</view>
  34. </view>
  35. </view>
  36. </view>
  37. </view>
  38. <view style="width: 100%;height: 20rpx;background: #FAFAFA;"></view>
  39. <view class="single">
  40. <view class="title">
  41. <view class="title1">接待时长(TOP10)</view>
  42. </view>
  43. <view class="hejibox">
  44. <view class="heji">合计:50</view>
  45. <view class="heji">均值:25</view>
  46. </view>
  47. <view class="jindu">
  48. <view class="jindu-box" v-for="(item,index) in newlisttabinfo2" :key="index">
  49. <view class="jindu-boxche">
  50. <view class="jindu-name">{{item.name.substring(0, 4)}}</view>
  51. <view style="width: 440rpx;margin-left: 10rpx;">
  52. <u-line-progress height="24" :show-percent="false" active-color="#4FC78F" :percent="item.zxl"></u-line-progress>
  53. </view>
  54. <view class="jindu-zxl">{{item.zxl==null?0:item.zxl}}</view>
  55. </view>
  56. </view>
  57. </view>
  58. </view>
  59. <view style="width: 100%;height: 20rpx;background: #FAFAFA;"></view>
  60. <view class="single">
  61. <view class="title">
  62. <view class="title1" style="flex: 1;">销讲排名(TOP10)</view>
  63. <view class="title3" style="flex: 1;">
  64. <view class="title3-box">
  65. <view style="height: 42rpx;" :class="{ activecltab: activeTotal2 == 0 }">执行率</view>
  66. </view>
  67. <view class="title3-box">
  68. <view style="height: 42rpx;" :class="{ activecltab: activeTotal2 == 1 }">得分</view>
  69. </view>
  70. </view>
  71. </view>
  72. <view class="hejibox">
  73. <view class="heji">合计:50</view>
  74. <view class="heji">均值:25</view>
  75. </view>
  76. <view class="jindu">
  77. <view class="jindu-box" v-for="(item,index) in newlisttabinfo3" :key="index">
  78. <view class="jindu-boxche">
  79. <view class="jindu-name">{{item.name.substring(0, 4)}}</view>
  80. <view style="width: 440rpx;margin-left: 10rpx;">
  81. <u-line-progress height="24" :show-percent="false" active-color="#9B6BDF" :percent="item.zxl"></u-line-progress>
  82. </view>
  83. <view class="jindu-zxl">{{item.zxl==null?0:item.zxl}}</view>
  84. </view>
  85. </view>
  86. </view>
  87. </view>
  88. <view style="width: 100%;height: 20rpx;background: #FAFAFA;"></view>
  89. <view class="single">
  90. <view class="title">
  91. <view class="title1" style="flex: 1;">顾问排名(TOP10)</view>
  92. <view class="title3" style="flex: 1;">
  93. <view class="title3-box">
  94. <view style="height: 42rpx;" :class="{ activecltab: activeTotal2 == 0 }">执行率</view>
  95. </view>
  96. <view class="title3-box">
  97. <view style="height: 42rpx;" :class="{ activecltab: activeTotal2 == 1 }">得分</view>
  98. </view>
  99. </view>
  100. </view>
  101. <view class="hejibox">
  102. <view class="heji">合计:50</view>
  103. <view class="heji">均值:25</view>
  104. </view>
  105. <view class="jindu">
  106. <view class="jindu-box" v-for="(item,index) in newlisttabinfo4" :key="index">
  107. <view class="jindu-boxche">
  108. <view class="jindu-name">{{item.name.substring(0, 4)}}</view>
  109. <view style="width: 440rpx;margin-left: 10rpx;">
  110. <u-line-progress height="24" :show-percent="false" active-color="#9B6BDF" :percent="item.zxl"></u-line-progress>
  111. </view>
  112. <view class="jindu-zxl">{{item.zxl==null?0:item.zxl}}</view>
  113. </view>
  114. </view>
  115. </view>
  116. </view>
  117. <view style="width: 100%;height: 20rpx;background: #FAFAFA;"></view>
  118. <view class="single">
  119. <view class="title" style="padding-right: 30rpx;">
  120. <view class="title1" style="flex: 1;">销奖能力(TOP10)</view>
  121. <view class="title2" style="flex: 1;justify-content: flex-end;">
  122. <view class="title2-che">楼盘
  123. <image class="righttochoose" src="../../../static/images/righttochoose.png" mode=""></image>
  124. </view>
  125. </view>
  126. </view>
  127. <view class="hejibox">
  128. <view class="heji">合计:50</view>
  129. <view class="heji">均值:25</view>
  130. </view>
  131. <view class="uchaserbox">
  132. <qiun-data-charts
  133. type="radar"
  134. :chartData="chartData"
  135. :canvas2d="true"
  136. canvasId="wangxiaohuaerlingeryilingwuyib88"
  137. background="none"
  138. />
  139. </view>
  140. </view>
  141. <!-- <view style="width: 100%;height: 20rpx;background: #FAFAFA;"></view>
  142. <view class="single">
  143. <view class="title">
  144. <view class="title1">禁忌执行率(TOP10)</view>
  145. </view>
  146. <view class="hejibox">
  147. <view class="heji">合计:50</view>
  148. <view class="heji">均值:25</view>
  149. </view>
  150. <view class="jindu">
  151. <view class="jindu-box" v-for="(item,index) in newlisttabinfo" :key="index">
  152. <view class="jindu-boxche">
  153. <view class="jindu-name">{{item.name.substring(0, 4)}}</view>
  154. <view style="width: 440rpx;margin-left: 10rpx;">
  155. <u-line-progress height="24" :show-percent="false" active-color="#E6625B" :percent="item.zxl"></u-line-progress>
  156. </view>
  157. <view class="jindu-zxl">{{item.zxl==null?0:item.zxl}}%</view>
  158. </view>
  159. </view>
  160. </view>
  161. </view> -->
  162. <view style="width: 100%;height: 20rpx;background: #FAFAFA;"></view>
  163. <!-- <view class="single">
  164. <view class="title" style="padding-right: 30rpx;">
  165. <view class="title1" style="flex: 1;">违禁能力(TOP10)</view>
  166. <view class="title2" style="flex: 1;justify-content: flex-end;">
  167. <view class="title2-che">楼盘
  168. <image class="righttochoose" src="../../../static/images/righttochoose.png" mode=""></image>
  169. </view>
  170. </view>
  171. </view>
  172. <view class="hejibox">
  173. <view class="heji">合计:50</view>
  174. <view class="heji">均值:25</view>
  175. </view>
  176. <view class="uchaserbox">
  177. <qiun-data-charts
  178. type="radar"
  179. :chartData="chartData"
  180. :canvas2d="true"
  181. canvasId="wangxiaohuaerlingeryilingwuyib89"
  182. background="none"
  183. />
  184. </view>
  185. </view> -->
  186. <u-calendar v-model="totalTimeShow" mode="range" @change="totalTimeChange"></u-calendar>
  187. </view>
  188. </template>
  189. <script>
  190. var app = getApp();
  191. var util = require("../../../utils/util.js");
  192. var config = require("../../../config");
  193. export default {
  194. data() {
  195. return {
  196. activeTotal: 2,
  197. activeTotal2: 0,
  198. bocindex:0,
  199. totalTimeShow: false,
  200. // 楼盘id
  201. houseId:'',
  202. lastStartDate:'',
  203. lastEndDate :'',
  204. newlisttabinfo1:[
  205. {name:'接待量',zxl:'10'},
  206. {name:'平均执行率',zxl:'50'},
  207. {name:'接待客户',zxl:'80'},
  208. ],
  209. newlisttabinfo2:[
  210. {name:'接待量',zxl:'10'},
  211. {name:'平均执行率',zxl:'50'},
  212. {name:'接待客户',zxl:'80'},
  213. ],
  214. newlisttabinfo3:[
  215. {name:'接待量',zxl:'10'},
  216. {name:'平均执行率',zxl:'50'},
  217. {name:'接待客户',zxl:'80'},
  218. ],
  219. newlisttabinfo4:[
  220. {name:'接待量',zxl:'10'},
  221. {name:'平均执行率',zxl:'50'},
  222. {name:'接待客户',zxl:'80'},
  223. ],
  224. chartData:{
  225. "categories": ["维度1","维度2","维度3","维度4","维度5","维度6"],
  226. "series": [
  227. {
  228. "name": "成交量",
  229. "data": [90,110,165,195,187,172]
  230. }
  231. ]
  232. }
  233. };
  234. },
  235. onLoad() {
  236. let that=this
  237. uni.$on('updateGroup',function(data){
  238. // console.log(data)
  239. that.deptids=data.arr.join(',')
  240. // 获取销奖能力
  241. that.getPowerList()
  242. })
  243. // this.buildingname = uni.getStorageSync('buildingID').name;
  244. // 请求接口获取接待量
  245. this.receptionCountList('1','/cusLvStatistics/groupComparisonReception')
  246. },
  247. methods: {
  248. //指标执行率分析tab
  249. tapspagek2(index) {
  250. this.bocindex = index;
  251. },
  252. //时间切换
  253. //时间切换
  254. tabtimetap(index) {
  255. if (index == 3) {
  256. this.totalTimeShow = true;
  257. } else {
  258. this.activeTotal = index;
  259. this.lastEndDate=''
  260. this.lastStartDate=''
  261. // // 获取数据
  262. // // 团队对比接待量
  263. // this.receptionCountList(0,1,'/cusLvStatistics/teamAnalysisReception')
  264. // // 团队对比接待时长
  265. // this.receptionCountList(0,2,'/cusLvStatistics/teamAnalysisReceptionTime')
  266. // /* 销奖执行率 */
  267. // this.receptionCountList(0,3,'/cusLvStatistics/teamAnalysisExecutionRate')
  268. // // 获取销奖能力
  269. // this.getPowerList()
  270. }
  271. },
  272. // 接待时长
  273. receptionCountList(index,url){
  274. this.$u.post(url,{
  275. timeType:this.lastEndDate?null:this.activeTotal+'',
  276. lastEndDate:this.lastEndDate,
  277. lastStartDate:this.lastStartDate
  278. })
  279. .then(res=>{
  280. console.log(res)
  281. let result=res.result
  282. this['newTeam'+index]=res.avg[0]
  283. this['newAvg'+index]=res.avg[1]
  284. // return
  285. // 处理数据
  286. // 先处理牌名数据,需要进行判断全部还是单个
  287. // 当为全部时
  288. this['newlisttabinfo'+index]=[]
  289. // 当选择全部时
  290. // 当两个都选择的时候
  291. result.map(item=>{
  292. let obj={}
  293. obj.name=item.houseName
  294. obj.zxl=item.data
  295. this['newlisttabinfo'+index].push(obj)
  296. })
  297. })
  298. },
  299. //自定义时间
  300. totalTimeChange(e) {
  301. console.log(e.startDate, e.endDate)
  302. this.activeTotal=3;
  303. },
  304. //集团对比
  305. Groupcontrast(){
  306. uni.navigateTo({
  307. url: '/pages/center/Piabodata/Groupcontrast'
  308. });
  309. }
  310. }
  311. };
  312. </script>
  313. <style lang="scss" scoped>
  314. .box {
  315. width: 100%;
  316. height: 100%;
  317. background: #FAFAFA;
  318. padding-bottom: 60rpx;
  319. }
  320. </style>