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.
 
 
 

1591 lines
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. if (this.marketingBusiness) {
  500. this.pamect.marketingBusiness = this.marketingBusiness
  501. }
  502. this.$u.post("/cusLvStatistics/lyAndcp", this.pamect).then(data => {
  503. this.pamect.lastStartDate = data.lastStartDate;
  504. this.pamect.lastEndDate = data.lastEndDate;
  505. this.numlist[0].num = data.startSumCustomer || 0
  506. this.numlist[1].num = data.startFraction || 0
  507. this.numlist[2].num = Math.floor(data.startSumDuration / 60) || 0;
  508. if (data.endSumDuration != null) {
  509. this.compareFlag = true
  510. this.numlist[0].num1 = data.endSumCustomer || 0
  511. this.numlist[1].num1 = data.endFraction || 0
  512. this.numlist[2].num1 = Math.floor(data.endSumDuration / 60) || 0;
  513. this.numlist[0].num2 = data.contrastSumCustomer
  514. this.numlist[1].num2 = data.contrastFraction || 0
  515. this.numlist[2].num2 = data.contrastSumDuration
  516. } else {
  517. this.compareFlag = false
  518. }
  519. this.sheartime1 = data.lastStartDate.substring(5, 10) + "--" + data.lastEndDate.substring(5,
  520. 10);
  521. this.sheartime2 = '请选择';
  522. this.kanbanlist.duibitime = '';
  523. var kaishi = this.DateDiff(data.lastStartDate, data.lastEndDate);
  524. this.kanbanlist.kaishitime = data.lastStartDate + "至" + data.lastEndDate + "(" + kaishi + "天)";
  525. if (this.pamect.showStatus == 1) {
  526. this.sheartime2 = data.firstStartDate.substring(5, 10) + "--" + data.firstEndDate
  527. .substring(5, 10);
  528. var jeishu = this.DateDiff(data.firstStartDate, data.firstEndDate);
  529. this.kanbanlist.duibitime = data.firstStartDate + "至" + data.firstEndDate + "(" + jeishu +
  530. "天)";
  531. }
  532. this.kanbanlist.audonum = data.sumCustomer;
  533. this.kanbanlist.audotime = data.avgDuration;
  534. this.kanbanlist.avgDuration = data.fraction;
  535. this.kanbanlist.fraction = data.fraction;
  536. if (this.newactiveTotal == 0) {
  537. this.ProjectDimension()
  538. } else if (this.newactiveTotal == 1) {
  539. console.log(this.pamect.accountId)
  540. if (this.pamect.accountId == "") {
  541. this.getguwenlist()
  542. } else {
  543. this.ConsultantDimension()
  544. }
  545. } else if (this.newactiveTotal == 2) {
  546. if (this.pamect.deptId == "") {
  547. this.getuanduilist()
  548. } else {
  549. this.TeamCompared()
  550. }
  551. } else if (this.newactiveTotal == 3) {
  552. this.speakingLevel()
  553. } else {
  554. if (this.pamect.marketingId == '') {
  555. this.getonsyiji()
  556. } else {
  557. this.aboutEecondary()
  558. }
  559. }
  560. setTimeout(() => {
  561. this.$forceUpdate()
  562. this.LOADING = false
  563. }, 1500)
  564. }).catch(e => {
  565. this.LOADING = false
  566. })
  567. },
  568. //起始时间
  569. totalTimeChange(e) {
  570. this.pamect.lastStartDate = e.startDate;
  571. this.pamect.lastEndDate = e.endDate;
  572. var kaishi = this.DateDiff(this.pamect.lastStartDate, this.pamect.lastEndDate)
  573. this.kanbanlist.kaishitime = this.pamect.lastStartDate + "至" + this.pamect.lastEndDate + "(" + kaishi +
  574. "天)";
  575. if (this.pamect.showStatus == 0) {
  576. this.init()
  577. this.totalTimeShow = false;
  578. } else {
  579. if (this.pamect.firstStartDate.length == 0) {
  580. uni.showToast({
  581. title: '请选择对比时间',
  582. duration: 2000
  583. });
  584. } else {
  585. var jshu = this.DateDiff(this.pamect.firstStartDate, this.pamect.firstEndDate)
  586. if (kaishi == jshu) {
  587. this.init()
  588. } else {
  589. uni.showToast({
  590. title: '请选择相同天数',
  591. duration: 2000
  592. });
  593. }
  594. }
  595. this.totalTimeShow = false;
  596. }
  597. },
  598. //对比时间
  599. totalTimeChange2(e) {
  600. console.log(e)
  601. var d = new Date(e.result.replace(/\-/g, '/'));
  602. d.setDate(d.getDate() + this.intervaltime);
  603. var year = d.getFullYear();
  604. var month = d.getMonth() + 1;
  605. if (month < 10) month = '0' + month;
  606. var day = d.getDate();
  607. if (day < 10) day = '0' + day;
  608. this.pamect.firstStartDate = e.result;
  609. this.pamect.firstEndDate = year + '-' + month + '-' + day;
  610. console.log(this.pamect.firstStartDate)
  611. var kaishi = this.DateDiff(this.pamect.lastStartDate, this.pamect.lastEndDate)
  612. var jeishu = this.DateDiff(this.pamect.firstStartDate, this.pamect.firstEndDate)
  613. this.kanbanlist.duibitime = this.pamect.firstStartDate + "至" + this.pamect.firstEndDate + "(" + jeishu +
  614. "天)";
  615. console.log(this.pamect.lastStartDate, this.pamect.lastEndDate, kaishi, jeishu)
  616. if (kaishi == jeishu) {
  617. this.init()
  618. } else {
  619. uni.showToast({
  620. title: '请选择相同天数',
  621. duration: 2000
  622. });
  623. }
  624. this.totalTimeShow2 = false;
  625. },
  626. //自定义时间
  627. totalTimeChange3(e) {
  628. this.pamect.firstStartDate = "";
  629. this.pamect.firstEndDate = "";
  630. this.pamect.lastStartDate = e.startDate;
  631. this.pamect.lastEndDate = e.endDate;
  632. this.init()
  633. this.totalTimeShow3 = false;
  634. },
  635. //时间切换
  636. tabtimetap(index) {
  637. if (index == 0) {
  638. this.pamect.timeType = "4";
  639. this.pamect.firstStartDate = '';
  640. this.pamect.firstEndDate = '';
  641. this.pamect.lastStartDate = '';
  642. this.pamect.lastEndDate = '';
  643. this.init()
  644. } else if (index == 1) {
  645. this.pamect.timeType = "5";
  646. this.pamect.firstStartDate = '';
  647. this.pamect.firstEndDate = '';
  648. this.pamect.lastStartDate = '';
  649. this.pamect.lastEndDate = '';
  650. this.init()
  651. } else if (index == 2) {
  652. this.pamect.timeType = "6";
  653. this.pamect.firstStartDate = '';
  654. this.pamect.firstEndDate = '';
  655. this.pamect.lastStartDate = '';
  656. this.pamect.lastEndDate = '';
  657. this.init()
  658. } else if (index == 3) {
  659. this.pamect.timeType = "";
  660. this.totalTimeShow = true;
  661. } else if (index == 4) {
  662. this.pamect.timeType = "";
  663. var kaishi = this.DateDiff(this.pamect.lastStartDate, this.pamect.lastEndDate)
  664. console.log(kaishi)
  665. this.intervaltime = kaishi - 1;
  666. this.totalTimeShow2 = true;
  667. } else {
  668. this.pamect.timeType = "";
  669. this.totalTimeShow3 = true;
  670. }
  671. this.activeTotal = index;
  672. },
  673. //tab切换
  674. tabxuanxiangtap(index) {
  675. if (index == 1 || index == 3 || index == 4) {
  676. this.marketingBusinessText = this.showMarketingList[1].templateName
  677. this.marketingBusiness = this.showMarketingList[1].id
  678. }
  679. this.newactiveTotal = index;
  680. this.Selectlevel = false;
  681. this.Selecttuandui = false;
  682. this.timepickpickisshow = false;
  683. this.init()
  684. },
  685. //项目维度
  686. ProjectDimension() {
  687. const that = this;
  688. that.lineOptsect = {
  689. categories: [],
  690. series: []
  691. };
  692. this.linetype = "line";
  693. if (this.marketingBusiness) {
  694. this.pamect.marketingBusiness = this.marketingBusiness
  695. }
  696. this.$u.post("/cusLvStatistics/teamOrOneValueShow", this.pamect).then(data => {
  697. if (this.pamect.showStatus == 0) {
  698. that.lineOptsect = {
  699. categories: [],
  700. series: [{
  701. name: '起始时间',
  702. data: [],
  703. color: '#7ED3F4'
  704. }]
  705. }
  706. data.lastValue.forEach((child, zxc) => {
  707. that.lineOptsect.categories.push(child.statDate.substring(5, 10))
  708. })
  709. that.lineOptsect.series[0].data = data.lastValue.map(item => item.fraction);
  710. } else {
  711. that.lineOptsect = {
  712. categories: [],
  713. series: [{
  714. name: '起始时间',
  715. data: [],
  716. color: '#7ED3F4'
  717. },
  718. {
  719. name: '对比时间',
  720. data: [],
  721. color: '#FF7070'
  722. },
  723. ]
  724. }
  725. data.firstValue.forEach((item, sdf) => {
  726. data.lastValue.forEach((child, zxc) => {
  727. if (sdf == zxc) {
  728. that.lineOptsect.categories.push(
  729. child.statDate.substring(5, 10) + 'vs' + item.statDate
  730. .substring(5, 10)
  731. )
  732. }
  733. })
  734. })
  735. that.lineOptsect.series[1].data = data.firstValue.map(item => item.fraction);
  736. that.lineOptsect.series[0].data = data.lastValue.map(item => item.fraction)
  737. that.guwenFlag = false
  738. // // 处理表格数据
  739. let arr = [
  740. ['时间', '时段一', '时段二', '变化']
  741. ]
  742. that.lineOptsect.categories.map((item, index) => {
  743. let newarr = [item, data.lastValue[index].fraction, data.firstValue[index]
  744. .fraction, data.contrast[index].data
  745. ]
  746. arr.push(newarr)
  747. })
  748. // console.log(arr)
  749. that.tableDate = arr
  750. }
  751. this.$forceUpdate()
  752. });
  753. },
  754. //顾问维度
  755. ConsultantDimension() {
  756. const that = this;
  757. that.lineOptsect = {
  758. categories: [],
  759. series: []
  760. };
  761. if (this.marketingBusiness) {
  762. this.pamect.marketingBusiness = this.marketingBusiness
  763. }
  764. this.linetype = "radar";
  765. this.$u.post("/cusLvStatistics/accFirstLevelContrast", this.pamect).then(data => {
  766. // return
  767. let max = data.firstList[0].total
  768. for (let i = 0; i < data.firstList.length; i++) {
  769. if (max < data.firstList[i]) max = data.firstList[i];
  770. }
  771. this.opts = {
  772. ...this.opts,
  773. fontSize: 10,
  774. extra: {
  775. radar: {
  776. max: max + 25
  777. }
  778. }
  779. }
  780. if (this.pamect.showStatus == 0) {
  781. that.lineOptsect = {
  782. categories: [],
  783. series: [{
  784. name: '时段一',
  785. data: [],
  786. color: '#7ED3F4'
  787. }]
  788. }
  789. data.firstList.forEach((item, sdf) => {
  790. that.lineOptsect.categories.push(item.name)
  791. that.lineOptsect.series[0].data.push(data.firstList[sdf].total)
  792. })
  793. } else {
  794. // 当有对比的时候
  795. that.lineOptsect = {
  796. categories: [],
  797. series: [{
  798. name: '时段一',
  799. data: [],
  800. color: '#7ED3F4'
  801. },
  802. {
  803. name: '时段二',
  804. data: [],
  805. color: '#FF7070'
  806. },
  807. ]
  808. }
  809. data.headerList.forEach((item, sdf) => {
  810. that.lineOptsect.categories.push(item.name)
  811. that.lineOptsect.series[0].data.push(data.firstList[sdf].total)
  812. that.lineOptsect.series[1].data.push(data.secondList[sdf].total)
  813. })
  814. // return
  815. // // 处理表格数据
  816. that.guwenFlag = true
  817. let arr = []
  818. arr[0] = ['时间', ...that.lineOptsect.categories]
  819. arr[1] = ['变化']
  820. arr[2] = ['时段一']
  821. arr[3] = ['时段二']
  822. // console.log(arr)
  823. data.firstList.map((item, index) => {
  824. arr[2].push(item.total)
  825. arr[3].push(data.secondList[index].total)
  826. arr[1].push(data.thirdList[index].total)
  827. })
  828. that.tableDate = arr
  829. }
  830. this.$forceUpdate()
  831. });
  832. },
  833. // 顾问纬度选择顾问
  834. oninputtap() {
  835. this.Showhiddenunits = true;
  836. },
  837. // 顾问选择确认
  838. confirm(e) {
  839. this.lopanobj.id = e[0].value;
  840. this.lopanobj.name = e[0].label;
  841. this.pamect.accountId = this.lopanobj.id;
  842. this.ConsultantDimension()
  843. this.Showhiddenunits = false;
  844. for (let i = 0; i < this.selectlist.length; i++) {
  845. if (e[0].value == this.selectlist[i].value) {
  846. this.selindexList[0] = i
  847. }
  848. }
  849. },
  850. //获取顾问
  851. getguwenlist() {
  852. this.$u.post("/cusLvStatistics/selectAllAccountIdByHouseId", {
  853. houseId: this.pamect.houseId,
  854. marketingBusiness: this.marketingBusiness,
  855. }).then(data => {
  856. console.log(data, 'sdajmkldjaskldjaskldjaskldjaskljdklsa')
  857. this.selectlist = [];
  858. if (data.length == 0) {
  859. this.lineOptsect = {
  860. categories: [],
  861. series: []
  862. };
  863. return
  864. } else {
  865. data.forEach(item => {
  866. this.selectlist.push({
  867. value: item.accountId,
  868. label: item.name
  869. })
  870. })
  871. this.lopanobj.id = data[0].accountId;
  872. this.lopanobj.name = data[0].name;
  873. this.pamect.accountId = this.lopanobj.id;
  874. console.log(this.pamect.accountId)
  875. this.ConsultantDimension()
  876. }
  877. })
  878. },
  879. //销讲一级
  880. speakingLevel() {
  881. this.linetype = "radar";
  882. this.lineOptsect = {
  883. categories: [],
  884. series: []
  885. };
  886. if (this.marketingBusiness) {
  887. this.pamect.marketingBusiness = this.marketingBusiness
  888. }
  889. this.$u.post("/cusLvStatistics/firstLevelContrast", this.pamect).then(data => {
  890. if (data.length == 0) {
  891. return
  892. } else {
  893. let max = data[0].avgExecutionRate
  894. let list = data.map(item => {
  895. return item.name
  896. });
  897. let list1 = data.map(item => {
  898. if (item.avgExecutionRate == null) {
  899. item.avgExecutionRate = 0
  900. } else {
  901. item.avgExecutionRate = item.avgExecutionRate
  902. }
  903. if (max < item.avgExecutionRate) max = item.avgExecutionRate;
  904. return item.avgExecutionRate
  905. });
  906. this.opts = {
  907. ...this.opts,
  908. fontSize: 10,
  909. extra: {
  910. radar: {
  911. max: max + 25
  912. }
  913. }
  914. }
  915. this.lineOptsect = {
  916. "categories": list,
  917. "series": [{
  918. "name": "销讲一级",
  919. "data": list1
  920. }]
  921. }
  922. }
  923. this.$forceUpdate()
  924. })
  925. },
  926. //销讲二级
  927. aboutEecondary() {
  928. this.lineOptsect = {};
  929. this.linetype = "line";
  930. if (this.marketingBusiness) {
  931. this.pamect.marketingBusiness = this.marketingBusiness
  932. }
  933. this.$u.post("/cusLvStatistics/level2Contrast", this.pamect).then(data => {
  934. if (this.pamect.showStatus == 0) {
  935. this.lineOptsect = {
  936. categories: [],
  937. series: [{
  938. name: '起始时间',
  939. data: [],
  940. color: '#7ED3F4'
  941. }]
  942. }
  943. data.lastList.forEach((item, sdf) => {
  944. this.lineOptsect.categories.push(item.statDate.substring(5, 10))
  945. })
  946. this.lineOptsect.series[0].data = data.lastList.map(item => item.avgExecutionRate);
  947. } else {
  948. this.lineOptsect = {
  949. categories: [],
  950. series: [{
  951. name: '起始时间',
  952. data: [],
  953. color: '#7ED3F4'
  954. },
  955. {
  956. name: '对比时间',
  957. data: [],
  958. color: '#FF7070'
  959. },
  960. ]
  961. }
  962. data.firstList.forEach((item, sdf) => {
  963. data.lastList.forEach((child, zxc) => {
  964. if (sdf == zxc) {
  965. this.lineOptsect.categories.push(
  966. child.statDate.substring(5, 10) + 'vs' + item.statDate
  967. .substring(5, 10)
  968. )
  969. }
  970. })
  971. })
  972. this.lineOptsect.series[1].data = data.firstList.map(item => item.avgExecutionRate);
  973. this.lineOptsect.series[0].data = data.lastList.map(item => item.avgExecutionRate)
  974. let that = this
  975. this.guwenFlag = false
  976. // // 处理表格数据
  977. let arr = [
  978. ['时间', '时段一', '时段二', '变化']
  979. ]
  980. that.lineOptsect.categories.map((item, index) => {
  981. let newarr = [item, data.lastList[
  982. index].avgExecutionRate, data.firstList[index].avgExecutionRate,
  983. data.contrast[index].data
  984. ]
  985. arr.push(newarr)
  986. })
  987. that.tableDate = arr
  988. }
  989. this.$forceUpdate()
  990. })
  991. },
  992. //销讲二级:获取一级
  993. getonsyiji() {
  994. this.$u.post("/cusLvStatistics/findAllFirstLevel", {
  995. houseId: this.pamect.houseId,
  996. marketingBusiness: this.marketingBusiness,
  997. }).then(data => {
  998. this.selectlist2 = [];
  999. if (data.length == 0) {
  1000. this.Selectlevel = false;
  1001. this.lineOptsect = {
  1002. categories: [],
  1003. series: []
  1004. };
  1005. return
  1006. } else {
  1007. this.Selectlevel = true;
  1008. data.forEach(item => {
  1009. this.selectlist2.push({
  1010. value: item.marketingId,
  1011. label: item.name
  1012. })
  1013. })
  1014. this.Selectlevelobj.id = data[0].marketingId;
  1015. this.Selectlevelobj.name = data[0].name;
  1016. this.getonserji(this.Selectlevelobj.id)
  1017. }
  1018. this.$forceUpdate()
  1019. })
  1020. },
  1021. //销讲二级:通过一级获取二级
  1022. getonserji(ccd) {
  1023. this.$u.post("/cusLvStatistics/findLevel2ByFirstLevel", {
  1024. houseId: this.pamect.houseId,
  1025. marketingId: ccd
  1026. }).then(data => {
  1027. this.selectlist3 = [];
  1028. data.forEach(item => {
  1029. this.selectlist3.push({
  1030. value: item.marketingId,
  1031. label: item.name
  1032. })
  1033. })
  1034. this.erSelectlevelobj.id = data[0].marketingId;
  1035. this.erSelectlevelobj.name = data[0].name;
  1036. this.pamect.marketingId = this.erSelectlevelobj.id;
  1037. this.aboutEecondary()
  1038. this.$forceUpdate()
  1039. })
  1040. },
  1041. //销讲二级:一级选择
  1042. oninputtap2() {
  1043. this.Showhiddenunits2 = true;
  1044. },
  1045. //销讲二级:二级选择
  1046. oninputtap3() {
  1047. if (this.Selectlevelobj.id == "") {
  1048. uni.showToast({
  1049. title: '请先选择一级',
  1050. duration: 2000
  1051. });
  1052. } else {
  1053. this.Showhiddenunits3 = true;
  1054. }
  1055. },
  1056. //销讲二级:一级选择确认
  1057. confirm2(e) {
  1058. this.Selectlevelobj.id = e[0].value;
  1059. this.Selectlevelobj.name = e[0].label;
  1060. this.getonserji(this.Selectlevelobj.id)
  1061. },
  1062. //销讲二级:二级选择确认
  1063. confirm3(e) {
  1064. this.erSelectlevelobj.id = e[0].value;
  1065. this.erSelectlevelobj.name = e[0].label;
  1066. this.pamect.marketingId = this.erSelectlevelobj.id;
  1067. this.aboutEecondary()
  1068. },
  1069. //团队请选择
  1070. oninputtap4() {
  1071. this.Showhiddenunits4 = true;
  1072. },
  1073. //团队选择确认
  1074. confirm4(e) {
  1075. this.Selecttuanduiobj.id = e[0].value;
  1076. this.Selecttuanduiobj.name = e[0].label;
  1077. this.pamect.deptId = this.Selecttuanduiobj.id;
  1078. this.pamect.showStatus = 0;
  1079. this.pamect.timeType = "4";
  1080. this.pamect.firstStartDate = '';
  1081. this.pamect.firstEndDate = '';
  1082. this.pamect.lastStartDate = '';
  1083. this.pamect.lastEndDate = '';
  1084. this.activeTotal = 0;
  1085. this.timepickpickisshow = false;
  1086. this.init()
  1087. this.TeamCompared()
  1088. for (let i = 0; i < this.selectlist4.length; i++) {
  1089. if (e[0].value == this.selectlist4[i].value) {
  1090. this.selindexList4[0] = i
  1091. }
  1092. }
  1093. },
  1094. //获取团队列表
  1095. getuanduilist() {
  1096. this.$u.post("/cusLvStatistics/findAllDeptIdByHouseId ", {
  1097. houseId: this.pamect.houseId,
  1098. marketingBusiness: this.marketingBusiness,
  1099. }).then(data => {
  1100. this.selectlist4 = [{
  1101. value: "",
  1102. label: "全部"
  1103. }];
  1104. if (data.length == 0) {
  1105. this.Selecttuandui = false;
  1106. this.lineOptsect = {
  1107. categories: [],
  1108. series: []
  1109. };
  1110. return
  1111. } else {
  1112. this.Selecttuandui = true;
  1113. data.forEach(item => {
  1114. this.selectlist4.push({
  1115. value: item.deptId,
  1116. label: item.deptName
  1117. })
  1118. })
  1119. this.Selecttuanduiobj.id = "";
  1120. this.Selecttuanduiobj.name = "全部";
  1121. this.pamect.deptId = this.Selecttuanduiobj.id;
  1122. this.TeamCompared()
  1123. }
  1124. })
  1125. },
  1126. //团队对比
  1127. TeamCompared() {
  1128. const that = this;
  1129. that.lineOptsect = {
  1130. categories: [],
  1131. series: []
  1132. };
  1133. this.linetype = "line";
  1134. this.$forceUpdate()
  1135. if (this.marketingBusiness) {
  1136. this.pamect.marketingBusiness = this.marketingBusiness
  1137. }
  1138. this.$u.post("/cusLvStatistics/teamOrOneValueShowByDept", this.pamect).then(data => {
  1139. if (this.Selecttuanduiobj.id == "") {
  1140. var newlist = [];
  1141. for (var i in data) {
  1142. var ect = data[i].receptionStatList.map(item => {
  1143. if (item.fraction == null) {
  1144. item.fraction = 0
  1145. } else {
  1146. item.fraction = item.fraction
  1147. }
  1148. return item.fraction
  1149. });
  1150. newlist.push({
  1151. name: data[i].deptName,
  1152. data: ect
  1153. })
  1154. }
  1155. var timelist = [];
  1156. for (var i in data) {
  1157. var ect = data[i].receptionStatList.map(item => {
  1158. return item.statDate
  1159. });
  1160. timelist.push({
  1161. name: data[i].deptName,
  1162. data: ect
  1163. })
  1164. }
  1165. var xAxisdata = [];
  1166. timelist[0].data.forEach((item, sdf) => {
  1167. xAxisdata.push(item.substring(5, 10))
  1168. })
  1169. that.lineOptsect = {
  1170. categories: xAxisdata,
  1171. series: newlist
  1172. }
  1173. } else {
  1174. if (this.pamect.showStatus == 0) {
  1175. that.lineOptsect = {
  1176. categories: [],
  1177. series: [{
  1178. name: '起始时间',
  1179. data: [],
  1180. color: '#7ED3F4'
  1181. }]
  1182. }
  1183. data.lastValue.receptionStatList.forEach((item, sdf) => {
  1184. that.lineOptsect.categories.push(item.statDate.substring(5, 10))
  1185. })
  1186. that.lineOptsect.series[0].data = data.lastValue.receptionStatList.map(item => item
  1187. .fraction);
  1188. } else {
  1189. that.lineOptsect = {
  1190. categories: [],
  1191. series: [{
  1192. name: '起始时间',
  1193. data: [],
  1194. color: '#7ED3F4'
  1195. },
  1196. {
  1197. name: '对比时间',
  1198. data: [],
  1199. color: '#FF7070'
  1200. },
  1201. ]
  1202. }
  1203. data.firstValue.receptionStatList.forEach((item, sdf) => {
  1204. data.lastValue.receptionStatList.forEach((child, zxc) => {
  1205. if (sdf == zxc) {
  1206. that.lineOptsect.categories.push(
  1207. child.statDate.substring(5, 10) + 'vs' + item
  1208. .statDate.substring(5, 10)
  1209. )
  1210. }
  1211. })
  1212. })
  1213. that.lineOptsect.series[1].data = data.firstValue.receptionStatList.map(item => item
  1214. .fraction);
  1215. that.lineOptsect.series[0].data = data.lastValue.receptionStatList.map(item => item
  1216. .fraction)
  1217. that.guwenFlag = false
  1218. // 团队处理数据
  1219. // // 处理表格数据
  1220. let arr = [
  1221. ['时间', '时段一', '时段二', '变化']
  1222. ]
  1223. that.lineOptsect.categories.map((item, index) => {
  1224. let newarr = [item, data
  1225. .lastValue.receptionStatList[index].fraction, data.firstValue
  1226. .receptionStatList[index].fraction, data.contrast
  1227. .receptionStatList[index].data
  1228. ]
  1229. arr.push(newarr)
  1230. })
  1231. that.tableDate = arr
  1232. }
  1233. }
  1234. this.$forceUpdate()
  1235. });
  1236. },
  1237. //算相隔天数
  1238. DateDiff(sDate1, sDate2) {
  1239. var aDate, oDate1, oDate2, iDays;
  1240. aDate = sDate1.split("-");
  1241. oDate1 = new Date(aDate[1] + '/' + aDate[2] + '/' + aDate[0]); //转换为yyyy-MM-dd格式
  1242. aDate = sDate2.split("-");
  1243. oDate2 = new Date(aDate[1] + '/' + aDate[2] + '/' + aDate[0]);
  1244. iDays = parseInt(Math.abs(oDate1 - oDate2) / 1000 / 60 / 60 / 24); //把相差的毫秒数转换为天数
  1245. return iDays + 1; //返回相差天数
  1246. },
  1247. },
  1248. }
  1249. </script>
  1250. <style lang="scss" scoped>
  1251. .title2-che {
  1252. width: 178rpx;
  1253. height: 48rpx;
  1254. background: #FFFFFF;
  1255. border-radius: 6rpx;
  1256. border: 1px solid #E0E0E0;
  1257. line-height: 48rpx;
  1258. font-size: 28rpx;
  1259. font-weight: 400;
  1260. color: #666666;
  1261. text-indent: 12rpx;
  1262. margin-left: 35rpx;
  1263. position: relative;
  1264. .righttochoose {
  1265. width: 18rpx;
  1266. height: 24rpx;
  1267. position: absolute;
  1268. top: 12rpx;
  1269. right: 12rpx;
  1270. }
  1271. }
  1272. .table {
  1273. border: 0px solid darkgray;
  1274. .tr {
  1275. display: flex;
  1276. // width: 100%;
  1277. justify-content: center;
  1278. height: 64rpx;
  1279. align-items: center;
  1280. border-bottom: 1px solid #E0E0E0;
  1281. flex-wrap: nowrap;
  1282. .td {
  1283. text-align: center;
  1284. font-size: 24rpx;
  1285. font-weight: 400;
  1286. color: #333333;
  1287. height: 64rpx;
  1288. line-height: 64rpx;
  1289. // flex-shrink: 0;
  1290. }
  1291. .trd {
  1292. flex-shrink: 0;
  1293. min-width: 300rpx;
  1294. // border-bottom: 1px solid #ccc;
  1295. }
  1296. .th {
  1297. height: 64rpx;
  1298. text-align: center;
  1299. font-size: 28rpx;
  1300. font-weight: 400;
  1301. color: #666666;
  1302. line-height: 64rpx;
  1303. }
  1304. }
  1305. }
  1306. .uchaserbox {
  1307. width: 100%;
  1308. height: 50vh;
  1309. overflow: hidden;
  1310. }
  1311. .uchaserboxs {
  1312. width: 100%;
  1313. height: 70vh;
  1314. }
  1315. .activecllasscet2 {
  1316. color: #2671E2;
  1317. border-bottom: 2px solid #2671E2;
  1318. }
  1319. .timeduibi {
  1320. width: 100%;
  1321. background: #FFFFFF;
  1322. padding-bottom: 10rpx;
  1323. .timeshow {
  1324. color: #666666;
  1325. width: 100%;
  1326. height: 50rpx;
  1327. font-size: 28rpx;
  1328. line-height: 50rpx;
  1329. text-indent: 30rpx;
  1330. }
  1331. }
  1332. // 顶部时间切换
  1333. .timetabct {
  1334. width: 100%;
  1335. height: 98rpx;
  1336. display: flex;
  1337. align-items: center;
  1338. border-bottom: 1px solid #E0E0E0;
  1339. }
  1340. .timetabctview {
  1341. flex: 1;
  1342. height: 100%;
  1343. display: flex;
  1344. justify-content: center;
  1345. align-items: center;
  1346. }
  1347. .timetabct view {
  1348. width: 94rpx;
  1349. text-align: center;
  1350. height: 100%;
  1351. line-height: 98rpx;
  1352. font-size: 28rpx;
  1353. font-family: PingFangSC-Regular, PingFang SC;
  1354. font-weight: 400;
  1355. color: #666666;
  1356. }
  1357. .activecllasscet {
  1358. border-bottom: 2px solid #2671E2;
  1359. }
  1360. // 对比时间切换
  1361. .timepick {
  1362. width: 100%;
  1363. height: 90rpx;
  1364. display: flex;
  1365. align-items: center;
  1366. background: #FFFFFF;
  1367. }
  1368. .timepicktime {
  1369. width: 260rpx;
  1370. height: 50rpx;
  1371. border: 1rpx solid #E0E0E0;
  1372. margin-left: 30rpx;
  1373. display: flex;
  1374. background: #FFFFFF;
  1375. }
  1376. .timepicktime>view:nth-of-type(1) {
  1377. width: 210rpx;
  1378. height: 100%;
  1379. line-height: 50rpx;
  1380. font-size: 26rpx;
  1381. font-weight: 400;
  1382. text-align: center;
  1383. }
  1384. .timepicktime>view:nth-of-type(2) {
  1385. width: 49rpx;
  1386. height: 100%;
  1387. // border-left: 1px solid #E0E0E0;
  1388. }
  1389. .timepickpick {
  1390. width: 110rpx;
  1391. height: 50rpx;
  1392. margin-left: 30rpx;
  1393. display: flex;
  1394. align-items: center;
  1395. }
  1396. .Underimg {
  1397. width: 50rpx;
  1398. height: 50rpx;
  1399. margin-top: -2rpx;
  1400. }
  1401. .timeButton {
  1402. width: 100%;
  1403. height: 60rpx;
  1404. display: flex;
  1405. color: #b1b1b1;
  1406. font-size: 28rpx;
  1407. .item {
  1408. text-align: center;
  1409. line-height: 60rpx;
  1410. padding-left: 12rpx;
  1411. padding-right: 12rpx;
  1412. border-radius: 8rpx;
  1413. border: 1px solid #E0E0E0;
  1414. margin-right: 20rpx;
  1415. &.active {
  1416. color: #FFFFFF;
  1417. background-color: #2671E2;
  1418. }
  1419. }
  1420. }
  1421. .boardbox {
  1422. width: 100%;
  1423. height: 172rpx;
  1424. display: flex;
  1425. align-items: center;
  1426. background: #F4F8FD;
  1427. border-radius: 8rpx;
  1428. margin-top: 28rpx;
  1429. .boardbox-zuo {
  1430. width: 50%;
  1431. height: 120rpx;
  1432. border-right: 1px solid #E0E0E0;
  1433. }
  1434. .boardbox-you {
  1435. width: 50%;
  1436. height: 120rpx;
  1437. }
  1438. .boardbox-text1 {
  1439. width: 100%;
  1440. text-align: center;
  1441. font-size: 28rpx;
  1442. color: #333333;
  1443. }
  1444. .boardbox-text2 {
  1445. width: 100%;
  1446. text-align: center;
  1447. font-size: 26rpx;
  1448. color: #333333;
  1449. margin-top: 10rpx;
  1450. }
  1451. }
  1452. .comparesize {
  1453. flex: 1;
  1454. font-size: 24rpx;
  1455. color: #666666;
  1456. margin-top: 10rpx;
  1457. }
  1458. .grid:nth-child(1) {
  1459. border-right: none;
  1460. border-bottom: none;
  1461. }
  1462. .grid:nth-child(2) {
  1463. // border-bottom: none;
  1464. }
  1465. .grid:nth-child(3) {
  1466. width: 50%;
  1467. }
  1468. .chart {
  1469. padding: 40rpx 0 20rpx;
  1470. min-height: 50vh;
  1471. .marketingBusiness {
  1472. display: flex;
  1473. justify-content: center;
  1474. align-items: center;
  1475. .marketingBusinesstext {
  1476. padding: 0 20rpx;
  1477. display: flex;
  1478. align-items: center;
  1479. border-radius: 8rpx;
  1480. border: 1rpx solid #666666;
  1481. overflow: hidden;
  1482. white-space: nowrap;
  1483. text-overflow: ellipsis;
  1484. .righttochoose {
  1485. margin-left: 12rpx;
  1486. width: 18rpx;
  1487. height: 24rpx;
  1488. }
  1489. }
  1490. }
  1491. }
  1492. </style>