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] 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'; // 数智正式