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 @@
-
-
- 接待时间
+ {{ timeText }}
+
- 排序
+ {{ sortText }}
- 顾问
+ {{ adviserText }}
+
+
+
+ 筛选结果:{{totalRecords}} 条
+
+
-
+
-
+
- 暂无数据
+ 暂无数据
-
+
@@ -39,7 +47,7 @@
客户:{{item.name || '--'}} |
{{item.visitRecord || "--"}}次到访
-
+
{{item.createTime}} | {{item.mm || '0'}} min
@@ -47,162 +55,189 @@
-
+
- 全部
- 今天
- 昨天
- 近7天
- 近30天
- 自定义
+
+ 全部
+
+ 今天
+
+ 昨天
+
+ 近7天
+
+ 近30天
+
+ 自定义
@@ -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 @@
-
- 接待时间
+ {{ startFilterTime }}
- 接待时长
+ {{ receptionDuration }}
- 排序
+ {{ sortText }}
更多筛选
+
+
+
+
+ 筛选结果:{{totalRecords}} 条
+
+
@@ -48,13 +55,13 @@
- {{item.receptionStatusName || ''}}
+ {{item.receptionStatusName.slice(0, 2) || ''}}
|
- 违禁接待
+ 违禁
|
- {{item.validInvalidName||''}}
+ {{item.validInvalidName.slice(0, 2)||''}}
|
未标记
已标记
@@ -101,8 +108,8 @@
所属顾问
-
+
@@ -176,31 +183,31 @@
-
+
全部
-
+
今天
-
+
昨天
-
+
近7天
-
+
近30天
自定义
- 全部
+ 全部
-
+
0~15min
-
+
15~30min
-
+
30~60min
-
+
60~90min
-
+
90min以上
@@ -254,6 +261,7 @@
screenShow: false,
selectshow: false,
totalTimeShow: false,
+ totalRecords: '',
screen: {
agentId: '', //顾问id
record: '0',
@@ -276,6 +284,9 @@
orderBy: '',
methodsisshow: false,
userInfo: {},
+ startFilterTime: '接待时间', // s筛选状态展示
+ receptionDuration: '接待时长', // 筛选状态展示
+ sortText: '排序', //
}
},
onLoad(options) {
@@ -339,12 +350,14 @@
//选择标签
selectCallback2(e) {
this.orderBy = e[0].value;
+ this.sortText = e[0].label
this.nextPage = 1;
this.recordList = [];
this.getMyCustom();
},
//选择录音时长
- timetap(index) {
+ timetap(index, text) {
+ if (text) this.receptionDuration = text
this.timetushow = false;
this.activeTotal2 = index;
this.nextPage = 1;
@@ -352,8 +365,11 @@
this.getMyCustom();
},
//时间选择
- tabtimetap(index) {
+ tabtimetap(index, text) {
this.timeshow = false;
+ if(text) {
+ this.startFilterTime = text
+ }
if (index == 4) {
this.totalTimeShow = true;
} else {
@@ -483,6 +499,10 @@
var list = data.results || [];
this.recordList = [...this.recordList, ...list];
this.totalRecord = data.totalPage;
+ this.totalRecords = data.totalRecord;
+ if(this.staTime && this.endtime) {
+ this.startFilterTime = `${this.staTime}-${this.endtime}`
+ }
})
},
//获取顾问列表
@@ -592,12 +612,21 @@
align-items: center;
.tabbox {
- flex: 1;
+ flex-shrink: 0;
+ flex-grow: 1;
height: 100%;
text-align: center;
line-height: 92rpx;
color: #666666;
font-size: 28rpx;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ display: -webkit-box;
+ /* 将对象作为弹性伸缩盒子模型显示 */
+ -webkit-line-clamp: 1;
+ /* 控制最多显示几行 */
+ -webkit-box-orient: vertical;
+ /* 设置或检索伸缩盒对象的子元素的排列方式 */
}
}
@@ -648,6 +677,19 @@
}
}
}
+
+ .count {
+ width: 100%;
+ height: 90rpx;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ background-color: #FBE4E4;
+
+ text {
+ color: #F71616;
+ }
+ }
.content {
.content-tips {
@@ -671,7 +713,7 @@
display: flex;
align-items: center;
overflow: hidden;
-
+
.adviser {
margin-right: 10rpx;
@@ -711,14 +753,14 @@
.right {
max-width: 50%;
- overflow-x: scroll;
display: flex;
font-size: 30rpx;
-
- view,text {
+
+ view,
+ text {
flex-shrink: 0;
}
-
+
.point {
flex-shrink: 0;
width: 12rpx;
@@ -843,6 +885,7 @@
margin-left: 60rpx;
.screen-sel-img {
+ flex-shrink: 0;
margin: 40rpx 0 36rpx 0;
width: 14rpx;
height: 30rpx;
@@ -850,6 +893,8 @@
.screen-inp {
margin-top: 20rpx;
+ padding: 0 20rpx;
+ flex-grow: 1;
}
}
}
diff --git a/pages/index/consumer/index.vue b/pages/index/consumer/index.vue
index c5d8aa9..2391044 100644
--- a/pages/index/consumer/index.vue
+++ b/pages/index/consumer/index.vue
@@ -14,18 +14,24 @@
- 排序
+ {{ sortFilter }}
- 到访时间
+ {{ arriveFilter }}
- 接待时长
+ {{ receptionDuration }}
更多筛选
+
+
+
+
+ 筛选结果:{{totalRecords}} 条
+
@@ -59,7 +65,7 @@
- 负责顾问:{{item.agentName}}
+ 负责顾问:{{item.agentName || ''}}
@@ -99,7 +105,7 @@
所属顾问
-
@@ -109,7 +115,7 @@
客户标签
-
@@ -195,31 +201,31 @@
-
+
全部
-
+
今天
-
+
昨天
-
+
近7天
-
+
近30天
自定义
- 全部
+ 全部
-
+
0~15min
-
+
15~30min
-
+
30~60min
-
+
60~90min
-
+
90min以上
@@ -242,6 +248,7 @@