diff --git a/pages/center/consumer/index.vue b/pages/center/consumer/index.vue
index e283e30..e36b692 100644
--- a/pages/center/consumer/index.vue
+++ b/pages/center/consumer/index.vue
@@ -1,228 +1,149 @@
-
-
-
-
-
-
-
- 输入客户姓名/手机号
-
-
-
-
-
-
-
- {{ sortFilter }}
-
-
-
- {{ arriveFilter }}
-
-
-
- {{ receptionDuration }}
-
-
-
- 画像标签
-
-
-
-
- 筛选结果:{{ totalRecords }} 条
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+ 输入客户姓名/手机号
+
+
+
+
+
+
+
+ {{ sortFilter }}
+
+
+
+ {{ arriveFilter }}
+
+
+
+ {{ receptionDuration }}
+
+
+
+ 画像标签
+
+
+
+
+ 筛选结果:{{ totalRecords }} 条
+
+
+
+
+
+
+
+ 暂无数据
-
-
-
-
-
-
- A
- B
- C
- D
- {{ item.name }}
-
-
- 销讲执行:{{ max100(item.fraction)}}%
-
-
-
-
- 手机号码:{{ item.phone || "--" }}
- 到访次数:{{ item.visitRecord || 0 }}次/{{
+ ">暂无数据
+
+
+
+
+
+
+ A
+ B
+ C
+ D
+ {{ item.name }}
+
+
+ 销讲执行:{{ max100(item.fraction)}}%
+
+
+
+
+ 手机号码:{{ item.phone || "--" }}
+ 到访次数:{{ item.visitRecord || 0 }}次/{{
item.mm || 0
- }}min
-
-
- 挖掘执行:{{ max100(item.wordFraction) }}%
- 挖掘成功:{{ max100(item.wordFinishFraction) }}%
-
-
-
- 所属顾问:{{ item.agentName || "--" }}
- 客户阶段:{{ item.stageName || "--" }}
-
-
- 上次到访:{{ item.createTime || "--" }}
-
-
-
-
-
-
-
-
-
-
-
- 写跟进
-
-
-
-
-
-
+
+
+
+ 写跟进
+
+
+
+
+
+
+
-
-
+
+
+ 销讲业务
+
+
-
-
-
- {{ item.label }}
+
+
+
+ {{item.templateName}}
- -->
+
- 接待时长
-
+ 接待时长
+
+
-
+ ]" @click="choice(item)">
{{ item.label }}
@@ -231,28 +152,17 @@
- 意向等级
-
+ 意向等级
+
+
-
+ ]" @click="choice(item)">
{{ item.label }}
@@ -261,28 +171,17 @@
- 客户来源
-
+ 客户来源
+
+
-
+ ]" @click="choice(item)">
{{ item.label }}
@@ -290,32 +189,18 @@
-
- 客户阶段
-
+
+ 客户阶段
+
+
-
+ ]" @click="choice(item)">
{{ item.label }}
@@ -324,28 +209,17 @@
- 需求挖掘率
-
+ 需求挖掘率
+
+
-
+ ]" @click="choice(item)">
{{ item.label }}
@@ -353,33 +227,18 @@
-
+
销讲执行率
-
-
+
+
-
+ ]" @click="choice(item)">
{{ item.label }}
@@ -388,1074 +247,1046 @@
- 到访次数
-
+ 到访次数
+
+
-
+ ]" @click="choice(item)">
{{ item.label }}
-
-
-
-
-
-
-
-
+
+
+
-
-
-
-
- 全部
-
- 今天
-
- 昨天
-
- 近7天
-
- 近30天
-
- 自定义
-
-
-
-
+
+
+
+
+ 全部
+
+ 今天
+
+ 昨天
+
+ 近7天
+
+ 近30天
+
+ 自定义
+
+
+
+
-
+
- {{item.name}}
-
+ {{item.name}}
+
+
-
+ ]" @click="choice(subitem)">
{{ subitem.name }}
-
-
-
-
-
+
+
+
+
+
-
-
-
+
+
+
diff --git a/pages/center/records/index.vue b/pages/center/records/index.vue
index 0e19787..06f0702 100644
--- a/pages/center/records/index.vue
+++ b/pages/center/records/index.vue
@@ -15,17 +15,17 @@
-
+
{{ sortFilter }}
-
+
{{ arriveFilter }}
-
+
{{ counselorName }}
@@ -74,7 +74,7 @@
客户:{{item.name || '--'}}
-
+ {{ item.marketingBusinessName }}
@@ -94,130 +94,162 @@
{{item.fraction|| 0}}%
销讲执行率
-
+
-
-
+
+
+ 销讲业务
+
+
+
+
+
+
+ {{item.templateName}}
+
+
+
- -->
-
-
-
- 销讲执行率
-
+
+
+
+ 销讲执行率
+
+
+
+
+
+
+ {{item.label}}
+
+
+
-
-
-
- {{item.label}}
-
-
+
+
+
+ 需求挖掘率
+
+
+
+
+
+
+ {{item.label}}
+
+
+
-
-
-
-
- 需求挖掘率
-
+
+
+
+ 接待时长
+
+
+
+
+
+
+ {{item.label}}
+
+
+
-
-
-
- {{item.label}}
+
+
+
+ 录音标识
+
+
+
+
+
+ 有效接待
-
-
-
-
-
-
- 接待时长
-
-
-
-
-
- {{item.label}}
+
+ 无效接待
+
+
+ 无录音
+
+
+ 无效(未审核)
-
-
-
-
-
-
- 录音标识
-
-
-
-
- 有效接待
-
-
- 无效接待
-
- 无录音
+
+
+
+
+ 标记顾问
+
+
-
- 无效(未审核)
+
+
+ 标记
+
+
+ 未标记
+
-
-
-
-
- 标记顾问
-
-
-
-
- 标记
+
+
+
+ 到访次数
+
+
-
- 未标记
+
+
+
+ {{item.label}}
+
+
-
-
-
-
- 到访次数
-
-
-
-
-
- {{item.label}}
-
-
-
-
+
+
-
+
@@ -249,7 +283,7 @@
近7天
-
近15天
{
+ this.templateList = res.map(item => {
+ return {
+ ...item,
+ isShow: false,
+ }
+ })
+ })
+ },
+
choice(item) {
item.isShow = !item.isShow;
},
@@ -593,10 +639,10 @@
// let items = JSON.parse(res[0].transferContent)
// uni.setStorageSync("searchobj", items); //写入缓存
// }).catch(e => {
-
+
// })
// }
-
+
const parames = {
pageNum: 1,
pageSize: 100,
@@ -609,7 +655,7 @@
customerId: item.id,
wordFraction: item.wordFraction
}
-
+
uni.setStorageSync("searchobj", item1); //写入缓存
uni.setStorageSync("entrance", 1); //写入缓存
this.$u.post("/corpus/findByPage", parames).then(res => {
@@ -648,50 +694,57 @@
this.screen.wajueVal = []
this.screen.xiaojiangVal = []
let dateType = 0;
- if ((this.activeTotal == 15)||(this.activeTotal == 4)) {// 选择全部和自定义
+ if ((this.activeTotal == 15) || (this.activeTotal == 4)) { // 选择全部和自定义
dateType = null;
- }else {
+ } else {
dateType = this.activeTotal;
this.staTime = ''
this.endTime = ''
}
// 到访次数
this.visitList.forEach(i => {
- if(i.isShow) this.screen.visitRecord.push(i.value)
+ if (i.isShow) this.screen.visitRecord.push(i.value)
})
// 接待时长
this.jiedaiList.forEach(i => {
- if(i.isShow) this.screen.jiedaiVal.push(i.value)
+ if (i.isShow) this.screen.jiedaiVal.push(i.value)
})
// 需求挖掘
this.wajueList.forEach(i => {
- if(i.isShow) this.screen.wajueVal.push(i.value)
+ if (i.isShow) this.screen.wajueVal.push(i.value)
})
// 销讲执行率
this.xiaojiangList.forEach(i => {
- if(i.isShow) this.screen.xiaojiangVal.push(i.value)
+ if (i.isShow) this.screen.xiaojiangVal.push(i.value)
})
var parames = {
- pageNum: this.nextPage,
- pageSize: 10,
- query: {
- projectId: this.buildingID,
- keywordsId: this.keywordsId,
- staTime: this.staTime,// 接待时间
- endTime: this.endTime,// 接待时间
- agentId: this.screen.agentId, // 顾问ID
- visitRecordNum: this.screen.visitRecord.length?this.screen.visitRecord.join(','):'',//到访次数
- wordFractions: this.screen.wajueVal.length?this.screen.wajueVal.join(','):'',//挖掘
- duractionNums: this.screen.jiedaiVal.length?this.screen.jiedaiVal.join(','):'',//接待时长
- fractions: this.screen.xiaojiangVal.length?this.screen.xiaojiangVal.join(','):'',//销讲
- markAdvisor: this.screen.markAdvisor,//标记顾问
- dateType: dateType,//时间类型
- orderBy: this.screen.orderBy==''?'':this.screen.orderBy,//排序
- validInvalid: this.screen.validInvalid,//录音标识
- clientStage: this.screen.clientStage,// 客户阶段
- recording: this.screen.validInvalid == 2 ? 0 : null // 录音
- }
+ pageNum: this.nextPage,
+ pageSize: 10,
+ query: {
+ projectId: this.buildingID,
+ keywordsId: this.keywordsId,
+ staTime: this.staTime, // 接待时间
+ endTime: this.endTime, // 接待时间
+ agentId: this.screen.agentId, // 顾问ID
+ visitRecordNum: this.screen.visitRecord.length ? this.screen.visitRecord.join(',') : '', //到访次数
+ wordFractions: this.screen.wajueVal.length ? this.screen.wajueVal.join(',') : '', //挖掘
+ duractionNums: this.screen.jiedaiVal.length ? this.screen.jiedaiVal.join(',') : '', //接待时长
+ fractions: this.screen.xiaojiangVal.length ? this.screen.xiaojiangVal.join(',') : '', //销讲
+ markAdvisor: this.screen.markAdvisor, //标记顾问
+ dateType: dateType, //时间类型
+ orderBy: this.screen.orderBy == '' ? '' : this.screen.orderBy, //排序
+ validInvalid: this.screen.validInvalid, //录音标识
+ clientStage: this.screen.clientStage, // 客户阶段
+ recording: this.screen.validInvalid == 2 ? 0 : null // 录音
+ }
};
+ let ars = []
+ this.templateList.forEach(item => {
+ if (item.isShow) {
+ ars.push(item.id)
+ }
+ })
+ parames.query.marketingBusiness = ars.join(',')
if (this.screen.agentId) {
parames.query.agentId = this.screen.agentId
}
@@ -714,27 +767,27 @@
},
//获取顾问列表
getFreeList() {
- if(this.userInfo.dataCode==6){// 顾问角色登录时只显示自己
- this.freeList = [{
- label: this.userInfo.name,
- value: this.userInfo.accountId
- }]
- }else{
- this.$u.post("/cusLvStatistics/selectAllAccountIdByHouseId", {
- houseId: this.buildingID
- }).then(res => {
- this.freeList = res;
- this.freeList.forEach(item => {
- item.label = item.name;
- item.value = item.accountId
- })
- this.freeList.unshift({
- label:'全部',
- value: ''
- })
-
+ if (this.userInfo.dataCode == 6) { // 顾问角色登录时只显示自己
+ this.freeList = [{
+ label: this.userInfo.name,
+ value: this.userInfo.accountId
+ }]
+ } else {
+ this.$u.post("/cusLvStatistics/selectAllAccountIdByHouseId", {
+ houseId: this.buildingID
+ }).then(res => {
+ this.freeList = res;
+ this.freeList.forEach(item => {
+ item.label = item.name;
+ item.value = item.accountId
})
- }
+ this.freeList.unshift({
+ label: '全部',
+ value: ''
+ })
+
+ })
+ }
},
actionSelectCallback(e) {
this.screen.agentId = e[0].value;
@@ -745,8 +798,8 @@
this.getRecordsList();
},
reset() {
- this.screen.agentId =''
- this.screen.jiedaiVal =''
+ this.screen.agentId = ''
+ this.screen.jiedaiVal = ''
this.screen.validInvalid = ''
this.screen.markAdvisor = ''
this.screen.orderBy = '';
@@ -959,8 +1012,9 @@
text-align: center;
margin: 0 10rpx;
}
- .normal-status{
- color:red;
+
+ .normal-status {
+ color: red;
}
}
@@ -979,10 +1033,12 @@
}
}
}
+
.content-sec {
display: flex;
justify-content: space-between;
margin: 24rpx 0;
+
.left {
flex: 1;
height: 40rpx;
@@ -992,7 +1048,8 @@
color: #333333;
line-height: 40rpx;
}
- .right{
+
+ .right {
flex: 1;
height: 40rpx;
font-size: 28rpx;
@@ -1003,6 +1060,7 @@
text-align: right;
}
}
+
.content-time {
font-size: 28rpx;
font-family: PingFangSC-Regular, PingFang SC;
@@ -1012,15 +1070,18 @@
padding: 20rpx 0 24rpx;
border-bottom: 1px solid #E0E0E0;
}
+
.content-last {
display: flex;
justify-content: space-around;
- .cont-item{
+
+ .cont-item {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
- .count{
+
+ .count {
height: 42rpx;
font-size: 30rpx;
font-family: PingFangSC-Regular, PingFang SC;
@@ -1029,7 +1090,8 @@
line-height: 42rpx;
margin-bottom: 16rpx;
}
- .text{
+
+ .text {
height: 32rpx;
font-size: 24rpx;
font-family: PingFangSC-Regular, PingFang SC;
@@ -1094,7 +1156,8 @@
display: flex;
align-items: center;
justify-content: space-between;
- .arrow{
+
+ .arrow {
width: 30rpx;
height: 14rpx;
}
@@ -1105,7 +1168,8 @@
padding-bottom: 10rpx;
display: flex;
flex-wrap: wrap;
- .screen-record-item{
+
+ .screen-record-item {
min-width: 150rpx;
padding: 0 14rpx;
height: 60rpx;
@@ -1113,14 +1177,17 @@
text-align: center;
line-height: 60rpx;
margin: 0 22rpx 22rpx 0;
- &:nth-child(4n){
+
+ &:nth-child(4n) {
margin-right: 0;
}
}
+
.screen-record-chose {
background: #F1F6FD;
color: #2671E2;
}
+
.screen-record-nochose {
background: #F7F8FA;
color: #333;
@@ -1130,39 +1197,39 @@
}
.screen-foot {
- width: 100%;
- height: 78rpx;
- display: flex;
- margin: 30rpx 30rpx 0;
-
- .screen-foot-reset {
- width: 176rpx;
+ width: 100%;
height: 78rpx;
- line-height: 78rpx;
- background: #FFFFFF;
- border-radius: 8rpx;
- border: 1px solid #2671E2;
- margin-right: 30rpx;
- font-size: 30rpx;
- font-family: PingFangSC-Regular, PingFang SC;
- font-weight: 400;
- color: #2671E2;
- text-align: center;
- }
+ display: flex;
+ margin: 30rpx 30rpx 0;
- .screen-foot-sure {
- width: 484rpx;
- height: 78rpx;
- line-height: 78rpx;
- background: #2671E2;
- border: 1px solid #2671E2;
- border-radius: 8rpx;
- font-size: 30rpx;
- font-family: PingFangSC-Regular, PingFang SC;
- font-weight: 400;
- color: #FFFFFF;
- text-align: center;
- }
- }
+ .screen-foot-reset {
+ width: 176rpx;
+ height: 78rpx;
+ line-height: 78rpx;
+ background: #FFFFFF;
+ border-radius: 8rpx;
+ border: 1px solid #2671E2;
+ margin-right: 30rpx;
+ font-size: 30rpx;
+ font-family: PingFangSC-Regular, PingFang SC;
+ font-weight: 400;
+ color: #2671E2;
+ text-align: center;
+ }
+
+ .screen-foot-sure {
+ width: 484rpx;
+ height: 78rpx;
+ line-height: 78rpx;
+ background: #2671E2;
+ border: 1px solid #2671E2;
+ border-radius: 8rpx;
+ font-size: 30rpx;
+ font-family: PingFangSC-Regular, PingFang SC;
+ font-weight: 400;
+ color: #FFFFFF;
+ text-align: center;
+ }
+ }
}
diff --git a/pages/mine/details2.vue b/pages/mine/details2.vue
index 6102d98..be2f2b8 100644
--- a/pages/mine/details2.vue
+++ b/pages/mine/details2.vue
@@ -122,6 +122,13 @@
更多
+
+
+ 更换销讲业务
+
+
设备日志
@@ -133,8 +140,10 @@
{{userlistobj.validInvalidName}}
-
-
+
+
到访次数
@@ -222,6 +231,12 @@
接待顾问
{{userlistobj.agentName}}
+
+ 销讲业务
+ {{userlistobj.marketingBusinessName}}
+
+
意向项目
@@ -587,6 +602,11 @@
+
+
+
+
@@ -720,6 +740,12 @@
projectId: uni.getStorageSync('buildingID').id, // 当前项目id
visitRecordNum: 1, // 默认到访次数
},
+
+
+
+ templateList: [], // 销讲业务
+ showTemplate: false, // 展示选择销讲业务弹窗
+ templateName: '', // 销讲业务类型文字
};
},
computed: {
@@ -735,12 +761,17 @@
if (this.Menulistisshow) {
position += 70
}
+
+ if (this.checkAuthority('更换销讲业务')) {
+ position += 70
+ }
if (this.eqLog != -1) {
position += 70
}
- if ((this.userlistobj.visitRecord == 1 || this.userlistobj.visitFlag == 1) && this.checkAuthority('修改到访次数')) {
+ if ((this.userlistobj.visitRecord == 1 || this.userlistobj.visitFlag == 1) && this.checkAuthority(
+ '修改到访次数')) {
position += 70
}
@@ -814,6 +845,7 @@
this.infos = this.itemobj;
}!this.isPageHide && this.init(this.infos);
this.gituserlist()
+ this.getMarketingBusiness()
},
@@ -831,6 +863,41 @@
},
methods: {
+
+ // 获取销讲业务
+ getMarketingBusiness() {
+ this.$u.get('/customer/marketingBusiness', {
+ houseId: this.buildingID,
+ }).then(res => {
+ this.templateList = res
+ })
+ },
+ // 销讲业务方法
+ templateCancel() {
+ this.showTemplate = false;
+ },
+
+ // 确认选择销讲业务
+ templateConfirm(e) {
+ this.showTemplate = false;
+ this.$u.post('/customer/updateMarketingBusiness', {
+ marketingBusiness: e[0].value,
+ id: this.userlistobj.id
+ }).then(res => {
+ uni.showToast({
+ title: '操作成功',
+ icon: 'none',
+ duration: 2000
+ })
+ }).catch(e => {
+ uni.showToast({
+ title: e.data.message,
+ icon: 'none',
+ duration: 2000
+ })
+ })
+ },
+
// 加减
reduce() {
if (this.visitParams.visitRecordNum == 1) {
@@ -846,13 +913,13 @@
add() {
this.visitParams.visitRecordNum++
},
-
+
// 取消
cancelVisitRecord() {
this.visitParams.visitRecordNum = 1
this.showVisit = false
},
-
+
// 确定
changeVisitRecord() {
this.$u.post('/customer/updateVisitRecord', this.visitParams).then(res => {
diff --git a/pages/mine/reception/addreception.vue b/pages/mine/reception/addreception.vue
index 2971147..d022afc 100644
--- a/pages/mine/reception/addreception.vue
+++ b/pages/mine/reception/addreception.vue
@@ -1,72 +1,88 @@
- 客户信息
-
-
-
- 客户姓名
-
-
+
+
+ 客户信息
+
+
+
+ 客户姓名
+
+
+
-
-
- 客户性别
-
- 男士
- 女士
+
+ 客户性别
+
+ 男士
+ 女士
+
-
-
- 联系电话
-
-
+
+ 联系电话
+
+
+
-
-
- 接待人数
-
-
- {{i + 1}}
+
+ 接待人数
+
+
+ {{i + 1}}
+
-
-
- 客户来源
-
- {{showSourceName}}
- 请选择客户来源
+
+ 客户来源
+
+ {{showSourceName}}
+ 请选择客户来源
+
+
+
+
-
-
+
+
+ 销讲业务
+
+ {{templateName}}
+ 请选择销讲业务
+
+
+
+
-
-
+
- 顾问
-
-
- 接待顾问
-
- {{text}}
- 请选择接待顾问
-
-
-
+ 顾问
+
+
+ 接待顾问
+
+ {{text}}
+ 请选择接待顾问
+
+
+
+
-
+
确定
@@ -75,6 +91,10 @@
+
+
+
{
+ this.templateList = res
+ if (res && res.length > 0) {
+ this.parames.marketingBusiness = res[0].id
+ this.templateName = res[0].templateName
+ }
+ })
+ },
// 获取客户来源
getFromSource() {
@@ -357,6 +392,10 @@
Buildingselection() {
this.Showhiddenunits = true;
},
+
+ showTemplateSelect() {
+ this.showTemplate = true;
+ },
cancel() {
this.Showhiddenunits = false;
},
@@ -366,6 +405,17 @@
this.parames.sourceId = e[0].value;
this.Showhiddenunits = false;
},
+
+ // 销讲业务方法
+ templateCancel() {
+ this.showTemplate = false;
+ },
+ templateConfirm(e) {
+ this.showTemplate = false;
+ this.templateName = e[0].label;
+ this.parames.marketingBusiness = e[0].value;
+ },
+
init() {
uni.request({
url: config.service.getSelfAssignedByHouseId + "?houseId=" + this.parames.projectId,
@@ -383,25 +433,26 @@
},
//获取顾问列表
getFreeList() {
- this.$u.get("/zkAgentPool/freeList?itemId=" + this.parames.projectId+"&deptId="+''+'&name='+'').then(res => {
- this.freeList = res;
- this.freeList.forEach(item => {
- if (item.onLine == 0) {
- item.label = item.name + "(离线)";
- } else if (item.onLine == 1) {
- item.label = item.name + "(在线)";
- } else {
- item.label = item.name + "(无设备)";
- }
- item.value = item.agentId
- // 从选择顾问页面跳回时需阻断用当前登录人的顾问id选中自身
- if (!this.fromBack) {
- if (this.userInfo.accountId == item.agentId) {
- this.text = item.label
- this.parames.agentId = item.agentId;
+ this.$u.get("/zkAgentPool/freeList?itemId=" + this.parames.projectId + "&deptId=" + '' + '&name=' + '')
+ .then(res => {
+ this.freeList = res;
+ this.freeList.forEach(item => {
+ if (item.onLine == 0) {
+ item.label = item.name + "(离线)";
+ } else if (item.onLine == 1) {
+ item.label = item.name + "(在线)";
+ } else {
+ item.label = item.name + "(无设备)";
}
- }
- })
+ item.value = item.agentId
+ // 从选择顾问页面跳回时需阻断用当前登录人的顾问id选中自身
+ if (!this.fromBack) {
+ if (this.userInfo.accountId == item.agentId) {
+ this.text = item.label
+ this.parames.agentId = item.agentId;
+ }
+ }
+ })
})
},
}
@@ -446,7 +497,13 @@
.cented-box {
background: #F8F8F8;
width: 100%;
- height: 100vh;
+ min-height: 100vh;
+ display: flex;
+ flex-direction: column;
+
+ .cented-boxs {
+ flex-grow: 1;
+ }
}
.Pinspeak {
@@ -514,6 +571,9 @@
}
.clive {
+ flex-shrink: 0;
+ position: sticky;
+ bottom: 32rpx;
width: 690rpx;
height: 88rpx;
background: #2671E2;
@@ -522,20 +582,6 @@
color: #FFFFFF;
border-radius: 8rpx;
margin: 0 auto;
- margin-top: 300rpx;
- font-size: 32rpx;
- }
-
- .clive2 {
- width: 690rpx;
- height: 88rpx;
- background: #999;
- text-align: center;
- line-height: 88rpx;
- color: #666;
- border-radius: 8rpx;
- margin: 0 auto;
- margin-top: 300rpx;
font-size: 32rpx;
}