diff --git a/config.js b/config.js index be10eb6..72d9e33 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.163:8080/autoSR/api'; // 长龙 -// var host = 'http://192.168.31.128:8080/autoSR/api'; // 佳豪 +var host = 'http://192.168.31.128: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/Piabodata/Customerportrait/Receivedetailabout.vue b/pages/center/Piabodata/Customerportrait/Receivedetailabout.vue index 5ea7538..b2b2d28 100644 --- a/pages/center/Piabodata/Customerportrait/Receivedetailabout.vue +++ b/pages/center/Piabodata/Customerportrait/Receivedetailabout.vue @@ -968,7 +968,7 @@ Confirmthetag(){ var num=this.roleindexbiaoji+1; uni.request({ - url: config.service.markConsultant + '?id=' + this.luyinList[this.csdFileindex].id+"&speaker="+num, //仅为示例,并非真实接口地址。 + url: config.service.markConsultant + '?id=' + this.luyinList[this.csdFileindex].id+"&speaker="+num+'&customerId='+this.customerId, //仅为示例,并非真实接口地址。 method: "GET", header: { 'content-type': 'application/json', diff --git a/pages/center/consumer/consumerDetail.vue b/pages/center/consumer/consumerDetail.vue index d832f1c..043cd29 100644 --- a/pages/center/consumer/consumerDetail.vue +++ b/pages/center/consumer/consumerDetail.vue @@ -57,33 +57,52 @@ - - - - - {{item.agentName.slice(0,1) || '--'}} - {{item.agentName || '--'}} - 代接待 - - + + + + + + - - - - 客户:{{item.name || ''}} | - {{item.visitRecord || '--'}}次到访 - - {{item.fraction || '0'}}% | {{item.fraction || '0'}}分 + 暂无数据 + + + + + + {{item.agentName.slice(0,1) || '--'}} + {{item.agentName || '--'}} + 代接待 + + + + + + + 客户:{{item.name || ''}} | + {{item.visitRecord || '--'}}次到访 - - {{item.createTime}} | {{item.mm || '--'}}分钟 + {{item.fraction || '0'}}% | {{item.fraction || '0'}}分 + + {{item.createTime}} | {{item.mm || '--'}}分钟 + - - + + + + + + + + + 暂无数据 + + + @@ -92,7 +111,7 @@ {{item.createTime}} - {{item.remarks || '--'}} + 跟进内容:{{item.remarks || '暂无'}} - - 总执行率 {{totalRate}}% - - - - {{item.name}} + + 执行总览 + + + 3次 + 接待次数 + + + + + {{customerInfo.fraction}}% + - - + 销讲执行率 + + + {{customerInfo.mm}}分 + 接待时长 + + + + 指标 + 执行率 + + + + + - {{((item.ratepercent/item.rate).toFixed(2)*100).toFixed()}}% - - + 暂无数据 - - - - {{subitem.name}} - - + + + + + + + {{item.name}} + + + + + {{((item.ratepercent/item.rate).toFixed(2)*100).toFixed()}}% + + + + + + {{subitem.name}} + + + + - + 添加提醒 写跟进 @@ -154,12 +205,20 @@ totalRate:[], ratelist:[], fllowList:[], + userInfo:{}, + buttonisshow:false } }, onLoad(options) { this.customerId = options.id; }, onShow() { + this.userInfo = uni.getStorageSync('weapp_session_userInfo_data'); + if(this.userInfo.dataCode == 6){ + this.buttonisshow=true; + }else{ + this.buttonisshow=false + } this.getCustomerInfo() this.tabtimetap(0) }, @@ -176,12 +235,12 @@ this.$u.get("/customer/findById", { id: this.customerId }).then(res => { + if(res.fraction==null){ + res.fraction='0'; + } this.customerInfo = res; }) }, - - - tabtimetap(idx){ this.activeTotal=idx if(idx==0){ @@ -234,6 +293,11 @@ this.$u.post("/customer/getCusStage", { customerId: this.customerId }).then(res => { + res.forEach(item=>{ + item.agentName=this.customerInfo.agentName + }) + + this.fllowList = res; }) }, @@ -324,6 +388,45 @@