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.
 
 
 

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