From e00206b2264c46c07b6c151de2ea2f50284f6fce Mon Sep 17 00:00:00 2001
From: corala <18339694416@163.com>
Date: Thu, 1 Sep 2022 16:42:48 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=A0=87=E7=AD=BE=E5=8C=B9?=
=?UTF-8?q?=E9=85=8D=E7=9B=B8=E5=85=B3=E9=A1=B5=E9=9D=A2=E5=8F=8A=E5=8A=9F?=
=?UTF-8?q?=E8=83=BD?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pages/center/consumer/consumerDetail.vue | 3051 ++++++++++++----------
pages/mine/ScoringPlaylist.vue | 296 ++-
pages/mine/details.vue | 5 -
pages/mine/details2.vue | 353 +--
4 files changed, 1970 insertions(+), 1735 deletions(-)
diff --git a/pages/center/consumer/consumerDetail.vue b/pages/center/consumer/consumerDetail.vue
index 108fb39..9bcbd09 100644
--- a/pages/center/consumer/consumerDetail.vue
+++ b/pages/center/consumer/consumerDetail.vue
@@ -1,1055 +1,1360 @@
-
-
-
-
-
-
- A
- B
- C
- D
- {{customerInfo.name || '--'}}
-
-
-
-
-
-
+
+
+
+
+
+ A
+ B
+ C
+ D
+ {{ customerInfo.name || "--" }}
+
+
+
+
+
+ 销讲执行:{{ max100(customerInfo.fraction)}}%{{ max100(customerInfo.fraction) }}%
-
-
-
-
-
- 手机号码:{{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 && 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.visitRecord || 0 }}次/{{
customerInfo.mm || 0
}}min
-
-
- 挖掘执行:{{ max100(customerInfo.wordFraction)}}%
+
+ 挖掘执行:{{ max100(customerInfo.wordFraction) }}%
- 画像标签:{{
- customerInfo.demand.cusSemanticWordsList?customerInfo.demand.cusSemanticWordsList.length:0}}查看查看
-
-
+ 所属顾问:{{ customerInfo.agentName || "--" }}
客户阶段:{{ customerInfo.stageName || "--" }}
-
+
上次到访:{{ customerInfo.createTime || "--" }}
-
-
-
- 备注:{{customerInfo.remarks ? customerInfo.remarks : "暂无"}}
-
-
-
-
-
-
-
-
- 接待记录
-
-
- 跟进记录
-
-
- 销讲执行率
-
-
- 挖掘执行率
-
-
-
-
-
-
-
-
-
-
- 暂无数据
-
-
-
-
-
-
- A
- B
- C
- D
-
- {{item.agentName || '--'}}
- 代接待
-
-
-
-
-
- 客户:{{item.name || '--'}} |
- {{item.visitRecord || '0'}}次到访
-
- {{max100(item.fraction)}}%
-
-
- {{item.createTime}} | {{item.mm || 0}}min
-
-
-
-
-
-
-
-
-
-
- 暂无数据
-
-
-
-
-
-
- {{item.agentName.slice(0,1) || '--'}}
- {{item.agentName || '||'}}
-
- {{item.createTime}}
-
-
-
-
+
+
+
+
+
+
+ 暂无数据
+
+
+
+
+
+
+ A
+ B
+ C
+ D
+
+ {{ item.agentName || "--" }}
+ 代接待
+
+
+
+
+
+ 客户:{{ item.name || "--" }} |
+ {{ item.visitRecord || "0" }}次到访
+
+ {{ max100(item.fraction) }}%
+
+
+ {{ item.createTime }} | {{ item.mm || 0 }}min
+
+
+
+
+
+
+
+
+
+
+ 暂无数据
+
+
+
+
+
+
+ {{
+ item.agentName.slice(0, 1) || "--"
+ }}
+ {{ item.agentName || "||" }}
+
+ {{ item.createTime }}
+
+
+
+
-
-
-
-
-
-
- 指标
- 执行率
-
-
-
-
-
-
-
- 暂无数据
-
-
-
-
-
- {{item.name}}
-
-
-
- {{((item.ratepercent/item.rate).toFixed(2)*100).toFixed()}}%
-
-
-
-
-
-
-
-
-
- {{subitem.name}}
-
- 已执行
- 未执行
-
-
-
-
-
-
- 话术内容
-
-
- {{inc+1}}.{{che.name}}
-
-
-
-
-
-
-
-
-
-
-
-
-
- 指标
- 执行率
- 完成
-
-
-
-
-
-
-
- 暂无数据
-
-
-
-
-
- {{item.name}}
-
-
- 执行{{item.selected==0?item.fraction:0}}%
- 完成{{item.modelSelected==0?item.modelFraction:0}}%
-
-
-
-
-
-
-
-
-
- 话术内容
-
- {{inc+1}}.{{che.question}}
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{subitem.name}}
-
-
- 已执行
- 未执行
-
-
- 已完成
- 未完成
-
-
-
-
-
-
-
- 话术内容
-
- {{inc+1}}.{{che.question}}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{item.name}}
-
-
-
-
-
-
-
+
+
+
+
+
+
+ 指标
+ 执行率
+
+
+
+
+
+
+
+ 暂无数据
+
+
+
+
+
+ {{ item.name }}
+
+
+
+ {{
+ ((item.ratepercent / item.rate).toFixed(2) * 100).toFixed()
+ }}%
+
+
+
+
+
+
+
+
+
+ {{ subitem.name }}
+
+ 已执行
+ 未执行
+
+
+
+
+
+
+ 话术内容
+
+
+ {{ inc + 1 }}.{{ che.name }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 指标
+ 执行率
+ 完成
+
+
+
+
+
+
+
+ 暂无数据
+
+
+
+
+
+ {{ item.name }}
+
+ 执行{{ item.fraction || 0 }}%
+ {{
+ item.selected == 0 ? "完成" : "未完成"
+ }}
+
+
+
+
+
+
+
+
+
+ {{ subitem.name }}
+
+ 已执行
+ 未执行
+
+
+ 已完成
+ 未完成
+
+
+
+
+
+
+
+ 客户标签:{{ getKeywordsList(subitem.keywordsList) }}
+ 话术内容
+
+ {{ inc + 1 }}.{{
+ che.showFormatExpression || che.keywordsName
+ }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ item.name }}
+
+
+
+
+
+
+
diff --git a/pages/mine/ScoringPlaylist.vue b/pages/mine/ScoringPlaylist.vue
index 63a2a5e..cdbbac2 100644
--- a/pages/mine/ScoringPlaylist.vue
+++ b/pages/mine/ScoringPlaylist.vue
@@ -1,116 +1,200 @@
-
-
-
-
-
-
-
-
- {{item.Content.time}}
-
-
+
+
+
+
+
+
+
+ {{ item.Content.time }}
-
+
+
+
+
+
+
+
+ {{dealword(subitem)[1]}}
+
+
+
+
diff --git a/pages/mine/details.vue b/pages/mine/details.vue
index bb6f03e..79fcb0a 100644
--- a/pages/mine/details.vue
+++ b/pages/mine/details.vue
@@ -363,11 +363,6 @@
CancelAdd(){
this.wajueshow = false
},
- //加入挖掘话术
- openwajue(word) {
- this.wajueword = word;
- this.wajueshow = true;
- },
eqLogClick(){
uni.navigateTo({
url:`./equipmentLog?id=${this.customerId}`
diff --git a/pages/mine/details2.vue b/pages/mine/details2.vue
index a99950a..998c91b 100644
--- a/pages/mine/details2.vue
+++ b/pages/mine/details2.vue
@@ -62,9 +62,6 @@
常错词
- 挖掘话术
-
加精华
@@ -72,19 +69,22 @@
style="font-size: 24rpx;text-align: center;margin-left: 14rpx;">修改角色
-
-
-
-
-
-
-
- {{(dealTypes(item.types))[1]}}
-
+
+
+
+
+
+
+
+
+
+ {{dealword(subitem)[1]}}
+
+
@@ -151,25 +151,6 @@
确认
-
-
-
-
-
-
- 话术分类:{{wordBiao.wordBiaoqian}}
-
-
-
-
- 话术内容:
-
-
-
-
-
- 话术内容
+ 话术内容:
@@ -354,10 +335,12 @@
- {{item.showLevel==2?('222'+item.name):item.name}}
+ {{item.name}}
- 执行{{item.selected==0?item.fraction:0}}%
- 完成{{item.modelSelected==0?item.modelFraction:0}}%
+ 执行{{item.fraction || 0}}%
+ {{
+ item.selected == 0 ? "完成" : "未完成"
+ }}
-
-
-
- 话术内容
-
-
- {{inc+1}}.{{che.question}}
-
-
-
-
-
-
-
-
-
-
-
-
{{subitem.name}}
- 已执行
+ 已执行
未执行
- 已完成
+ 已完成
未完成
@@ -404,12 +366,13 @@
- 话术内容
+ 客户标签:{{ getKeywordsList(subitem.keywordsList) }}
+ 话术内容:
+ v-for="(che,inc) in subitem.modelList" :key='inc'>
- {{inc+1}}.{{che.question}}
+ {{inc+1}}.{{che.showFormatExpression || che.keywordsName}}
@@ -422,13 +385,11 @@
-
-
@@ -553,9 +514,7 @@
确认
-
-
@@ -581,14 +540,6 @@
'font-size': '34rpx',
'border-bottom': '1px solid #ccc'
},
- wordBiao: {
- level: 1,
- wordBiaoqian: '',
- wordBiaoqianId: ''
- }, // 添加话术
- treelist: [],
- huaxiangList: [],
- treeshow: false,
KeyWordsfraction: 0,
KeyWordsfractionList: [],
noClick: true,
@@ -681,8 +632,6 @@
textItself: '',
argtextindex1: 0,
argtextindex2: 0,
- wajueshow: false,
- wajueword: '',
roleisshaw: false,
roleindexrow: 0,
roletiaoshu: 0,
@@ -752,7 +701,6 @@
this.intention = false;
this.kehuyixiangcenterindex = 0;
this.buildingID = uni.getStorageSync('buildingID').id;
- this.getWordMiningList()
this.userInfo = uni.getStorageSync('weapp_session_userInfo_data');
if (this.userInfo.dataCode == 6 || this.userInfo.dataCode == 3) {
this.methodsisshow = false;
@@ -784,6 +732,36 @@
},
methods: {
+ // 对话加命中标签
+ dealTypes(type){
+ if(type){
+ let tem = type.substring(1).split(',')
+ return tem
+ }else{
+ return []
+ }
+ },
+ // 对话加命中标签
+ dealword(type){
+ if(type){
+ let a = type.split('-')
+ let rest = type.substring(2).split('-').join(',')
+ let arr =[a[0],rest]
+ return arr
+ }else{
+ return []
+ }
+ },
+ //挖掘率话术客户标签展示
+ getKeywordsList(list) {
+ let keywords = [];
+ if (list && list.length) {
+ keywords = list.map((item) => item.name);
+ } else {
+ return "--";
+ }
+ return keywords.join(",");
+ },
// 计算挖掘执行的完成率
getPercent(){
let countArr = this.KeyWordsfractionList.filter(item=> item.selected==0)
@@ -793,14 +771,6 @@
this.percent = this.percent.toFixed(0)
},
- dealTypes(type){
- if(type){
- let tem = type.split('-')
- return tem
- }else{
- return [0,'']
- }
- },
clickWajue(item){
if(item.selected==0){
this.Pinspeak = false
@@ -810,105 +780,6 @@
})
}
},
- //获取画像标签
- getWordMiningList() {
- this.treelist = [];
- this.$u.get("/corpus/findSelectedWordMiningTemplate", {
- houseId: this.buildingID,
- selected: 0
- })
- .then((res) => {
- // console.log(res)
- if (res.length) {
- res.forEach(item => {
- item.value = item.id;
- item.label = item.name;
- if (item.children.length) {
- item.children.forEach(subitem => {
- subitem.value = subitem.id;
- subitem.label = subitem.name;
- })
- } else {
- item.children = [{
- value: 'default' + item.id,
- label: '--'
- }]
- }
- })
- }
- this.treelist = res;
- });
- },
- // 添加挖掘词
- wajueConfirm() {
- if (this.thewrongword.length > 20) {
- uni.showToast({
- title: '该话术不能超过20个字',
- icon: 'none',
- duration: 2000
- });
- this.wajueshow = true
- return;
- }
-
- this.wajueshow = true
- if (!this.flag) {
- this.flag = true
- uni.request({
- url: config.service.addWordMining,
- method: "post",
- header: {
- 'content-type': 'application/json',
- 'Access-Token': uni.getStorageSync('weapp_session_login_data').token
- },
- data: {
- "houseId": this.buildingID, // 楼盘id
- "cusId": this.customerId, //客户id
- "question": this.thewrongword, // 问题
- "keywordsId": this.wordBiao.wordBiaoqianId, // 标签id
- "level": this.wordBiao.level // 标签等级
- },
- success: (res) => {
- // console.log(res)
- this.flag = false;
- if (res.data.code == 10000) {
- uni.showToast({
- title: '添加成功',
- icon: 'none',
- duration: 2000
- });
- this.wajueshow = false
- } else {
- uni.showToast({
- title: res.data.message,
- icon: 'none',
- duration: 2000
- });
- this.wajueshow = false
- }
- }
- })
- }
- },
- // 挖掘话术分类树的选择
- confirmTree(e) {
- // console.log(e)
- if (e[1].label == '--') {
- this.wordBiao.wordBiaoqian = e[0].label
- this.wordBiao.wordBiaoqianId = e[0].value
- this.wordBiao.level = 1
- } else {
- this.wordBiao.wordBiaoqian = e[0].label + '/' + e[1].label
- this.wordBiao.wordBiaoqianId = e[1].value
- this.wordBiao.level = 2
- }
- // console.log(this.wordBiao.wordBiaoqian)
- },
- CancelAdd() {
- this.wajueshow = false
- this.wajueItem.isshow = false
- this.wordBiao.wordBiaoqian = ''
- },
// 选中取反
cbChange(item) {
item.checked = !item.checked
@@ -957,6 +828,7 @@
roletab() {
// let itso=this.dialogList[this.csdFileindex].message[this.roletiaoshu];
let itso = Object.assign({}, this.dialogList[this.csdFileindex].message[this.roletiaoshu]);
+
itso.onebest = itso.onebest.replace(/<.*?>/ig, "");
this.$u.post("/corpus/updateRole", {
corpusId: this.luyinList[this.csdFileindex].id,
@@ -1193,8 +1065,6 @@
} else {
// 这里是重复点击的判断
}
-
-
}
});
} else {
@@ -1681,8 +1551,6 @@
id: uni.getStorageSync('buildingID').id
}
this.isshow2 = false;
-
-
let sas = this.textItself.replace(this.thewrongword, this.reswrongword)
this.dialogList[this.argtextindex1].message[this.argtextindex2].onebest = sas
@@ -1721,12 +1589,12 @@
this.reswrongword = "";
this.isshow2 = true;
},
- //加入挖掘话术
- openwajue(item) {
- this.wajueItem = item
- this.wajueshow = true;
- item.isshow = false
- },
+ // //加入挖掘话术
+ // openwajue(item) {
+ // this.wajueItem = item
+ // this.wajueshow = true;
+ // item.isshow = false
+ // },
//加精华
Addtheessence() {
this.refined = true
@@ -1840,19 +1708,12 @@
res.forEach((item,index) => {
item.show = false
if(index==0){item.show = true}
- item.children.forEach(obj => {
+ item.children.forEach((obj,i) => {
obj.show = false
- if (obj.questionList.length) {
- obj.questionList.forEach(subobj => {
- subobj.show = false
- })
- }
+ if (i == 0 && index == 0) {
+ obj.show = true;
+ }
})
- if (item.questionList.length) {
- item.questionList.forEach(obj => {
- obj.show = false
- })
- }
})
this.KeyWordsfractionList = res
this.getPercent()
@@ -1985,6 +1846,7 @@
this.newluyinList = jsonInfo;
console.log(this.newluyinList)
this.dialogList.push(jsonInfo[this.textindex]);
+ console.log(this.dialogList)
var itc = parseInt(info.bg / 1000)
this.toSearch(itc)
},
@@ -2142,6 +2004,8 @@
width: 100%;
height: 170rpx;
border-top: 1px solid #E0E0E0;
+ padding-bottom: constant(safe-area-inset-bottom);
+ padding-bottom: env(safe-area-inset-bottom);
.bottomhead {
width: 100%;
@@ -2624,12 +2488,10 @@
background-color: #2671E2;
}
-
-
-
.dialog-block {
margin: 20rpx 0;
border-bottom: 1px solid #ccc;
+ padding-bottom: 30rpx;
.fileName {
text-align: center;
@@ -2656,10 +2518,9 @@
}
.scroll-Y .text {
- margin: 50upx 30upx;
- line-height: 80upx;
+ margin:0 30upx 20rpx;
+ line-height: 60upx;
display: flex;
- align-items: center;
}
.scroll-Y .text[data-speaker="2"],
@@ -2695,7 +2556,6 @@
}
}
-
.scroll-Y .text[data-speaker="2"],
.scroll-Y .text[data-speaker="4"],
.scroll-Y .text[data-speaker="6"] {
@@ -2763,9 +2623,34 @@
.scroll-Y .text .contentInfo .contentMain {
display: flex;
- align-items: center;
-
}
+ .contentInfo .newmark{
+ margin: 30rpx 0 10rpx 30rpx;
+ .mark-item{
+ display: flex;
+ flex-wrap: wrap;
+ margin-bottom: 12rpx;
+ .markicon {
+ width: 30rpx;
+ height: 30rpx;
+ margin-right: 12rpx;
+ }
+ .marktext{
+ font-size: 24rpx;
+ font-family: PingFangSC-Regular, PingFang SC;
+ font-weight: 400;
+ color: #3E50E8;
+ min-height: 30rpx;
+ line-height: 30rpx;
+ max-width: 420rpx;
+ }
+ }
+ }
+ .scroll-Y .text[data-speaker="2"] .newmark,
+ .scroll-Y .text[data-speaker="4"] .newmark,
+ .scroll-Y .text[data-speaker="6"] .newmark{
+ margin-left: 84rpx;
+ }
.scroll-Y .text .contentInfo .contentMain .content {
margin-left: 30upx;
@@ -2778,33 +2663,7 @@
background: #F6F6F6;
color: #999999;
position: relative;
- .newmark{
- z-index: 1000;
- position: absolute;
- bottom: -50rpx;
- left: 0;
- display: flex;
- font-size: 30rpx;
- align-items: center;
- min-width: 180rpx;
- .markicon {
- width: 36rpx;
- height: 36rpx;
- margin-right: 12rpx;
- }
- .marktext{
- font-size: 24rpx;
- font-family: PingFangSC-Regular, PingFang SC;
- font-weight: 400;
- color: #3E50E8;
- padding: 0 16rpx;
- text-align: center;
- height: 36rpx;
- line-height: 36rpx;
- border-radius: 4px;
- border: 1px solid #3E50E8;
- }
- }
+
.tankuangcss {
position: absolute;
top: -140rpx;
@@ -2920,30 +2779,26 @@
.Level-box {
padding-bottom: 2rpx;
-
.hhhbox {
width: 100%;
padding-left: 30rpx;
padding-right: 30rpx;
border-bottom: 1rpx solid #E0E0E0;
background: #FFFFFF;
-
- // padding-bottom: 32rpx;
.hsnrtest {
- height: 24rpx;
+ min-height: 30rpx;
font-size: 24rpx;
font-weight: 400;
color: #666666;
- line-height: 24rpx;
+ line-height: 30rpx;
+ margin-bottom: 20rpx;
}
.Level3che {
width: 100%;
- height: 28rpx;
display: flex;
- line-height: 28rpx;
- align-items: center;
- margin-top: 30rpx;
+ line-height: 36rpx;
+ margin-top:16rpx;
.title1 {
flex: 1;