From ecb03a07eee6ed7666d2d42626e5a47d479e6f07 Mon Sep 17 00:00:00 2001 From: douzhuo <17611323298@163.com> Date: Tue, 1 Mar 2022 10:18:11 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=A6=85=E9=81=93=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/center/Piabodata/Theteamcompared.vue | 25 +- pages/center/Piabodata/TrendAnalysis.vue | 174 ++++---- pages/center/consumer/consumerDetail.vue | 17 +- pages/center/consumer/edit.vue | 25 +- pages/center/prohibited/index.vue | 453 +++++++++++++-------- pages/center/records/index.vue | 101 +++-- pages/index/consumer/index.vue | 94 ++++- pages/index/customer.vue | 21 +- pages/learning/Thefulltext/index2.vue | 2 +- pages/mine/details2.vue | 26 +- pages/mine/equipment/index.vue | 2 +- pages/mine/reception/addreception.vue | 2 +- pages/mine/reception/consultant.vue | 95 +++-- 13 files changed, 646 insertions(+), 391 deletions(-) diff --git a/pages/center/Piabodata/Theteamcompared.vue b/pages/center/Piabodata/Theteamcompared.vue index 5841be4..6b87b26 100644 --- a/pages/center/Piabodata/Theteamcompared.vue +++ b/pages/center/Piabodata/Theteamcompared.vue @@ -57,8 +57,10 @@ 接待量 - + @@ -98,8 +100,10 @@ 录音时长 - + @@ -132,8 +136,10 @@ 执行率 - + @@ -370,6 +376,9 @@ this.timepickpickisshow = !this.timepickpickisshow; this.staff2.label = '平均' this.staff2.value = '' + this.lineOptsect1 = null + this.lineOptsect2 = null + this.lineOptsect3 = null // 团队对比接待量 this.receptionCountList(this.eharTab.active1, 1, '/cusLvStatistics/teamAnalysisReception') // 团队对比接待时长 @@ -685,7 +694,7 @@ // this['lineOptsect'+index].series=allobj.series // this['lineOptsect'+index].categories=allobj.categories } - + this.$forceUpdate() }) }, @@ -809,7 +818,7 @@ top: var(--window-top); z-index: 999; } - + .box { width: 100%; height: 100%; diff --git a/pages/center/Piabodata/TrendAnalysis.vue b/pages/center/Piabodata/TrendAnalysis.vue index b6f202c..5b39857 100644 --- a/pages/center/Piabodata/TrendAnalysis.vue +++ b/pages/center/Piabodata/TrendAnalysis.vue @@ -51,12 +51,12 @@ {{item.name}} - {{index==1?item.num+'%':item.num}} + {{index==0?item.num+'%':item.num}} 对比:{{index==1?item.num1+'%':item.num1}} - {{item.num2+'%'}} {{(item.num2*1) > 0 ? '↑' : '↓'}} + {{item.num2+'%'}} + {{(item.num2*1) > 0 ? '↑' : '↓'}} @@ -225,19 +225,25 @@ selindexList: [0], // 默认选中第一项 compareFlag: false, numlist: [{ - name: '接待量', + name: '平均执行率', num: '10', num1: '0', num2: '0' }, { - name: '平均执行率', + name: '平均接待时长', num: '10', num1: '0', num2: '0' }, { - name: '平均接待时长', + name: '接待量', + num: '10', + num1: '0', + num2: '0' + }, + { + name: '有效接待', num: '10', num1: '0', num2: '0' @@ -387,19 +393,26 @@ this.$u.post("/cusLvStatistics/lyAndcp", this.pamect).then(data => { this.pamect.lastStartDate = data.lastStartDate; this.pamect.lastEndDate = data.lastEndDate; - this.numlist[0].num = data.startSumCustomer - this.numlist[1].num = data.startFraction; - - this.numlist[2].num = data.startSumDuration || 0; + this.numlist[3].num = data.startSumCustomer + this.numlist[0].num = data.startFraction; + this.numlist[1].num = data.startSumDuration || 0; + this.numlist[2].num = data.startReceptionCount || 0 + // startReceptionCount开始接待量 + // endReceptionCount结束接待量 + // contrastReceptionCount接待量对比 if (data.endSumDuration != null) { this.compareFlag = true // return - this.numlist[0].num1 = data.endSumCustomer - this.numlist[1].num1 = data.endFraction; - this.numlist[2].num1 = data.endSumDuration || 0; - this.numlist[0].num2 = data.contrastSumCustomer - this.numlist[1].num2 = data.contrastFraction; - this.numlist[2].num2 = data.contrastSumDuration || 0; + this.numlist[3].num1 = data.endSumCustomer + this.numlist[0].num1 = data.endFraction; + this.numlist[1].num1 = data.endSumDuration || 0; + this.numlist[2].num = data.endReceptionCount || 0 + this.numlist[3].num2 = data.contrastSumCustomer + this.numlist[0].num2 = data.contrastFraction; + this.numlist[1].num2 = data.contrastSumDuration || 0; + this.numlist[2].num = data.contrastReceptionCount || 0 + + } else { this.compareFlag = false } @@ -587,75 +600,76 @@ }; this.linetype = "line"; this.$u.post("/cusLvStatistics/teamOrOneValueShow", this.pamect).then(data => { - if (data.data != null) { - if (this.pamect.showStatus == 0) { - that.lineOptsect = { - categories: [], - series: [{ + if (this.pamect.showStatus == 0) { + that.lineOptsect = { + categories: [], + series: [{ + name: '起始时间', + data: [], + color: '#7ED3F4' + }] + } + data.startList.forEach((child, zxc) => { + that.lineOptsect.categories.push(child.statDate.substring(5, 10)) + }) + that.lineOptsect.series[0].data = data.startList.map(item => item.fraction); + console.log(that.lineOptsect.series, 'asdasdsadsadass00000000000000') + } else { + that.lineOptsect = { + categories: [], + series: [{ name: '起始时间', data: [], color: '#7ED3F4' - }] - } - data.startList.forEach((child, zxc) => { - that.lineOptsect.categories.push(child.statDate.substring(5, 10)) - }) - that.lineOptsect.series[0].data = data.startList.map(item => item.fraction); - } else { - that.lineOptsect = { - categories: [], - series: [{ - name: '起始时间', - data: [], - color: '#7ED3F4' - }, - { - name: '对比时间', - data: [], - color: '#FF7070' - }, - ] - } - data.startList.forEach((item, sdf) => { - data.endList.forEach((child, zxc) => { - if (sdf == zxc) { - that.lineOptsect.categories.push( - child.statDate.substring(5, 10) + 'vs' + item - .statDate - .substring(5, 10) - ) - } - }) - }) - that.lineOptsect.series[1].data = data.startList.map(item => item.fraction); - that.lineOptsect.series[0].data = data.endList.map(item => item.fraction) - that.guwenFlag = false - // // 处理表格数据 - let arr = [ - ['时间', '时段一', '时段二', '变化'] - // { - // time:'时间', - // time1:'时段一', - // time2:'时段二', - // compare:'变化' - // }, + }, + { + name: '对比时间', + data: [], + color: '#FF7070' + }, ] - that.lineOptsect.categories.map((item, index) => { - let newarr = [item, data.endList[index].fraction, data.startList[index] - .fraction, data.comparedList[index].fraction - ] - // obj.time=item - // obj.time1=data.firstValue[index].fraction - // obj.time2=data.lastValue[index].fraction - // obj.compare=data.contrast[index].data - // arr.push(obj) - arr.push(newarr) - }) - // console.log(arr) - that.tableDate = arr } + data.startList.forEach((item, sdf) => { + data.endList.forEach((child, zxc) => { + if (sdf == zxc) { + that.lineOptsect.categories.push( + child.statDate.substring(5, 10) + 'vs' + item + .statDate + .substring(5, 10) + ) + } + }) + }) + that.lineOptsect.series[1].data = data.startList.map(item => item.fraction); + that.lineOptsect.series[0].data = data.endList.map(item => item.fraction) + that.guwenFlag = false + // // 处理表格数据 + let arr = [ + ['时间', '时段一', '时段二', '变化'] + // { + // time:'时间', + // time1:'时段一', + // time2:'时段二', + // compare:'变化' + // }, + ] + that.lineOptsect.categories.map((item, index) => { + let newarr = [item, data.endList[index].fraction, data.startList[index] + .fraction, data.comparedList[index].fraction + ] + // obj.time=item + // obj.time1=data.firstValue[index].fraction + // obj.time2=data.lastValue[index].fraction + // obj.compare=data.contrast[index].data + // arr.push(obj) + arr.push(newarr) + }) + // console.log(arr) + that.tableDate = arr + console.log(that.lineOptsect.series, 'asdasdsadsadass00000000000000else') } }); + }, //顾问维度 ConsultantDimension() { @@ -1392,8 +1406,4 @@ border-right: none; border-bottom: none; } - - .grid:nth-child(3) { - width: 50.5%; - } diff --git a/pages/center/consumer/consumerDetail.vue b/pages/center/consumer/consumerDetail.vue index cb5099b..2ee9aa3 100644 --- a/pages/center/consumer/consumerDetail.vue +++ b/pages/center/consumer/consumerDetail.vue @@ -9,8 +9,6 @@ B C D - - {{customerInfo.name || '--'}} @@ -24,7 +22,7 @@ 手机号码: - {{customerInfo.phone&&customerInfo.isShow==1?customerInfo.phone.length==11?customerInfo.phone.substr(0, 3) + '****' + customerInfo.phone.substr(7):customerInfo.phone:customerInfo.phone&&customerInfo.isShow!=1?customerInfo.phone: '--'}} + {{customerInfo.phone | phoneText}} @@ -238,6 +236,7 @@ diff --git a/pages/center/consumer/edit.vue b/pages/center/consumer/edit.vue index 25da7b1..5f3dcbb 100644 --- a/pages/center/consumer/edit.vue +++ b/pages/center/consumer/edit.vue @@ -14,7 +14,7 @@ - @@ -43,7 +43,7 @@ - @@ -135,6 +135,7 @@ export default { data() { return { + showPhone: '', // 展示用的手机号 form: { name: '', sex: '1', @@ -142,7 +143,6 @@ chatNo: '', level: '1', remarks: '', - }, selectform: { level: 'A', @@ -176,15 +176,21 @@ }, ], allList: [], - dataCode: '' + dataCode: '', + userInfo: {}, // 用户信息 } }, + computed: { + }, + onLoad(e) { const { dataCode } = uni.getStorageSync("weapp_session_userInfo_data"); + this.userInfo = uni.getStorageSync('weapp_session_userInfo_data'); + this.dataCode = dataCode - console.log(e) + console.log(this.userInfo.showPhoneStatus) // 先调用借口查询数据 this.customerId = e.id this.getdetail() @@ -223,6 +229,10 @@ }) .then(res => { this.form = res + if (this.userInfo.showPhoneStatus == 1) { + this.showPhone = this.form.phone + this.form.phone = this.form.phone.replace(/(\d{3})\d{4}(\d{4})/, '$1****$2') + } // 给客户等级赋值 let idx = this.levellist.findIndex(item => item.value == res.level) if (idx != -1) { @@ -235,6 +245,7 @@ this.getListByType() }) }, + // 字典表接口 getListByType() { this.$u.get("/matchKeywords/findPersonalMatchData", { @@ -308,6 +319,10 @@ }) str = str.join(',') param = this.form + // 如果是禁用状态就传入明文手机号,如果没禁用则不用更改 + if (this.userInfo.showPhoneStatus == 1) { + param.phone = this.showPhone + } param.keywordIds = str console.log(param) // return diff --git a/pages/center/prohibited/index.vue b/pages/center/prohibited/index.vue index e6db5a2..5b39658 100644 --- a/pages/center/prohibited/index.vue +++ b/pages/center/prohibited/index.vue @@ -1,29 +1,37 @@ @@ -284,22 +321,26 @@ height: 100%; background: #F8F8F8; } - .timeview{ + + .timeview { height: 80rpx; line-height: 80rpx; width: 100%; text-align: center; border-bottom: 1px solid #F8F8F8; } + //时间切换的样式 .boxtittab { + position: sticky; + top: var(--window-top); width: 100; height: 92rpx; background: #FFFFFF; border: 1px solid #E0E0E0; display: flex; align-items: center; - + .tabbox { flex: 1; height: 100%; @@ -307,63 +348,96 @@ line-height: 92rpx; color: #666666; font-size: 28rpx; + overflow: hidden; + text-overflow: ellipsis; + display: -webkit-box; + /* 将对象作为弹性伸缩盒子模型显示 */ + -webkit-line-clamp: 1; + /* 控制最多显示几行 */ + -webkit-box-orient: vertical; + /* 设置或检索伸缩盒对象的子元素的排列方式 */ } } - .search-box{ + + .search-box { width: 100%; height: 102rpx; background: #FFFFFF; display: flex; align-items: center; justify-content: center; - .search{ + + .search { width: 94%; height: 70rpx; display: flex; align-items: center; background: #F8F8F8; border-radius: 33rpx; - .search-img{ + + .search-img { width: 26rpx; height: 30rpx; margin-left: 20rpx; - .search-img1{ + + .search-img1 { width: 100%; height: 100%; margin-top: 2rpx; - } + } } - .search-text{ + + .search-text { font-size: 28rpx; font-weight: 400; color: #999999; - margin-left:10rpx; + margin-left: 10rpx; } } - .search-screen{ + + .search-screen { width: 40rpx; height: 40rpx; margin-left: 30rpx; - .search-screen1{ + + .search-screen1 { width: 100%; height: 100%; } } } - .content{ - .content-tips{ + + + .count { + width: 100%; + height: 90rpx; + display: flex; + align-items: center; + justify-content: center; + background-color: #FBE4E4; + + text { + color: #F71616; + } + } + + .content { + .content-tips { background: #fff; padding: 0 20rpx; box-sizing: border-box; overflow: hidden; margin-top: 20rpx; - .content-first{ + + .content-first { margin-top: 19rpx; display: flex; justify-content: space-between; - .left{ + + .left { display: flex; - .img{ + + .img { width: 52rpx; height: 52rpx; background: #FFFFFF; @@ -372,13 +446,15 @@ text-align: center; line-height: 52rpx; } - .name{ + + .name { font-weight: 600; color: #333333; // margin-left: 20rpx; margin-top: 11rpx; } - .status{ + + .status { width: 110rpx; height: 42rpx; background: #FFF9F5; @@ -392,42 +468,48 @@ margin-top: 11rpx; } } - .right{ + + .right { display: flex; margin-top: 11rpx; - .point{ + + .point { width: 12rpx; height: 12rpx; background: #2B6EFF; border-radius: 50%; margin-right: 9rpx; margin-top: 16rpx; - + } } } - - - .content-sec{ + + + .content-sec { display: flex; justify-content: space-between; margin-top: 19rpx; - .left{ + + .left { display: flex; - .cus{ + + .cus { font-size: 30rpx; font-weight: 400; color: #666666; // line-height: 30rpx; } - .arriveNum{ + + .arriveNum { font-size: 30rpx; font-weight: 400; // line-height: 30rpx; margin-left: 10rpx; } } - .right{ + + .right { width: 120rpx; height: 46rpx; background: #F4F8FD; @@ -438,7 +520,8 @@ color: #2671E2; } } - .content-last{ + + .content-last { // margin: 30rpx 0; font-size: 30rpx; font-weight: 400; @@ -447,62 +530,72 @@ margin-top: 22rpx; margin-bottom: 30rpx; } - + } } + // 这是弹出层 - .screen{ + .screen { // box-sizing: border-box; // padding: 0 30rpx; - position:absolute; - .screen-counselor{ + position: absolute; + + .screen-counselor { display: flex; height: 106rpx; // padding: 40rpx 30rpx 36rpx 30rpx; padding: 0 30rpx; box-sizing: border-box; border-bottom: 1px solid #EEEEEE; - .screen-text{ + + .screen-text { margin: 40rpx 0 36rpx 0; font-size: 30rpx; font-weight: 400; color: #333333; line-height: 30rpx; } - .screen-sel{ + + .screen-sel { display: flex; justify-content: space-between; width: 500rpx; margin-left: 60rpx; - .screen-sel-img{ + + .screen-sel-img { margin: 40rpx 0 36rpx 0; width: 14rpx; height: 30rpx; } - .screen-inp{ + + .screen-inp { margin-top: 20rpx; } } } - .screen-record{ + + .screen-record { height: 192rpx; // width: 100%; overflow: hidden; padding: 0 30rpx; box-sizing: border-box; border-bottom: 1px solid #EEEEEE; - .screen-record-text{ + + .screen-record-text { margin-top: 36rpx; font-size: 30rpx; font-weight: 400; color: #333333; line-height: 30rpx; } - .screen-record-tab{ + + .screen-record-tab { margin-top: 30rpx; display: flex; + // justify-content: space-around; - .screen-record-chose{ + .screen-record-chose { width: 156rpx; height: 60rpx; background: #2671E2; @@ -513,7 +606,8 @@ margin-right: 22rpx; color: #FFFFFF; } - .screen-record-nochose{ + + .screen-record-nochose { width: 156rpx; height: 60rpx; background: #FFFFFF; @@ -523,14 +617,16 @@ line-height: 60rpx; margin-right: 22rpx; } - + } } - .screen-foot{ + + .screen-foot { width: 100%; height: 100rpx; display: flex; - .screen-foot-reset{ + + .screen-foot-reset { width: 50%; text-align: center; height: 100rpx; @@ -539,7 +635,8 @@ font-weight: 400; color: #666666; } - .screen-foot-sure{ + + .screen-foot-sure { width: 50%; text-align: center; line-height: 100rpx; diff --git a/pages/center/records/index.vue b/pages/center/records/index.vue index f7e7d9a..3495ed6 100644 --- a/pages/center/records/index.vue +++ b/pages/center/records/index.vue @@ -1,7 +1,7 @@