Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
 
 
 

1194 строки
32 KiB

  1. <template>
  2. <view class="cented-box">
  3. <view class="Switchingbox">
  4. <view class="Switching1">
  5. <image class="Switching1-img" src="../../static/images/building.png" mode=""></image>
  6. </view>
  7. <view class="Switching2">{{ isPuqiang ? '项目' : '客户' }}:</view>
  8. <view class="Switching3">{{buildingname}}</view>
  9. <view class="Switching4" v-if="buildingishow" @click="piskbuilding()">切换项目</view>
  10. </view>
  11. <view class="title" style="margin-top: 30rpx;" v-if="Myworkcard">我的工牌</view>
  12. <view v-if="Myworkcard">
  13. <view class="Workcard" v-if="Whetheroffline==true">
  14. <view class="Workcard-box">
  15. <view class="Workcardimg">
  16. <view class="Workcardimg1">
  17. <view v-if="percentage>20" class="bar" :style="{width : percentage + '%' }"></view>
  18. <view v-if="percentage<20" class="bar1" :style="{width : percentage + '%' }"></view>
  19. </view>
  20. </view>
  21. <view class="Workcardtext">电量:{{percentage}}%</view>
  22. </view>
  23. <view class="Workcard-box">
  24. <view class="Workcardimg">
  25. <image v-if="signalDevice==''" class="Workcardimg2" src="../../static/images/signal0.png"
  26. mode=""></image>
  27. <image v-else-if="signalDevice<20 && signalDevice>0" class="Workcardimg2"
  28. src="../../static/images/signal1.png" mode=""></image>
  29. <image v-else-if="signalDevice<50 && signalDevice>20" class="Workcardimg2"
  30. src="../../static/images/signal2.png" mode=""></image>
  31. <image v-else-if="signalDevice<70 && signalDevice>50" class="Workcardimg2"
  32. src="../../static/images/signal3.png" mode=""></image>
  33. <image v-else-if="signalDevice<90 && signalDevice>70" class="Workcardimg2"
  34. src="../../static/images/signal4.png" mode=""></image>
  35. <image v-else-if="signalDevice<=100 && signalDevice>90" class="Workcardimg2"
  36. src="../../static/images/signal5.png" mode=""></image>
  37. </view>
  38. <view class="Workcardtext">信号:{{signalDevicetext}}</view>
  39. </view>
  40. <view class="Workcard-box">
  41. <view class="Workcardimg">
  42. <image v-if="audioStatus=='true'" class="Workcardimg3"
  43. src="../../static/images/Thtapedrive1.png" mode=""></image>
  44. <image v-if="audioStatus=='false'" class="Workcardimg3"
  45. src="../../static/images/Thtapedrive2.png" mode=""></image>
  46. </view>
  47. <view v-if="audioStatus=='true'" class="Workcardtext">录音:已开启</view>
  48. <view v-if="audioStatus=='false'" class="Workcardtext">录音:未开启</view>
  49. </view>
  50. </view>
  51. <view class="Workcard" v-if="Whetheroffline==false">
  52. <view class="Workcard-box">
  53. <view class="Workcardimg">
  54. <image class="Workcardimg4" src="../../static/images/offline.png" mode=""></image>
  55. </view>
  56. <view class="Workcardtext">设备离线</view>
  57. </view>
  58. </view>
  59. </view>
  60. <view class="title" v-if="equipmentisshow">设备</view>
  61. <view class="shebenbox" v-if="equipmentisshow">
  62. <view class="shebenche" @click="tapjumpequipment(0)">
  63. <view class="shebenchenum">{{equipmentobj.totalNum || 0}}</view>
  64. <view class="shebenchetext">设备总数</view>
  65. </view>
  66. <view class="shebenche" @click="tapjumpequipment(1)">
  67. <view class="shebenchenum">{{equipmentobj.onlineNum || 0}}</view>
  68. <view class="shebenchetext">在线</view>
  69. </view>
  70. <view class="shebenche" @click="tapjumpequipment(3)">
  71. <view class="shebenchenum">{{equipmentobj.activeNum || 0}}</view>
  72. <view class="shebenchetext">活跃</view>
  73. </view>
  74. <view class="shebenche" @click="tapjumpequipment(2)">
  75. <view class="shebenchenum" style="color: red;">{{equipmentobj.lowPowerNum || 0}}</view>
  76. <view class="shebenchetext">急需充电</view>
  77. </view>
  78. </view>
  79. <view class="title">实时统计</view>
  80. <!-- <view class="real-timebox">
  81. <view class="timebox">
  82. </view>
  83. <view class="timebox">
  84. </view>
  85. </view> -->
  86. <view class="real-timebox">
  87. <view class="timebox">
  88. <view class="real" @click="tapjumpreception('1')">
  89. <view class="realnum">{{realtimeobj.receptionCount || 0}}</view>
  90. <view class="realtext">接待量</view>
  91. </view>
  92. <view class="real" @click="tapjumpreception('6')">
  93. <view class="realnum">{{realtimeobj.activeCustomer|| 0}}</view>
  94. <view class="realtext">有效接待</view>
  95. </view>
  96. <view class="real" @click="tapjumpreception('2')">
  97. <view class="realnum">{{realtimeobj.receivingCustomer || 0}}</view>
  98. <view class="realtext">正在接待</view>
  99. </view>
  100. <view class="real" @click="tapjumpreception('4')">
  101. <view class="realnum">{{realtimeobj.tagCustomer || 0}}</view>
  102. <view class="realtext">未标顾问</view>
  103. </view>
  104. </view>
  105. <view class="timebox">
  106. <view class="real" @click="tapjumpreception('auth')">
  107. <view class="realnum">{{realtimeobj.avgDuration|| 0}}</view>
  108. <view class="realtext">平均接待时长</view>
  109. </view>
  110. <view class="real" @click="tapjumpreception('auth')">
  111. <view class="realnum">{{realtimeobj.fraction || 0}}%</view>
  112. <view class="realtext">平均执行率</view>
  113. </view>
  114. <view class="real" @click="tapjumpreception('6')">
  115. <view class="realnum">{{realtimeobj.wordFraction || 0}}%</view>
  116. <view class="realtext">平均挖掘率</view>
  117. </view>
  118. <view class="real">
  119. <view @click="prohibitedtap(1)" v-if="methodsisshow==true" class="realnum" style="color: red;">
  120. {{realtimeobj.prohibitedCustomer || 0}}
  121. </view>
  122. <view @click="prohibitedtap(1)" v-if="methodsisshow==true" class="realtext">违禁预警</view>
  123. </view>
  124. </view>
  125. </view>
  126. <view class="title" style="display: flex;">
  127. <view style="width: 55%;">概览</view>
  128. <view class="cet" style="display: flex;">
  129. <view class="cetview" :class="{ activecllasscet: zhixingcenterindex == 2 }" @click="tabtimeclick(2)">近7天</view>
  130. <view class="cetview" :class="{ activecllasscet: zhixingcenterindex == 6 }" @click="tabtimeclick(6)">近30天</view>
  131. <view class="cetview" :class="{ activecllasscet: zhixingcenterindex == 7 }" @click="tabtimeclick(7)">自定义</view>
  132. </view>
  133. </view>
  134. <view class="real-timebox">
  135. <view class="timebox">
  136. <view class="real" @click="tapjumpreception('3')">
  137. <view class="realnum">{{Thisweekobj.receptionCount || 0}}</view>
  138. <view class="realtext">接待量</view>
  139. </view>
  140. <view class="real" @click="tapjumpreception('7')">
  141. <view class="realnum">{{Thisweekobj.activeCustomer|| 0}}</view>
  142. <view class="realtext">有效接待</view>
  143. </view>
  144. <view class="real" @click="tapjumpreception('333')">
  145. <view class="realnum">{{Thisweekobj.fraction || 0}}%</view>
  146. <view class="realtext">平均执行率</view>
  147. </view>
  148. </view>
  149. <view class="timebox">
  150. <view class="real" @click="tapjumpreception('333')">
  151. <view class="realnum">{{Thisweekobj.avgDuration|| 0}}</view>
  152. <view class="realtext">平均接待时长</view>
  153. </view>
  154. <view class="real" @click="tapjumpreception('3')">
  155. <view class="realnum">{{Thisweekobj.wordFraction || 0}}%</view>
  156. <view class="realtext">平均挖掘率</view>
  157. </view>
  158. <view class="real" @click="prohibitedtap(2)" v-if="methodsisshow==true">
  159. <view class="realnum" style="color: red;">{{Thisweekobj.prohibitedCustomer || 0}}</view>
  160. <view class="realtext">违禁预警</view>
  161. </view>
  162. <view class="real" v-else>
  163. <view class="realnum"></view>
  164. <view class="realtext"></view>
  165. </view>
  166. </view>
  167. </view>
  168. <view class="title">常用功能</view>
  169. <view class="commonly-box">
  170. <!-- 权限菜单控制显隐 因为后台添加的按钮权限并不会在此返回所以需要手动添加 showMenu -->
  171. <view class="commonly" @click="Piabodata(item.name)" v-for="(item,index) in Menulist" :key="index"
  172. v-if="showMenu(item.name)">
  173. <view class="commonly-img">
  174. <image class="commonly-img1" :src="item.name | imgFilter" mode=""></image>
  175. </view>
  176. <view class="commonly-text">{{item.name}}</view>
  177. </view>
  178. </view>
  179. <!-- 项目切换 -->
  180. <view v-if="Showhiddenunits">
  181. <u-select :mask-close-able="false" v-model="Showhiddenunits" mode="single-column" :list="lpanlist"
  182. @cancel="cancel" @confirm="confirm"></u-select>
  183. </view>
  184. <u-calendar v-model="totalTimeShow" mode="range" @change="totalTimeChange"></u-calendar>
  185. <view class="update" v-if="isShowUpdate">
  186. <view class="updateBox">
  187. <view class="top">
  188. <image src="../../static/images/updateIcon.png"></image>
  189. </view>
  190. <view class="content">
  191. <view class="tit">{{tit}}</view>
  192. <u-parse class="ql-editor" :content="content" @preview="preview" @navigate="navigate" />
  193. <!-- <rich-text :nodes="content"></rich-text> -->
  194. </view>
  195. <view class="btn" @click="lookDetail">查看详情</view>
  196. <view class="close" @click="close">
  197. <u-icon name="close-circle" size="80" color="#FFFFFF"></u-icon>
  198. </view>
  199. </view>
  200. </view>
  201. <!-- 加载组件 -->
  202. <loading v-model="LOADING"></loading>
  203. <u-tabbar activeColor="#1296db" inactiveColor="#999999" v-model="current" :list="tabbarList"></u-tabbar>
  204. </view>
  205. </template>
  206. <script>
  207. var config = require("../../config");
  208. var util = require("../../utils/util.js");
  209. import tabbarList from '@/utils/tabbar.js'
  210. import uParse from '../../components/gaoyia-parse/parse.vue'
  211. import loading from "@/components/loading/index.vue"
  212. export default {
  213. components: {
  214. uParse,
  215. loading
  216. },
  217. data() {
  218. return {
  219. id: "",
  220. isShowUpdate: false,
  221. tit: "",
  222. content: "",
  223. tabbarList: tabbarList,
  224. current: 0,
  225. userInfo: {},
  226. Showhiddenunits: false,
  227. lpanlist: [], //项目列表
  228. buildingname: '', //项目名
  229. buildingID: '', //项目id
  230. buildingishow: false, //是否选择项目
  231. Myworkcard: false,
  232. percentage: '', //设备电量
  233. Whetheroffline: false, //是否离线
  234. signalDevice: 0, //信号
  235. signalDevicetext: "",
  236. audioStatus: false,
  237. equipmentisshow: false,
  238. equipmentobj: {
  239. totalNum: '',
  240. onlineNum: '',
  241. activeNum: '',
  242. lowPowerNum: '',
  243. },
  244. Menulist: [],
  245. realtimeobj: {
  246. sumCustomer: '',
  247. receivingCustomer: '',
  248. activeCustomer: '',
  249. prohibitedCustomer: '',
  250. tagCustomer: '',
  251. fraction: '',
  252. wordFraction: '',
  253. receptionCount: ''
  254. },
  255. Thisweekobj: {
  256. sumCustomer: '',
  257. receivingCustomer: '',
  258. activeCustomer: '',
  259. prohibitedCustomer: '',
  260. tagCustomer: '',
  261. fraction: '',
  262. wordFraction: '',
  263. receptionCount: ''
  264. },
  265. methodsisshow: false,
  266. zhixingcenterindex: 2,
  267. totalTimeShow: false,
  268. statDateStart: '',
  269. statDateEnd: '',
  270. needShow: ['客户管理', '接待记录', '销讲数据', '设备管理', '值班顾问', '顾问排名', '违禁记录'], // 权限配置需要展示出来的功能入口
  271. };
  272. },
  273. computed: {
  274. // 是否是普强小程序
  275. showMenu() {
  276. return name => {
  277. if (this.needShow.findIndex(item => item == name) != -1) {
  278. return true
  279. } else {
  280. return false
  281. }
  282. }
  283. },
  284. // 是否是普强小程序
  285. isPuqiang() {
  286. return config.service.host.indexOf('xitong.pachira.cn') == -1
  287. },
  288. },
  289. onLoad() {
  290. if (!this.isPuqiang) {
  291. uni.setNavigationBarTitle({
  292. title: 'AI营销辅助平台'
  293. })
  294. }
  295. this.initPopup()
  296. },
  297. onShow() {
  298. this.LOADING = true
  299. this.getMenu()
  300. this.userInfo = uni.getStorageSync('weapp_session_userInfo_data');
  301. if (this.userInfo.dataCode == 6 || this.userInfo.dataCode == 3) {
  302. this.methodsisshow = false;
  303. } else {
  304. this.methodsisshow = true;
  305. }
  306. if (this.userInfo.zkProperties.length == 1) {
  307. this.buildingID = uni.getStorageSync('buildingID').id;
  308. this.buildingname = uni.getStorageSync('buildingID').name;
  309. this.buildingishow = false;
  310. } else {
  311. this.buildingishow = true;
  312. this.buildingname = uni.getStorageSync('buildingID').name;
  313. this.buildingID = uni.getStorageSync('buildingID').id;
  314. this.userInfo.zkProperties.forEach(item => {
  315. item.label = item.propertyName;
  316. item.value = item.id
  317. })
  318. this.lpanlist = this.userInfo.zkProperties
  319. }
  320. if (this.userInfo.dataCode == 6) {
  321. this.Myworkcard = true;
  322. this.equipmentisshow = false;
  323. this.iniodianloang()
  324. } else {
  325. this.equipmentisshow = true;
  326. this.Myworkcard = false;
  327. this.initequipment()
  328. }
  329. this.initworkThisWeek()
  330. this.initrealTimeStatistics()
  331. this.updateInit()
  332. },
  333. onPullDownRefresh() {
  334. this.getMenu()
  335. this.userInfo = uni.getStorageSync('weapp_session_userInfo_data');
  336. if (this.userInfo.dataCode == 6 || this.userInfo.dataCode == 3) {
  337. this.methodsisshow = false;
  338. } else {
  339. this.methodsisshow = true;
  340. }
  341. if (this.userInfo.zkProperties.length == 1) {
  342. this.buildingID = uni.getStorageSync('buildingID').id;
  343. this.buildingname = uni.getStorageSync('buildingID').name;
  344. this.buildingishow = false;
  345. } else {
  346. this.buildingishow = true;
  347. this.buildingname = uni.getStorageSync('buildingID').name;
  348. this.buildingID = uni.getStorageSync('buildingID').id;
  349. this.userInfo.zkProperties.forEach(item => {
  350. item.label = item.propertyName;
  351. item.value = item.id
  352. })
  353. this.lpanlist = this.userInfo.zkProperties
  354. }
  355. if (this.userInfo.dataCode == 6) {
  356. // this.Myworkcard = true;
  357. this.equipmentisshow = false;
  358. this.iniodianloang()
  359. } else {
  360. this.equipmentisshow = true;
  361. // this.Myworkcard = false;
  362. this.initequipment()
  363. // this.waitForOperation()
  364. }
  365. this.initworkThisWeek()
  366. this.initrealTimeStatistics()
  367. setTimeout(() => {
  368. uni.stopPullDownRefresh()
  369. }, 3000)
  370. },
  371. methods: {
  372. towajue(){
  373. uni.navigateTo({
  374. url: "/pages/center/Piabodata/requireminingAnalysis"
  375. })
  376. },
  377. close() {
  378. this.isShowUpdate = false;
  379. },
  380. lookDetail() {
  381. let datas = {
  382. id: this.id,
  383. title: this.tit,
  384. content: this.content
  385. }
  386. this.$store.commit('setMessageObj', datas)
  387. uni.navigateTo({
  388. url: "../mine/messageDetail"
  389. })
  390. let data = {
  391. id: this.id,
  392. accountId: uni.getStorageSync('weapp_session_userInfo_data').accountId
  393. }
  394. uni.request({
  395. url: config.service.updateRead,
  396. method: "GET",
  397. header: {
  398. 'content-type': 'application/json',
  399. 'Access-Token': uni.getStorageSync('weapp_session_login_data').token
  400. },
  401. data,
  402. success: (res) => {
  403. this.initPopup()
  404. }
  405. })
  406. this.isShowUpdate = false;
  407. },
  408. initPopup() {
  409. uni.request({
  410. url: config.service.updatePopup,
  411. method: "GET",
  412. header: {
  413. 'content-type': 'application/json',
  414. 'Access-Token': uni.getStorageSync('weapp_session_login_data').token
  415. },
  416. data: {
  417. },
  418. success: (res) => {
  419. this.first(res.data.data.id)
  420. this.content = res.data.data.content
  421. this.tit = res.data.data.title
  422. this.aid = res.data.data.accountId
  423. this.id = res.data.data.id
  424. this.isShowUpdate = res.data.data.readFlag == 0 ? true : false;
  425. }
  426. })
  427. },
  428. first(id) {
  429. uni.request({
  430. url: config.service.firstShowPopup,
  431. method: "GET",
  432. header: {
  433. 'content-type': 'application/json',
  434. 'Access-Token': uni.getStorageSync('weapp_session_login_data').token
  435. },
  436. data: {
  437. id
  438. },
  439. success: (res) => {}
  440. })
  441. },
  442. updateInit() {
  443. uni.request({
  444. url: config.service.notReadNum,
  445. method: "GET",
  446. data: {
  447. id: uni.getStorageSync('weapp_session_userInfo_data').accountId,
  448. projectId: uni.getStorageSync('buildingID').id,
  449. },
  450. header: {
  451. 'content-type': 'application/json',
  452. 'Access-Token': uni.getStorageSync('weapp_session_login_data').token
  453. },
  454. success: (res) => {
  455. this.count = res.data.data
  456. this.tabbarList[3].count = res.data.data || 0
  457. }
  458. })
  459. },
  460. //获取权限
  461. getMenu() {
  462. this.$u.get("/user/getMenu").then(data => {
  463. uni.setStorageSync("weapp_session_Menu_data", data)
  464. this.Menulist = uni.getStorageSync('weapp_session_Menu_data');
  465. console.log(this.Menulist, 'adasdasds123')
  466. })
  467. },
  468. //自定义时间
  469. totalTimeChange(e) {
  470. this.statDateStart = e.startDate;
  471. this.statDateEnd = e.endDate;
  472. this.zhixingcenterindex = 7;
  473. this.initworkThisWeek()
  474. },
  475. //时间选择
  476. tabtimeclick(i) {
  477. if (i == 7) {
  478. this.totalTimeShow = true;
  479. } else {
  480. this.zhixingcenterindex = i;
  481. this.initworkThisWeek()
  482. }
  483. },
  484. //获取概览数据
  485. initworkThisWeek() {
  486. uni.request({
  487. url: config.service.workThisWeek,
  488. method: "POST",
  489. header: {
  490. 'content-type': 'application/json',
  491. 'Access-Token': uni.getStorageSync('weapp_session_login_data').token
  492. },
  493. data: {
  494. houseId: this.buildingID,
  495. dateType: this.zhixingcenterindex == 7 ? null : this.zhixingcenterindex,
  496. statDateStart: this.statDateStart,
  497. statDateEnd: this.statDateEnd
  498. },
  499. success: (data) => {
  500. if (data.data.data == null) {
  501. return
  502. } else {
  503. this.Thisweekobj = {
  504. sumCustomer: data.data.data.sumCustomer,
  505. receivingCustomer: data.data.data.receivingCustomer,
  506. activeCustomer: data.data.data.activeCustomer,
  507. prohibitedCustomer: data.data.data.prohibitedCustomer,
  508. avgDuration: Math.floor(data.data.data.avgDuration / 60) || 0,
  509. tagCustomer: data.data.data.tagCustomer,
  510. fraction: data.data.data.fraction,
  511. wordFraction: data.data.data.wordFraction,
  512. receptionCount: data.data.data.receptionCount
  513. }
  514. }
  515. }
  516. })
  517. },
  518. //实时统计
  519. initrealTimeStatistics() {
  520. uni.request({
  521. url: config.service.realTimeStatistics,
  522. method: "POST",
  523. header: {
  524. 'content-type': 'application/json',
  525. 'Access-Token': uni.getStorageSync('weapp_session_login_data').token
  526. },
  527. data: {
  528. houseId: this.buildingID
  529. },
  530. success: (data) => {
  531. this.LOADING = false
  532. if (data.data.data == null) {
  533. return
  534. } else {
  535. this.realtimeobj = {
  536. sumCustomer: data.data.data.sumCustomer,
  537. receivingCustomer: data.data.data.receivingCustomer,
  538. activeCustomer: data.data.data.activeCustomer,
  539. prohibitedCustomer: data.data.data.prohibitedCustomer,
  540. avgDuration: Math.floor(data.data.data.avgDuration / 60) || 0,
  541. tagCustomer: data.data.data.tagCustomer,
  542. fraction: data.data.data.fraction,
  543. wordFraction: data.data.data.wordFraction,
  544. receptionCount: data.data.data.receptionCount
  545. }
  546. }
  547. },
  548. fail: () => {
  549. this.LOADING = false
  550. }
  551. })
  552. },
  553. //设备
  554. initequipment() {
  555. uni.request({
  556. url: config.service.findEquipmentState,
  557. method: "POST",
  558. header: {
  559. 'content-type': 'application/json',
  560. 'Access-Token': uni.getStorageSync('weapp_session_login_data').token
  561. },
  562. data: {
  563. propertyId: this.buildingID
  564. },
  565. success: (data) => {
  566. if (data.data.data == null) {
  567. return
  568. } else {
  569. this.equipmentobj = {
  570. totalNum: data.data.data.totalNum,
  571. onlineNum: data.data.data.onlineNum,
  572. activeNum: data.data.data.activeNum,
  573. lowPowerNum: data.data.data.lowPowerNum,
  574. }
  575. }
  576. }
  577. })
  578. },
  579. //我的工牌
  580. iniodianloang() {
  581. uni.request({
  582. url: config.service.findElectricity,
  583. method: "POST",
  584. header: {
  585. 'content-type': 'application/json',
  586. 'Access-Token': uni.getStorageSync('weapp_session_login_data').token
  587. },
  588. data: {},
  589. success: (data) => {
  590. if (data.data.data == null) {
  591. return
  592. } else {
  593. if (data.data.data > 100) {
  594. this.percentage = 100;
  595. } else {
  596. if (data.data.data.onLine == 0) {
  597. this.Whetheroffline = false;
  598. } else {
  599. this.Whetheroffline = true;
  600. this.percentage = data.data.data.electricity;
  601. this.signalDevice = data.data.data.signalDevice / 1;
  602. console.log(this.signalDevice)
  603. this.audioStatus = data.data.data.audioStatus;
  604. if (this.signalDevice > 80) {
  605. this.signalDevicetext = '高';
  606. } else {
  607. if (this.signalDevice == 0) {
  608. this.signalDevicetext = '无';
  609. } else {
  610. this.signalDevicetext = '低';
  611. }
  612. }
  613. }
  614. }
  615. }
  616. }
  617. })
  618. },
  619. //选择项目弹框
  620. piskbuilding() {
  621. // this.Showhiddenunits = true;
  622. uni.navigateTo({
  623. url: "../mine/selectBuilding"
  624. })
  625. },
  626. // 项目选择确认
  627. confirm(e) {
  628. this.buildingname = e[0].label;
  629. this.buildingID = e[0].value;
  630. let lopan = {
  631. id: e[0].value,
  632. name: e[0].label
  633. }
  634. uni.setStorageSync("buildingID", lopan); //项目id写入缓存
  635. this.initworkThisWeek()
  636. this.initrealTimeStatistics()
  637. this.initequipment()
  638. this.iniodianloang()
  639. },
  640. // 项目选择取消
  641. cancel() {
  642. this.Showhiddenunits = false;
  643. },
  644. tapjumpequipment(i) {
  645. this.Menulist.forEach(item => {
  646. if (item.name == '设备管理') {
  647. uni.navigateTo({
  648. url: '/pages/mine/equipment/index?active=' + i
  649. });
  650. }
  651. })
  652. },
  653. prohibitedtap(i) {
  654. if (i == 1) {
  655. uni.navigateTo({
  656. url: '/pages/center/prohibited/index?refresh=' + 'refresh' + '&activeTotal=' + '0' +
  657. '&violatedStatus=1'
  658. });
  659. } else {
  660. if (this.zhixingcenterindex == 2) {
  661. uni.navigateTo({
  662. url: '/pages/center/prohibited/index?refresh=' + 'refresh' + '&activeTotal=' + '2' +
  663. '&violatedStatus=1'
  664. });
  665. } else if (this.zhixingcenterindex == 6) {
  666. uni.navigateTo({
  667. url: '/pages/center/prohibited/index?refresh=' + 'refresh' + '&activeTotal=' + '3' +
  668. '&violatedStatus=1'
  669. });
  670. } else {
  671. uni.navigateTo({
  672. url: '/pages/center/prohibited/index?refresh=' + 'refresh' + '&activeTotal=' + '4' +
  673. '&staTime=' + this.statDateStart + '&endtime=' + this.statDateEnd +
  674. '&violatedStatus=1'
  675. });
  676. }
  677. }
  678. },
  679. tapjumpreception(i) {
  680. this.Menulist.forEach(item => {
  681. if (item.name == '接待记录') {
  682. if (i == 1) {
  683. uni.navigateTo({
  684. url: '/pages/center/records/index?refresh=' + 'refresh' + '&activeTotal=' +
  685. '0'
  686. });
  687. } else if (i == 'auth') {
  688. uni.navigateTo({
  689. url: '/pages/center/records/index?refresh=' + 'refresh' + '&activeTotal=' +
  690. '0' + '&validInvalid=0'
  691. });
  692. } else if (i == 2) {
  693. uni.switchTab({
  694. url: '/pages/index/customer'
  695. });
  696. } else if (i == 3) {
  697. if (this.zhixingcenterindex == 2) {
  698. uni.navigateTo({
  699. url: '/pages/center/records/index?refresh=' + 'refresh' +
  700. '&activeTotal=' + '2'
  701. });
  702. } else if (this.zhixingcenterindex == 6) {
  703. uni.navigateTo({
  704. url: '/pages/center/records/index?refresh=' + 'refresh' +
  705. '&activeTotal=' + '3'
  706. });
  707. } else {
  708. uni.navigateTo({
  709. url: '/pages/center/records/index?refresh=' + 'refresh' +
  710. '&activeTotal=' + '4' + '&staTime=' + this.statDateStart +
  711. '&endtime=' + this.statDateEnd
  712. });
  713. }
  714. } else if (i == 333) {
  715. if (this.zhixingcenterindex == 2) {
  716. uni.navigateTo({
  717. url: '/pages/center/records/index?refresh=' + 'refresh' +
  718. '&activeTotal=' + '2' + '&validInvalid=0'
  719. });
  720. } else if (this.zhixingcenterindex == 6) {
  721. uni.navigateTo({
  722. url: '/pages/center/records/index?refresh=' + 'refresh' +
  723. '&activeTotal=' + '3' + '&validInvalid=0'
  724. });
  725. } else {
  726. uni.navigateTo({
  727. url: '/pages/center/records/index?refresh=' + 'refresh' +
  728. '&activeTotal=' + '4' + '&staTime=' + this.statDateStart +
  729. '&endtime=' + this.statDateEnd + '&validInvalid=0'
  730. });
  731. }
  732. } else if (i == 3) {
  733. if (this.zhixingcenterindex == 2) {
  734. uni.navigateTo({
  735. url: '/pages/center/records/index?refresh=' + 'refresh' +
  736. '&activeTotal=' + '2'
  737. });
  738. } else if (this.zhixingcenterindex == 6) {
  739. uni.navigateTo({
  740. url: '/pages/center/records/index?refresh=' + 'refresh' +
  741. '&activeTotal=' + '3'
  742. });
  743. } else {
  744. uni.navigateTo({
  745. url: '/pages/center/records/index?refresh=' + 'refresh' +
  746. '&activeTotal=' + '4' + '&staTime=' + this.statDateStart +
  747. '&endtime=' + this.statDateEnd
  748. });
  749. }
  750. } else if (i == 6) {
  751. uni.navigateTo({
  752. url: '/pages/center/records/index?refresh=' + 'refresh' + '&activeTotal=' +
  753. '0' + '&validInvalid=0'
  754. });
  755. } else if (i == 7) {
  756. if (this.zhixingcenterindex == 2) {
  757. uni.navigateTo({
  758. url: '/pages/center/records/index?refresh=' + 'refresh' +
  759. '&activeTotal=' + '2' + '&validInvalid=0'
  760. });
  761. } else if (this.zhixingcenterindex == 6) {
  762. uni.navigateTo({
  763. url: '/pages/center/records/index?refresh=' + 'refresh' +
  764. '&activeTotal=' + '3' + '&validInvalid=0'
  765. });
  766. } else {
  767. uni.navigateTo({
  768. url: '/pages/center/records/index?refresh=' + 'refresh' +
  769. '&activeTotal=' + '4' + '&staTime=' + this.statDateStart +
  770. '&endtime=' + this.statDateEnd + '&validInvalid=0'
  771. });
  772. }
  773. } else if (i == 4) {
  774. uni.navigateTo({
  775. url: '/pages/center/records/index?refresh=' + 'refresh' +
  776. '&activeTotal=0' + '&markAdvisor=0' + '&validInvalid=0'
  777. });
  778. } else {
  779. uni.navigateTo({
  780. url: '/pages/center/records/index?refresh=' + 'refresh' +
  781. '&activeTotal=0' + '&markAdvisor=0'
  782. });
  783. }
  784. }
  785. })
  786. },
  787. Piabodata(item) {
  788. if (item == '销讲数据') {
  789. uni.navigateTo({
  790. url: '/pages/center/Piabodata/index'
  791. });
  792. } else if (item == '接待记录') {
  793. uni.navigateTo({
  794. url: '/pages/center/records/index?refresh=' + 'refresh'
  795. });
  796. } else if (item == '值班顾问') {
  797. uni.navigateTo({
  798. url: '/pages/mine/consultanonduty/index'
  799. });
  800. } else if (item == '设备管理') {
  801. uni.navigateTo({
  802. url: '/pages/mine/equipment/index'
  803. });
  804. } else if (item == '顾问排名') {
  805. uni.navigateTo({
  806. url: '/pages/center/Piabodata/Employeesstatistics'
  807. });
  808. } else if (item == '违禁记录') {
  809. uni.navigateTo({
  810. url: '/pages/center/prohibited/index?refresh=' + 'refresh'
  811. });
  812. } else {
  813. uni.navigateTo({
  814. url: '/pages/center/consumer/index?refresh=' + 'refresh'
  815. });
  816. }
  817. },
  818. },
  819. filters: {
  820. imgFilter(type) {
  821. let path = ''
  822. switch (type) {
  823. case '客户管理':
  824. path = '../../static/images/function1.png'
  825. break
  826. case '接待记录':
  827. path = '../../static/images/function2.png'
  828. break
  829. case '销讲数据':
  830. path = '../../static/images/function4.png'
  831. break
  832. case '设备管理':
  833. path = '../../static/images/function5.png'
  834. break
  835. case '值班顾问':
  836. path = '../../static/images/function6.png'
  837. break
  838. case '顾问排名':
  839. path = '../../static/images/rankingguwen.png'
  840. break
  841. case '违禁记录':
  842. path = '../../static/images/prohibited.png'
  843. break
  844. }
  845. return path
  846. }
  847. }
  848. };
  849. </script>
  850. <style lang="scss" scoped>
  851. .update {
  852. width: 100%;
  853. height: 100%;
  854. background: rgba(0, 0, 0, 0.5);
  855. position: fixed;
  856. top: 0;
  857. left: 0;
  858. bottom: 0;
  859. right: 0;
  860. z-index: 9999;
  861. .updateBox {
  862. width: 80%;
  863. background: #FFFFFF;
  864. position: relative;
  865. left: 50%;
  866. margin-left: -40%;
  867. padding: 20rpx;
  868. border-radius: 10rpx;
  869. top: 140rpx;
  870. .top {
  871. width: 350rpx;
  872. height: 220rpx;
  873. margin: 0 auto;
  874. image {
  875. width: 100%;
  876. height: 100%;
  877. }
  878. }
  879. .btn {
  880. width: 510rpx;
  881. height: 88rpx;
  882. background: #2671E2;
  883. margin: 0 auto;
  884. display: flex;
  885. justify-content: center;
  886. align-items: center;
  887. font-size: 36rpx;
  888. border-radius: 8rpx;
  889. color: #FFFFFF;
  890. }
  891. .content {
  892. height: 268rpx;
  893. overflow-y: auto;
  894. margin: 46rpx 0;
  895. }
  896. .tit {
  897. font-size: 40rpx;
  898. text-align: center;
  899. font-weight: bold;
  900. }
  901. .close {
  902. position: absolute;
  903. bottom: -100rpx;
  904. left: 50%;
  905. margin-left: -50rpx;
  906. }
  907. }
  908. }
  909. .activecllasscet {
  910. font-size: 28rpx;
  911. font-weight: 400;
  912. color: #008ef2;
  913. }
  914. .cet {
  915. font-size: 28rpx;
  916. font-weight: 400;
  917. color: #333333;
  918. .cetview {
  919. margin-left: 20rpx;
  920. }
  921. }
  922. .cented-box {
  923. padding: 30rpx;
  924. background: #F8F8F8;
  925. width: 100%;
  926. height: 100%;
  927. }
  928. .Switchingbox {
  929. width: 100%;
  930. height: 44rpx;
  931. display: flex;
  932. align-items: center;
  933. .Switching1 {
  934. width: 44rpx;
  935. height: 44rpx;
  936. .Switching1-img {
  937. width: 44rpx;
  938. height: 44rpx;
  939. }
  940. }
  941. .Switching2 {
  942. margin-left: 12rpx;
  943. font-size: 32rpx;
  944. color: #303030;
  945. font-weight: 500;
  946. }
  947. .Switching3 {
  948. width: calc(100% - 280rpx);
  949. font-size: 32rpx;
  950. color: #303030;
  951. font-weight: 500;
  952. }
  953. .Switching4 {
  954. width: 112rpx;
  955. font-size: 28rpx;
  956. color: #303030;
  957. font-weight: 400;
  958. text-align: right;
  959. text-decoration: underline
  960. }
  961. }
  962. .Workcard {
  963. width: 100%;
  964. background: #FFFFFF;
  965. height: 154rpx;
  966. box-shadow: 0px 0px 12px 0px rgba(224, 224, 224, 0.3);
  967. border-radius: 12rpx;
  968. display: flex;
  969. .Workcard-box {
  970. flex: 1;
  971. height: 100%;
  972. .Workcardimg {
  973. width: 100%;
  974. display: flex;
  975. justify-content: center;
  976. margin-top: 42rpx;
  977. .Workcardimg1 {
  978. width: 64rpx;
  979. height: 36rpx;
  980. background-image: url(../../static/images/battery.png);
  981. background-size: 100% 100%;
  982. padding: 8rpx;
  983. .bar {
  984. background-color: #43CD80;
  985. height: 100%;
  986. border-radius: 4rpx;
  987. }
  988. .bar1 {
  989. background-color: red;
  990. height: 100%;
  991. border-radius: 4rpx;
  992. }
  993. }
  994. .Workcardimg2 {
  995. width: 56rpx;
  996. height: 36rpx;
  997. }
  998. .Workcardimg3 {
  999. width: 34rpx;
  1000. height: 36rpx;
  1001. }
  1002. .Workcardimg4 {
  1003. width: 50rpx;
  1004. height: 40rpx;
  1005. }
  1006. }
  1007. .Workcardtext {
  1008. width: 100%;
  1009. text-align: center;
  1010. font-size: 24rpx;
  1011. font-weight: 400;
  1012. color: #666666;
  1013. margin-top: 20rpx;
  1014. }
  1015. }
  1016. }
  1017. .title {
  1018. width: 100%;
  1019. height: 30rpx;
  1020. font-size: 30rpx;
  1021. font-weight: 600;
  1022. color: #333333;
  1023. margin-top: 40rpx;
  1024. margin-bottom: 24rpx;
  1025. }
  1026. .shebenbox {
  1027. width: 100%;
  1028. height: 156rpx;
  1029. background: #FFFFFF;
  1030. box-shadow: 0px 0px 12px 0px rgba(224, 224, 224, 0.3);
  1031. border-radius: 12rpx;
  1032. display: flex;
  1033. .shebenche {
  1034. width: 25%;
  1035. height: 100%;
  1036. .shebenchenum {
  1037. width: 100%;
  1038. font-size: 36rpx;
  1039. font-weight: 600;
  1040. color: #333333;
  1041. text-align: center;
  1042. margin-top: 28rpx;
  1043. }
  1044. .shebenchetext {
  1045. width: 100%;
  1046. font-size: 24rpx;
  1047. font-weight: 400;
  1048. color: #666666;
  1049. text-align: center;
  1050. margin-top: 24rpx;
  1051. }
  1052. }
  1053. }
  1054. .real-timebox {
  1055. width: 100%;
  1056. background: #FFFFFF;
  1057. box-shadow: 0px 0px 12px 0px rgba(224, 224, 224, 0.3);
  1058. border-radius: 12rpx;
  1059. padding-bottom: 36rpx;
  1060. .timebox {
  1061. width: 100%;
  1062. display: flex;
  1063. .real {
  1064. flex: 1;
  1065. height: 100%;
  1066. .realnum {
  1067. width: 100%;
  1068. font-size: 36rpx;
  1069. font-weight: 600;
  1070. color: #333333;
  1071. text-align: center;
  1072. margin-top: 36rpx;
  1073. }
  1074. .realtext {
  1075. width: 100%;
  1076. font-size: 24rpx;
  1077. font-weight: 400;
  1078. color: #666666;
  1079. text-align: center;
  1080. margin-top: 24rpx;
  1081. }
  1082. }
  1083. }
  1084. }
  1085. .commonly-box {
  1086. width: 100%;
  1087. background: #FFFFFF;
  1088. box-shadow: 0px 0px 12px 0px rgba(224, 224, 224, 0.3);
  1089. border-radius: 12rpx;
  1090. display: flex;
  1091. flex-wrap: wrap;
  1092. padding-bottom: 36rpx;
  1093. .commonly {
  1094. width: 25%;
  1095. margin-top: 36rpx;
  1096. .commonly-img {
  1097. width: 100%;
  1098. height: 68rpx;
  1099. text-align: center;
  1100. .commonly-img1 {
  1101. width: 68rpx;
  1102. height: 68rpx;
  1103. border-radius: 50%;
  1104. }
  1105. }
  1106. .commonly-text {
  1107. width: 100%;
  1108. text-align: center;
  1109. font-size: 24rpx;
  1110. font-weight: 400;
  1111. color: #333333;
  1112. margin-top: 16rpx;
  1113. }
  1114. }
  1115. }
  1116. </style>