From f8e87a8b0901b42ace9ec6c40a0ce3c5741c2187 Mon Sep 17 00:00:00 2001 From: douzhuo <17611323298@163.com> Date: Wed, 22 Jun 2022 15:52:46 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A5=E6=8A=A5=E5=A4=8D=E5=88=B6=E5=86=85?= =?UTF-8?q?=E5=AE=B9=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/reportExcel/dayReport.vue | 44 +++++++++++++++++++++++---------- utils/domain.js | 4 +-- 2 files changed, 33 insertions(+), 15 deletions(-) diff --git a/pages/reportExcel/dayReport.vue b/pages/reportExcel/dayReport.vue index d27d60e..3f2019b 100644 --- a/pages/reportExcel/dayReport.vue +++ b/pages/reportExcel/dayReport.vue @@ -224,6 +224,12 @@ + + @@ -360,20 +366,20 @@ 1、接待量:${this.weekObj.receptionCount || 0 } - 2、有效接待:${this.weekObj.activeCustomer || 0} + 有效接待:${this.weekObj.activeCustomer || 0} - 3、有效接待率:${this.weekObj.validReceptionRate || 0}% + 有效接待率:${this.weekObj.validReceptionRate || 0}% 对比昨天:${ this.weekObj.validReceptionRatePK > 0 ? '+' : '' }${ this.weekObj.validReceptionRatePK || 0 }% - 4、平均执行率:${ this.weekObj.fraction || 0 }% + 2、平均执行率:${ this.weekObj.fraction || 0 }% 对比昨天:${ this.weekObj.fractionPK > 0 ? '+' : '' }${ this.weekObj.fractionPK || 0 }% - 5、平均接待时长:${ this.weekObj.avgDuration || 0 }min + 3、平均接待时长:${ this.weekObj.avgDuration || 0 }min 对比昨天:${this.weekObj.avgDurationPK > 0 ? '+' : '' }${ this.weekObj.avgDurationPK || 0 }min` if (this.carryOutTop.length > 0) { str += ` - 6、销讲维度执行前三:` + 4、销讲维度执行前三:` this.carryOutTop.map((item, index) => { str += ` top${index+1}.${item.title || '--'}${item.value||'0'}%` @@ -383,36 +389,48 @@ if (this.carryOutLast.length > 0) { str += ` - 7、销讲维度执行弱项前三:` + 5、销讲维度执行弱项前三:` this.carryOutLast.map((item, index) => { str += ` top${index+1}.${item.title || '--'}${item.value||'0'}%` }) } + if (this.consultant.length > 0) { str += ` - 8、置业顾问平均执行率排名:` + 6、置业顾问平均执行率排名:` this.consultant.map((item, index) => { str += ` top${index+1}.${item.title || '--'}${item.value||'0'}%` }) } + if (this.recording.length > 0) { str += ` - 9、平均执行率最低的顾问:` + 7、置业顾问平均接访时长排名:` this.recording.map((item, index) => { str += ` - top${index+1}.${item.title || '--'}${item.value||'0'}min` + top${index+1}.${item.title || '--'}${item.value||'0'}%` + }) + } + + if (this.lowest.length > 0) { + str += ` + + 8、平均执行率最低的顾问:` + this.lowest.map((item, index) => { + str += ` + top${index+1}.${item.title || '--'}${item.value||'0'}%` }) } str += ` - 10、客户画像触达:${this.weekObj.reachSum || 0}次 + 9、客户画像触达:${this.weekObj.reachSum || 0}次 - 11、未标记接待数:${ this.weekObj.unlabelledReceptionNum || 0 }条 + 10、未标记接待数:${ this.weekObj.unlabelledReceptionNum || 0 }条 - 12、设备情况: + 11、设备情况: 在线${this.weekObj.equipmentInfo.onlineNum || 0} 离线:${this.weekObj.equipmentInfo.offlineNum || 0}` @@ -432,8 +450,8 @@ this.lowest.push(this.weekObj.ZXLTopList[this.weekObj.ZXLTopList.length - 1]) } if (this.weekObj.avgJdsList && this.weekObj.avgJdsList.length > 0) { - console.log(this.weekObj.avgJdsList.slice(0, 3)) this.recording = this.weekObj.avgJdsList.reverse().slice(0, 3) + console.log() } }, diff --git a/utils/domain.js b/utils/domain.js index 3b2986b..8ae1cb3 100644 --- a/utils/domain.js +++ b/utils/domain.js @@ -1,8 +1,8 @@ // http.js使用域名 -// const baseUrl = 'http://81.70.55.170:9090/autoSR/api';// 最新测试 +const baseUrl = 'http://81.70.55.170:9090/autoSR/api';// 最新测试 // const baseUrl = 'http://192.168.31.211:8080/api';// 泽明 // const baseUrl = 'http://localhost:8080/autoSR/api'; // 本地 -const baseUrl = 'http://192.168.31.161:8080/autoSR/api'; // 长龙 +// const baseUrl = 'http://192.168.31.161:8080/autoSR/api'; // 长龙 // const baseUrl = 'https://zkgj.quhouse.com/api'; // 质控正式 // const baseUrl = 'https://hfju.com/api'; // 数智正式