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

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