diff --git a/pages.json b/pages.json
index 9414972..742b52e 100644
--- a/pages.json
+++ b/pages.json
@@ -484,6 +484,15 @@
"enablePullDownRefresh": true
}
},
+ {
+ "path": "Piabodata/requireminingAnalysis",
+ "style": {
+ "navigationBarTitleText": "需求挖掘分析",
+ "navigationBarBackgroundColor": "#FFFFFF",
+ "navigationBarTextStyle": "black",
+ "enablePullDownRefresh": true
+ }
+ },
{
"path": "records/index",
@@ -629,4 +638,4 @@
"query": "" //启动参数,在页面的onLoad函数里面得到
}]
}
-}
+}
diff --git a/pages/center/Piabodata/requireminingAnalysis.vue b/pages/center/Piabodata/requireminingAnalysis.vue
new file mode 100644
index 0000000..fc8e024
--- /dev/null
+++ b/pages/center/Piabodata/requireminingAnalysis.vue
@@ -0,0 +1,636 @@
+
+
+
+
+
+ {{ time }}
+
+
+
+ {{ dept}}
+
+
+
+ {{ guwen}}
+
+
+
+
+
+
+
+ 简报 统计说明
+
+
+ {{item.name}}
+ {{item.num}}
+
+
+
+
+
+
+ 统计说明
+
+ 平均需求挖掘率:筛选时间内,有效接待中已标记顾问的需求挖掘执行率的平均值;
+ 未标记:筛选时间内,有效接待中未标记顾问的接待数;
+ 有效接待:筛选时间内,标记为有效的接待数,不包含待接单;
+ 未挖掘需求数:筛选时间内,需求挖掘平均执行率未0 的需求数;
+
+
+ X
+
+
+
+
+ 平均需求挖掘率趋势
+
+
+
+
+
+
+
+
+ 平均需求挖掘分布
+
+
+
+
+
+
+
+
+ 需求挖掘排名
+
+
+
+ 排名
+ 需求类型/挖掘执行接待数
+ 执行率
+ 操作
+
+ 暂无数据
+
+
+
+
+
+ {{i+1}}
+
+ {{item.name}}({{item.selected}})
+ {{item.fraction}}%
+ 查看
+
+
+
+
+
+ 近7天
+
+ 近15天
+
+ 近30天
+
+ 自定义
+
+
+
+
+
+
+
+
+
+
+
diff --git a/pages/center/consumer/consumerDetail.vue b/pages/center/consumer/consumerDetail.vue
index f970072..0da4d2e 100644
--- a/pages/center/consumer/consumerDetail.vue
+++ b/pages/center/consumer/consumerDetail.vue
@@ -35,7 +35,10 @@
- 顾问姓名:{{customerInfo.ownerName}}
+ 顾问姓名:{{customerInfo.ownerName||'--'}}
+
+
+ 需求挖掘:{{customerInfo.wordFraction||0}}%
添加时间:{{customerInfo.createTime}}
@@ -141,7 +144,12 @@
- 执行总览
+
+ 销讲执行率
+ 需求挖掘执行率
+
+
+执行总览
{{customerInfo.visitRecord || '--'}}次
@@ -193,7 +201,7 @@
- {{subitem.name}}
+ {{subitem.name}}
已执行
未执行
@@ -211,12 +219,113 @@
+
-
+
+
+ 执行总览
+
+
+ {{customerInfo.visitRecord || '--'}}次
+ 到访次数
+
+
+
+
+ {{customerInfo.wordFraction||0}}%
+
+
+ 需求挖掘执行率
+
+
+ {{customerInfo.mm}}min
+ 接待时长
+
+
+
+ 指标
+ 执行率
+
+
+
+
+
+
+
+
+ 暂无数据
+
+
+
+
+
+ {{item.name}}
+
+
+
+ {{item.fraction||0}}%
+
+
+
+
+
+
+
+
+
+
+ 话术内容
+
+ {{inc+1}}.{{che.question}}
+
+
+
+
+
+
+
+
+
+
+
+ {{subitem.name}}
+
+ 已执行
+ 未执行
+
+
+
+
+
+
+
+ 话术内容
+
+ {{inc+1}}.{{che.question}}
+
+
+
+
+
+
+
+
+
+
@@ -249,6 +358,7 @@
},
data() {
return {
+ tabactive: 0,
activeTotal: 0,
customerId: '',
tipshow: false,
@@ -261,6 +371,7 @@
totalRate: [],
ratelist: [],
fllowList: [],
+ KeyWordsfractionList: [],//需求挖掘话术list
userInfo: {},
buttonisshow: false
}
@@ -288,6 +399,37 @@
this.tabtimetap(0)
},
methods: {
+ changeshowlevel1(item,type){
+ console.log(item)
+ item.show = !item.show
+ },
+ // 客户详情需求挖掘话术
+ getfindKeyWordsBycusId() {
+ this.$u.get("/cusLvStatistics/findKeyWordsBycusId?cusId=" + this.customerId).then(res => {
+ console.log(res)
+ if(res.length){
+ res.forEach(item=>{
+ item.show = false
+ item.children.forEach(obj=>{
+ obj.show = false
+ if(obj.questionList.length){
+ obj.questionList.forEach(subobj=>{
+ subobj.show =false
+ })
+ }
+ })
+ if(item.questionList.length){
+ item.questionList.forEach(obj=>{
+ obj.show =false
+ })
+ }
+ })
+ this.KeyWordsfractionList = res
+ }else{
+ this.KeyWordsfractionList = []
+ }
+ })
+ },
// 获取到访记录
getVisitList() {
this.$u.get("/customer/findByPhoneAndProject?id=" + this.customerId, ).then(res => {
@@ -328,10 +470,10 @@
this.getFollowList()
} else {
this.getRatelist()
+ this.getfindKeyWordsBycusId()
}
},
tapThevisiting(item) {
- console.log("11111111111111")
uni.showLoading({
title: '加载中',
mask: true
@@ -678,7 +820,7 @@
align-items: center;
.title1 {
- flex: 2;
+ flex: 3;
font-size: 28rpx;
color: #333333;
font-weight: 400;
@@ -798,6 +940,32 @@
background-color: #FFFFFF;
padding-bottom: 30rpx;
width: 100%;
+ .my-tab{
+ padding: 20rpx 0;
+ display: flex;
+ justify-content: space-around;
+ align-items: center;
+ border-bottom: 1px solid #E0E0E0;
+ .tab-item{
+ padding: 0 30rpx;
+ height: 56rpx;
+ font-size: 28rpx;
+ font-family: PingFangSC-Regular, PingFang SC;
+ font-weight: 400;
+ color: #666666;
+ line-height: 56rpx;
+ text-shadow: 0px 1px 0px #E0E0E0;
+ }
+ .tabactive{
+ height: 56rpx;
+ background: rgba(38, 113, 226, 0.1);
+ box-shadow: 0px 1px 0px 0px #E0E0E0;
+ border-radius: 28rpx;
+ font-weight: 600;
+ color: #2671E2;
+ }
+
+ }
.ratetetle {
padding: 30rpx;
@@ -841,7 +1009,7 @@
.tab {
height: 88rpx;
- border-bottom: 1px solid #E0E0E0;
+ // border-bottom: 1px solid #E0E0E0;
background: #FFFFFF;
display: flex;
align-items: center;
@@ -941,7 +1109,6 @@
.content-sec {
border-top: 1px solid #E0E0E0;
padding: 0 30rpx;
- height: 270rpx;
position: relative;
.content-sec-lab {
@@ -984,7 +1151,7 @@
font-weight: 400;
color: #2671E2;
line-height: 45rpx;
- bottom: 15rpx;
+ bottom: 100rpx;
right: 30rpx;
text-align: center;
}
diff --git a/pages/center/consumer/index.vue b/pages/center/consumer/index.vue
index 02ada5b..cd8dc0a 100644
--- a/pages/center/consumer/index.vue
+++ b/pages/center/consumer/index.vue
@@ -72,14 +72,17 @@
- 顾问姓名:{{item.agentName}}
+ 顾问姓名:{{item.agentName||'--'}}
+
+
+ 需求挖掘:{{item.wordFraction||0}}%
添加时间:{{item.createTime}}
{{item.visitRecord || '--'}}次到访
- {{item.fraction || '0'}}% | {{item.mm || '0'}}{{item.fraction || 0}}% | {{item.mm || 0}}min
diff --git a/pages/center/records/index.vue b/pages/center/records/index.vue
index fedf43d..91826b9 100644
--- a/pages/center/records/index.vue
+++ b/pages/center/records/index.vue
@@ -78,10 +78,12 @@
第{{item.visitRecord || "--"}}次接待
-
{{item.fraction || '0'}}%
+
+ 需求挖掘:{{item.wordFraction|| 0}}%
+
{{item.createTime}} | {{item.mm || '0'}} min
diff --git a/pages/index/index.vue b/pages/index/index.vue
index f2ab4a6..c789ac2 100644
--- a/pages/index/index.vue
+++ b/pages/index/index.vue
@@ -119,31 +119,25 @@
{{realtimeobj.fraction || 0}}%
平均执行率
+
+ {{realtimeobj.wordFraction || 0}}%
+ 平均挖掘率
+
{{realtimeobj.prohibitedCustomer || 0}}
违禁预警
-
-
-
-
-
-
-
概览
- 近7天
-
-
- 近30天
- 自定义
-
+ 近7天
+ 近30天
+ 自定义
@@ -166,6 +160,10 @@
{{Thisweekobj.avgDuration|| 0}}
平均接待时长
+
+ {{Thisweekobj.wordFraction || 0}}%
+ 平均挖掘率
+
{{Thisweekobj.prohibitedCustomer || 0}}
违禁预警
@@ -174,10 +172,6 @@
-
-
-
-
@@ -193,7 +187,6 @@
-
- 销讲总执行率{{totalRate}}%
-
- 禁忌执行
+ 销讲总执行率{{totalRate}}%
+ 禁忌执行
+ 需求挖掘率
+
@@ -301,6 +302,75 @@
暂无数据
+
+
+ 指标
+ 执行率
+
+
+
+
+ {{item.name}}
+
+
+
+ {{item.fraction||0}}%
+
+
+
+
+
+
+
+
+
+
+ 话术内容
+
+ {{inc+1}}.{{che.question}}
+
+
+
+
+
+
+
+
+
+
+
+ {{subitem.name}}
+
+ 已执行
+ 未执行
+
+
+
+
+
+
+
+ 话术内容
+
+ {{inc+1}}.{{che.question}}
+
+
+
+
+
+
+
+
+
+
@@ -445,6 +515,7 @@
data() {
return {
+ KeyWordsfractionList: [],
noClick: true,
kehuyixiangcenterindex: 0,
Acquirecustomerintentlist2: [],
@@ -698,9 +769,10 @@
this.zhixingcenterindex = i;
if (i == 0) {
this.getRatelist()
- } else {
- console.log('999')
+ } else if(i==1) {
this.huoqujinji()
+ }else{
+ this.getfindKeyWordsBycusId()
}
},
//获取禁忌
@@ -1528,6 +1600,33 @@
changeshow2(item, type) {
item.show = !item.show;
},
+ // 客户详情需求挖掘话术
+ getfindKeyWordsBycusId() {
+ this.$u.get("/cusLvStatistics/findKeyWordsBycusId?cusId=" + this.customerId).then(res => {
+ console.log(res)
+ if(res.length){
+ res.forEach(item=>{
+ item.show = false
+ item.children.forEach(obj=>{
+ obj.show = false
+ if(obj.questionList.length){
+ obj.questionList.forEach(subobj=>{
+ subobj.show =false
+ })
+ }
+ })
+ if(item.questionList.length){
+ item.questionList.forEach(obj=>{
+ obj.show =false
+ })
+ }
+ })
+ this.KeyWordsfractionList = res
+ }else{
+ this.KeyWordsfractionList = []
+ }
+ })
+ },
getRatelist() {
this.$u.get("/customer/findzkMByCusId", {
cusId: this.customerId
diff --git a/utils/domain.js b/utils/domain.js
index 1603e0c..567f886 100644
--- a/utils/domain.js
+++ b/utils/domain.js
@@ -1,10 +1,10 @@
// 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.148:8080/api';// 泽明
// const baseUrl = 'http://127.0.0.1:8080/autoSR/api'; // 本地
-// const baseUrl = 'http://192.168.31.161:8080/autoSR/api'; // 长龙
+// const baseUrl = 'http://192.168.31.169:8080/autoSR/api'; // 长龙
// const baseUrl = 'http://192.168.31.90:8080/api'; // 盛浩
-const baseUrl = 'https://zkgj.quhouse.com/api'; // 质控正式
+// const baseUrl = 'https://zkgj.quhouse.com/api'; // 质控正式
// const baseUrl = 'https://hfju.com/api'; // 数智正式
// const baseUrl = 'https://xitong.pachira.cn/api'; // AI营销辅助 普强使用