diff --git a/config.js b/config.js index a5f2c6d..8dc7f29 100644 --- a/config.js +++ b/config.js @@ -2,9 +2,9 @@ * 小程序配置文件 */ // 此处主机域名修改成腾讯云解决方案分配的域名 -// var host = 'http://121.42.63.138:9091/autoSR/api'; // 测试站 +var host = 'http://121.42.63.138:9091/autoSR/api'; // 测试站 // var host = 'http://192.168.31.161:8080/autoSR/api'; // 长龙 -var host = 'http://192.168.31.129: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://hfju.com/api'; // 数智正式 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/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/utils/http.js b/utils/http.js index 7f2117e..25b5bf4 100644 --- a/utils/http.js +++ b/utils/http.js @@ -1,7 +1,7 @@ -// const baseUrl = 'http://121.42.63.138:9091/autoSR/api';// 测试站 +const baseUrl = 'http://121.42.63.138:9091/autoSR/api';// 测试站 // const baseUrl = 'http://192.168.31.161:8080/autoSR/api'; // 长龙 -const baseUrl = 'http://192.168.31.129: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://hfju.com/api'; // 数智正式