diff --git a/config.js b/config.js index ae730f1..1ee05e4 100644 --- a/config.js +++ b/config.js @@ -3,10 +3,10 @@ */ // 此处主机域名修改成腾讯云解决方案分配的域名 // var host = 'http://121.42.63.138:9091/autoSR/api'; // 测试站 -// var host = 'http://192.168.31.160:8080/autoSR/api'; // 长龙 -// var host = 'http://192.168.31.127:8080/autoSR/api'; // 佳豪 +var host = 'http://192.168.31.160:8080/autoSR/api'; // 长龙 +// var host = 'http://192.168.31.129:8080/autoSR/api'; // 佳豪 // var host = 'http://10.2.1.104:8081/autoSR/api'; // 刘敏 -var host = 'https://zkgj.quhouse.com/api'; // 质控正式 +// var host = 'https://zkgj.quhouse.com/api'; // 质控正式 // var host = 'https://hfju.com/api'; // 数智正式 diff --git a/pages/center/Piabodata/Employeesstatistics.vue b/pages/center/Piabodata/Employeesstatistics.vue index 310fbc5..aae6022 100644 --- a/pages/center/Piabodata/Employeesstatistics.vue +++ b/pages/center/Piabodata/Employeesstatistics.vue @@ -53,24 +53,20 @@ - 录音时长(TOP10) + 销讲执行率排行(TOP10) - - 合计 - {{newlisttabinfo2.total}} - 顾问 - {{newlisttabinfo2.count}} + {{newlisttabinfo3.count}} - 人均录音时长 - {{newlisttabinfo2.avg}} + 人均执行率 + {{newlisttabinfo3.avg}} - + {{item.name.substring(0,4)}} @@ -79,29 +75,34 @@ {{item.zxl==null?0:item.zxl}} - + 暂无数据 + - 销讲执行率排行(TOP10) + 录音时长(TOP10) + + 合计 + {{newlisttabinfo2.total}} + 顾问 - {{newlisttabinfo3.count}} + {{newlisttabinfo2.count}} - 人均执行率 - {{newlisttabinfo3.avg}} + 人均录音时长 + {{newlisttabinfo2.avg}} - + {{item.name.substring(0,4)}} @@ -110,7 +111,7 @@ {{item.zxl==null?0:item.zxl}} - + 暂无数据 @@ -272,10 +273,10 @@ staffStatisticsExecutionRateTop10(promse){ this.$u.post('/cusLvStatistics/staffStatisticsExecutionRateTop10',promse).then(res=>{ res.result.forEach(item=>{ - item.zxl=item.data + item.zxl=item.data; + item.zxl1=item.data; item.name=item.accountName }) - res.result=this.dealData(res.result) this.newlisttabinfo3=res; }) }, @@ -315,21 +316,26 @@ // 获取最大值 let num=Math.max.apply(Math, arr.map(function (o) { return o.zxl })) //结果:3 // console.log(num) - if(num>100){ - // 获取最大值的下标 - // let idx=arr.findIndex(item=>item.zxl==num) - // console.log(idx,123) - arr.map(item=>{ - item.zxl1=Math.floor(item.zxl/num*100) - }) - // console.log(arr) - return arr - }else{ - arr.map(item=>{ - item.zxl1=item.zxl - }) - return arr - } + // if(num>100){ + // // 获取最大值的下标 + // // let idx=arr.findIndex(item=>item.zxl==num) + // // console.log(idx,123) + // arr.map(item=>{ + // item.zxl1=Math.floor(item.zxl/num*100) + // }) + // // console.log(arr) + // return arr + // }else{ + // arr.map(item=>{ + // item.zxl1=item.zxl + // }) + // return arr + // } + arr.map(item=>{ + item.zxl1=Math.floor(item.zxl/num*100) + }) + return arr + }, } }; diff --git a/pages/center/Piabodata/index.vue b/pages/center/Piabodata/index.vue index a96ccaf..5d6e3d7 100644 --- a/pages/center/Piabodata/index.vue +++ b/pages/center/Piabodata/index.vue @@ -78,7 +78,7 @@ --> {{danwei}} - @@ -93,15 +93,9 @@ {{team.label}} - + - 单位(%) --> 单位(%) - @@ -330,7 +324,8 @@ Theteamcomparedisshow: false, Groupcontrastisshow: false, allechar: [], - allList: [] + allList: [], + optionsobj:{} }; }, onShow() { @@ -632,8 +627,6 @@ }) } this.bocindex = index; - // console.log(allobj) - // return this.lineOptsect = allobj }, tapspagek3(index) { diff --git a/pages/center/records/index.vue b/pages/center/records/index.vue index a8b9ce8..0c58a27 100644 --- a/pages/center/records/index.vue +++ b/pages/center/records/index.vue @@ -42,10 +42,12 @@ {{item.agentName}} 代接待 + {{item.receptionStatusName || ''}} + {{item.validInvalidName||''}} 违禁接待 | @@ -76,7 +78,7 @@ - + @@ -88,18 +90,20 @@ - - + 标记顾问 @@ -191,8 +195,8 @@ agentId:'',//顾问id record:'0', markAdvisor:null, - visitRecord:null - + visitRecord:null, + validInvalid:null }, freeList:[],//顾问 recordList:[], @@ -220,6 +224,9 @@ if(options.markAdvisor){ this.screen.markAdvisor=options.markAdvisor } + if(options.validInvalid){ + this.screen.validInvalid=options.validInvalid + } }, onShow() { this.userInfo = uni.getStorageSync('weapp_session_userInfo_data'); @@ -377,7 +384,8 @@ markAdvisor:this.screen.markAdvisor, dateType:dateType, recDurationInterval:recDurationInterval, - orderBy:orderBy + orderBy:orderBy, + validInvalid:this.screen.validInvalid } }; if(this.screen.agentId){ @@ -417,7 +425,8 @@ counselorName:'', record:'0', markAdvisor:null, - visitRecord:null + visitRecord:null, + validInvalid:null } this.screenShow=false; this.nextPage=1; @@ -438,6 +447,14 @@ this.screen.markAdvisor=i } }, + screenvisivalidInvalid(i){ + console.log(this.screen.validInvalid,i) + if(this.screen.validInvalid==i){ + this.screen.validInvalid=null + }else{ + this.screen.validInvalid=i + } + }, screensure(){ this.screenShow=false; this.recordList=[]; diff --git a/pages/center/records/recordSearch.vue b/pages/center/records/recordSearch.vue index bbb3e84..d862656 100644 --- a/pages/center/records/recordSearch.vue +++ b/pages/center/records/recordSearch.vue @@ -11,9 +11,11 @@ {{item.agentName}} 代接待 + {{item.receptionStatusName || ''}} + {{item.validInvalidName||''}} 违禁接待 | diff --git a/pages/index/index.vue b/pages/index/index.vue index bb9db1c..abbe24f 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -82,12 +82,25 @@ 实时统计 + + {{realtimeobj.receptionCount || 0}} 接待量 + + {{realtimeobj.activeCustomer|| 0}} + 有效接待 + {{realtimeobj.receivingCustomer || 0}} 正在接待 @@ -95,7 +108,7 @@ {{realtimeobj.tagCustomer || 0}} 未标顾问 - + @@ -110,10 +123,14 @@ {{realtimeobj.prohibitedCustomer || 0}} 违禁预警 - + + + + + - + 本周工作 @@ -123,10 +140,16 @@ {{Thisweekobj.receptionCount || 0}} 接待量 + + {{Thisweekobj.activeCustomer|| 0}} + 有效接待 + {{Thisweekobj.fraction || 0}}% 平均执行率 + + {{Thisweekobj.avgDuration|| 0}} 平均接待时长 @@ -135,8 +158,20 @@ {{Thisweekobj.prohibitedCustomer || 0}} 违禁预警 + + + + + + + 常用功能 @@ -158,7 +193,8 @@ - {{item.name}} + + {{item.name}} @@ -439,6 +475,14 @@ uni.navigateTo({ url: '/pages/center/records/index?refresh='+'refresh'+'&activeTotal='+'2' }); + }else if(i==6){ + uni.navigateTo({ + url: '/pages/center/records/index?refresh='+'refresh'+'&activeTotal='+'0'+'&validInvalid=0' + }); + }else if(i==7){ + uni.navigateTo({ + url: '/pages/center/records/index?refresh='+'refresh'+'&activeTotal='+'2'+'&validInvalid=0' + }); }else{ uni.navigateTo({ url: '/pages/center/records/index?refresh='+'refresh'+'&activeTotal=0'+'&markAdvisor=0' diff --git a/pages/mine/details2.vue b/pages/mine/details2.vue index a2df110..a96f977 100644 --- a/pages/mine/details2.vue +++ b/pages/mine/details2.vue @@ -158,10 +158,22 @@ 销讲执行 - - - 接待信息 + + + + 更多 + + 接待信息 + {{userlistobj.validInvalidName}} + + + + + + 接待信息 + + @@ -377,6 +389,8 @@ + + @@ -443,6 +457,10 @@ yixingindex:0,//意向,统计切换 buildingID:'', methodsisshow:false, + Thetapeidisshow:false, + Menulist:[], + Menulistisshow:false, + validInvalid:0, }; }, onLoad: function(options) { @@ -453,6 +471,13 @@ this.stateisshow=options.stateisshow; }, onShow() { + this.Menulist = uni.getStorageSync('weapp_session_Menu_data'); + this.Menulist.forEach(item=>{ + if(item.name=='标记有效无效接待'){ + this.Menulistisshow=true; + } + }) + this.intention=false; this.kehuyixiangcenterindex=0; @@ -638,6 +663,7 @@ this.Receivedetailsabout=false; this.Pinspeak=false; this.intention=false; + this.Thetapeidisshow=false; }, //意向统计切换 Intentiontoswitch(i){ @@ -659,11 +685,50 @@ this.options1=res; }) }, + + Receivetap(){ + this.Receivedetailsabout=true; + }, + //标记 + alllogo(){ + var that=this; + let msg=''; + if(this.userlistobj.validInvalid==0){ + msg='是否标记为"无效录音"?' + }else{ + msg='是否标记为"有效录音"?' + } + uni.showModal({ + title: '提示', + content: msg, + success: function (res) { + if (res.confirm) { + let parames={ + id:that.customerId, + validInvalid:'' + } + if(that.userlistobj.validInvalid==0){ + parames.validInvalid=1; + }else{ + parames.validInvalid=0; + } + that.$u.post("/customer/updateValidInvalid", parames).then(res => { + console.log(res) + that.Thetapeidisshow=false; + }) + } else if (res.cancel) { + that.Thetapeidisshow=false; + } + } + }); + }, + + //接待详情点击 Receivedetailsabouttab(stringa){ if(stringa=='Receivedetailsabout'){ this.gituserlist() - this.Receivedetailsabout=true; + this.Thetapeidisshow=!this.Thetapeidisshow; }else if(stringa=='Pinspeak'){ this.getRatelist() this.Pinspeak=true; @@ -1736,6 +1801,17 @@ text-align: center; color: #666666; font-size: 18rpx; + position: relative; + .allimg{ + position: absolute; + width: 168rpx; + top: -152rpx; + border: 1px solid #E0E0E0; + background: #FFFFFF; + font-size: 26rpx; + color: #333333; + text-align: center; + } } .tmmchen image{ width: 40rpx; diff --git a/pages/mine/equipment/index.vue b/pages/mine/equipment/index.vue index 68b3354..f4d8e65 100644 --- a/pages/mine/equipment/index.vue +++ b/pages/mine/equipment/index.vue @@ -122,7 +122,7 @@ } this.newListdata=[] this.pageNum=1; - this.pageSize=5; + this.pageSize=20; this.init() }, filters: { @@ -161,7 +161,7 @@ shecs(){ this.newListdata=[] this.pageNum=1; - this.pageSize=5; + this.pageSize=20; this.init() }, // tab @@ -169,7 +169,7 @@ this.activeClass=index; this.newListdata=[] this.pageNum=1; - this.pageSize=5; + this.pageSize=20; this.init() }, init(){ @@ -184,6 +184,7 @@ orderType:1 } } + if(this.activeClass==0){ parames.query.onLine=null } @@ -204,7 +205,7 @@ } }else{ res.obj.list.results.forEach(item=>{ - if(this.activeClass==1){ + if(item.onLine==0){ item.signalDevice=0 } diff --git a/static/images/allimg.png b/static/images/allimg.png new file mode 100644 index 0000000..44fb636 Binary files /dev/null and b/static/images/allimg.png differ diff --git a/uni_modules/qiun-data-charts/js_sdk/u-charts/config-ucharts.js b/uni_modules/qiun-data-charts/js_sdk/u-charts/config-ucharts.js index 807f8f3..4742ee8 100644 --- a/uni_modules/qiun-data-charts/js_sdk/u-charts/config-ucharts.js +++ b/uni_modules/qiun-data-charts/js_sdk/u-charts/config-ucharts.js @@ -334,7 +334,8 @@ module.exports = { "gridColor": "#CCCCCC", "padding": 10, "showTitle": false, - "min":20, + "min":0, + "max":10, "data": [] }, "legend": { diff --git a/utils/http.js b/utils/http.js index 3ecee47..f644395 100644 --- a/utils/http.js +++ b/utils/http.js @@ -1,9 +1,9 @@ // const baseUrl = 'http://121.42.63.138:9091/autoSR/api';// 测试站 -// const baseUrl = 'http://192.168.31.160:8080/autoSR/api'; // 长龙 -// const baseUrl = 'http://192.168.31.127:8080/autoSR/api'; // 佳豪 +const baseUrl = 'http://192.168.31.160:8080/autoSR/api'; // 长龙 +// const baseUrl = 'http://192.168.31.129:8080/autoSR/api'; // 佳豪 // const baseUrl = 'http://10.2.1.104:8081/autoSR/api'; // 刘敏 -const baseUrl = 'https://zkgj.quhouse.com/api'; // 质控正式 +// const baseUrl = 'https://zkgj.quhouse.com/api'; // 质控正式 // const baseUrl = 'https://hfju.com/api'; // 数智正式 const install = (Vue, vm) => {