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 2916373..4ec4594 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){ @@ -241,6 +300,11 @@ this.$u.post("/customer/getCusStage", { customerId: this.customerId }).then(res => { + res.forEach(item=>{ + item.agentName=this.customerInfo.agentName + }) + + this.fllowList = res; }) }, @@ -331,6 +395,45 @@