From 0571c50ef10648b0f0e641e72df0e70579d5bb1c Mon Sep 17 00:00:00 2001 From: wangxiaohua <1214073490@qq.com> Date: Wed, 13 Oct 2021 13:49:44 +0800 Subject: [PATCH 1/3] init --- config.js | 6 +- .../center/Piabodata/Employeesstatistics.vue | 72 ++++++++++--------- pages/center/Piabodata/index.vue | 17 ++--- pages/mine/equipment/index.vue | 9 +-- .../js_sdk/u-charts/config-ucharts.js | 3 +- utils/http.js | 6 +- 6 files changed, 57 insertions(+), 56 deletions(-) diff --git a/config.js b/config.js index 8ce4613..e62aee4 100644 --- a/config.js +++ b/config.js @@ -2,11 +2,11 @@ * 小程序配置文件 */ // 此处主机域名修改成腾讯云解决方案分配的域名 -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.127: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/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/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 6c777aa..7e74b27 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://121.42.63.138:9091/autoSR/api';// 测试站 // const baseUrl = 'http://192.168.31.161:8080/autoSR/api'; // 长龙 -// const baseUrl = 'http://192.168.31.127: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) => { From d7b0ff69c1f9aacde66c43048ab20f92b936985d Mon Sep 17 00:00:00 2001 From: wangxiaohua <1214073490@qq.com> Date: Wed, 13 Oct 2021 19:17:15 +0800 Subject: [PATCH 2/3] init --- config.js | 4 ++-- utils/http.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/config.js b/config.js index e62aee4..a5f2c6d 100644 --- a/config.js +++ b/config.js @@ -4,9 +4,9 @@ // 此处主机域名修改成腾讯云解决方案分配的域名 // 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://zkgj.quhouse.com/api'; // 质控正式 // var host = 'https://hfju.com/api'; // 数智正式 diff --git a/utils/http.js b/utils/http.js index 7e74b27..7f2117e 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.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://zkgj.quhouse.com/api'; // 质控正式 // const baseUrl = 'https://hfju.com/api'; // 数智正式 const install = (Vue, vm) => { From 744c7e12f566b748f77d2608a393a7cd6af3cd71 Mon Sep 17 00:00:00 2001 From: wangxiaohua <1214073490@qq.com> Date: Thu, 14 Oct 2021 20:45:10 +0800 Subject: [PATCH 3/3] init --- config.js | 4 +- pages/center/records/index.vue | 43 +++++++++---- pages/center/records/recordSearch.vue | 2 + pages/index/index.vue | 52 ++++++++++++++-- pages/mine/details2.vue | 84 ++++++++++++++++++++++++-- static/images/allimg.png | Bin 0 -> 1517 bytes utils/http.js | 4 +- 7 files changed, 164 insertions(+), 25 deletions(-) create mode 100644 static/images/allimg.png 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 0000000000000000000000000000000000000000..44fb636b915d0d7dbc2957c120f313962b74decf GIT binary patch literal 1517 zcmVPx)r%6OXRCr$Pon2@gRTRh1ncalAsn!QUD}Gdvq9vs%+E%ep(F(SYQlG5V`f%^e zE}8^_U`11Xup)sF4ZAY~QmG#=qL21L5vfW)1e?;T=z~c7NCbT_F(0x!bL4Jz+jO&= z+?hMG5j^|QLi+!obLZDPxp(iqX9l7685$bunwpv#B%%iZU>hP{Q~$Sw|1J~JHvn)3 z0ABTdf5IfbZQC1(=s6$WT6YX~Z@RLrA7@F+>a9x9MMggQI!A|(Tzb{6T zRV`A=r-|tGMqwtC*;gu+POKUL0365J8w9~ejao!}#`C;4bYeu+2q9Fyy~}bkKs}TU zP>)kf6$4~|mkIFiKpsTm-w!+r$7fe{GC&4+1p%H&Yjy~p#%O|SC1ZdLkmrFs3LD-9 z43Gixa#rjJ&nE(g}3q zS(bIsb=|jh^-5>k_ETXPz8S@nuy&@Sqhm|`c-!M)7#;(FOu|W44Tp%wJ zl=2u6JsHPq=qX#4b;xzycdG!^$8nsyf*>dXz}@w8gN8{~v?JoL0C3pzyyGT$)EPk{ zItl2{}anuwdL^(P0GFETvIHMWmyNJ_QcwM`a7`_CSzJ$P?b`8L?n`l87~SV z{_J^Pq+3u*IYC5`wgKX`uC=SWq%VX}wZgqg2ag&ro6T-07K>9lzI;A^L#0yD+JMrD zXP_BZJy4b4H!eb|ojTVba7!y9?k1u~8U<0dH66#<69mD>O_Hq1wkB6=YV;I7T%-YM zB?$v$fR_nyu^|^5#=jr9RxUofs*?dSz$*xFv7u&%;AxB|s8%ut$N+gB$fK~~UBCbt zAQv0P?gKmu$40kkWPl8ir!hPV8{P#BkO4NI#{2^Soegl*LukKB0$7t68yl-0l_ttV zXr+`75>d0t&h|fqR!aE=5#5&(EUmCnAA{WA-+%4={QRG7It1178mf;$mQub*L@#Mw zX?mhFzVF`?CA^gK6cI)8M2WAdJ%Z{y;Pmvgs@B}3X-ZmF&StYaipAo1l)$yxzEf*) zqD-~((xc#Ov+OMZ@F4))9_1oTwTP&mT&@cDVx6**QXZ^T*0;M<_XhyjUws)t9m2rC zz*V!ev(Ey+9z^U->kSF2OdbHLufssZqps^3Ri3NYVT57$JOHTIVQg;q>oEQWsmr<) T-bGFr00000NkvXXu0mjfj>ogF literal 0 HcmV?d00001 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'; // 数智正式