@@ -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'; // 数智正式 | |||
@@ -42,10 +42,12 @@ | |||
<!-- <view class="img">{{item.agentName.slice(0,1)}}</view> --> | |||
<view class="name">{{item.agentName}}</view> | |||
<view class="status" v-if="item.replaceReception==1">代接待</view> | |||
<view style="margin-left: 6rpx;margin-top: 11rpx;">{{item.receptionStatusName || ''}}</view> | |||
</view> | |||
<view class="right" v-if="item.recording!=0"> | |||
<view style="margin-right: 6rpx;">{{item.validInvalidName||''}}</view> | |||
<view v-if="methodsisshow==true"> | |||
<text style="color: red;" v-if="item.taboo==1">违禁接待</text> | |||
<text v-if="item.taboo==1"> |</text> | |||
@@ -76,7 +78,7 @@ | |||
</view> | |||
</view> | |||
<u-popup v-model="screenShow" mode="top" height="590"> | |||
<u-popup v-model="screenShow" mode="top" height="780"> | |||
<view class="screen"> | |||
<!-- 顾问选择 --> | |||
<view class="screen-counselor"> | |||
@@ -88,18 +90,20 @@ | |||
<image class="screen-sel-img" src="../../../static/images/right.png" mode=""></image> | |||
</view> | |||
</view> | |||
<!-- 录音标示 --> | |||
<!-- <view class="screen-record"> | |||
<view class="screen-record-text">录音标识</view> | |||
<view class="screen-record"> | |||
<view class="screen-record-text"> | |||
录音标识 | |||
</view> | |||
<view class="screen-record-tab"> | |||
<view :class="[screen.record==0?'screen-record-chose':'screen-record-nochose']" @click="screen.record=0"> | |||
有效录音 | |||
<view :class="[screen.validInvalid==0?'screen-record-chose':'screen-record-nochose']" @click="screenvisivalidInvalid(0)"> | |||
有效接待 | |||
</view> | |||
<view :class="[screen.record==1?'screen-record-chose':'screen-record-nochose']" @click="screen.record=1"> | |||
无效录音 | |||
<view :class="[screen.validInvalid==1?'screen-record-chose':'screen-record-nochose']" @click="screenvisivalidInvalid(1)"> | |||
无效接待 | |||
</view> | |||
</view> | |||
</view> --> | |||
</view> | |||
<view class="screen-record"> | |||
<view class="screen-record-text"> | |||
标记顾问 | |||
@@ -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=[]; | |||
@@ -11,9 +11,11 @@ | |||
<!-- <view class="img">{{item.agentName.slice(0,1)}}</view> --> | |||
<view class="name">{{item.agentName}}</view> | |||
<view class="status" v-if="item.replaceReception==1">代接待</view> | |||
<view style="margin-left: 6rpx;margin-top: 11rpx;">{{item.receptionStatusName || ''}}</view> | |||
</view> | |||
<view class="right" v-if="item.recording!=0"> | |||
<view style="margin-right: 6rpx;">{{item.validInvalidName||''}}</view> | |||
<view v-if="methodsisshow==true"> | |||
<text style="color: red;" v-if="item.taboo==1">违禁接待</text> | |||
<text v-if="item.taboo==1"> |</text> | |||
@@ -82,12 +82,25 @@ | |||
<view class="title">实时统计</view> | |||
<!-- <view class="real-timebox"> | |||
<view class="timebox"> | |||
</view> | |||
<view class="timebox"> | |||
</view> | |||
</view> --> | |||
<view class="real-timebox"> | |||
<view class="timebox"> | |||
<view class="real" @click="tapjumpreception('1')"> | |||
<view class="realnum">{{realtimeobj.receptionCount || 0}}</view> | |||
<view class="realtext">接待量</view> | |||
</view> | |||
<view class="real" @click="tapjumpreception('6')"> | |||
<view class="realnum">{{realtimeobj.activeCustomer|| 0}}</view> | |||
<view class="realtext">有效接待</view> | |||
</view> | |||
<view class="real" @click="tapjumpreception('2')"> | |||
<view class="realnum">{{realtimeobj.receivingCustomer || 0}}</view> | |||
<view class="realtext">正在接待</view> | |||
@@ -95,7 +108,7 @@ | |||
<view class="real" @click="tapjumpreception('4')"> | |||
<view class="realnum">{{realtimeobj.tagCustomer || 0}}</view> | |||
<view class="realtext">未标顾问</view> | |||
</view> | |||
</view> | |||
</view> | |||
<view class="timebox"> | |||
<view class="real" @click="tapjumpreception('1')"> | |||
@@ -110,10 +123,14 @@ | |||
<view @click="prohibitedtap(1)" v-if="methodsisshow==true" class="realnum" style="color: red;" >{{realtimeobj.prohibitedCustomer || 0}}</view> | |||
<view @click="prohibitedtap(1)" v-if="methodsisshow==true" class="realtext">违禁预警</view> | |||
</view> | |||
<view class="real"> | |||
<view class="realnum"></view> | |||
<view class="realtext"></view> | |||
</view> | |||
</view> | |||
</view> | |||
<view class="title">本周工作</view> | |||
@@ -123,10 +140,16 @@ | |||
<view class="realnum">{{Thisweekobj.receptionCount || 0}}</view> | |||
<view class="realtext">接待量</view> | |||
</view> | |||
<view class="real" @click="tapjumpreception('7')"> | |||
<view class="realnum">{{Thisweekobj.activeCustomer|| 0}}</view> | |||
<view class="realtext">有效接待</view> | |||
</view> | |||
<view class="real" @click="tapjumpreception('3')"> | |||
<view class="realnum">{{Thisweekobj.fraction || 0}}%</view> | |||
<view class="realtext">平均执行率</view> | |||
</view> | |||
</view> | |||
<view class="timebox"> | |||
<view class="real" @click="tapjumpreception('3')"> | |||
<view class="realnum">{{Thisweekobj.avgDuration|| 0}}</view> | |||
<view class="realtext">平均接待时长</view> | |||
@@ -135,8 +158,20 @@ | |||
<view class="realnum" style="color: red;" >{{Thisweekobj.prohibitedCustomer || 0}}</view> | |||
<view class="realtext">违禁预警</view> | |||
</view> | |||
<view class="real"> | |||
<view class="realnum"></view> | |||
<view class="realtext"></view> | |||
</view> | |||
</view> | |||
</view> | |||
<!-- <view class="real-timebox"> | |||
<view class="timebox"> | |||
</view> | |||
</view> --> | |||
<view class="title">常用功能</view> | |||
@@ -158,7 +193,8 @@ | |||
<image v-if="item.name=='违禁记录'" class="commonly-img1" src="../../static/images/prohibited.png" | |||
mode=""></image> | |||
</view> | |||
<view class="commonly-text">{{item.name}}</view> | |||
<view v-if="item.name=='标记有效无效接待'" class="commonly-text"></view> | |||
<view v-else class="commonly-text">{{item.name}}</view> | |||
</view> | |||
</view> | |||
@@ -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' | |||
@@ -158,10 +158,22 @@ | |||
<view>销讲执行</view> | |||
</view> | |||
<view class="fill"></view> | |||
<view class="tmmchen" @click="Receivedetailsabouttab('Receivedetailsabout')"> | |||
<image src="../../static/images/audioinfo2.png" mode=""></image> | |||
<view>接待信息</view> | |||
<!-- audioinfo2 --> | |||
<view class="tmmchen" v-if="Menulistisshow==true"> | |||
<image @click="Receivedetailsabouttab('Receivedetailsabout')" src="../../static/images/allimg.png" mode=""></image> | |||
<view @click="Receivedetailsabouttab('Receivedetailsabout')">更多</view> | |||
<view class="allimg" v-if="Thetapeidisshow"> | |||
<view @click="Receivetap()" style="line-height: 70rpx;margin-top: 10rpx;">接待信息</view> | |||
<view @click="alllogo()" style="line-height:70rpx;">{{userlistobj.validInvalidName}}</view> | |||
</view> | |||
</view> | |||
<view class="tmmchen" @click="Receivetap()" v-if="Menulistisshow==false"> | |||
<image @click="Receivedetailsabouttab('Receivedetailsabout')" src="../../static/images/audioinfo2.png" mode=""></image> | |||
<view @click="Receivedetailsabouttab('Receivedetailsabout')">接待信息</view> | |||
</view> | |||
</view> | |||
</view> | |||
@@ -377,6 +389,8 @@ | |||
</view> | |||
</view> | |||
</template> | |||
@@ -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; | |||
@@ -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'; // 数智正式 | |||