您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 

1588 行
43 KiB

  1. <template>
  2. <view>
  3. <view class="timetabct">
  4. <view class="timetabctview">
  5. <view :class="{ activecllasscet: activeTotal == 0 }" @click="tabtimetap(0)">7天</view>
  6. </view>
  7. <view class="timetabctview">
  8. <view :class="{ activecllasscet: activeTotal == 1 }" @click="tabtimetap(1)">15天</view>
  9. </view>
  10. <view class="timetabctview">
  11. <view :class="{ activecllasscet: activeTotal == 2 }" @click="tabtimetap(2)">30天</view>
  12. </view>
  13. </view>
  14. <view class="timepick">
  15. <view class="timepicktime">
  16. <view @click="tabtimetap(3)">{{sheartime1}}</view>
  17. <view>
  18. <image class="Underimg" src="../../../static/images/Underimg.png" mode=""></image>
  19. </view>
  20. </view>
  21. <view class="timepickpick">
  22. <view @click="checkboxChange()" style="width: 40rpx;height:40rpx;border: 1rpx solid #E0E0E0;">
  23. <image v-if="timepickpickisshow" style="width: 40rpx;height: 40rpx;"
  24. src="../../../static/images/xuanzhong.png" mode=""></image>
  25. </view>
  26. <view style="font-size:26rpx;text-indent: 12rpx;">对比</view>
  27. </view>
  28. <view class="timepicktime" v-if="timepickpickisshow">
  29. <view @click="tabtimetap(4)">{{sheartime2}}</view>
  30. <view>
  31. <image class="Underimg" src="../../../static/images/Underimg.png" mode=""></image>
  32. </view>
  33. </view>
  34. </view>
  35. <view class="timeduibi">
  36. <view class="timeshow">数据起始时间:<text style="color: #333333;">{{kanbanlist.kaishitime}}</text></view>
  37. <view class="timeshow" v-if="kanbanlist.duibitime.length!=0">
  38. 数据对比时间:
  39. <text style="color: #333333;">{{kanbanlist.duibitime}}</text>
  40. </view>
  41. </view>
  42. <!-- 简报 -->
  43. <view style="width: 100%;height: 20rpx;background: #FAFAFA;"></view>
  44. <view class="boxzonglan" style="min-height: 100rpx;">
  45. <view class="zonglantit">简报</view>
  46. <view class="zonglanbox">
  47. <view class="grid" v-for="(item,index) in numlist" :key="index"
  48. style="height: auto;padding-bottom: 20rpx;">
  49. <view class="audonum" v-if="item.name=='接待时长'">{{item.name}}/分</view>
  50. <view class="audonum" v-else>{{item.name}}</view>
  51. <view class="num">
  52. <view v-if="index==1" style="width: 35%;">
  53. {{item.num>100?100:item.num}}%
  54. </view>
  55. <view v-else style="width: 35%;">
  56. {{item.num||0}}
  57. </view>
  58. <view class="comparesize" v-if="compareFlag&&timepickpickisshow">
  59. <text style="margin-right: 10rpx;">对比:{{index==1?item.num1+'%':item.num1}} </text>
  60. <template v-if="item.num2*1 != 0">
  61. <text :style="{color:item.num2*1>0?'red':'green'}">
  62. {{item.num2}}{{ item.name == '平均执行率' ? "%" : "" }}{{item.num2*1 > 0 ? '↑':'↓'}}</text>
  63. </template>
  64. <template v-else>
  65. <text
  66. :style="{color:item.num2*1>0?'red':'green'}">{{item.num2}}{{ item.name == '平均执行率' ? "%" : "" }}</text>
  67. </template>
  68. </view>
  69. </view>
  70. </view>
  71. </view>
  72. </view>
  73. <view style="width: 100%;height: 20rpx;background: #FAFAFA;"></view>
  74. <view class="boxtittab" style="border: none;height: 82rpx;">
  75. <view class="tabbox">
  76. <view :class="{ activecllasscet2: newactiveTotal == 0 }" @click="tabxuanxiangtap(0)">项目</view>
  77. </view>
  78. <view class="tabbox">
  79. <view :class="{ activecllasscet2: newactiveTotal == 1 }" @click="tabxuanxiangtap(1)">顾问</view>
  80. </view>
  81. <view class="tabbox">
  82. <view :class="{ activecllasscet2: newactiveTotal == 2 }" @click="tabxuanxiangtap(2)">团队</view>
  83. </view>
  84. <view class="tabbox">
  85. <view :class="{ activecllasscet2: newactiveTotal == 3 }" @click="tabxuanxiangtap(3)">销讲一级</view>
  86. </view>
  87. <view class="tabbox">
  88. <view :class="{ activecllasscet2: newactiveTotal == 4 }" @click="tabxuanxiangtap(4)">销讲二级</view>
  89. </view>
  90. </view>
  91. <view class="chart">
  92. <view style="display: flex;padding: 0 0 40rpx 0;justify-content: center;">
  93. <view class="marketingBusiness">
  94. <view class="marketingBusinesstext" style="min-width: 50rpx;" @click="showMarketingBusiness = true">
  95. {{ marketingBusinessText }}
  96. <image class="righttochoose" src="../../../static/images/righttochoose.png" mode=""></image>
  97. </view>
  98. </view>
  99. <view
  100. style="margin: 0 20rpx 0 0;flex-shrink: 0;display: flex;align-items: center;justify-content: center;position: relative;z-index: 999999;"
  101. v-if="Selecttuandui&&Selecttuanduiobj.name" @click="oninputtap4()">
  102. <view class="title2-che" style="width: 220rpx;">
  103. {{Selecttuanduiobj.name}}
  104. <image class="righttochoose" src="../../../static/images/righttochoose.png" mode=""></image>
  105. </view>
  106. </view>
  107. <view style="display: flex;justify-content:center;padding-left: 30rpx;padding-right: 30rpx;"
  108. v-if="lopanobj.name && newactiveTotal == 1" @click="oninputtap()">
  109. <view class="title2-che" style="width: 220rpx;">{{lopanobj.name}}
  110. <image class="righttochoose" src="../../../static/images/righttochoose.png" mode=""></image>
  111. </view>
  112. </view>
  113. </view>
  114. <view style="padding: 30rpx;padding-bottom: 20rpx;align-items: center;" v-if="Selectlevel">
  115. <view style="display: flex;align-items: center;border-bottom: 1px solid #C9C9C9;height: 80rpx;">
  116. <view>选择一级:</view>
  117. <view style="width:75%;">
  118. <input @click="oninputtap2()" v-model="Selectlevelobj.name" type="text" disabled="true"
  119. :border="border" placeholder="请选择" />
  120. </view>
  121. <view>
  122. <image src="https://qufang.oss-cn-beijing.aliyuncs.com/upload/icon/xcx/jjycrm/qf/more.png"
  123. style="width:12rpx;height:23rpx;margin-left: 16rpx;">
  124. </view>
  125. </view>
  126. <view style="display: flex;align-items: center;border-bottom: 1px solid #C9C9C9;height: 80rpx;">
  127. <view>选择二级:</view>
  128. <view style="width:75%;">
  129. <input @click="oninputtap3()" v-model="erSelectlevelobj.name" type="text" disabled="true"
  130. :border="border" placeholder="请选择" />
  131. </view>
  132. <view>
  133. <image src="https://qufang.oss-cn-beijing.aliyuncs.com/upload/icon/xcx/jjycrm/qf/more.png"
  134. style="width:12rpx;height:23rpx;margin-left: 16rpx;">
  135. </view>
  136. </view>
  137. </view>
  138. <view class="single">
  139. <view class="uchaserbox" :class="{ uchaserboxs : newactiveTotal == 1 || newactiveTotal == 3 }"
  140. v-if="lineOptsect.series.length!=0">
  141. <qiun-data-charts :style="!showCanvas?'display:none':''" :type="linetype" :chartData="lineOptsect"
  142. background="none" :ontouch="true" canvasId="wangxiaohuaerlingeryilingwuyibao" :opts="opts"
  143. :canvas2d="true" />
  144. </view>
  145. <view v-else style="width: 100%;">
  146. <view style="width: 100%;text-align: center;">
  147. <image style="width: 200rpx;height: 200rpx;"
  148. src="https://static.quhouse.com/zhikong_xcx_img/nodatalist.png" mode=""></image>
  149. </view>
  150. <view style="text-align: center;width: 100%;margin-top: 20rpx;color: #999999;">暂无数据</view>
  151. </view>
  152. </view>
  153. </view>
  154. <view style="width: 100%;height: 20rpx;background: #FAFAFA;"></view>
  155. <view class="single" v-if="timepickpickisshow">
  156. <view class="title">
  157. <view class="title1">对比报表</view>
  158. </view>
  159. <view class="table" v-if="!guwenFlag">
  160. <view v-for="(item,index) in tableDate" :key="index">
  161. <view class="tr">
  162. <view v-for="(item1,index1) in item" :key="index" style="width: 100%;">
  163. <view v-if="index1<item.length-1||index==0" class="td"
  164. style="border-right:1px solid #E0E0E0;">{{item1}}</view>
  165. <view v-if="index>0 && index1==item.length-1" class="td"
  166. style="border-right:1px solid #E0E0E0;" :style="{color:item1*1>0?'red':'green'}">
  167. {{item1==0?'--':item1+'%'}}{{item1*1>0?'↑':item1*1<0?'↓':''}}
  168. </view>
  169. </view>
  170. </view>
  171. </view>
  172. </view>
  173. <view class="table" v-if="guwenFlag" style="width: 100%;">
  174. <scroll-view scroll-x="true" style="white-space: nowrap;">
  175. <view v-for="(item,index) in tableDate" :key="index"
  176. :style="{display:index==0?'inline-block':'block'}">
  177. <view class="tr" style="display: inline-block;">
  178. <view v-for="(item1,index1) in item" :key="index1" class="trd"
  179. style="display: inline-block;">
  180. <view v-if="index==1&&index1>0" class="td" :style="{color:item1*1>0?'red':'green'}"
  181. style="border-right:1px solid #E0E0E0;">
  182. {{item1==0?'--':item1+'%'}}{{item1*1>0?'↑':item1*1<0?'↓':''}}
  183. </view>
  184. <view v-else-if="index>1&&index1>0" class="td" style="border-right:1px solid #E0E0E0;">
  185. {{item1+'%'}}
  186. </view>
  187. <view v-else class="td" style="border-right:1px solid #E0E0E0;">{{item1}}</view>
  188. </view>
  189. </view>
  190. </view>
  191. </scroll-view>
  192. </view>
  193. </view>
  194. <view style="width: 100%;height: 60rpx;"></view>
  195. <u-select v-model="Showhiddenunits" mode="single-column" :list="selectlist" @confirm="confirm"
  196. :default-value="selindexList">
  197. </u-select>
  198. <u-select v-model="Showhiddenunits2" mode="single-column" :list="selectlist2" @confirm="confirm2"
  199. :default-value="selindex">
  200. </u-select>
  201. <u-select v-model="Showhiddenunits3" mode="single-column" :list="selectlist3" @confirm="confirm3"
  202. :default-value="selindex">
  203. </u-select>
  204. <u-select v-model="Showhiddenunits4" mode="single-column" :list="selectlist4" @confirm="confirm4"
  205. :default-value="selindexList4">
  206. </u-select>
  207. <u-calendar v-model="totalTimeShow" mode="range" @change="totalTimeChange"></u-calendar>
  208. <newcalendar v-model="totalTimeShow2" :planNum='intervaltime' mode="date" @change="totalTimeChange2">
  209. </newcalendar>
  210. <!-- 接待时间 -到访时间-->
  211. <u-popup v-model="timeshow" mode="bottom">
  212. <view class="timeview" :style="{ color: activeTotal == 5 ? '#2B6EFF' : '#333333' }"
  213. @click="tabtimetap(5, '接待时间')">
  214. 全部</view>
  215. <view class="timeview" :style="{ color: activeTotal == 0 ? '#2B6EFF' : '#333333' }"
  216. @click="tabtimetap(0, '今天')">
  217. 今天</view>
  218. <view class="timeview" :style="{ color: activeTotal == 1 ? '#2B6EFF' : '#333333' }"
  219. @click="tabtimetap(1, '昨天')">
  220. 昨天</view>
  221. <view class="timeview" :style="{ color: activeTotal == 2 ? '#2B6EFF' : '#333333' }"
  222. @click="tabtimetap(2, '近7天')">
  223. 近7天</view>
  224. <view class="timeview" :style="{ color: activeTotal == 3 ? '#2B6EFF' : '#333333' }"
  225. @click="tabtimetap(3, '近30天')">
  226. 近30天</view>
  227. <view class="timeview" :style="{ color: activeTotal == 4 ? '#2B6EFF' : '#333333' }"
  228. @click="tabtimetap(4, '')">
  229. 自定义</view>
  230. </u-popup>
  231. <!-- 顾问 -->
  232. <u-select v-model="selectshow" :list="freeList" @confirm="actionSelectCallback"></u-select>
  233. <!-- 全部话术 -->
  234. <u-select v-model="huashushow" :list="huashuList" @confirm="actionSelectCallback1"></u-select>
  235. <u-select v-model="showMarketingBusiness" mode="single-column" :list="showMarketingList"
  236. label-name="templateName" value-name="id" @confirm="selectMarketingBusiness"></u-select>
  237. <!-- 加载组件 -->
  238. <loading v-model="LOADING"></loading>
  239. </view>
  240. </template>
  241. <script>
  242. import newcalendar from '@/components/newcalendar/newcalendar.vue';
  243. import loading from "@/components/loading/index.vue"
  244. export default {
  245. components: {
  246. newcalendar,
  247. loading
  248. },
  249. data() {
  250. return {
  251. time: '接待时间',
  252. team: '部门',
  253. guwen: '顾问',
  254. huashu: '全部话术',
  255. huashuList: false,
  256. huashuShow: false,
  257. freeList: [], //顾问
  258. selindexList: [0], // 默认选中第一项
  259. selindexList4: [0], // 默认选中第一项
  260. compareFlag: false,
  261. numlist: [{
  262. name: '接待量',
  263. num: '10',
  264. num1: '0',
  265. num2: '0'
  266. },
  267. {
  268. name: '平均执行率',
  269. num: '10',
  270. num1: '0',
  271. num2: '0'
  272. },
  273. {
  274. name: '接待时长',
  275. num: '10',
  276. num1: '0',
  277. num2: '0'
  278. },
  279. ],
  280. activeTotal: 0, //时间下标
  281. newactiveTotal: 0, //tab下标
  282. totalTimeShow: false,
  283. totalTimeShow2: false,
  284. totalTimeShow3: false,
  285. cWidth: uni.upx2px(690),
  286. cHeight: uni.upx2px(453),
  287. AcHeight: uni.upx2px(500),
  288. kanbanlist: { //录音和测评的数据
  289. kaishitime: '',
  290. duibitime: '',
  291. audonum: '',
  292. audotime: "",
  293. avgDuration: '',
  294. fraction: ''
  295. },
  296. pamect: { //接口参数
  297. houseId: '',
  298. timeType: "4",
  299. firstStartDate: '', //第一次开始时间
  300. firstEndDate: '', //第一次结束时间
  301. lastStartDate: '',
  302. lastEndDate: '',
  303. accountId: '', //顾问ids
  304. marketingId: '', //二级销讲id
  305. deptId: "", //部门id
  306. showStatus: 0,
  307. marketingBusiness: '',
  308. },
  309. linetype: "line",
  310. lineOptsect: {}, //图表数据
  311. Showhiddenunits: false,
  312. selectlist: [],
  313. lopanobj: {
  314. id: '',
  315. name: ''
  316. },
  317. //二级相关
  318. Selectlevel: false,
  319. Selectlevelobj: {
  320. id: '',
  321. name: ''
  322. },
  323. erSelectlevelobj: {
  324. id: '',
  325. name: ''
  326. },
  327. Showhiddenunits2: false,
  328. Showhiddenunits3: false,
  329. selectlist2: [],
  330. selectlist3: [],
  331. //团队相关
  332. Selecttuandui: false,
  333. selectlist4: [],
  334. Selecttuanduiobj: {
  335. id: '',
  336. name: ''
  337. },
  338. Showhiddenunits4: false,
  339. showCanvas: true,
  340. timepickpickisshow: false,
  341. sheartime1: "",
  342. sheartime2: "",
  343. intervaltime: 0,
  344. tableDate: [],
  345. guwenFlag: false,
  346. opts: {}, // 配置项为空
  347. marketingBusinessText: '请选择销讲业务',
  348. showMarketingBusiness: false, // 展示可选择的销讲业务
  349. showMarketingList: [], // 销讲业务列表
  350. marketingBusiness: '', // 销讲业务
  351. };
  352. },
  353. onLoad(option) {
  354. this.LOADING = true
  355. this.pamect.houseId = uni.getStorageSync('buildingID').id;
  356. this.getFreeList()
  357. this.getMarketingBusiness()
  358. if (option.type == 1) {
  359. this.timepickpickisshow = true
  360. this.pamect.firstStartDate = option.staTime
  361. this.pamect.firstEndDate = option.endtime
  362. this.pamect.lastStartDate = option.staTime1
  363. this.pamect.lastEndDate = option.endtime1
  364. this.pamect.timeType = ''
  365. this.sheartime1 =
  366. `${this.fomatDate(this.pamect.firstStartDate)}-${this.fomatDate(this.pamect.firstEndDate)}`
  367. this.sheartime2 = `${this.fomatDate(this.pamect.lastStartDate)}-${this.fomatDate(this.pamect.lastEndDate)}`
  368. this.tabxuanxiangtap(3)
  369. this.$forceUpdate()
  370. } else {
  371. this.init()
  372. }
  373. },
  374. onPullDownRefresh() {
  375. this.init()
  376. setTimeout(function() {
  377. uni.stopPullDownRefresh();
  378. }, 1000);
  379. },
  380. watch: {
  381. Showhiddenunits(newValue, oldValue) {
  382. this.showCanvas = !newValue
  383. },
  384. Showhiddenunits2(newValue, oldValue) {
  385. this.showCanvas = !newValue
  386. },
  387. Showhiddenunits3(newValue, oldValue) {
  388. this.showCanvas = !newValue
  389. },
  390. Showhiddenunits4(newValue, oldValue) {
  391. this.showCanvas = !newValue
  392. },
  393. totalTimeShow(newValue, oldValue) {
  394. this.showCanvas = !newValue
  395. },
  396. totalTimeShow2(newValue, oldValue) {
  397. this.showCanvas = !newValue
  398. },
  399. totalTimeShow3(newValue, oldValue) {
  400. this.showCanvas = !newValue
  401. },
  402. },
  403. methods: {
  404. // 顾问
  405. actionSelectCallback(e) {
  406. // this.screen.agentId = e[0].value;
  407. // this.counselorName = e[0].label;
  408. },
  409. // 话术
  410. actionSelectCallback1(e) {
  411. // this.screen.agentId = e[0].value;
  412. // this.counselorName = e[0].label;
  413. },
  414. // 获取销讲业务模板
  415. getMarketingBusiness() {
  416. this.$u.get("/customer/marketingBusiness", {
  417. houseId: this.pamect.houseId
  418. }).then(res => {
  419. console.log(res)
  420. if (res) {
  421. this.showMarketingList = res
  422. this.showMarketingList.unshift({
  423. templateName: '全部',
  424. id: ''
  425. })
  426. }
  427. })
  428. },
  429. // 选择趋势分析
  430. selectMarketingBusiness(e) {
  431. this.marketingBusinessText = e[0].label
  432. this.marketingBusiness = e[0].value
  433. this.init()
  434. },
  435. // 获取一级
  436. getAllYiJi() {
  437. this.speakingLevel()
  438. },
  439. // 获取二级
  440. getAllErJi() {
  441. if (this.pamect.marketingId == '') {
  442. this.getonsyiji()
  443. } else {
  444. this.aboutEecondary()
  445. }
  446. },
  447. //获取顾问列表
  448. getFreeList() {
  449. this.$u.post("/cusLvStatistics/selectAllAccountIdByHouseId", {
  450. houseId: this.pamect.houseId
  451. }).then(res => {
  452. this.freeList = res;
  453. this.huashuList = res;
  454. if (this.freeList.length) {
  455. this.freeList.forEach(item => {
  456. item.label = item.name;
  457. item.value = item.accountId
  458. })
  459. }
  460. })
  461. },
  462. // 时间格式转换
  463. fomatDate(date) {
  464. if (!date) return '--'
  465. let arr = date.split(' ')
  466. let str = arr[0]
  467. let result = str.split('-')
  468. return `${result[1]}-${result[2]}`
  469. },
  470. //是否对比
  471. checkboxChange() {
  472. if (this.newactiveTotal == 3) {
  473. uni.showToast({
  474. title: '销讲一级无对比',
  475. duration: 2000
  476. });
  477. return
  478. }
  479. if (this.newactiveTotal == 2) {
  480. if (this.Selecttuanduiobj.id == '') {
  481. uni.showToast({
  482. title: '全部团队无对比',
  483. duration: 2000
  484. });
  485. return
  486. }
  487. }
  488. if (this.timepickpickisshow == true) {
  489. this.timepickpickisshow = false;
  490. this.pamect.showStatus = 0;
  491. this.init()
  492. } else {
  493. this.timepickpickisshow = true;
  494. this.pamect.showStatus = 1;
  495. }
  496. this.activeTotal = 8;
  497. },
  498. init() {
  499. this.pamect.marketingBusiness = this.marketingBusiness
  500. this.$u.post("/cusLvStatistics/lyAndcp", this.pamect).then(data => {
  501. this.pamect.lastStartDate = data.lastStartDate;
  502. this.pamect.lastEndDate = data.lastEndDate;
  503. this.numlist[0].num = data.startSumCustomer || 0
  504. this.numlist[1].num = data.startFraction || 0
  505. this.numlist[2].num = Math.floor(data.startSumDuration / 60) || 0;
  506. if (data.endSumDuration != null) {
  507. this.compareFlag = true
  508. this.numlist[0].num1 = data.endSumCustomer || 0
  509. this.numlist[1].num1 = data.endFraction || 0
  510. this.numlist[2].num1 = Math.floor(data.endSumDuration / 60) || 0;
  511. this.numlist[0].num2 = data.contrastSumCustomer
  512. this.numlist[1].num2 = data.contrastFraction || 0
  513. this.numlist[2].num2 = data.contrastSumDuration
  514. } else {
  515. this.compareFlag = false
  516. }
  517. this.sheartime1 = data.lastStartDate.substring(5, 10) + "--" + data.lastEndDate.substring(5,
  518. 10);
  519. this.sheartime2 = '请选择';
  520. this.kanbanlist.duibitime = '';
  521. var kaishi = this.DateDiff(data.lastStartDate, data.lastEndDate);
  522. this.kanbanlist.kaishitime = data.lastStartDate + "至" + data.lastEndDate + "(" + kaishi + "天)";
  523. if (this.pamect.showStatus == 1) {
  524. this.sheartime2 = data.firstStartDate.substring(5, 10) + "--" + data.firstEndDate
  525. .substring(5, 10);
  526. var jeishu = this.DateDiff(data.firstStartDate, data.firstEndDate);
  527. this.kanbanlist.duibitime = data.firstStartDate + "至" + data.firstEndDate + "(" + jeishu +
  528. "天)";
  529. }
  530. this.kanbanlist.audonum = data.sumCustomer;
  531. this.kanbanlist.audotime = data.avgDuration;
  532. this.kanbanlist.avgDuration = data.fraction;
  533. this.kanbanlist.fraction = data.fraction;
  534. if (this.newactiveTotal == 0) {
  535. this.ProjectDimension()
  536. } else if (this.newactiveTotal == 1) {
  537. console.log(this.pamect.accountId)
  538. if (this.pamect.accountId == "") {
  539. this.getguwenlist()
  540. } else {
  541. this.ConsultantDimension()
  542. }
  543. } else if (this.newactiveTotal == 2) {
  544. if (this.pamect.deptId == "") {
  545. this.getuanduilist()
  546. } else {
  547. this.TeamCompared()
  548. }
  549. } else if (this.newactiveTotal == 3) {
  550. this.speakingLevel()
  551. } else {
  552. if (this.pamect.marketingId == '') {
  553. this.getonsyiji()
  554. } else {
  555. this.aboutEecondary()
  556. }
  557. }
  558. setTimeout(() => {
  559. this.$forceUpdate()
  560. this.LOADING = false
  561. }, 1500)
  562. }).catch(e => {
  563. this.LOADING = false
  564. })
  565. },
  566. //起始时间
  567. totalTimeChange(e) {
  568. this.pamect.lastStartDate = e.startDate;
  569. this.pamect.lastEndDate = e.endDate;
  570. var kaishi = this.DateDiff(this.pamect.lastStartDate, this.pamect.lastEndDate)
  571. this.kanbanlist.kaishitime = this.pamect.lastStartDate + "至" + this.pamect.lastEndDate + "(" + kaishi +
  572. "天)";
  573. if (this.pamect.showStatus == 0) {
  574. this.init()
  575. this.totalTimeShow = false;
  576. } else {
  577. if (this.pamect.firstStartDate.length == 0) {
  578. uni.showToast({
  579. title: '请选择对比时间',
  580. duration: 2000
  581. });
  582. } else {
  583. var jshu = this.DateDiff(this.pamect.firstStartDate, this.pamect.firstEndDate)
  584. if (kaishi == jshu) {
  585. this.init()
  586. } else {
  587. uni.showToast({
  588. title: '请选择相同天数',
  589. duration: 2000
  590. });
  591. }
  592. }
  593. this.totalTimeShow = false;
  594. }
  595. },
  596. //对比时间
  597. totalTimeChange2(e) {
  598. console.log(e)
  599. var d = new Date(e.result.replace(/\-/g, '/'));
  600. d.setDate(d.getDate() + this.intervaltime);
  601. var year = d.getFullYear();
  602. var month = d.getMonth() + 1;
  603. if (month < 10) month = '0' + month;
  604. var day = d.getDate();
  605. if (day < 10) day = '0' + day;
  606. this.pamect.firstStartDate = e.result;
  607. this.pamect.firstEndDate = year + '-' + month + '-' + day;
  608. console.log(this.pamect.firstStartDate)
  609. var kaishi = this.DateDiff(this.pamect.lastStartDate, this.pamect.lastEndDate)
  610. var jeishu = this.DateDiff(this.pamect.firstStartDate, this.pamect.firstEndDate)
  611. this.kanbanlist.duibitime = this.pamect.firstStartDate + "至" + this.pamect.firstEndDate + "(" + jeishu +
  612. "天)";
  613. console.log(this.pamect.lastStartDate, this.pamect.lastEndDate, kaishi, jeishu)
  614. if (kaishi == jeishu) {
  615. this.init()
  616. } else {
  617. uni.showToast({
  618. title: '请选择相同天数',
  619. duration: 2000
  620. });
  621. }
  622. this.totalTimeShow2 = false;
  623. },
  624. //自定义时间
  625. totalTimeChange3(e) {
  626. this.pamect.firstStartDate = "";
  627. this.pamect.firstEndDate = "";
  628. this.pamect.lastStartDate = e.startDate;
  629. this.pamect.lastEndDate = e.endDate;
  630. this.init()
  631. this.totalTimeShow3 = false;
  632. },
  633. //时间切换
  634. tabtimetap(index) {
  635. if (index == 0) {
  636. this.pamect.timeType = "4";
  637. this.pamect.firstStartDate = '';
  638. this.pamect.firstEndDate = '';
  639. this.pamect.lastStartDate = '';
  640. this.pamect.lastEndDate = '';
  641. this.init()
  642. } else if (index == 1) {
  643. this.pamect.timeType = "5";
  644. this.pamect.firstStartDate = '';
  645. this.pamect.firstEndDate = '';
  646. this.pamect.lastStartDate = '';
  647. this.pamect.lastEndDate = '';
  648. this.init()
  649. } else if (index == 2) {
  650. this.pamect.timeType = "6";
  651. this.pamect.firstStartDate = '';
  652. this.pamect.firstEndDate = '';
  653. this.pamect.lastStartDate = '';
  654. this.pamect.lastEndDate = '';
  655. this.init()
  656. } else if (index == 3) {
  657. this.pamect.timeType = "";
  658. this.totalTimeShow = true;
  659. } else if (index == 4) {
  660. this.pamect.timeType = "";
  661. var kaishi = this.DateDiff(this.pamect.lastStartDate, this.pamect.lastEndDate)
  662. console.log(kaishi)
  663. this.intervaltime = kaishi - 1;
  664. this.totalTimeShow2 = true;
  665. } else {
  666. this.pamect.timeType = "";
  667. this.totalTimeShow3 = true;
  668. }
  669. this.activeTotal = index;
  670. },
  671. //tab切换
  672. tabxuanxiangtap(index) {
  673. if (index == 1 || index == 3 || index == 4) {
  674. this.showMarketingList.shift()
  675. this.marketingBusinessText = this.showMarketingList[0].templateName
  676. this.marketingBusiness = this.showMarketingList[0].id
  677. } else {
  678. this.showMarketingList.unshift({
  679. templateName: '全部',
  680. id: ''
  681. })
  682. this.marketingBusiness = ''
  683. this.marketingBusinessText = '请选择销讲业务'
  684. }
  685. this.pamect.accountId = ""
  686. this.newactiveTotal = index;
  687. this.Selectlevel = false;
  688. this.Selecttuandui = false;
  689. this.timepickpickisshow = false;
  690. this.init()
  691. },
  692. //项目维度
  693. ProjectDimension() {
  694. const that = this;
  695. that.lineOptsect = {
  696. categories: [],
  697. series: []
  698. };
  699. this.linetype = "line";
  700. this.pamect.marketingBusiness = this.marketingBusiness
  701. this.$u.post("/cusLvStatistics/teamOrOneValueShow", this.pamect).then(data => {
  702. if (this.pamect.showStatus == 0) {
  703. that.lineOptsect = {
  704. categories: [],
  705. series: [{
  706. name: '起始时间',
  707. data: [],
  708. color: '#7ED3F4'
  709. }]
  710. }
  711. data.lastValue.forEach((child, zxc) => {
  712. that.lineOptsect.categories.push(child.statDate.substring(5, 10))
  713. })
  714. that.lineOptsect.series[0].data = data.lastValue.map(item => item.fraction);
  715. } else {
  716. that.lineOptsect = {
  717. categories: [],
  718. series: [{
  719. name: '起始时间',
  720. data: [],
  721. color: '#7ED3F4'
  722. },
  723. {
  724. name: '对比时间',
  725. data: [],
  726. color: '#FF7070'
  727. },
  728. ]
  729. }
  730. data.firstValue.forEach((item, sdf) => {
  731. data.lastValue.forEach((child, zxc) => {
  732. if (sdf == zxc) {
  733. that.lineOptsect.categories.push(
  734. child.statDate.substring(5, 10) + 'vs' + item.statDate
  735. .substring(5, 10)
  736. )
  737. }
  738. })
  739. })
  740. that.lineOptsect.series[1].data = data.firstValue.map(item => item.fraction);
  741. that.lineOptsect.series[0].data = data.lastValue.map(item => item.fraction)
  742. that.guwenFlag = false
  743. // // 处理表格数据
  744. let arr = [
  745. ['时间', '时段一', '时段二', '变化']
  746. ]
  747. that.lineOptsect.categories.map((item, index) => {
  748. let newarr = [item, data.lastValue[index].fraction, data.firstValue[index]
  749. .fraction, data.contrast[index].data
  750. ]
  751. arr.push(newarr)
  752. })
  753. // console.log(arr)
  754. that.tableDate = arr
  755. }
  756. this.$forceUpdate()
  757. });
  758. },
  759. //顾问维度
  760. ConsultantDimension() {
  761. const that = this;
  762. that.lineOptsect = {
  763. categories: [],
  764. series: []
  765. };
  766. this.pamect.marketingBusiness = this.marketingBusiness
  767. this.linetype = "radar";
  768. this.$u.post("/cusLvStatistics/accFirstLevelContrast", this.pamect).then(data => {
  769. // return
  770. let max = data.firstList[0].total
  771. for (let i = 0; i < data.firstList.length; i++) {
  772. if (max < data.firstList[i]) max = data.firstList[i];
  773. }
  774. this.opts = {
  775. ...this.opts,
  776. fontSize: 10,
  777. extra: {
  778. radar: {
  779. max: max + 25
  780. }
  781. }
  782. }
  783. if (this.pamect.showStatus == 0) {
  784. that.lineOptsect = {
  785. categories: [],
  786. series: [{
  787. name: '时段一',
  788. data: [],
  789. color: '#7ED3F4'
  790. }]
  791. }
  792. data.firstList.forEach((item, sdf) => {
  793. that.lineOptsect.categories.push(item.name)
  794. that.lineOptsect.series[0].data.push(data.firstList[sdf].total)
  795. })
  796. } else {
  797. // 当有对比的时候
  798. that.lineOptsect = {
  799. categories: [],
  800. series: [{
  801. name: '时段一',
  802. data: [],
  803. color: '#7ED3F4'
  804. },
  805. {
  806. name: '时段二',
  807. data: [],
  808. color: '#FF7070'
  809. },
  810. ]
  811. }
  812. data.headerList.forEach((item, sdf) => {
  813. that.lineOptsect.categories.push(item.name)
  814. that.lineOptsect.series[0].data.push(data.firstList[sdf].total)
  815. that.lineOptsect.series[1].data.push(data.secondList[sdf].total)
  816. })
  817. // return
  818. // // 处理表格数据
  819. that.guwenFlag = true
  820. let arr = []
  821. arr[0] = ['时间', ...that.lineOptsect.categories]
  822. arr[1] = ['变化']
  823. arr[2] = ['时段一']
  824. arr[3] = ['时段二']
  825. // console.log(arr)
  826. data.firstList.map((item, index) => {
  827. arr[2].push(item.total)
  828. arr[3].push(data.secondList[index].total)
  829. arr[1].push(data.thirdList[index].total)
  830. })
  831. that.tableDate = arr
  832. }
  833. this.$forceUpdate()
  834. });
  835. },
  836. // 顾问纬度选择顾问
  837. oninputtap() {
  838. this.Showhiddenunits = true;
  839. },
  840. // 顾问选择确认
  841. confirm(e) {
  842. this.lopanobj.id = e[0].value;
  843. this.lopanobj.name = e[0].label;
  844. this.pamect.accountId = this.lopanobj.id;
  845. this.ConsultantDimension()
  846. this.Showhiddenunits = false;
  847. for (let i = 0; i < this.selectlist.length; i++) {
  848. if (e[0].value == this.selectlist[i].value) {
  849. this.selindexList[0] = i
  850. }
  851. }
  852. },
  853. //获取顾问
  854. getguwenlist() {
  855. this.$u.post("/cusLvStatistics/selectAllAccountIdByHouseId", {
  856. houseId: this.pamect.houseId,
  857. marketingBusiness: this.marketingBusiness,
  858. }).then(data => {
  859. console.log(data, 'sdajmkldjaskldjaskldjaskldjaskljdklsa')
  860. this.selectlist = [];
  861. if (data.length == 0) {
  862. this.lineOptsect = {
  863. categories: [],
  864. series: []
  865. };
  866. return
  867. } else {
  868. data.forEach(item => {
  869. this.selectlist.push({
  870. value: item.accountId,
  871. label: item.name
  872. })
  873. })
  874. this.lopanobj.id = data[0].accountId;
  875. this.lopanobj.name = data[0].name;
  876. this.pamect.accountId = this.lopanobj.id;
  877. console.log(this.pamect.accountId)
  878. this.ConsultantDimension()
  879. }
  880. })
  881. },
  882. //销讲一级
  883. speakingLevel() {
  884. this.linetype = "radar";
  885. this.lineOptsect = {
  886. categories: [],
  887. series: []
  888. };
  889. this.pamect.marketingBusiness = this.marketingBusiness
  890. this.$u.post("/cusLvStatistics/firstLevelContrast", this.pamect).then(data => {
  891. if (data.length == 0) {
  892. return
  893. } else {
  894. let max = data[0].avgExecutionRate
  895. let list = data.map(item => {
  896. return item.name
  897. });
  898. let list1 = data.map(item => {
  899. if (item.avgExecutionRate == null) {
  900. item.avgExecutionRate = 0
  901. } else {
  902. item.avgExecutionRate = item.avgExecutionRate
  903. }
  904. if (max < item.avgExecutionRate) max = item.avgExecutionRate;
  905. return item.avgExecutionRate
  906. });
  907. this.opts = {
  908. ...this.opts,
  909. fontSize: 10,
  910. extra: {
  911. radar: {
  912. max: max + 25
  913. }
  914. }
  915. }
  916. this.lineOptsect = {
  917. "categories": list,
  918. "series": [{
  919. "name": "销讲一级",
  920. "data": list1
  921. }]
  922. }
  923. }
  924. this.$forceUpdate()
  925. })
  926. },
  927. //销讲二级
  928. aboutEecondary() {
  929. this.lineOptsect = {};
  930. this.linetype = "line";
  931. this.pamect.marketingBusiness = this.marketingBusiness
  932. this.$u.post("/cusLvStatistics/level2Contrast", this.pamect).then(data => {
  933. if (this.pamect.showStatus == 0) {
  934. this.lineOptsect = {
  935. categories: [],
  936. series: [{
  937. name: '起始时间',
  938. data: [],
  939. color: '#7ED3F4'
  940. }]
  941. }
  942. data.lastList.forEach((item, sdf) => {
  943. this.lineOptsect.categories.push(item.statDate.substring(5, 10))
  944. })
  945. this.lineOptsect.series[0].data = data.lastList.map(item => item.avgExecutionRate);
  946. } else {
  947. this.lineOptsect = {
  948. categories: [],
  949. series: [{
  950. name: '起始时间',
  951. data: [],
  952. color: '#7ED3F4'
  953. },
  954. {
  955. name: '对比时间',
  956. data: [],
  957. color: '#FF7070'
  958. },
  959. ]
  960. }
  961. data.firstList.forEach((item, sdf) => {
  962. data.lastList.forEach((child, zxc) => {
  963. if (sdf == zxc) {
  964. this.lineOptsect.categories.push(
  965. child.statDate.substring(5, 10) + 'vs' + item.statDate
  966. .substring(5, 10)
  967. )
  968. }
  969. })
  970. })
  971. this.lineOptsect.series[1].data = data.firstList.map(item => item.avgExecutionRate);
  972. this.lineOptsect.series[0].data = data.lastList.map(item => item.avgExecutionRate)
  973. let that = this
  974. this.guwenFlag = false
  975. // // 处理表格数据
  976. let arr = [
  977. ['时间', '时段一', '时段二', '变化']
  978. ]
  979. that.lineOptsect.categories.map((item, index) => {
  980. let newarr = [item, data.lastList[
  981. index].avgExecutionRate, data.firstList[index].avgExecutionRate,
  982. data.contrast[index].data
  983. ]
  984. arr.push(newarr)
  985. })
  986. that.tableDate = arr
  987. }
  988. this.$forceUpdate()
  989. })
  990. },
  991. //销讲二级:获取一级
  992. getonsyiji() {
  993. this.$u.post("/cusLvStatistics/findAllFirstLevel", {
  994. houseId: this.pamect.houseId,
  995. marketingBusiness: this.marketingBusiness,
  996. }).then(data => {
  997. this.selectlist2 = [];
  998. if (data.length == 0) {
  999. this.Selectlevel = false;
  1000. this.lineOptsect = {
  1001. categories: [],
  1002. series: []
  1003. };
  1004. return
  1005. } else {
  1006. this.Selectlevel = true;
  1007. data.forEach(item => {
  1008. this.selectlist2.push({
  1009. value: item.marketingId,
  1010. label: item.name
  1011. })
  1012. })
  1013. this.Selectlevelobj.id = data[0].marketingId;
  1014. this.Selectlevelobj.name = data[0].name;
  1015. this.getonserji(this.Selectlevelobj.id)
  1016. }
  1017. this.$forceUpdate()
  1018. })
  1019. },
  1020. //销讲二级:通过一级获取二级
  1021. getonserji(ccd) {
  1022. this.$u.post("/cusLvStatistics/findLevel2ByFirstLevel", {
  1023. houseId: this.pamect.houseId,
  1024. marketingId: ccd
  1025. }).then(data => {
  1026. this.selectlist3 = [];
  1027. data.forEach(item => {
  1028. this.selectlist3.push({
  1029. value: item.marketingId,
  1030. label: item.name
  1031. })
  1032. })
  1033. this.erSelectlevelobj.id = data[0].marketingId;
  1034. this.erSelectlevelobj.name = data[0].name;
  1035. this.pamect.marketingId = this.erSelectlevelobj.id;
  1036. this.aboutEecondary()
  1037. this.$forceUpdate()
  1038. })
  1039. },
  1040. //销讲二级:一级选择
  1041. oninputtap2() {
  1042. this.Showhiddenunits2 = true;
  1043. },
  1044. //销讲二级:二级选择
  1045. oninputtap3() {
  1046. if (this.Selectlevelobj.id == "") {
  1047. uni.showToast({
  1048. title: '请先选择一级',
  1049. duration: 2000
  1050. });
  1051. } else {
  1052. this.Showhiddenunits3 = true;
  1053. }
  1054. },
  1055. //销讲二级:一级选择确认
  1056. confirm2(e) {
  1057. this.Selectlevelobj.id = e[0].value;
  1058. this.Selectlevelobj.name = e[0].label;
  1059. this.getonserji(this.Selectlevelobj.id)
  1060. },
  1061. //销讲二级:二级选择确认
  1062. confirm3(e) {
  1063. this.erSelectlevelobj.id = e[0].value;
  1064. this.erSelectlevelobj.name = e[0].label;
  1065. this.pamect.marketingId = this.erSelectlevelobj.id;
  1066. this.aboutEecondary()
  1067. },
  1068. //团队请选择
  1069. oninputtap4() {
  1070. this.Showhiddenunits4 = true;
  1071. },
  1072. //团队选择确认
  1073. confirm4(e) {
  1074. this.Selecttuanduiobj.id = e[0].value;
  1075. this.Selecttuanduiobj.name = e[0].label;
  1076. this.pamect.deptId = this.Selecttuanduiobj.id;
  1077. this.pamect.showStatus = 0;
  1078. this.pamect.timeType = "4";
  1079. this.pamect.firstStartDate = '';
  1080. this.pamect.firstEndDate = '';
  1081. this.pamect.lastStartDate = '';
  1082. this.pamect.lastEndDate = '';
  1083. this.activeTotal = 0;
  1084. this.timepickpickisshow = false;
  1085. this.init()
  1086. this.TeamCompared()
  1087. for (let i = 0; i < this.selectlist4.length; i++) {
  1088. if (e[0].value == this.selectlist4[i].value) {
  1089. this.selindexList4[0] = i
  1090. }
  1091. }
  1092. },
  1093. //获取团队列表
  1094. getuanduilist() {
  1095. this.$u.post("/cusLvStatistics/findAllDeptIdByHouseId ", {
  1096. houseId: this.pamect.houseId,
  1097. marketingBusiness: this.marketingBusiness,
  1098. }).then(data => {
  1099. this.selectlist4 = [{
  1100. value: "",
  1101. label: "全部"
  1102. }];
  1103. if (data.length == 0) {
  1104. this.Selecttuandui = false;
  1105. this.lineOptsect = {
  1106. categories: [],
  1107. series: []
  1108. };
  1109. return
  1110. } else {
  1111. this.Selecttuandui = true;
  1112. data.forEach(item => {
  1113. this.selectlist4.push({
  1114. value: item.deptId,
  1115. label: item.deptName
  1116. })
  1117. })
  1118. this.Selecttuanduiobj.id = "";
  1119. this.Selecttuanduiobj.name = "全部";
  1120. this.pamect.deptId = this.Selecttuanduiobj.id;
  1121. this.TeamCompared()
  1122. }
  1123. })
  1124. },
  1125. //团队对比
  1126. TeamCompared() {
  1127. const that = this;
  1128. that.lineOptsect = {
  1129. categories: [],
  1130. series: []
  1131. };
  1132. this.linetype = "line";
  1133. this.$forceUpdate()
  1134. this.pamect.marketingBusiness = this.marketingBusiness
  1135. this.$u.post("/cusLvStatistics/teamOrOneValueShowByDept", this.pamect).then(data => {
  1136. if (this.Selecttuanduiobj.id == "") {
  1137. var newlist = [];
  1138. for (var i in data) {
  1139. var ect = data[i].receptionStatList.map(item => {
  1140. if (item.fraction == null) {
  1141. item.fraction = 0
  1142. } else {
  1143. item.fraction = item.fraction
  1144. }
  1145. return item.fraction
  1146. });
  1147. newlist.push({
  1148. name: data[i].deptName,
  1149. data: ect
  1150. })
  1151. }
  1152. var timelist = [];
  1153. for (var i in data) {
  1154. var ect = data[i].receptionStatList.map(item => {
  1155. return item.statDate
  1156. });
  1157. timelist.push({
  1158. name: data[i].deptName,
  1159. data: ect
  1160. })
  1161. }
  1162. var xAxisdata = [];
  1163. timelist[0].data.forEach((item, sdf) => {
  1164. xAxisdata.push(item.substring(5, 10))
  1165. })
  1166. that.lineOptsect = {
  1167. categories: xAxisdata,
  1168. series: newlist
  1169. }
  1170. } else {
  1171. if (this.pamect.showStatus == 0) {
  1172. that.lineOptsect = {
  1173. categories: [],
  1174. series: [{
  1175. name: '起始时间',
  1176. data: [],
  1177. color: '#7ED3F4'
  1178. }]
  1179. }
  1180. data.lastValue.receptionStatList.forEach((item, sdf) => {
  1181. that.lineOptsect.categories.push(item.statDate.substring(5, 10))
  1182. })
  1183. that.lineOptsect.series[0].data = data.lastValue.receptionStatList.map(item => item
  1184. .fraction);
  1185. } else {
  1186. that.lineOptsect = {
  1187. categories: [],
  1188. series: [{
  1189. name: '起始时间',
  1190. data: [],
  1191. color: '#7ED3F4'
  1192. },
  1193. {
  1194. name: '对比时间',
  1195. data: [],
  1196. color: '#FF7070'
  1197. },
  1198. ]
  1199. }
  1200. data.firstValue.receptionStatList.forEach((item, sdf) => {
  1201. data.lastValue.receptionStatList.forEach((child, zxc) => {
  1202. if (sdf == zxc) {
  1203. that.lineOptsect.categories.push(
  1204. child.statDate.substring(5, 10) + 'vs' + item
  1205. .statDate.substring(5, 10)
  1206. )
  1207. }
  1208. })
  1209. })
  1210. that.lineOptsect.series[1].data = data.firstValue.receptionStatList.map(item => item
  1211. .fraction);
  1212. that.lineOptsect.series[0].data = data.lastValue.receptionStatList.map(item => item
  1213. .fraction)
  1214. that.guwenFlag = false
  1215. // 团队处理数据
  1216. // // 处理表格数据
  1217. let arr = [
  1218. ['时间', '时段一', '时段二', '变化']
  1219. ]
  1220. that.lineOptsect.categories.map((item, index) => {
  1221. let newarr = [item, data
  1222. .lastValue.receptionStatList[index].fraction, data.firstValue
  1223. .receptionStatList[index].fraction, data.contrast
  1224. .receptionStatList[index].data
  1225. ]
  1226. arr.push(newarr)
  1227. })
  1228. that.tableDate = arr
  1229. }
  1230. }
  1231. this.$forceUpdate()
  1232. });
  1233. },
  1234. //算相隔天数
  1235. DateDiff(sDate1, sDate2) {
  1236. var aDate, oDate1, oDate2, iDays;
  1237. aDate = sDate1.split("-");
  1238. oDate1 = new Date(aDate[1] + '/' + aDate[2] + '/' + aDate[0]); //转换为yyyy-MM-dd格式
  1239. aDate = sDate2.split("-");
  1240. oDate2 = new Date(aDate[1] + '/' + aDate[2] + '/' + aDate[0]);
  1241. iDays = parseInt(Math.abs(oDate1 - oDate2) / 1000 / 60 / 60 / 24); //把相差的毫秒数转换为天数
  1242. return iDays + 1; //返回相差天数
  1243. },
  1244. },
  1245. }
  1246. </script>
  1247. <style lang="scss" scoped>
  1248. .title2-che {
  1249. width: 178rpx;
  1250. height: 48rpx;
  1251. background: #FFFFFF;
  1252. border-radius: 6rpx;
  1253. border: 1px solid #E0E0E0;
  1254. line-height: 48rpx;
  1255. font-size: 28rpx;
  1256. font-weight: 400;
  1257. color: #666666;
  1258. text-indent: 12rpx;
  1259. margin-left: 35rpx;
  1260. position: relative;
  1261. .righttochoose {
  1262. width: 18rpx;
  1263. height: 24rpx;
  1264. position: absolute;
  1265. top: 12rpx;
  1266. right: 12rpx;
  1267. }
  1268. }
  1269. .table {
  1270. border: 0px solid darkgray;
  1271. .tr {
  1272. display: flex;
  1273. // width: 100%;
  1274. justify-content: center;
  1275. height: 64rpx;
  1276. align-items: center;
  1277. border-bottom: 1px solid #E0E0E0;
  1278. flex-wrap: nowrap;
  1279. .td {
  1280. text-align: center;
  1281. font-size: 24rpx;
  1282. font-weight: 400;
  1283. color: #333333;
  1284. height: 64rpx;
  1285. line-height: 64rpx;
  1286. // flex-shrink: 0;
  1287. }
  1288. .trd {
  1289. flex-shrink: 0;
  1290. min-width: 300rpx;
  1291. // border-bottom: 1px solid #ccc;
  1292. }
  1293. .th {
  1294. height: 64rpx;
  1295. text-align: center;
  1296. font-size: 28rpx;
  1297. font-weight: 400;
  1298. color: #666666;
  1299. line-height: 64rpx;
  1300. }
  1301. }
  1302. }
  1303. .uchaserbox {
  1304. width: 100%;
  1305. height: 50vh;
  1306. overflow: hidden;
  1307. }
  1308. .uchaserboxs {
  1309. width: 100%;
  1310. height: 70vh;
  1311. }
  1312. .activecllasscet2 {
  1313. color: #2671E2;
  1314. border-bottom: 2px solid #2671E2;
  1315. }
  1316. .timeduibi {
  1317. width: 100%;
  1318. background: #FFFFFF;
  1319. padding-bottom: 10rpx;
  1320. .timeshow {
  1321. color: #666666;
  1322. width: 100%;
  1323. height: 50rpx;
  1324. font-size: 28rpx;
  1325. line-height: 50rpx;
  1326. text-indent: 30rpx;
  1327. }
  1328. }
  1329. // 顶部时间切换
  1330. .timetabct {
  1331. width: 100%;
  1332. height: 98rpx;
  1333. display: flex;
  1334. align-items: center;
  1335. border-bottom: 1px solid #E0E0E0;
  1336. }
  1337. .timetabctview {
  1338. flex: 1;
  1339. height: 100%;
  1340. display: flex;
  1341. justify-content: center;
  1342. align-items: center;
  1343. }
  1344. .timetabct view {
  1345. width: 94rpx;
  1346. text-align: center;
  1347. height: 100%;
  1348. line-height: 98rpx;
  1349. font-size: 28rpx;
  1350. font-family: PingFangSC-Regular, PingFang SC;
  1351. font-weight: 400;
  1352. color: #666666;
  1353. }
  1354. .activecllasscet {
  1355. border-bottom: 2px solid #2671E2;
  1356. }
  1357. // 对比时间切换
  1358. .timepick {
  1359. width: 100%;
  1360. height: 90rpx;
  1361. display: flex;
  1362. align-items: center;
  1363. background: #FFFFFF;
  1364. }
  1365. .timepicktime {
  1366. width: 260rpx;
  1367. height: 50rpx;
  1368. border: 1rpx solid #E0E0E0;
  1369. margin-left: 30rpx;
  1370. display: flex;
  1371. background: #FFFFFF;
  1372. }
  1373. .timepicktime>view:nth-of-type(1) {
  1374. width: 210rpx;
  1375. height: 100%;
  1376. line-height: 50rpx;
  1377. font-size: 26rpx;
  1378. font-weight: 400;
  1379. text-align: center;
  1380. }
  1381. .timepicktime>view:nth-of-type(2) {
  1382. width: 49rpx;
  1383. height: 100%;
  1384. // border-left: 1px solid #E0E0E0;
  1385. }
  1386. .timepickpick {
  1387. width: 110rpx;
  1388. height: 50rpx;
  1389. margin-left: 30rpx;
  1390. display: flex;
  1391. align-items: center;
  1392. }
  1393. .Underimg {
  1394. width: 50rpx;
  1395. height: 50rpx;
  1396. margin-top: -2rpx;
  1397. }
  1398. .timeButton {
  1399. width: 100%;
  1400. height: 60rpx;
  1401. display: flex;
  1402. color: #b1b1b1;
  1403. font-size: 28rpx;
  1404. .item {
  1405. text-align: center;
  1406. line-height: 60rpx;
  1407. padding-left: 12rpx;
  1408. padding-right: 12rpx;
  1409. border-radius: 8rpx;
  1410. border: 1px solid #E0E0E0;
  1411. margin-right: 20rpx;
  1412. &.active {
  1413. color: #FFFFFF;
  1414. background-color: #2671E2;
  1415. }
  1416. }
  1417. }
  1418. .boardbox {
  1419. width: 100%;
  1420. height: 172rpx;
  1421. display: flex;
  1422. align-items: center;
  1423. background: #F4F8FD;
  1424. border-radius: 8rpx;
  1425. margin-top: 28rpx;
  1426. .boardbox-zuo {
  1427. width: 50%;
  1428. height: 120rpx;
  1429. border-right: 1px solid #E0E0E0;
  1430. }
  1431. .boardbox-you {
  1432. width: 50%;
  1433. height: 120rpx;
  1434. }
  1435. .boardbox-text1 {
  1436. width: 100%;
  1437. text-align: center;
  1438. font-size: 28rpx;
  1439. color: #333333;
  1440. }
  1441. .boardbox-text2 {
  1442. width: 100%;
  1443. text-align: center;
  1444. font-size: 26rpx;
  1445. color: #333333;
  1446. margin-top: 10rpx;
  1447. }
  1448. }
  1449. .comparesize {
  1450. flex: 1;
  1451. font-size: 24rpx;
  1452. color: #666666;
  1453. margin-top: 10rpx;
  1454. }
  1455. .grid:nth-child(1) {
  1456. border-right: none;
  1457. border-bottom: none;
  1458. }
  1459. .grid:nth-child(2) {
  1460. // border-bottom: none;
  1461. }
  1462. .grid:nth-child(3) {
  1463. width: 50%;
  1464. }
  1465. .chart {
  1466. padding: 40rpx 0 20rpx;
  1467. min-height: 50vh;
  1468. .marketingBusiness {
  1469. display: flex;
  1470. justify-content: center;
  1471. align-items: center;
  1472. .marketingBusinesstext {
  1473. padding: 0 20rpx;
  1474. display: flex;
  1475. align-items: center;
  1476. border-radius: 8rpx;
  1477. border: 1rpx solid #666666;
  1478. overflow: hidden;
  1479. white-space: nowrap;
  1480. text-overflow: ellipsis;
  1481. .righttochoose {
  1482. margin-left: 12rpx;
  1483. width: 18rpx;
  1484. height: 24rpx;
  1485. }
  1486. }
  1487. }
  1488. }
  1489. </style>