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.
 
 
 
 

1661 lines
48 KiB

  1. <template>
  2. <view class="cented-box">
  3. <view class="Switchingbox">
  4. <view class="Switching1">
  5. <image class="Switching1-img" src="../../static/images/loupan.png" mode=""></image>
  6. </view>
  7. <view class="Switching2 u-line-1">项目:{{buildingname}}</view>
  8. <view class="Switching4" v-if="buildingishow" @click="piskbuilding()">切换项目</view>
  9. </view>
  10. <view class="title" style="margin-top: 30rpx; display: flex; justify-content: space-between;"
  11. v-if="permissions.wdsb">
  12. <view class="gongpai">
  13. 我的工牌:{{imeiCode||'未绑定'}}
  14. </view>
  15. <view class="" style="color: #2671E2; font-weight: normal;">
  16. {{openFlag=='start'?'接待中':''}}
  17. </view>
  18. </view>
  19. <view v-if="permissions.wdsb" style="margin-bottom: 20rpx">
  20. <view class="Workcard" v-if="Whetheroffline">
  21. <view class="Workcard-box">
  22. <view class="Workcardimg">
  23. <view class="Workcardimg1">
  24. <view v-if="percentage>20" class="bar" :style="{width : percentage + '%' }"></view>
  25. <view v-if="percentage<20" class="bar1" :style="{width : percentage + '%' }"></view>
  26. </view>
  27. </view>
  28. <view class="Workcardtext">电量:{{percentage}}%</view>
  29. </view>
  30. <view class="Workcard-box">
  31. <view class="Workcardimg">
  32. <image v-if="signalDevice==''" class="Workcardimg2" src="../../static/images/signal0.png"
  33. mode=""></image>
  34. <image v-else-if="signalDevice<20 && signalDevice>0" class="Workcardimg2"
  35. src="../../static/images/signal1.png" mode=""></image>
  36. <image v-else-if="signalDevice<50 && signalDevice>20" class="Workcardimg2"
  37. src="../../static/images/signal2.png" mode=""></image>
  38. <image v-else-if="signalDevice<70 && signalDevice>50" class="Workcardimg2"
  39. src="../../static/images/signal3.png" mode=""></image>
  40. <image v-else-if="signalDevice<90 && signalDevice>70" class="Workcardimg2"
  41. src="../../static/images/signal4.png" mode=""></image>
  42. <image v-else-if="signalDevice<=100 && signalDevice>90" class="Workcardimg2"
  43. src="../../static/images/signal5.png" mode=""></image>
  44. </view>
  45. <view class="Workcardtext">信号:{{signalDevicetext}}</view>
  46. </view>
  47. <view class="Workcard-box">
  48. <view class="Workcardimg">
  49. <image v-if="audioStatus=='true'" class="Workcardimg3"
  50. src="../../static/images/Thtapedrive1.png" mode=""></image>
  51. <image v-if="audioStatus=='false'" class="Workcardimg3"
  52. src="../../static/images/Thtapedrive2.png" mode=""></image>
  53. </view>
  54. <view v-if="audioStatus=='true'" class="Workcardtext">录音:已开启</view>
  55. <view v-if="audioStatus=='false'" class="Workcardtext">录音:未开启</view>
  56. </view>
  57. </view>
  58. <view class="Workcard" v-if="Whetheroffline==false">
  59. <view class="Workcard-box">
  60. <view class="Workcardimg">
  61. <image class="Workcardimg4" src="../../static/images/offline.png" mode=""></image>
  62. </view>
  63. <view class="Workcardtext">设备离线</view>
  64. </view>
  65. </view>
  66. </view>
  67. <!-- 临期项目提醒 -->
  68. <view class="endworking" v-if="bulidIngObj.daysRemaining <= 60"
  69. :class="{sixty: (bulidIngObj.daysRemaining > 15 && bulidIngObj.daysRemaining <= 60), fifteen: bulidIngObj.daysRemaining <= 15}">
  70. 您的服务于{{ bulidIngObj.endWorking }}到期,为了避免影响您的使用,请与服务商联系
  71. </view>
  72. <template v-if="CHECKAUTHORITY('zxscsy')">
  73. <view class="contbox">
  74. <view class="title">
  75. <image class="title-icon" src="https://static.quhouse.com/bc2ec951ad9a47e5bf58f2829926e143.png"
  76. mode="" />
  77. 转写消费
  78. </view>
  79. <view class="shebenbox">
  80. <view class="shebenche">
  81. <view class="shebenchenum">{{paraphraseObj.rechargeSum || 0}}</view>
  82. <view class="shebenchetext">购买小时</view>
  83. </view>
  84. <view class="shebenche">
  85. <view class="shebenchenum">{{paraphraseObj.presenterSum || 0}}</view>
  86. <view class="shebenchetext">赠送小时</view>
  87. </view>
  88. <view class="shebenche">
  89. <view class="shebenchenum">{{paraphraseObj.useSum || 0}}</view>
  90. <view class="shebenchetext">已用小时</view>
  91. </view>
  92. <view class="shebenche">
  93. <view class="shebenchenum" :style="paraphraseObj.surplusSum < 100 ? 'color: red' : ''">
  94. {{paraphraseObj.surplusSum || 0}}
  95. </view>
  96. <view class="shebenchetext">剩余小时</view>
  97. </view>
  98. </view>
  99. </view>
  100. </template>
  101. <!-- 设备总览 -->
  102. <view class="contbox" v-if="permissions.sbtj">
  103. <view class="title">
  104. <image class="title-icon" src="https://static.quhouse.com/bc2ec951ad9a47e5bf58f2829926e143.png"
  105. mode="" />
  106. 设备总览
  107. </view>
  108. <view class="shebenbox">
  109. <view class="shebenche" @click="tapjumpequipment(0)">
  110. <view class="shebenchenum">{{equipmentobj.totalNum || 0}}</view>
  111. <view class="shebenchetext">设备总数</view>
  112. </view>
  113. <view class="shebenche" @click="tapjumpequipment(1)">
  114. <view class="shebenchenum">{{equipmentobj.onlineNum || 0}}</view>
  115. <view class="shebenchetext">在线</view>
  116. </view>
  117. <view class="shebenche" @click="tapjumpequipment(3)">
  118. <view class="shebenchenum">{{equipmentobj.activeNum || 0}}</view>
  119. <view class="shebenchetext">活跃</view>
  120. </view>
  121. <view class="shebenche" @click="tapjumpequipment(2)">
  122. <view class="shebenchenum" style="color: red;">{{operation.lowPowerNum || 0}}</view>
  123. <view class="shebenchetext">低电工牌</view>
  124. </view>
  125. </view>
  126. </view>
  127. <!-- 今日工作 -->
  128. <view class="contbox" v-if="permissions.sstj">
  129. <view class="title" >
  130. <image class="title-icon" src="https://static.quhouse.com/bc2ec951ad9a47e5bf58f2829926e143.png"
  131. mode="" />今日工作
  132. <view style="width: 33%;"/>
  133. <view class="title1" style="flex: 1;">
  134. <view class="title1-box" @click="taptimeisshow1(0)">
  135. <view style="height: 42rpx;" :class="{ activecltab1: eharTab.active1 == 0 }">全部</view>
  136. </view>
  137. <view class="title1-box" @click="taptimeisshow1(1)">
  138. <view style="height: 42rpx;" :class="{ activecltab1: eharTab.active1 == 1 }">首访</view>
  139. </view>
  140. <view class="title1-box" @click="taptimeisshow1(2)">
  141. <view style="height: 42rpx;" :class="{ activecltab1: eharTab.active1 == 2 }">复访</view>
  142. </view>
  143. </view>
  144. </view>
  145. <view class="real-timebox">
  146. <view class="timebox">
  147. <view class="real" @click="tapjumpreception(checkParams('1'))">
  148. <view class="realnum">{{realtimeobj.receptionCount || 0}}</view>
  149. <view class="realtext">接待量</view>
  150. </view>
  151. <view class="real" @click="tapjumpreception(checkParams('6'))">
  152. <view class="realnum">{{realtimeobj.activeCustomer|| 0}}</view>
  153. <view class="realtext">有效接待</view>
  154. </view>
  155. <view class="real" @click="tapjumpreception(checkParams('4'))">
  156. <view class="realnum">{{realtimeobj.tagCustomer || 0}}</view>
  157. <view class="realtext">未标顾问</view>
  158. </view>
  159. <view class="real" @click="prohibitedtap(1)" v-if="methodsisshow">
  160. <view class="realnum" style="color: red;">
  161. {{realtimeobj.prohibitedCustomer || 0}}
  162. </view>
  163. <view class="realtext">违禁次数</view>
  164. </view>
  165. </view>
  166. <view class="timebox">
  167. <view class="real" @click="tapjumpreception(checkParams('auth'))">
  168. <view class="realnum u-flex" style="justify-content: center">{{realtimeobj.fraction || 0}}<text
  169. style="font-weight: 400;font-family: SimHei;font-size: 30rpx;">%</text>
  170. <!-- <image class="qushi-icon" src="/static/images/excute.png" mode="" /> -->
  171. </view>
  172. <view class="realtext">平均执行率</view>
  173. </view>
  174. <view class="real" @click="tapjumpreception(checkParams('auth'))">
  175. <view class="realnum">{{realtimeobj.avgDuration|| 0}}<text
  176. style="font-size: 30rpx;font-weight: 400;font-family: SimHei">min</text></view>
  177. <view class="realtext">平均接待时长</view>
  178. </view>
  179. <view class="real" @click="tapjumpreception(checkParams('6'))">
  180. <view class="realnum">{{realtimeobj.wordFraction|| 0}}%</view>
  181. <view class="realtext">平均挖掘执行率</view>
  182. </view>
  183. <view class="real" @click="toCustomerManagement('dateType')">
  184. <view class="realnum">{{realtimeobj.sumLevelFraction || 0}}%</view>
  185. <view class="realtext">平均意向度</view>
  186. </view>
  187. </view>
  188. </view>
  189. </view>
  190. <!-- 近30天 -->
  191. <view class="contbox" v-if="permissions.gzlj">
  192. <view class="title">
  193. <image class="title-icon" src="https://static.quhouse.com/bc2ec951ad9a47e5bf58f2829926e143.png"
  194. mode="" />
  195. <view style="width: 50%;" @click="taptimeisshow">
  196. <!-- 概览 -->
  197. {{choiceIndex}}累计<u-icon name="arrow-down" size="24" style="padding-left: 12rpx;"></u-icon>
  198. </view>
  199. <view class="title2" style="flex: 1;">
  200. <view class="title2-box" @click="taptimeisshow2(0)">
  201. <view style="height: 42rpx;" :class="{ activecltab2: eharTab.active2 == 0 }">全部</view>
  202. </view>
  203. <view class="title2-box" @click="taptimeisshow2(1)">
  204. <view style="height: 42rpx;" :class="{ activecltab2: eharTab.active2 == 1 }">首访</view>
  205. </view>
  206. <view class="title2-box" @click="taptimeisshow2(2)">
  207. <view style="height: 42rpx;" :class="{ activecltab2: eharTab.active2 == 2 }">复访</view>
  208. </view>
  209. </view>
  210. </view>
  211. <view class="real-timebox">
  212. <view class="timebox">
  213. <view class="real" @click="tapjumpreception(checkParams('3'))">
  214. <view class="realnum">{{Thisweekobj.receptionCount || 0}}</view>
  215. <view class="realtext">接待量</view>
  216. </view>
  217. <view class="real" @click="tapjumpreception(checkParams('7'))">
  218. <view class="realnum">{{Thisweekobj.activeCustomer|| 0}}</view>
  219. <view class="realtext">有效接待</view>
  220. </view>
  221. <view class="real" @click="tapjumpreception(checkParams('44'))">
  222. <view class="realnum">{{Thisweekobj.tagCustomer || 0}}</view>
  223. <view class="realtext">未标顾问</view>
  224. </view>
  225. <view class="real" @click="prohibitedtap(2)" v-if="methodsisshow">
  226. <view class="realnum" style="color: red;">{{Thisweekobj.prohibitedCustomer || 0}}</view>
  227. <view class="realtext">违禁次数</view>
  228. </view>
  229. </view>
  230. <view class="timebox" style="margin-bottom:0;">
  231. <view class="real" @click="tapjumpreception(checkParams('333'))">
  232. <view class="realnum u-flex" style="justify-content: center">{{Thisweekobj.fraction || 0}}<text
  233. style="font-weight: 400;font-family: SimHei;font-size: 30rpx;">%</text>
  234. </view>
  235. <view class="realtext">平均执行率</view>
  236. </view>
  237. <view class="real" @click="tapjumpreception(checkParams('333'))">
  238. <view class="realnum">{{Thisweekobj.avgDuration || 0}}<text
  239. style="font-size: 30rpx;font-weight: 400;font-family: SimHei">min</text></view>
  240. <view class="realtext">平均接待时长</view>
  241. </view>
  242. <view class="real" @click="tapjumpreception(checkParams('333'))">
  243. <view class="realnum">{{Thisweekobj.wordFraction || 0}}%</view>
  244. <view class="realtext">平均挖掘执行率</view>
  245. </view>
  246. <view class="real" @click="toCustomerManagement()">
  247. <view class="realnum">{{Thisweekobj.sumLevelFraction || 0}}%</view>
  248. <view class="realtext">平均意向度</view>
  249. </view>
  250. </view>
  251. </view>
  252. </view>
  253. <!-- 常用功能 -->
  254. <view class="contbox">
  255. <view class="title" v-if="hospitalityShow">
  256. <image class="title-icon" src="https://static.quhouse.com/bc2ec951ad9a47e5bf58f2829926e143.png"
  257. mode="" />接待管理
  258. </view>
  259. <view class="commonly-box">
  260. <view class="commonly" @click="Piabodata('接待记录')" v-if="permissions.jdjl">
  261. <view class="commonly-img">
  262. <template v-if="$domain == 'zh.aihxz.com'">
  263. <image class="commonly-img1"
  264. src="https://autoiot.oss-cn-beijing.aliyuncs.com/static/bianzu/bianzu1.png" mode="">
  265. </image>
  266. </template>
  267. <template v-else>
  268. <image class="commonly-img1"
  269. src="https://static.quhouse.com/4649b5bd19124afca0f1a809f93bfd73.png" mode=""></image>
  270. </template>
  271. </view>
  272. <view class="commonly-text">接待记录</view>
  273. </view>
  274. <view class="commonly" @click="Piabodata('违禁记录')" v-if="permissions.wjjl">
  275. <view class="commonly-img">
  276. <template v-if="$domain == 'zh.aihxz.com'">
  277. <image class="commonly-img1"
  278. src="https://autoiot.oss-cn-beijing.aliyuncs.com/static/bianzu/bianzu7.png" mode="">
  279. </image>
  280. </template>
  281. <template v-else>
  282. <image class="commonly-img1"
  283. src="https://static.quhouse.com/b1dd1da2a969465bbbf41818320b8487.png" mode=""></image>
  284. </template>
  285. </view>
  286. <view class="commonly-text">违禁记录</view>
  287. </view>
  288. <view class="commonly" @click="toUserinsightinto()" v-if="permissions.tddb">
  289. <view class="commonly-img">
  290. <template v-if="$domain == 'zh.aihxz.com'">
  291. <image class="commonly-img1"
  292. src="https://autoiot.oss-cn-beijing.aliyuncs.com/static/bianzu/bianzu6.png" mode="">
  293. </image>
  294. </template>
  295. <template v-else>
  296. <image class="commonly-img1"
  297. src="https://static.quhouse.com/c2c2e1af3d5f41d180ec55a04a5d4f26.png" mode=""></image>
  298. </template>
  299. </view>
  300. <view class="commonly-text">客户画像</view>
  301. </view>
  302. </view>
  303. <view class="title" v-if="dataAnalysisShow">
  304. <image class="title-icon" src="https://static.quhouse.com/bc2ec951ad9a47e5bf58f2829926e143.png"
  305. mode="" />数据分析
  306. </view>
  307. <view class="commonly-box">
  308. <view class="commonly" @click="Piabodata('销讲分析')" v-if="permissions.xjfx">
  309. <view class="commonly-img">
  310. <template v-if="$domain == 'zh.aihxz.com'">
  311. <image class="commonly-img1"
  312. src="https://autoiot.oss-cn-beijing.aliyuncs.com/static/bianzu/bianzu9.png" mode="">
  313. </image>
  314. </template>
  315. <template v-else>
  316. <image class="commonly-img1"
  317. src="https://static.quhouse.com/1f01dfa38203493b88d9668a506fdff3.png" mode=""></image>
  318. </template>
  319. </view>
  320. <view class="commonly-text">销讲分析</view>
  321. </view>
  322. <view class="commonly" @click="toTrendAnalysis()" v-if="permissions.lpdb">
  323. <view class="commonly-img">
  324. <template v-if="$domain == 'zh.aihxz.com'">
  325. <image class="commonly-img1"
  326. src="https://autoiot.oss-cn-beijing.aliyuncs.com/static/bianzu/bianzu8.png" mode="">
  327. </image>
  328. </template>
  329. <template v-else>
  330. <image class="commonly-img1"
  331. src="https://static.quhouse.com/df070b1a2d5e48359c7de5654e4f7a17.png" mode=""></image>
  332. </template>
  333. </view>
  334. <view class="commonly-text">销讲趋势</view>
  335. </view>
  336. <view class="commonly" @click="Piabodata('顾问排名')" v-if="permissions.gwpm">
  337. <view class="commonly-img">
  338. <template v-if="$domain == 'zh.aihxz.com'">
  339. <image class="commonly-img1"
  340. src="https://autoiot.oss-cn-beijing.aliyuncs.com/static/bianzu/bianzu10.png" mode="">
  341. </image>
  342. </template>
  343. <template v-else>
  344. <image class="commonly-img1"
  345. src="https://static.quhouse.com/f5a6b2d6032348a1b256cfd7083be436.png" mode=""></image>
  346. </template>
  347. </view>
  348. <view class="commonly-text">顾问排名</view>
  349. </view>
  350. <view class="commonly" @click="toStaffAnalysis()" v-if="permissions.xjqs">
  351. <view class="commonly-img">
  352. <template v-if="$domain == 'zh.aihxz.com'">
  353. <image class="commonly-img1"
  354. src="https://autoiot.oss-cn-beijing.aliyuncs.com/static/bianzu/bianzu3.png" mode="">
  355. </image>
  356. </template>
  357. <template v-else>
  358. <image class="commonly-img1"
  359. src="https://static.quhouse.com/c2d3801540cf4880a68cce0e04eb59b0.png" mode=""></image>
  360. </template>
  361. </view>
  362. <view class="commonly-text">员工分析</view>
  363. </view>
  364. <view class="commonly" @click="toRequireAnalysis()" v-if="permissions.xqwjfx">
  365. <view class="commonly-img">
  366. <template v-if="$domain == 'zh.aihxz.com'">
  367. <image class="commonly-img1"
  368. src="https://autoiot.oss-cn-beijing.aliyuncs.com/static/bianzu/bianzu3.png" mode="">
  369. </image>
  370. </template>
  371. <template v-else>
  372. <image class="commonly-img1"
  373. src="https://static.quhouse.com/c2d3801540cf4880a68cce0e04eb59b0.png" mode=""></image>
  374. </template>
  375. </view>
  376. <view class="commonly-text">需求挖掘分析</view>
  377. </view>
  378. <view class="commonly" @click="toDataBoard" v-if="permissions.sjkb_sy">
  379. <view class="commonly-img">
  380. <template v-if="$domain == 'zh.aihxz.com'">
  381. <image class="commonly-img1"
  382. src="https://autoiot.oss-cn-beijing.aliyuncs.com/static/bianzu/bianzu12.png" mode="">
  383. </image>
  384. </template>
  385. <template v-else>
  386. <image class="commonly-img1" src="https://static.quhouse.com/20230523104819.jpg" mode="">
  387. </image>
  388. </template>
  389. </view>
  390. <view class="commonly-text">数据看板</view>
  391. </view>
  392. <view class="commonly" @click="toWoring" v-if="permissions.xmyj_sy">
  393. <view class="commonly-img">
  394. <template v-if="$domain == 'zh.aihxz.com'">
  395. <image class="commonly-img1"
  396. src="https://autoiot.oss-cn-beijing.aliyuncs.com/static/bianzu/bianzu1.png" mode="">
  397. </image>
  398. </template>
  399. <template v-else>
  400. <image class="commonly-img1" src="https://static.quhouse.com/20230523104803.jpg" mode="">
  401. </image>
  402. </template>
  403. </view>
  404. <view class="commonly-text">项目预警</view>
  405. </view>
  406. </view>
  407. <view class="title" v-if="teamManagementShow">
  408. <image class="title-icon" src="https://static.quhouse.com/bc2ec951ad9a47e5bf58f2829926e143.png"
  409. mode="" />团队管理
  410. </view>
  411. <view class="commonly-box">
  412. <view class="commonly" @click="Theteamcompared()" v-if="permissions.gwnl">
  413. <view class="commonly-img">
  414. <template v-if="$domain == 'zh.aihxz.com'">
  415. <image class="commonly-img1"
  416. src="https://autoiot.oss-cn-beijing.aliyuncs.com/static/bianzu/bianzu2.png" mode="">
  417. </image>
  418. </template>
  419. <template v-else>
  420. <image class="commonly-img1"
  421. src="https://static.quhouse.com/4f5a3a61c06a4508a806eb290ef678e6.png" mode="">
  422. </image>
  423. </template>
  424. </view>
  425. <view class="commonly-text">团队对比</view>
  426. </view>
  427. <view class="commonly" @click="Groupcontrast()" v-if="permissions.yhhx">
  428. <view class="commonly-img">
  429. <template v-if="$domain == 'zh.aihxz.com'">
  430. <image class="commonly-img1"
  431. src="https://autoiot.oss-cn-beijing.aliyuncs.com/static/bianzu/bianzu13.png" mode="">
  432. </image>
  433. </template>
  434. <template v-else>
  435. <image class="commonly-img1"
  436. src="https://static.quhouse.com/759c2e3240e54213827196559ce38fa4.png" mode="">
  437. </image>
  438. </template>
  439. </view>
  440. <view class="commonly-text">集团对比</view>
  441. </view>
  442. <view class="commonly" @click="Piabodata('设备管理')" v-if="permissions.sbgl">
  443. <view class="commonly-img">
  444. <template v-if="$domain == 'zh.aihxz.com'">
  445. <image class="commonly-img1"
  446. src="https://autoiot.oss-cn-beijing.aliyuncs.com/static/bianzu/bianzu4.png" mode="">
  447. </image>
  448. </template>
  449. <template v-else>
  450. <image class="commonly-img1"
  451. src="https://static.quhouse.com/e617133ecbbd46498e30719444fc02e8.png" mode="">
  452. </image>
  453. </template>
  454. </view>
  455. <view class="commonly-text">设备管理</view>
  456. </view>
  457. <view class="commonly" @click="Piabodata('值班顾问')" v-if="permissions.zbgw">
  458. <view class="commonly-img">
  459. <template v-if="$domain == 'zh.aihxz.com'">
  460. <image class="commonly-img1"
  461. src="https://autoiot.oss-cn-beijing.aliyuncs.com/static/bianzu/bianzu5.png" mode="">
  462. </image>
  463. </template>
  464. <template v-else>
  465. <image class="commonly-img1"
  466. src="https://static.quhouse.com/196fcbc7f6aa456cb9dff22cd3753445.png" mode="">
  467. </image>
  468. </template>
  469. </view>
  470. <view class="commonly-text">值班顾问</view>
  471. </view>
  472. </view>
  473. </view>
  474. <!-- 项目切换 -->
  475. <view v-if="Showhiddenunits">
  476. <u-select :mask-close-able="false" v-model="Showhiddenunits" mode="single-column" :list="lpanlist"
  477. @cancel="cancel" @confirm="confirm"></u-select>
  478. </view>
  479. <u-calendar v-model="totalTimeShow" mode="range" @change="totalTimeChange"></u-calendar>
  480. <u-popup v-model="timeshow" mode="bottom">
  481. <view class="timeview" :style="{ color: zhixingcenterindex == 2 ? '#2B6EFF' : '#333333' }"
  482. @click="tabtimetap(2,'近7天')">近7天</view>
  483. <view class="timeview" :style="{ color: zhixingcenterindex == 6 ? '#2B6EFF' : '#333333' }"
  484. @click="tabtimetap(6,'近30天')">近30天</view>
  485. <view class="timeview" :style="{ color: zhixingcenterindex == 7 ? '#2B6EFF' : '#333333' }"
  486. @click="tabtimetap(7,'自定义')">自定义</view>
  487. </u-popup>
  488. <!-- 加载组件 -->
  489. <u-loadings v-model="LOADING"></u-loadings>
  490. </view>
  491. </template>
  492. <script>
  493. var config = require("../../config");
  494. export default {
  495. data() {
  496. return {
  497. activeTotal: 4,
  498. eharTab: {
  499. active1: 0,
  500. active2: 0,
  501. active3: 0,
  502. active4: 0,
  503. },
  504. // tabbar配置项
  505. $domain: this.$domain,
  506. //--- end --- tabbar配置项
  507. userInfo: {},
  508. Showhiddenunits: false,
  509. lpanlist: [], //项目列表
  510. buildingname: '', //项目名
  511. buildingID: '', //项目id
  512. buildingishow: false, //是否选择项目
  513. // Myworkcard: false,
  514. percentage: '', //设备电量
  515. Whetheroffline: false, //是否离线
  516. signalDevice: 0, //信号
  517. signalDevicetext: "",
  518. imeiCode: '', //设备号
  519. openFlag: '', //接待是否
  520. choiceIndex: '近7天',
  521. audioStatus: false,
  522. equipmentisshow: false,
  523. timeshow: false,
  524. equipmentobj: {
  525. totalNum: '',
  526. onlineNum: '',
  527. activeNum: '',
  528. lowPowerNum: '',
  529. },
  530. operation: {
  531. receptionCount: '',
  532. accountCount: '',
  533. forbiddenCount: '',
  534. lowPowerNum: ''
  535. },
  536. Menulist: [],
  537. realtimeobj: {
  538. sumCustomer: '',
  539. receivingCustomer: '',
  540. activeCustomer: '',
  541. prohibitedCustomer: '',
  542. tagCustomer: '',
  543. fraction: '',
  544. receptionCount: '',
  545. sumLevelFraction: '',
  546. },
  547. Thisweekobj: {
  548. sumCustomer: '',
  549. receivingCustomer: '',
  550. activeCustomer: '',
  551. prohibitedCustomer: '',
  552. tagCustomer: '',
  553. fraction: '',
  554. receptionCount: ''
  555. },
  556. methodsisshow: false,
  557. zhixingcenterindex: 2,
  558. totalTimeShow: false,
  559. statDateStart: '',
  560. statDateEnd: '',
  561. visitRecord: null,
  562. visitRecord1: null,
  563. permissions: {}, // 权限菜单
  564. paraphraseObj: {}, // 转写消费
  565. };
  566. },
  567. components: {},
  568. computed: {
  569. // 团队管理
  570. teamManagementShow() {
  571. let permissions = this.permissions
  572. return permissions.gwnl || permissions.yhhx || permissions.sbgl || permissions.zbgw
  573. },
  574. // 数据分析
  575. dataAnalysisShow() {
  576. let permissions = this.permissions
  577. return permissions.xjfx || permissions.lpdb || permissions.gwpm || permissions.xjqs || permissions
  578. .sjkb_sy || permissions.xmyj_sy
  579. },
  580. // 接待管理
  581. hospitalityShow() {
  582. let permissions = this.permissions
  583. return permissions.jdjl || permissions.wjjl || permissions.tddb
  584. },
  585. },
  586. onLoad() {
  587. console.log(this.$domain, 'this.$domain')
  588. if (this.$domain == 'zh.aihxz.com') {
  589. uni.setNavigationBarTitle({
  590. title: '云筑数智助手',
  591. })
  592. }
  593. this.LOADING = true
  594. this.sendLog({
  595. houseId: uni.getStorageSync(
  596. 'buildingID').id,
  597. houseName: uni.getStorageSync(
  598. 'buildingID').name
  599. })
  600. },
  601. onPullDownRefresh() {
  602. this.getMenu()
  603. this.userInfo = uni.getStorageSync('weapp_session_userInfo_data');
  604. if (this.userInfo.dataCode == 6 || this.userInfo.dataCode == 3) {
  605. this.methodsisshow = false;
  606. } else {
  607. this.methodsisshow = true;
  608. }
  609. if (this.userInfo.zkProperties.length == 1) {
  610. this.buildingID = uni.getStorageSync('buildingID').id;
  611. this.buildingname = uni.getStorageSync('buildingID').name;
  612. this.buildingishow = false;
  613. } else {
  614. this.buildingishow = true;
  615. this.buildingname = uni.getStorageSync('buildingID').name;
  616. this.buildingID = uni.getStorageSync('buildingID').id;
  617. this.userInfo.zkProperties.forEach(item => {
  618. item.label = item.propertyName;
  619. item.value = item.id
  620. })
  621. this.lpanlist = this.userInfo.zkProperties
  622. }
  623. if (this.userInfo.dataCode == 6) {
  624. // this.Myworkcard = true;
  625. this.equipmentisshow = false;
  626. this.iniodianloang()
  627. } else {
  628. this.equipmentisshow = true;
  629. // this.Myworkcard = false;
  630. this.initequipment()
  631. this.waitForOperation()
  632. }
  633. this.initworkThisWeek()
  634. this.initrealTimeStatistics()
  635. setTimeout(() => {
  636. uni.stopPullDownRefresh()
  637. }, 3000)
  638. },
  639. onShow() {
  640. this.upDateBulidIngObj()
  641. this.getMenu()
  642. this.userInfo = uni.getStorageSync('weapp_session_userInfo_data');
  643. if (this.userInfo.dataCode == 6 || this.userInfo.dataCode == 3) {
  644. this.methodsisshow = false;
  645. } else {
  646. this.methodsisshow = true;
  647. }
  648. if (this.userInfo.zkProperties && this.userInfo.zkProperties.length == 1) {
  649. this.buildingID = uni.getStorageSync('buildingID').id;
  650. this.buildingname = uni.getStorageSync('buildingID').name;
  651. this.buildingishow = false;
  652. uni.setStorageSync('orgCode', this.userInfo.zkProperties[0].orgCode)
  653. } else {
  654. this.buildingishow = true;
  655. this.buildingname = uni.getStorageSync('buildingID').name;
  656. this.buildingID = uni.getStorageSync('buildingID').id;
  657. if (this.userInfo.zkProperties && this.userInfo.zkProperties.length) {
  658. this.userInfo.zkProperties.forEach(item => {
  659. item.label = item.propertyName;
  660. item.value = item.id
  661. })
  662. }
  663. this.lpanlist = this.userInfo.zkProperties
  664. }
  665. if (this.userInfo.dataCode == 6) {
  666. // this.Myworkcard = true;
  667. this.equipmentisshow = false;
  668. this.iniodianloang()
  669. } else {
  670. this.equipmentisshow = true;
  671. // this.Myworkcard = false;
  672. this.initequipment()
  673. this.waitForOperation()
  674. }
  675. this.initworkThisWeek()
  676. this.initrealTimeStatistics()
  677. this.updateInit()
  678. this.findByHouseIdForRecharge()
  679. },
  680. methods: {
  681. // 跳转客户详情
  682. toCustomerManagement(str) {
  683. console.log(str)
  684. console.log(this.zhixingcenterindex)
  685. if (str != 'dateType') {
  686. // dateType == 2 //
  687. if (this.zhixingcenterindex != 7) {
  688. let index = this.zhixingcenterindex == 6 ? 3 : 2
  689. uni.navigateTo({
  690. url: `/pages/center/consumer/index?refresh=refresh&dateType=${index}`
  691. })
  692. } else {
  693. uni.navigateTo({
  694. url: `/pages/center/consumer/index?refresh=refresh&dateType=4&staTime=${this.statDateStart}&endTime=${this.statDateEnd}`
  695. })
  696. }
  697. } else {
  698. console.log('adasdasljdlks', str)
  699. uni.navigateTo({
  700. url: `/pages/center/consumer/index?refresh=refresh&dateType=0`
  701. })
  702. }
  703. },
  704. // 数据看板
  705. toDataBoard() {
  706. uni.navigateTo({
  707. url: '/pages/center/dataBoard/dataBoard'
  708. });
  709. },
  710. toWoring() {
  711. uni.navigateTo({
  712. url: '/pages/center/warningList/warningList'
  713. });
  714. },
  715. // 需求挖掘分析
  716. toRequireAnalysis() {
  717. uni.navigateTo({
  718. url: '/pages/center/Piabodata/requireminingAnalysis'
  719. });
  720. },
  721. updateInit() {
  722. this.$u.get(config.service.notReadNum, {
  723. id: uni.getStorageSync('weapp_session_userInfo_data').accountId,
  724. projectId: uni.getStorageSync('buildingID').id
  725. }).then(res => {
  726. console.log(res)
  727. if (res > 0) {
  728. uni.setTabBarBadge({ //显示数字
  729. index: 4, //tabbar下标
  730. text: `${res}` //数字
  731. })
  732. } else {
  733. uni.removeTabBarBadge({
  734. index: 4
  735. })
  736. }
  737. }).catch(e => {
  738. uni.removeTabBarBadge({
  739. index: 4
  740. })
  741. })
  742. },
  743. indexStatus(i) {
  744. if (this.permissions.sbgl == true) {
  745. if (i == 0) {
  746. uni.switchTab({
  747. url: "/pages/index/customer"
  748. })
  749. } else if (i == 1) {
  750. uni.navigateTo({
  751. url: '/pages/center/records/index?refresh=refresh&markAdvisor=0'
  752. });
  753. } else if (i == 3) {
  754. uni.navigateTo({
  755. url: '/pages/center/prohibited/index?refresh=refresh'
  756. });
  757. }
  758. }
  759. },
  760. //时间选择
  761. tabtimetap(index, str) {
  762. this.timeshow = false;
  763. if (index == 7) {
  764. this.totalTimeShow = true;
  765. } else {
  766. console.log(str)
  767. this.choiceIndex = str
  768. this.zhixingcenterindex = index;
  769. this.initworkThisWeek()
  770. }
  771. },
  772. taptimeisshow() {
  773. this.timeshow = true;
  774. },
  775. taptimeisshow1(idx) {
  776. this.eharTab.active1 = idx
  777. if(idx == 0){
  778. this.visitRecord = null
  779. }else{
  780. this.visitRecord = idx
  781. }
  782. this.initrealTimeStatistics()
  783. },
  784. taptimeisshow2(idx) {
  785. this.eharTab.active2 = idx
  786. if(idx == 0){
  787. this.visitRecord1 = null
  788. }else{
  789. this.visitRecord1 = idx
  790. }
  791. this.initworkThisWeek()
  792. },
  793. //获取权限
  794. getMenu() {
  795. uni.request({
  796. url: config.service.getMenu,
  797. method: "POST",
  798. header: {
  799. 'content-type': 'application/json',
  800. 'Authorization': 'Bearer ' + uni.getStorageSync('weapp_session_login_data').token
  801. },
  802. success: (data) => {
  803. console.log(data, 'dsadjsakljlkj123kl12321')
  804. let rescor = data.data;
  805. if (rescor.code == 0) {
  806. uni.setStorageSync("weapp_session_Menu_data", rescor.data)
  807. console.log(rescor.data, '这里')
  808. this.permissions = rescor.data;
  809. console.log(this.permissions, '这里per')
  810. }
  811. }
  812. })
  813. },
  814. //自定义时间
  815. totalTimeChange(e) {
  816. this.statDateStart = e.startDate;
  817. this.statDateEnd = e.endDate;
  818. this.choiceIndex = `${e.startDate.replace(/\-/g, '.')}-${e.endDate.replace(/\-/g, '.')}`
  819. this.zhixingcenterindex = 7;
  820. this.initworkThisWeek()
  821. },
  822. tabtimeclick(i) {
  823. if (i == 7) {
  824. this.totalTimeShow = true;
  825. } else {
  826. this.zhixingcenterindex = i;
  827. this.initworkThisWeek()
  828. }
  829. },
  830. initworkThisWeek() {
  831. uni.request({
  832. url: config.service.workThisWeek,
  833. method: "POST",
  834. header: {
  835. 'content-type': 'application/json',
  836. 'Authorization': 'Bearer ' + uni.getStorageSync('weapp_session_login_data').token
  837. },
  838. data: {
  839. houseId: this.buildingID,
  840. dateType: this.zhixingcenterindex == 7 ? null : this.zhixingcenterindex,
  841. statDateStart: this.statDateStart,
  842. statDateEnd: this.statDateEnd,
  843. visitRecord: this.visitRecord1
  844. },
  845. success: (data) => {
  846. if (data.data.data == null) {
  847. return
  848. } else {
  849. this.Thisweekobj = data.data.data
  850. }
  851. }
  852. })
  853. },
  854. //实时统计
  855. initrealTimeStatistics() {
  856. uni.request({
  857. url: config.service.realTimeStatistics,
  858. method: "POST",
  859. header: {
  860. 'content-type': 'application/json',
  861. 'Authorization': 'Bearer ' + uni.getStorageSync('weapp_session_login_data').token
  862. },
  863. data: {
  864. houseId: this.buildingID,
  865. visitRecord: this.visitRecord
  866. },
  867. success: (data) => {
  868. this.LOADING = false
  869. if (data.data.data == null) {
  870. return
  871. } else {
  872. this.realtimeobj = data.data.data
  873. if (data.data.data.receivingCustomer > 0) {
  874. uni.setTabBarBadge({
  875. index: 0,
  876. text: `${data.data.data.receivingCustomer}`
  877. })
  878. } else {
  879. uni.removeTabBarBadge({
  880. index: 0,
  881. })
  882. }
  883. }
  884. },
  885. fail: () => {
  886. this.LOADING = false
  887. }
  888. })
  889. },
  890. // 转写充值剩余
  891. findByHouseIdForRecharge() {
  892. this.$u.get(`/cusLvStatistics/findByHouseIdForRecharge?houseId=${this.buildingID}`).then(res => {
  893. console.log(res)
  894. if (res) {
  895. this.paraphraseObj = res.list
  896. }
  897. })
  898. },
  899. //设备
  900. initequipment() {
  901. uni.request({
  902. url: config.service.findEquipmentState,
  903. method: "POST",
  904. header: {
  905. 'content-type': 'application/json',
  906. 'Authorization': 'Bearer ' + uni.getStorageSync('weapp_session_login_data').token
  907. },
  908. data: {
  909. propertyId: this.buildingID
  910. },
  911. success: (data) => {
  912. if (data.data.data == null) {
  913. return
  914. } else {
  915. this.equipmentobj = {
  916. totalNum: data.data.data.totalNum,
  917. onlineNum: data.data.data.onlineNum,
  918. activeNum: data.data.data.activeNum,
  919. lowPowerNum: data.data.data.lowPowerNum,
  920. }
  921. }
  922. }
  923. })
  924. },
  925. // 待处理
  926. waitForOperation() {
  927. this.$u.post('/cusLvStatistics/waitForOperation ', {
  928. houseId: this.buildingID
  929. })
  930. .then(res => {
  931. // console.log(res,'带接待')
  932. this.operation.receptionCount = res.receptionCount
  933. this.operation.accountCount = res.accountCount
  934. this.operation.forbiddenCount = res.forbiddenCount
  935. this.operation.lowPowerNum = res.lowPowerNum
  936. })
  937. },
  938. //我的工牌
  939. iniodianloang() {
  940. uni.request({
  941. url: config.service.findElectricity,
  942. method: "POST",
  943. header: {
  944. 'content-type': 'application/json',
  945. 'Authorization': 'Bearer ' + uni.getStorageSync('weapp_session_login_data').token
  946. },
  947. data: {
  948. propertyId: this.buildingID,
  949. accPhone: this.userInfo.username
  950. },
  951. success: (data) => {
  952. if (data.data.data == null) {
  953. return
  954. } else {
  955. this.imeiCode = data.data.data.imei
  956. this.openFlag = data.data.data.recCmd
  957. if (data.data.data > 100) {
  958. this.percentage = 100;
  959. } else {
  960. if (data.data.data.onLine == 0) {
  961. this.Whetheroffline = false;
  962. } else {
  963. this.Whetheroffline = true;
  964. this.percentage = data.data.data.electricity;
  965. this.signalDevice = data.data.data.signalDevice / 1;
  966. console.log(this.signalDevice)
  967. this.audioStatus = data.data.data.simAudioStatus;
  968. if (this.signalDevice > 80) {
  969. this.signalDevicetext = '高';
  970. } else {
  971. if (this.signalDevice == 0) {
  972. this.signalDevicetext = '无';
  973. } else {
  974. this.signalDevicetext = '低';
  975. }
  976. }
  977. }
  978. }
  979. }
  980. }
  981. })
  982. },
  983. //选择项目弹框
  984. piskbuilding() {
  985. // this.Showhiddenunits = true;
  986. uni.navigateTo({
  987. url: "../mine/selectBuilding"
  988. })
  989. },
  990. // 项目选择确认
  991. confirm(e) {
  992. this.buildingname = e[0].label;
  993. this.buildingID = e[0].value;
  994. let lopan = {
  995. id: e[0].value,
  996. name: e[0].label
  997. }
  998. uni.setStorageSync("buildingID", lopan); //项目id写入缓存
  999. uni.setStorageSync("orgCode", e[0].orgCode); //项目id写入缓存
  1000. this.initworkThisWeek()
  1001. this.initrealTimeStatistics()
  1002. this.waitForOperation()
  1003. this.initequipment()
  1004. this.iniodianloang()
  1005. },
  1006. // 项目选择取消
  1007. cancel() {
  1008. this.Showhiddenunits = false;
  1009. },
  1010. tapjumpequipment(i) {
  1011. if (this.permissions.sbgl == true) {
  1012. uni.navigateTo({
  1013. url: '/pages/mine/equipment/index?active=' + i
  1014. });
  1015. }
  1016. },
  1017. prohibitedtap(i) {
  1018. if (i == 1) {
  1019. uni.navigateTo({
  1020. url: '/pages/center/prohibited/index?refresh=refresh&activeTotal=0' + '&violatedStatus=1'
  1021. });
  1022. } else {
  1023. if (this.zhixingcenterindex == 2) {
  1024. uni.navigateTo({
  1025. url: '/pages/center/prohibited/index?refresh=refresh&activeTotal=2' +
  1026. '&violatedStatus=1'
  1027. });
  1028. } else if (this.zhixingcenterindex == 6) { //近30天
  1029. uni.navigateTo({
  1030. url: '/pages/center/prohibited/index?refresh=refresh&activeTotal=3' +
  1031. '&violatedStatus=1'
  1032. });
  1033. } else { // 自定义时间段
  1034. uni.navigateTo({
  1035. url: '/pages/center/prohibited/index?refresh=refresh&activeTotal=4&staTime=' + this
  1036. .statDateStart + '&endtime=' + this.statDateEnd + '&violatedStatus=1'
  1037. });
  1038. }
  1039. }
  1040. },
  1041. // 跳转参数
  1042. checkParams(i) {
  1043. let str = ''
  1044. switch (i) {
  1045. case '1':
  1046. str = '&activeTotal=0'+'&visitRecords='+this.visitRecord;
  1047. break;
  1048. case 'auth':
  1049. str = '&activeTotal=0&validInvalid=0'+'&visitRecords='+this.visitRecord;
  1050. break;
  1051. case '3':
  1052. // 筛选时间类型后传的参数
  1053. if (this.zhixingcenterindex == 2) {
  1054. str = '&activeTotal=2'+'&visitRecords='+this.visitRecord1
  1055. } else if (this.zhixingcenterindex == 6) {
  1056. str = '&activeTotal=3'+'&visitRecords='+this.visitRecord1
  1057. } else {
  1058. str = `&activeTotal=4&staTime=${this.statDateStart}&endtime=${this.statDateEnd}`+'&visitRecords='+this.visitRecord1
  1059. }
  1060. break;
  1061. case '333':
  1062. case '7':
  1063. if (this.zhixingcenterindex == 2) {
  1064. str = '&activeTotal=2&validInvalid=0'+'&visitRecords='+this.visitRecord1
  1065. } else if (this.zhixingcenterindex == 6) {
  1066. str = '&activeTotal=3&validInvalid=0'+'&visitRecords='+this.visitRecord1
  1067. } else {
  1068. str = `&activeTotal=4&staTime=${this.statDateStart}&endtime=${this.statDateEnd}&validInvalid=0`
  1069. }
  1070. break;
  1071. case '6':
  1072. str = '&activeTotal=0&validInvalid=0'+'&visitRecords='+this.visitRecord;
  1073. break;
  1074. case '4':
  1075. str = '&activeTotal=0&markAdvisor=0&validInvalid=0'+'&visitRecords='+this.visitRecord;
  1076. break;
  1077. case '44':
  1078. if (this.zhixingcenterindex == 2) {
  1079. str = '&activeTotal=2&validInvalid=0&markAdvisor=0'+'&visitRecords='+this.visitRecord1
  1080. } else if (this.zhixingcenterindex == 6) {
  1081. str = '&activeTotal=3&validInvalid=0&markAdvisor=0'+'&visitRecords='+this.visitRecord1
  1082. } else {
  1083. str =
  1084. `&activeTotal=4&staTime=${this.statDateStart}&endtime=${this.statDateEnd}&validInvalid=0&markAdvisor=0`+'&visitRecords='+this.visitRecord1
  1085. }
  1086. break;
  1087. default:
  1088. str = '&activeTotal=0&markAdvisor=0'
  1089. break;
  1090. }
  1091. // str=str+'&visitRecords='+this.visitRecord
  1092. return str
  1093. },
  1094. // 跳转
  1095. tapjumpreception(params) {
  1096. // 校验是否有权限
  1097. if (this.permissions.jdjl) {
  1098. uni.navigateTo({
  1099. url: `/pages/center/records/index?refresh=refresh${params}`
  1100. });
  1101. }
  1102. },
  1103. // tapjumpreception(i) {
  1104. // if (this.permissions.jdjl == true) {
  1105. // if (i == 1) {
  1106. // uni.navigateTo({
  1107. // url: '/pages/center/records/index?refresh=refresh&activeTotal=0&validInvalid=0'
  1108. // });
  1109. // } else if (i == 11) {
  1110. // uni.navigateTo({
  1111. // url: '/pages/center/records/index?refresh=refresh&activeTotal=0'
  1112. // });
  1113. // } else if (i == 2) {
  1114. // uni.switchTab({
  1115. // url: '/pages/index/customer'
  1116. // });
  1117. // } else if (i == 3) {
  1118. // if (this.zhixingcenterindex == 2) { // 近7天
  1119. // uni.navigateTo({
  1120. // url: '/pages/center/records/index?refresh=refresh&activeTotal=2&validInvalid=0'
  1121. // });
  1122. // } else if (this.zhixingcenterindex == 6) { //近30天
  1123. // uni.navigateTo({
  1124. // url: '/pages/center/records/index?refresh=refresh&activeTotal=3&validInvalid=0'
  1125. // });
  1126. // } else { // 自定义时间段
  1127. // uni.navigateTo({
  1128. // url: '/pages/center/records/index?refresh=refresh&activeTotal=4&validInvalid=0&staTime=' +
  1129. // this.statDateStart + '&endtime=' + this.statDateEnd
  1130. // });
  1131. // }
  1132. // } else if (i == 33) {
  1133. // if (this.zhixingcenterindex == 2) { // 近7天
  1134. // uni.navigateTo({
  1135. // url: '/pages/center/records/index?refresh=refresh&activeTotal=2'
  1136. // });
  1137. // } else if (this.zhixingcenterindex == 6) { //近30天
  1138. // uni.navigateTo({
  1139. // url: '/pages/center/records/index?refresh=refresh&activeTotal=3'
  1140. // });
  1141. // } else { // 自定义时间段
  1142. // uni.navigateTo({
  1143. // url: '/pages/center/records/index?refresh=refresh&activeTotal=4&staTime=' + this
  1144. // .statDateStart + '&endtime=' + this.statDateEnd
  1145. // });
  1146. // }
  1147. // } else if (i == 6) {
  1148. // uni.navigateTo({
  1149. // url: '/pages/center/records/index?refresh=refresh&activeTotal=0&validInvalid=0'
  1150. // });
  1151. // } else if (i == 7) {
  1152. // if (this.zhixingcenterindex == 2) {
  1153. // uni.navigateTo({
  1154. // url: '/pages/center/records/index?refresh=refresh&activeTotal=2&validInvalid=0'
  1155. // });
  1156. // } else if (this.zhixingcenterindex == 6) {
  1157. // uni.navigateTo({
  1158. // url: '/pages/center/records/index?refresh=refresh&activeTotal=3&validInvalid=0'
  1159. // });
  1160. // } else {
  1161. // uni.navigateTo({
  1162. // url: '/pages/center/records/index?refresh=refresh&activeTotal=4&validInvalid=0&staTime=' +
  1163. // this.statDateStart + '&endtime=' + this.statDateEnd
  1164. // });
  1165. // }
  1166. // } else {
  1167. // uni.navigateTo({
  1168. // url: '/pages/center/records/index?refresh=refresh&activeTotal=0&markAdvisor=0&validInvalid=0'
  1169. // });
  1170. // }
  1171. // }
  1172. // },
  1173. //集团对比
  1174. Groupcontrast() {
  1175. uni.navigateTo({
  1176. url: '/pages/center/Piabodata/Groupcontrast'
  1177. });
  1178. },
  1179. //团队对比
  1180. Theteamcompared() {
  1181. // if (this.teamList.length == 0) {
  1182. // uni.showToast({
  1183. // title: '没有团队呢',
  1184. // icon: 'none'
  1185. // })
  1186. // return
  1187. // }
  1188. uni.navigateTo({
  1189. url: '/pages/center/Piabodata/Theteamcompared'
  1190. });
  1191. },
  1192. //用户洞察
  1193. toUserinsightinto() {
  1194. uni.navigateTo({
  1195. url: '/pages/center/Piabodata/Userinsightinto'
  1196. });
  1197. },
  1198. //趋势分析
  1199. toTrendAnalysis() {
  1200. uni.navigateTo({
  1201. url: '/pages/center/Piabodata/TrendAnalysis'
  1202. });
  1203. },
  1204. //员工分析
  1205. toStaffAnalysis() {
  1206. // if (this.staffList.length == 0) {
  1207. // uni.showToast({
  1208. // title: '没有团队呢',
  1209. // icon: 'none'
  1210. // })
  1211. // return
  1212. // }
  1213. uni.navigateTo({
  1214. url: '/pages/center/Piabodata/StaffAnalysis'
  1215. });
  1216. },
  1217. Piabodata(item) {
  1218. if (item == '销讲分析') {
  1219. uni.navigateTo({
  1220. url: '/pages/center/Piabodata/index'
  1221. });
  1222. } else if (item == '接待记录') {
  1223. uni.navigateTo({
  1224. url: '/pages/center/records/index?refresh=refresh'
  1225. });
  1226. } else if (item == '值班顾问') {
  1227. uni.navigateTo({
  1228. url: '/pages/mine/consultanonduty/index'
  1229. });
  1230. } else if (item == '设备管理') {
  1231. uni.navigateTo({
  1232. url: '/pages/mine/equipment/index'
  1233. });
  1234. } else if (item == '顾问排名') {
  1235. uni.navigateTo({
  1236. url: '/pages/center/Piabodata/Employeesstatistics'
  1237. });
  1238. } else if (item == '违禁记录') {
  1239. uni.navigateTo({
  1240. url: '/pages/center/prohibited/first?refresh=refresh'
  1241. // pages/center/prohibited/index
  1242. });
  1243. } else if (item == '日报') {
  1244. uni.navigateTo({
  1245. url: '/pages/mine/daily/dailyList?refresh=refresh'
  1246. });
  1247. } else {
  1248. uni.navigateTo({
  1249. url: '/pages/center/consumer/index?refresh=refresh'
  1250. });
  1251. }
  1252. },
  1253. },
  1254. };
  1255. </script>
  1256. <style lang="scss" scoped>
  1257. .activecllasscet {
  1258. font-size: 28rpx;
  1259. font-weight: 400;
  1260. color: #008ef2;
  1261. }
  1262. .cet {
  1263. font-size: 28rpx;
  1264. font-weight: 400;
  1265. color: #333333;
  1266. .cetview {
  1267. margin-left: 20rpx;
  1268. }
  1269. }
  1270. .cented-box {
  1271. padding: 30rpx;
  1272. background: #F8F8F8;
  1273. width: 100%;
  1274. height: 100%;
  1275. }
  1276. .Switchingbox {
  1277. width: 100%;
  1278. height: 44rpx;
  1279. margin-bottom: 30rpx;
  1280. display: flex;
  1281. align-items: center;
  1282. .Switching1 {
  1283. width: 44rpx;
  1284. height: 44rpx;
  1285. .Switching1-img {
  1286. width: 44rpx;
  1287. height: 44rpx;
  1288. }
  1289. }
  1290. .Switching2 {
  1291. margin: 0 12rpx;
  1292. flex: 1;
  1293. height: 44rpx;
  1294. font-size: 32rpx;
  1295. font-family: PingFangSC-Medium, PingFang SC;
  1296. font-weight: 500;
  1297. color: #303030;
  1298. line-height: 44rpx;
  1299. }
  1300. .Switching4 {
  1301. width: 112rpx;
  1302. font-size: 28rpx;
  1303. color: #303030;
  1304. font-weight: 400;
  1305. text-align: right;
  1306. text-decoration: underline;
  1307. font-family: PingFangSC-Regular, PingFang SC;
  1308. }
  1309. }
  1310. .gongpai {
  1311. margin-bottom: 20rpx;
  1312. }
  1313. .Workcard {
  1314. width: 100%;
  1315. background: #FFFFFF;
  1316. height: 154rpx;
  1317. box-shadow: 0px 0px 12rpx 0px rgba(224, 224, 224, 0.3);
  1318. border-radius: 12rpx;
  1319. display: flex;
  1320. .Workcard-box {
  1321. flex: 1;
  1322. height: 100%;
  1323. .Workcardimg {
  1324. width: 100%;
  1325. display: flex;
  1326. justify-content: center;
  1327. margin-top: 42rpx;
  1328. .Workcardimg1 {
  1329. width: 64rpx;
  1330. height: 36rpx;
  1331. background-image: url(../../static/images/battery.png);
  1332. background-size: 100% 100%;
  1333. padding: 8rpx;
  1334. transform: rotate(-90deg);
  1335. .bar {
  1336. background-color: #43CD80;
  1337. height: 100%;
  1338. border-radius: 4rpx;
  1339. }
  1340. .bar1 {
  1341. background-color: red;
  1342. height: 100%;
  1343. border-radius: 4rpx;
  1344. }
  1345. }
  1346. .Workcardimg2 {
  1347. width: 56rpx;
  1348. height: 36rpx;
  1349. }
  1350. .Workcardimg3 {
  1351. width: 34rpx;
  1352. height: 36rpx;
  1353. }
  1354. .Workcardimg4 {
  1355. width: 50rpx;
  1356. height: 40rpx;
  1357. }
  1358. }
  1359. .Workcardtext {
  1360. width: 100%;
  1361. text-align: center;
  1362. font-size: 24rpx;
  1363. font-weight: 400;
  1364. color: #666666;
  1365. margin-top: 20rpx;
  1366. }
  1367. }
  1368. }
  1369. .contbox {
  1370. width: 690rpx;
  1371. background: #FFFFFF;
  1372. border-radius: 12rpx;
  1373. padding: 24rpx 0 30rpx;
  1374. margin-bottom: 20rpx;
  1375. .title {
  1376. height: 42rpx;
  1377. font-size: 30rpx;
  1378. font-family: PingFangSC-Semibold, PingFang SC;
  1379. font-weight: 600;
  1380. color: #333333;
  1381. line-height: 42rpx;
  1382. margin-bottom: 24rpx;
  1383. display: flex;
  1384. align-items: center;
  1385. .title-icon {
  1386. width: 12rpx;
  1387. height: 20rpx;
  1388. margin-right: 18rpx;
  1389. }
  1390. .title1 {
  1391. flex: 3;
  1392. height: 90rpx;
  1393. display: flex;
  1394. align-items: center;
  1395. justify-content: flex-end;
  1396. padding-right: 30rpx;
  1397. .title1-box {
  1398. display: flex;
  1399. align-items: center;
  1400. width: 25%;
  1401. justify-content: center;
  1402. .activecltab1 {
  1403. color: #2671E2;
  1404. border-bottom: 4rpx solid #2671E2;
  1405. }
  1406. }
  1407. }
  1408. .title2 {
  1409. flex: 3;
  1410. height: 90rpx;
  1411. display: flex;
  1412. align-items: center;
  1413. justify-content: flex-end;
  1414. padding-right: 30rpx;
  1415. .title2-box {
  1416. display: flex;
  1417. align-items: center;
  1418. width: 25%;
  1419. justify-content: center;
  1420. .activecltab2 {
  1421. color: #2671E2;
  1422. border-bottom: 4rpx solid #2671E2;
  1423. }
  1424. }
  1425. }
  1426. }
  1427. .timeshow {
  1428. height: 40rpx;
  1429. font-size: 28rpx;
  1430. font-family: PingFangSC-Regular, PingFang SC;
  1431. font-weight: 400;
  1432. color: #666666;
  1433. line-height: 40rpx;
  1434. margin: -18rpx 0 24rpx 35rpx;
  1435. }
  1436. }
  1437. .shebenbox {
  1438. width: 100%;
  1439. display: flex;
  1440. .shebenche {
  1441. width: 25%;
  1442. height: 100%;
  1443. .shebenchenum {
  1444. width: 100%;
  1445. text-align: center;
  1446. height: 50rpx;
  1447. font-size: 36rpx;
  1448. font-family: SourceHanSansCN-Medium, SourceHanSansCN;
  1449. font-weight: bold;
  1450. color: #333333;
  1451. line-height: 50rpx;
  1452. }
  1453. .shebenchetext {
  1454. width: 100%;
  1455. color: #666666;
  1456. text-align: center;
  1457. margin-top: 8rpx;
  1458. height: 32rpx;
  1459. font-size: 24rpx;
  1460. font-family: PingFangSC-Regular, PingFang SC;
  1461. font-weight: 400;
  1462. line-height: 32rpx;
  1463. }
  1464. }
  1465. }
  1466. //今日工作
  1467. .real-timebox {
  1468. width: 100%;
  1469. .timebox {
  1470. width: 100%;
  1471. display: flex;
  1472. margin-bottom: 20rpx;
  1473. .real {
  1474. flex: 1;
  1475. height: 100%;
  1476. .realnum {
  1477. width: 100%;
  1478. text-align: center;
  1479. height: 50rpx;
  1480. font-size: 36rpx;
  1481. font-family: SourceHanSansCN-Medium, SourceHanSansCN;
  1482. font-weight: bold;
  1483. color: #333333;
  1484. line-height: 50rpx;
  1485. .qushi-icon {
  1486. width: 28rpx;
  1487. height: 14rpx;
  1488. margin-left: 2rpx;
  1489. }
  1490. }
  1491. .realtext {
  1492. width: 100%;
  1493. text-align: center;
  1494. margin-top: 8rpx;
  1495. height: 32rpx;
  1496. font-size: 24rpx;
  1497. font-family: PingFangSC-Regular, PingFang SC;
  1498. font-weight: 400;
  1499. color: #666666;
  1500. line-height: 32rpx;
  1501. }
  1502. }
  1503. }
  1504. }
  1505. .commonly-box {
  1506. width: 100%;
  1507. display: flex;
  1508. flex-wrap: wrap;
  1509. .commonly {
  1510. width: 25%;
  1511. margin-bottom: 28rpx;
  1512. .commonly-img {
  1513. width: 100%;
  1514. height: 80rpx;
  1515. text-align: center;
  1516. .commonly-img1 {
  1517. width: 80rpx;
  1518. height: 80rpx;
  1519. }
  1520. }
  1521. .commonly-text {
  1522. width: 100%;
  1523. text-align: center;
  1524. margin-top: 12rpx;
  1525. height: 32rpx;
  1526. font-size: 24rpx;
  1527. font-family: PingFangSC-Regular, PingFang SC;
  1528. font-weight: 400;
  1529. color: #333333;
  1530. line-height: 32rpx;
  1531. }
  1532. }
  1533. }
  1534. .timeview {
  1535. height: 90rpx;
  1536. line-height: 90rpx;
  1537. width: 100%;
  1538. text-align: center;
  1539. border-bottom: 1rpx solid #f8f8f8;
  1540. }
  1541. .endworking {
  1542. margin-top: 20rpx;
  1543. padding: 15rpx 30rpx;
  1544. width: 100%;
  1545. }
  1546. .sixty {
  1547. background-color: #FDFCDA;
  1548. }
  1549. .fifteen {
  1550. background-color: #F9C8C8;
  1551. color: #ff0000;
  1552. }
  1553. </style>