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.
 
 
 

2 lines
9.4 KiB

  1. (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/index/index"],{166:function(e,t,i){"use strict";var a;i.d(t,"b",(function(){return n})),i.d(t,"c",(function(){return s})),i.d(t,"a",(function(){return a}));try{a={uSelect:function(){return i.e("uview-ui/components/u-select/u-select").then(i.bind(null,582))},uCalendar:function(){return i.e("uview-ui/components/u-calendar/u-calendar").then(i.bind(null,583))}}}catch(o){if(-1===o.message.indexOf("Cannot find module")||-1===o.message.indexOf(".vue"))throw o;console.error(o.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件")}var n=function(){var e=this,t=e.$createElement;e._self._c},s=[];n._withStripped=!0},20:function(e,t,i){"use strict";i.r(t);var a=i(21),n=i.n(a);for(var s in a)"default"!==s&&function(e){i.d(t,e,(function(){return a[e]}))}(s);t["default"]=n.a},21:function(e,t,i){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=i(4),n={data:function(){return{userInfo:{},Showhiddenunits:!1,lpanlist:[],buildingname:"",buildingID:"",buildingishow:!1,percentage:"",Whetheroffline:!1,signalDevice:0,signalDevicetext:"",audioStatus:!1,equipmentisshow:!1,equipmentobj:{totalNum:"",onlineNum:"",activeNum:"",lowPowerNum:""},Menulist:[],realtimeobj:{sumCustomer:"",receivingCustomer:"",activeCustomer:"",prohibitedCustomer:"",tagCustomer:"",fraction:"",receptionCount:""},Thisweekobj:{sumCustomer:"",receivingCustomer:"",activeCustomer:"",prohibitedCustomer:"",tagCustomer:"",fraction:"",receptionCount:""},methodsisshow:!1,zhixingcenterindex:2,totalTimeShow:!1,statDateStart:"",statDateEnd:"",permissions:{commonly1:!1,commonly2:!1,commonly3:!1,commonly4:!1,commonly5:!1,commonly6:!1,commonly7:!1,myisshebei:!1,shebeinum:!1,shishinum:!1,jileinum:!1}}},components:{},onShow:function(){this.getMenu(),this.userInfo=e.getStorageSync("weapp_session_userInfo_data"),6==this.userInfo.dataCode||3==this.userInfo.dataCode?this.methodsisshow=!1:this.methodsisshow=!0,1==this.userInfo.zkProperties.length?(this.buildingID=e.getStorageSync("buildingID").id,this.buildingname=e.getStorageSync("buildingID").name,this.buildingishow=!1):(this.buildingishow=!0,this.buildingname=e.getStorageSync("buildingID").name,this.buildingID=e.getStorageSync("buildingID").id,this.userInfo.zkProperties.forEach((function(e){e.label=e.propertyName,e.value=e.id})),this.lpanlist=this.userInfo.zkProperties),6==this.userInfo.dataCode?(this.equipmentisshow=!1,this.iniodianloang()):(this.equipmentisshow=!0,this.initequipment()),this.initworkThisWeek(),this.initrealTimeStatistics()},methods:{getMenu:function(){var t=this;e.request({url:a.service.getMenu,method:"POST",header:{"content-type":"application/json",Authorization:"Bearer "+e.getStorageSync("weapp_session_login_data").token},success:function(i){var a=i.data;if(0==a.code){e.setStorageSync("weapp_session_Menu_data",a.data);var n=e.getStorageSync("weapp_session_Menu_data");t.permissions.commonly1=n.khgl,t.permissions.commonly2=n.jdjl,t.permissions.commonly3=n.wjjl,t.permissions.commonly4=n.xjfx,t.permissions.commonly5=n.sbgl,t.permissions.commonly6=n.zbgw,t.permissions.commonly7=n.gwpm,t.permissions.myisshebei=n.wdsb,t.permissions.shebeinum=n.sbtj,t.permissions.shishinum=n.sstj,t.permissions.jileinum=n.gzlj}}})},totalTimeChange:function(e){this.statDateStart=e.startDate,this.statDateEnd=e.endDate,this.zhixingcenterindex=7,this.initworkThisWeek()},tabtimeclick:function(e){7==e?this.totalTimeShow=!0:(this.zhixingcenterindex=e,this.initworkThisWeek())},initworkThisWeek:function(){var t=this;e.request({url:a.service.workThisWeek,method:"POST",header:{"content-type":"application/json",Authorization:"Bearer "+e.getStorageSync("weapp_session_login_data").token},data:{houseId:this.buildingID,dateType:7==this.zhixingcenterindex?null:this.zhixingcenterindex,statDateStart:this.statDateStart,statDateEnd:this.statDateEnd},success:function(e){null!=e.data.data&&(t.Thisweekobj={sumCustomer:e.data.data.sumCustomer,receivingCustomer:e.data.data.receivingCustomer,activeCustomer:e.data.data.activeCustomer,prohibitedCustomer:e.data.data.prohibitedCustomer,avgDuration:e.data.data.avgDuration||0,tagCustomer:e.data.data.tagCustomer,fraction:e.data.data.fraction,receptionCount:e.data.data.receptionCount})}})},initrealTimeStatistics:function(){var t=this;e.request({url:a.service.realTimeStatistics,method:"POST",header:{"content-type":"application/json",Authorization:"Bearer "+e.getStorageSync("weapp_session_login_data").token},data:{houseId:this.buildingID},success:function(e){null!=e.data.data&&(t.realtimeobj={sumCustomer:e.data.data.sumCustomer,receivingCustomer:e.data.data.receivingCustomer,activeCustomer:e.data.data.activeCustomer,prohibitedCustomer:e.data.data.prohibitedCustomer,avgDuration:e.data.data.avgDuration||0,tagCustomer:e.data.data.tagCustomer,fraction:e.data.data.fraction,receptionCount:e.data.data.receptionCount})}})},initequipment:function(){var t=this;e.request({url:a.service.findEquipmentState,method:"POST",header:{"content-type":"application/json",Authorization:"Bearer "+e.getStorageSync("weapp_session_login_data").token},data:{propertyId:this.buildingID},success:function(e){null!=e.data.data&&(t.equipmentobj={totalNum:e.data.data.totalNum,onlineNum:e.data.data.onlineNum,activeNum:e.data.data.activeNum,lowPowerNum:e.data.data.lowPowerNum})}})},iniodianloang:function(){var t=this;e.request({url:a.service.findElectricity,method:"POST",header:{"content-type":"application/json",Authorization:"Bearer "+e.getStorageSync("weapp_session_login_data").token},data:{propertyId:this.buildingID,accPhone:this.userInfo.username},success:function(e){null!=e.data.data&&(e.data.data>100?t.percentage=100:0==e.data.data.onLine?t.Whetheroffline=!1:(t.Whetheroffline=!0,t.percentage=e.data.data.electricity,t.signalDevice=e.data.data.signalDevice/1,console.log(t.signalDevice),t.audioStatus=e.data.data.audioStatus,t.signalDevice>80?t.signalDevicetext="高":0==t.signalDevice?t.signalDevicetext="无":t.signalDevicetext="低"))}})},piskbuilding:function(){this.Showhiddenunits=!0},confirm:function(t){this.buildingname=t[0].label,this.buildingID=t[0].value;var i={id:t[0].value,name:t[0].label};e.setStorageSync("buildingID",i),this.initworkThisWeek(),this.initrealTimeStatistics(),this.initequipment(),this.iniodianloang()},cancel:function(){this.Showhiddenunits=!1},tapjumpequipment:function(t){1==this.permissions.commonly5&&e.navigateTo({url:"/pages/mine/equipment/index?active="+t})},prohibitedtap:function(t){1==t?e.navigateTo({url:"/pages/center/prohibited/index?refresh=refresh&activeTotal=0"}):2==this.zhixingcenterindex?e.navigateTo({url:"/pages/center/prohibited/index?refresh=refresh&activeTotal=2"}):6==this.zhixingcenterindex?e.navigateTo({url:"/pages/center/prohibited/index?refresh=refresh&activeTotal=3"}):e.navigateTo({url:"/pages/center/prohibited/index?refresh=refresh&activeTotal=4&staTime="+this.statDateStart+"&endtime="+this.statDateEnd})},tapjumpreception:function(t){1==this.permissions.commonly2&&(1==t?e.navigateTo({url:"/pages/center/records/index?refresh=refresh&activeTotal=0"}):2==t?e.switchTab({url:"/pages/index/customer"}):3==t?2==this.zhixingcenterindex?e.navigateTo({url:"/pages/center/records/index?refresh=refresh&activeTotal=2"}):6==this.zhixingcenterindex?e.navigateTo({url:"/pages/center/records/index?refresh=refresh&activeTotal=3"}):e.navigateTo({url:"/pages/center/records/index?refresh=refresh&activeTotal=4&staTime="+this.statDateStart+"&endtime="+this.statDateEnd}):6==t?e.navigateTo({url:"/pages/center/records/index?refresh=refresh&activeTotal=0&validInvalid=0"}):7==t?2==this.zhixingcenterindex?e.navigateTo({url:"/pages/center/records/index?refresh=refresh&activeTotal=2&validInvalid=0"}):6==this.zhixingcenterindex?e.navigateTo({url:"/pages/center/records/index?refresh=refresh&activeTotal=3&validInvalid=0"}):e.navigateTo({url:"/pages/center/records/index?refresh=refresh&activeTotal=4&staTime="+this.statDateStart+"&endtime="+this.statDateEnd+"&validInvalid=0"}):e.navigateTo({url:"/pages/center/records/index?refresh=refresh&activeTotal=0&markAdvisor=0"}))},Piabodata:function(t){"销讲分析"==t?e.navigateTo({url:"/pages/center/Piabodata/index"}):"接待记录"==t?e.navigateTo({url:"/pages/center/records/index?refresh=refresh"}):"值班顾问"==t?e.navigateTo({url:"/pages/mine/consultanonduty/index"}):"设备管理"==t?e.navigateTo({url:"/pages/mine/equipment/index"}):"顾问排名"==t?e.navigateTo({url:"/pages/center/Piabodata/Employeesstatistics"}):"违禁记录"==t?e.navigateTo({url:"/pages/center/prohibited/index?refresh=refresh"}):e.navigateTo({url:"/pages/center/consumer/index?refresh=refresh"})}}};t.default=n}).call(this,i(0)["default"])},22:function(e,t,i){},255:function(e,t,i){"use strict";(function(e){i(3);a(i(2));var t=a(i(256));function a(e){return e&&e.__esModule?e:{default:e}}wx.__webpack_require_UNI_MP_PLUGIN__=i,e(t.default)}).call(this,i(0)["createPage"])},256:function(e,t,i){"use strict";i.r(t);var a=i(166),n=i(20);for(var s in n)"default"!==s&&function(e){i.d(t,e,(function(){return n[e]}))}(s);i(257);var o,r=i(1),u=Object(r["a"])(n["default"],a["b"],a["c"],!1,null,"57280228",null,!1,a["a"],o);u.options.__file="pages/index/index.vue",t["default"]=u.exports},257:function(e,t,i){"use strict";var a=i(22),n=i.n(a);n.a}},[[255,"common/runtime","common/vendor"]]]);
  2. //# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/index/index.js.map