AI销管
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.

StaffAnalysis.vue 18 KiB

2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668
  1. <template>
  2. <view>
  3. <view class="boxtittab">
  4. <view class="tabbox">
  5. <view :class="{ activecllasscet: activeTotal == 4 }" @click="tabtimetap(4)">近七天</view>
  6. </view>
  7. <view class="tabbox">
  8. <view :class="{ activecllasscet: activeTotal == 5 }" @click="tabtimetap(5)">近15天</view>
  9. </view>
  10. <view class="tabbox">
  11. <view :class="{ activecllasscet: activeTotal == 6 }" @click="tabtimetap(6)">近30天</view>
  12. </view>
  13. <view class="tabbox">
  14. <view :class="{ activecllasscet: activeTotal == 3 }" @click="tabtimetap(3)">自定义</view>
  15. </view>
  16. </view>
  17. <view class="timepick">
  18. <view class="timepicktime" @click="chiocStaff(0)">
  19. <view>{{staff1.label}}
  20. <image class="Underimg" src="../../../static/images/down.png" mode=""></image>
  21. </view>
  22. </view>
  23. <view class="timepickpick" @click="checkboxChange">
  24. <image v-if="timepickpickisshow" style="width: 30rpx;height: 30rpx;"
  25. src="../../../static/images/xuanzhong.png" mode=""></image>
  26. <view v-else style="width: 30rpx;height:30rpx;border: 1rpx solid #E0E0E0;"></view>
  27. <view style="font-size:26rpx;text-indent: 12rpx;">对比</view>
  28. </view>
  29. <view class="timepicktime" v-if="timepickpickisshow" @click="chiocStaff(1)">
  30. <view>{{staff2.label}}
  31. <image class="Underimg" src="../../../static/images/down.png" mode=""></image>
  32. </view>
  33. </view>
  34. </view>
  35. <view style="width: 100%;height: 20rpx;background: #f8f8f8;"></view>
  36. <view class="single">
  37. <view class="title">
  38. <view class="title1" style="flex: 1;">接待量</view>
  39. </view>
  40. <view class="hejisan">
  41. <view class="sanbox1" >
  42. <view class="text1-2">{{newTeam1||0}}</view>
  43. <view class="text1-1">{{staff1.label}}</view>
  44. </view>
  45. <view class="sanbox1" v-if="timepickpickisshow">
  46. <view class="text1-2">{{newAvg1||0}}</view>
  47. <view class="text1-1">{{staff2.label}}</view>
  48. </view>
  49. </view>
  50. <view class="danwei">来访(人)</view>
  51. <view class="uchaserbox">
  52. <qiun-data-charts v-if="isShow" type="line" :opts="lineOpts1" :chartData="lineOptsect" background="none" :ontouch="true"
  53. canvasId="wangxiaohuaerlingeryilingwuyibbb" :canvas2d="true" />
  54. </view>
  55. </view>
  56. <view style="width: 100%;height: 20rpx;background: #f8f8f8;"></view>
  57. <view class="single">
  58. <view class="title">
  59. <view class="title1" style="flex: 1;">录音时长</view>
  60. <view class="title3" style="flex: 1;">
  61. <!-- <view class="title3-box" style="width: 40%;" @click="tabtimetap1(0)">
  62. <view style="height: 42rpx;" :class="{ activecltab: activeTotal2 == 0 }">有效录音</view>
  63. </view>
  64. <view class="title3-box" style="width: 40%;"@click="tabtimetap1(1)">
  65. <view style="height: 42rpx;" :class="{ activecltab: activeTotal2 == 1 }">录音时长</view>
  66. </view> -->
  67. </view>
  68. </view>
  69. <view class="hejisan">
  70. <view class="sanbox1" >
  71. <view class="text1-2">{{newTeam2||0}}</view>
  72. <view class="text1-1">{{staff1.label}}</view>
  73. </view>
  74. <view class="sanbox1" v-if="timepickpickisshow">
  75. <view class="text1-2">{{newAvg2||0}}</view>
  76. <view class="text1-1">{{staff2.label}}</view>
  77. </view>
  78. </view>
  79. <view class="danwei">录音时长</view>
  80. <view class="uchaserbox">
  81. <qiun-data-charts v-if="isShow" type="line" :opts="lineOpts1" :chartData="lineOptsect1" background="none" :ontouch="true"
  82. canvasId="wangxiaouaerlingeryilingwuyibhh" :canvas2d="true" />
  83. </view>
  84. </view>
  85. <view style="width: 100%;height: 20rpx;background: #f8f8f8;"></view>
  86. <view class="single">
  87. <view class="title">
  88. <view class="title1" style="flex: 1;">销讲执行率</view>
  89. <view class="title3" style="flex: 1;">
  90. <!-- <view class="title3-box" style="width: 40%;" @click="tabtimetap1(0)">
  91. <view style="height: 42rpx;" :class="{ activecltab: activeTotal2 == 0 }">有效录音</view>
  92. </view>
  93. <view class="title3-box" style="width: 40%;"@click="tabtimetap1(1)">
  94. <view style="height: 42rpx;" :class="{ activecltab: activeTotal2 == 1 }">录音时长</view>
  95. </view> -->
  96. </view>
  97. </view>
  98. <view class="hejisan">
  99. <view class="sanbox1" >
  100. <view class="text1-2">{{newTeam3||0}}</view>
  101. <view class="text1-1">{{staff1.label}}</view>
  102. </view>
  103. <view class="sanbox1" v-if="timepickpickisshow">
  104. <view class="text1-2">{{newAvg3||0}}</view>
  105. <view class="text1-1">{{staff2.label}}</view>
  106. </view>
  107. </view>
  108. <view class="uchaserbox">
  109. <qiun-data-charts v-if="isShow" type="line" :chartData="lineOptsect2" background="none" :ontouch="true"
  110. canvasId="wangxiaohuaerlingryilingwuyibhh" :canvas2d="true" :opts="lineOpts1" />
  111. </view>
  112. </view>
  113. <view style="width: 100%;height: 20rpx;background: #f8f8f8;"></view>
  114. <view class="single">
  115. <view class="title" style="padding-right: 30rpx;">
  116. <view class="title1" style="flex: 1;">销讲能力</view>
  117. </view>
  118. <view class="uchaserbox">
  119. <qiun-data-charts v-if="isShow" type="radar" :opts="opts" :chartData="chartData" :canvas2d="true"
  120. canvasId="wangxiaohuaerlingeryilinwuycsdx" background="none" :loadingType="0" />
  121. </view>
  122. </view>
  123. <u-calendar v-model="totalTimeShow" mode="range" @change="totalTimeChange"></u-calendar>
  124. <!-- 选择客户的选择框 -->
  125. <u-select v-model="staffShow" :list="staffList" @confirm="staffSelectCallback" :default-value='selindex'>
  126. </u-select>
  127. <u-select v-model="staffShow1" :list="staffList1" @confirm="staffSelectCallback" :default-value='selindex'>
  128. </u-select>
  129. </view>
  130. </template>
  131. <script>
  132. export default {
  133. data() {
  134. return {
  135. timepickpickisshow: true,
  136. totalTimeShow: false,
  137. activeTotal: 4,
  138. activeTotal2: 1,
  139. // 项目id
  140. houseId: '',
  141. staffList: [],
  142. staffList1: [],
  143. staffShow: false,
  144. staffShow1: false,
  145. newTeam1: '',
  146. newAvg1: '',
  147. newTeam2: '',
  148. newAvg2: '',
  149. newTeam3: '',
  150. newAvg3: '',
  151. staff1: {
  152. value: '',
  153. label: ''
  154. },
  155. staff2: {
  156. value: '',
  157. label: '平均'
  158. },
  159. lastStartDate: '',
  160. lastEndDate: '',
  161. selindex: [0],
  162. choseStaffFlag: false,
  163. lineOptsect: {
  164. "categories": ["2016", "2017", "2018", "2019", "2020", "2021"],
  165. "series": [{
  166. "name": "成交量1",
  167. "data": [35, 8, 25, 37, 4, 20]
  168. },
  169. {
  170. "name": "成交量2",
  171. "data": [40, 18, 45, 44, 10, 60]
  172. }
  173. ]
  174. },
  175. lineOptsect1: {
  176. "categories": ["2016", "2017", "2018", "2019", "2020", "2021"],
  177. "series": [{
  178. "name": "成交量1",
  179. "data": [35, 8, 25, 37, 4, 20]
  180. },
  181. {
  182. "name": "成交量2",
  183. "data": [40, 18, 45, 44, 10, 60]
  184. }
  185. ]
  186. },
  187. lineOptsect2: {
  188. "categories": ["2016", "2017", "2018", "2019", "2020", "2021"],
  189. "series": [{
  190. "name": "成交量1",
  191. "data": [35, 8, 25, 37, 4, 20]
  192. },
  193. {
  194. "name": "成交量2",
  195. "data": [40, 18, 45, 44, 10, 60]
  196. }
  197. ]
  198. },
  199. chartData: {
  200. "categories": ["维度1", "维度2", "维度3", "维度4", "维度5", "维度6"],
  201. "series": [{
  202. "name": "成交量",
  203. "data": [90, 110, 165, 195, 187, 172]
  204. }]
  205. },
  206. opts: {
  207. fontSize: 10,
  208. extra: {
  209. radar: {
  210. max: 100
  211. }
  212. }
  213. },
  214. lineOpts: {
  215. // enableScroll: true,
  216. // xAxis: {
  217. // disableGrid: true,
  218. // scrollShow: true,
  219. // itemCount: 8
  220. // },
  221. yAxis: {
  222. data: [
  223. {
  224. max: 100,
  225. min: 0,
  226. }
  227. ]
  228. }
  229. },
  230. lineOpts1: {
  231. // enableScroll: true,
  232. // xAxis: {
  233. // disableGrid: true,
  234. // scrollShow: true,
  235. // itemCount: 8
  236. // }
  237. },
  238. isShow: true, // 默认都展示
  239. };
  240. },
  241. onLoad: function(options) {
  242. // 获取项目id
  243. this.houseId = uni.getStorageSync('buildingID').id;
  244. // this.buildingname = uni.getStorageSync('buildingID').name;
  245. // 请求接口获取所有置业顾问员工的列表
  246. this.getStaffList()
  247. },
  248. onPullDownRefresh() {
  249. this.getStaffList()
  250. setTimeout(function() {
  251. uni.stopPullDownRefresh();
  252. }, 1000);
  253. },
  254. methods: {
  255. //是否对比
  256. checkboxChange() {
  257. this.isShow = false
  258. this.timepickpickisshow = !this.timepickpickisshow;
  259. this.staff2.value = ''
  260. this.staff2.label = '平均'
  261. // this.getreception()
  262. // this.getRecordList()
  263. // this.getAwardList()
  264. // this.getAward()
  265. setTimeout(() => {
  266. this.isShow = true
  267. }, 10)
  268. this.getdata()
  269. },
  270. // 点击员工对比
  271. chiocStaff(idx) {
  272. if (idx == 0) {
  273. // 当选择了第一个的时候
  274. this.choseStaffFlag = false
  275. this.staffShow = true
  276. } else {
  277. this.choseStaffFlag = true
  278. this.staffShow1 = true
  279. }
  280. },
  281. // 获取员工列表
  282. getStaffList() {
  283. this.$u.post('/cusLvStatistics/selectAllAccountIdByHouseId', {
  284. houseId: this.houseId
  285. })
  286. .then(res => {
  287. // console.log(res,'123')
  288. this.staffList = []
  289. this.staffList1 = []
  290. res.map(item => {
  291. let obj = {}
  292. obj.value = item.accountId
  293. obj.label = item.name
  294. this.staffList.push(obj)
  295. })
  296. this.staffList1 = [...this.staffList]
  297. this.staffList1.unshift({
  298. value: '',
  299. label: '平均'
  300. })
  301. this.staff1 = this.staffList[0]
  302. // this.getreception()
  303. // this.getRecordList()
  304. // this.getAwardList()
  305. // this.getAward()
  306. this.getdata()
  307. })
  308. },
  309. getdata() {
  310. this.getreception()
  311. this.getRecordList()
  312. this.getAward()
  313. this.getAwardList()
  314. },
  315. // 获取接待量数据
  316. getreception() {
  317. this.$u.post('/cusLvStatistics/employeeAnalysisReception', {
  318. userA: this.staff1.value,
  319. userB: this.staff2.value,
  320. houseId: this.houseId,
  321. timeType: this.lastEndDate ? null : this.activeTotal + '',
  322. lastEndDate: this.lastEndDate,
  323. lastStartDate: this.lastStartDate
  324. })
  325. .then(res => {
  326. this.newTeam1 = res.avg[0]
  327. this.newAvg1 = res.avg[1]
  328. // console.log(res)
  329. let first = res.first
  330. let second = res.second
  331. this.lineOptsect.categories = []
  332. if (!this.timepickpickisshow) {
  333. this.lineOptsect.series = [{
  334. name: first[0].accountName,
  335. data: []
  336. }]
  337. first.map(item => {
  338. this.lineOptsect.categories.push(item.statDate.slice(5, 10))
  339. this.lineOptsect.series[0].data.push(item.receptionCount || 0)
  340. })
  341. } else {
  342. this.lineOptsect.series = [{
  343. name: first[0].accountName,
  344. data: []
  345. },
  346. {
  347. "name": second[0].accountName,
  348. "data": []
  349. }
  350. ]
  351. first.map(item => {
  352. this.lineOptsect.categories.push(item.statDate.slice(5, 10))
  353. this.lineOptsect.series[0].data.push(item.receptionCount)
  354. })
  355. second.map(item => {
  356. this.lineOptsect.series[1].data.push(item.receptionCount)
  357. })
  358. }
  359. // console.log(this.lineOptsect,'1')
  360. })
  361. },
  362. // 销奖趋势
  363. getAward() {
  364. this.$u.post('/cusLvStatistics/employeeAnalysisExacutiveRate', {
  365. userA: this.staff1.value,
  366. userB: this.staff2.value,
  367. houseId: this.houseId,
  368. timeType: this.lastEndDate ? null : this.activeTotal + '',
  369. lastEndDate: this.lastEndDate,
  370. lastStartDate: this.lastStartDate
  371. })
  372. .then(res => {
  373. this.newTeam3 = res.avg[0]
  374. this.newAvg3 = res.avg[1]
  375. // console.log(res)
  376. let first = res.first
  377. let second = res.second
  378. this.lineOptsect2.categories = []
  379. if (!this.timepickpickisshow) {
  380. this.lineOptsect2.series = [{
  381. name: first[0].accountName,
  382. data: []
  383. }]
  384. first.map(item => {
  385. // console.log(item)
  386. this.lineOptsect2.categories.push(item.statDate.slice(5, 10))
  387. this.lineOptsect2.series[0].data.push(item.sumFraction)
  388. })
  389. } else {
  390. this.lineOptsect2.series = [{
  391. name: first[0].accountName,
  392. data: []
  393. },
  394. {
  395. "name": second[0].accountName,
  396. "data": []
  397. }
  398. ]
  399. first.map(item => {
  400. this.lineOptsect2.categories.push(item.statDate.slice(5, 10))
  401. this.lineOptsect2.series[0].data.push(item.sumFraction)
  402. })
  403. second.map(item => {
  404. this.lineOptsect2.series[1].data.push(item.sumFraction)
  405. })
  406. }
  407. // console.log(this.lineOptsect2,'3')
  408. })
  409. },
  410. // 获取有效录音
  411. async getRecordList() {
  412. // 当选择有效录音时
  413. let res = null
  414. if (this.activeTotal2 == 0) {
  415. res = await this.$u.post('/cusLvStatistics/employeeAnalysisEffectiveRecording', {
  416. userA: this.staff1.value,
  417. userB: this.staff2.value,
  418. houseId: this.houseId,
  419. timeType: this.lastEndDate ? null : this.activeTotal + '',
  420. lastEndDate: this.lastEndDate,
  421. lastStartDate: this.lastStartDate
  422. })
  423. } else {
  424. res = await this.$u.post('/cusLvStatistics/employeeAnalysisRecordingTime', {
  425. userA: this.staff1.value,
  426. userB: this.staff2.value,
  427. houseId: this.houseId,
  428. timeType: this.lastEndDate ? null : this.activeTotal + '',
  429. lastEndDate: this.lastEndDate,
  430. lastStartDate: this.lastStartDate
  431. })
  432. }
  433. // console.log(res)
  434. this.newTeam2 = res.avg[0]
  435. this.newAvg2 = res.avg[1]
  436. let first = res.first
  437. let second = res.second
  438. this.lineOptsect1.categories = []
  439. if (!this.timepickpickisshow) {
  440. this.lineOptsect1.series = [{
  441. name: first[0].accountName,
  442. data: []
  443. }]
  444. first.map(item => {
  445. this.lineOptsect1.categories.push(item.statDate.slice(5, 10))
  446. this.lineOptsect1.series[0].data.push(item.sumDuration)
  447. })
  448. } else {
  449. this.lineOptsect1.series = [{
  450. name: first[0].accountName,
  451. data: []
  452. },
  453. {
  454. "name": second[0].accountName,
  455. "data": []
  456. }
  457. ]
  458. first.map(item => {
  459. this.lineOptsect1.categories.push(item.statDate.slice(5, 10))
  460. this.lineOptsect1.series[0].data.push(item.sumDuration)
  461. })
  462. second.map(item => {
  463. this.lineOptsect1.series[1].data.push(item.sumDuration)
  464. })
  465. }
  466. // console.log(this.lineOptsect1,'2')
  467. },
  468. // 获取销奖能力
  469. getAwardList() {
  470. this.chartData = {
  471. categories: [],
  472. series: []
  473. }
  474. this.$u.post('/cusLvStatistics/employeeAnalysisLevel1Fraction', {
  475. userA: this.staff1.value,
  476. userB: this.staff2.value,
  477. houseId: this.houseId,
  478. timeType: this.lastEndDate ? null : this.activeTotal + '',
  479. lastEndDate: this.lastEndDate,
  480. lastStartDate: this.lastStartDate
  481. })
  482. .then(res => {
  483. // console.log(res)
  484. let first = res.first
  485. let second = res.second
  486. this.chartData.categories = []
  487. if (!this.timepickpickisshow) {
  488. this.chartData.series = [{
  489. name: first[0].accountName,
  490. data: []
  491. }]
  492. first.map(item => {
  493. this.chartData.categories.push(item.name)
  494. this.chartData.series[0].data.push(item.avgExecutionRate)
  495. })
  496. } else {
  497. this.chartData.series = [{
  498. name: first[0].accountName,
  499. data: []
  500. },
  501. {
  502. "name": second[0].accountName,
  503. "data": []
  504. }
  505. ]
  506. first.map(item => {
  507. this.chartData.categories.push(item.name)
  508. this.chartData.series[0].data.push(item.avgExecutionRate)
  509. })
  510. second.map(item => {
  511. this.chartData.series[1].data.push(item.avgExecutionRate)
  512. })
  513. }
  514. })
  515. },
  516. tabtimetap(index) {
  517. this.activeTotal = index;
  518. if (index == 3) {
  519. this.totalTimeShow = true;
  520. } else {
  521. this.lastEndDate = ''
  522. this.lastStartDate = ''
  523. // 获取数据
  524. // this.getreception()
  525. // this.getRecordList()
  526. // this.getAwardList()
  527. this.getdata()
  528. }
  529. },
  530. tabtimetap1(index) {
  531. this.activeTotal2 = index;
  532. // 调用方法
  533. this.getRecordList()
  534. },
  535. //自定义时间
  536. totalTimeChange(e) {
  537. console.log(e.startDate, e.endDate)
  538. this.activeTotal = 3;
  539. this.lastEndDate = e.endDate
  540. this.lastStartDate = e.startDate
  541. // 获取数据
  542. // this.getreception()
  543. // this.getRecordList()
  544. // this.getAwardList()
  545. this.getdata()
  546. },
  547. staffSelectCallback(e) {
  548. if (this.choseStaffFlag) {
  549. // 第二个客户
  550. this.staff2 = e[0]
  551. } else {
  552. // 第一个客户
  553. this.staff1 = e[0]
  554. }
  555. if (this.staff1.label == this.staff2.label) {
  556. uni.showToast({
  557. title: '请勿选择重复',
  558. icon: 'none'
  559. })
  560. this.staff2.label = '请选择'
  561. return
  562. } else {
  563. // 获取数据
  564. // this.getreception()
  565. // this.getRecordList()
  566. // this.getAwardList()
  567. this.getdata()
  568. }
  569. },
  570. },
  571. }
  572. </script>
  573. <style lang="scss" scoped>
  574. .boxtittab {
  575. position: sticky;
  576. top: var(--window-top);
  577. z-index: 999;
  578. }
  579. .hejisan{
  580. width: 92%;
  581. margin: 0 auto;
  582. display: flex;
  583. padding-bottom:20rpx;
  584. .sanbox1{
  585. flex: 1;
  586. display: flex;
  587. flex-direction: column;
  588. justify-content: center;
  589. align-items: center;
  590. position: relative;
  591. &::after{
  592. position: absolute;
  593. content: '';
  594. width: 1rpx;
  595. height: 86rpx;
  596. background: #E0E0E0;
  597. right: 0;
  598. top: 0;
  599. }
  600. &:last-child::after {
  601. position: absolute;
  602. content: '';
  603. width: 1rpx;
  604. height: 86rpx;
  605. right: 0;
  606. top: 0;
  607. background: #fff;
  608. }
  609. }
  610. .text1-1{
  611. font-size: 24rpx;
  612. font-family: PingFangSC-Regular, PingFang SC;
  613. font-weight: 400;
  614. color: #333333;
  615. line-height: 32rpx;
  616. }
  617. .text1-2{
  618. color: #333333;
  619. font-size: 40rpx;
  620. line-height: 46rpx;
  621. font-family: PingFangSC-Regular, PingFang SC;
  622. margin-bottom: 10rpx;
  623. }
  624. }
  625. // 对比时间切换
  626. .timepick {
  627. width: 100%;
  628. height: 90rpx;
  629. display: flex;
  630. align-items: center;
  631. }
  632. .timepicktime {
  633. width: 260rpx;
  634. height: 50rpx;
  635. margin-left: 30rpx;
  636. display: flex;
  637. align-items: center;
  638. background: #FFFFFF;
  639. }
  640. .timepickpick {
  641. width: 110rpx;
  642. height: 50rpx;
  643. line-height: 50rpx;
  644. margin-left: 30rpx;
  645. display: flex;
  646. align-items: center;
  647. }
  648. .Underimg {
  649. width: 28rpx;
  650. height: 14rpx;
  651. margin-left: 15rpx;
  652. }
  653. </style>