diff --git a/config.js b/config.js
index e830fea..809551a 100644
--- a/config.js
+++ b/config.js
@@ -81,6 +81,8 @@ var config = {
notReadNum: `${host}/zkMessage/findFlagCount`,
//设备日志
eqLog: `${host}/equipment/equipmentLog`,
+ //添加挖掘词
+ addWordMining: `${host}/corpus/addWordMining`,
}
};
module.exports = config;
\ No newline at end of file
diff --git a/manifest.json b/manifest.json
index bb483e3..7b712b3 100644
--- a/manifest.json
+++ b/manifest.json
@@ -93,7 +93,7 @@
"mp-weixin" : {
"appid" : "wx8f883dca5ecc5510",
"setting" : {
- "urlCheck" : false,
+ "urlCheck" : true,
"es6" : true,
"postcss" : true,
"minified" : true
diff --git a/pages.json b/pages.json
index 4a11d57..4e40796 100644
--- a/pages.json
+++ b/pages.json
@@ -2,7 +2,6 @@
"easycom": {
"^u-(.*)": "@/uview-ui/components/u-$1/u-$1.vue"
},
- //这个pages里只放这五个页面,新增页面时请对应的放到下面的分包里
"pages": [
{
"path": "pages/index/guide",
@@ -45,7 +44,6 @@
}
}
],
- //这下面是分包
"subPackages": [{
"root": "pages/login", //登录相关
"name": "login",
@@ -216,7 +214,6 @@
"navigationBarBackgroundColor": "#ffffff",
"navigationBarTextStyle": "black"
}
-
}, {
"path": "selectBuilding",
"style": {
@@ -224,7 +221,6 @@
"navigationBarBackgroundColor": "#FFFFFF",
"navigationBarTextStyle": "black"
}
-
}, {
"path": "registerCode",
"style": {
@@ -240,7 +236,6 @@
"navigationBarBackgroundColor": "#2671E2",
"navigationBarTextStyle": "white"
}
-
},
{
"path": "registerResult",
@@ -249,7 +244,6 @@
"navigationBarBackgroundColor": "#2671E2",
"navigationBarTextStyle": "white"
}
-
}, {
"path": "messageDetail",
"style": {
@@ -264,7 +258,6 @@
"navigationBarBackgroundColor": "#fff",
"navigationBarTextStyle": "black"
}
-
}, {
"path": "equipmentLog",
"style": {
@@ -273,7 +266,6 @@
"navigationBarTextStyle": "transparent",
"navigationStyle": "custom"
}
-
}
]
},
@@ -342,7 +334,7 @@
]
},
{
- "root": "pages/reportExcel", //中心逻辑的模块都放到这里
+ "root": "pages/reportExcel",
"name": "reportExcel",
"pages": [{
"path": "weekReport",
@@ -362,7 +354,7 @@
]
},
{
- "root": "pages/center", //中心逻辑的模块都放到这里
+ "root": "pages/center",
"name": "center",
"pages": [{
"path": "Piabodata/index",
@@ -477,7 +469,6 @@
"enablePullDownRefresh": true
}
},
-
{
"path": "records/index",
"style": {
@@ -563,9 +554,7 @@
}
}
]
- }
- ],
-
+ }],
"permission": {
"scope.userLocation": {
"desc": "你的位置信息将用于小程序位置接口的效果展示"
diff --git a/pages/center/Piabodata/requireminingAnalysis.vue b/pages/center/Piabodata/requireminingAnalysis.vue
index 9f315c8..960b0fd 100644
--- a/pages/center/Piabodata/requireminingAnalysis.vue
+++ b/pages/center/Piabodata/requireminingAnalysis.vue
@@ -14,10 +14,10 @@
{{ guwen}}
-
+
@@ -44,7 +44,7 @@
平均需求挖掘率:筛选时间内,有效接待中已标记顾问的需求挖掘执行率的平均值;
未标记:筛选时间内,有效接待中未标记顾问的接待数;
有效接待:筛选时间内,标记为有效的接待数,不包含待接单;
- 未挖掘需求数:筛选时间内,需求挖掘平均执行率未0 的需求数;
+ 未挖掘需求数:筛选时间内,需求挖掘平均执行率为0的需求数;
X
@@ -118,8 +118,8 @@
:default-value='selindex'>
-
+
@@ -136,7 +136,7 @@
data() {
return {
selindex: '',
- huashushow: false,
+ // huashushow: false,
guwenshow: false,
timeshow: false,
selectshow: false,
@@ -190,7 +190,7 @@
},
activeTotal: 4,
houseId: '',
- hushuList: [],// 业务话术
+ // hushuList: [],// 业务话术
staffList: [],// 员工列表
teamList: [],// 团队列表
team: {
diff --git a/pages/center/consumer/consumerDetail.vue b/pages/center/consumer/consumerDetail.vue
index afb4f3b..1e198a0 100644
--- a/pages/center/consumer/consumerDetail.vue
+++ b/pages/center/consumer/consumerDetail.vue
@@ -48,7 +48,7 @@
>所属顾问:{{ customerInfo.agentName || "--" }}
客户阶段:{{ customerInfo.agentName || "--" }}客户阶段:{{ customerInfo.stageName || "--" }}
@@ -56,15 +56,6 @@
>上次到访:{{ customerInfo.createTime || "--" }}
-
@@ -83,7 +74,10 @@
跟进记录
- 执行率
+ 销讲执行率
+
+
+ 挖掘执行率
@@ -159,39 +153,13 @@
-
+
-
- 销讲执行率
- 需求挖掘执行率
-
-
-执行总览
-
-
- {{customerInfo.visitRecord || '--'}}次
- 接待次数
-
-
-
-
- {{customerInfo.fraction}}%
-
-
- 销讲执行率
-
-
- {{customerInfo.mm}}min
- 接待时长
-
-
-
+
指标
执行率
-
-
+
@@ -243,29 +211,10 @@
-
-
- 执行总览
-
-
- {{customerInfo.visitRecord || '--'}}次
- 到访次数
-
-
-
-
- {{customerInfo.wordFraction||0}}%
-
-
- 需求挖掘执行率
-
-
- {{customerInfo.mm}}min
- 接待时长
-
-
-
+
+
+
+
指标
执行率
@@ -280,7 +229,7 @@
暂无数据
-
+
{{item.name}}
@@ -343,7 +292,6 @@
-
@@ -356,7 +304,7 @@
-
{{item.name}}
@@ -1189,11 +1137,10 @@
.content-last {
padding: 30rpx;
- height: 168rpx;
.content-last-con {
width: 690rpx;
- height: 108rpx;
+ min-height: 108rpx;
background: #F8F8F8;
border-radius: 8rpx;
padding: 14rpx 20rpx;
@@ -1208,7 +1155,6 @@
}
.tabchange {
- // background: #FFFFFF;
overflow: hidden;
.tabactive1 {
diff --git a/pages/center/consumer/index.vue b/pages/center/consumer/index.vue
index bb7d205..5248211 100644
--- a/pages/center/consumer/index.vue
+++ b/pages/center/consumer/index.vue
@@ -126,18 +126,12 @@
}}
-
所属顾问:{{ item.agentName || "--" }}
客户阶段:{{ item.agentName || "--" }}客户阶段:{{ item.stageName || "--" }}
@@ -549,15 +543,15 @@ export default {
data() {
return {
huaxiangShow: false,
- wajueArrow: false,
- jieduanArrow: false,
- sourceArrow: false,
- levelArrow: false,
+ wajueArrow: true,
+ jieduanArrow: true,
+ sourceArrow: true,
+ levelArrow: true,
zixunArrow: true,
- jiedaiArrow: false,
- luyinArrow: false,
- visitArrow: false,
- xiaojiangArrow: false,
+ jiedaiArrow: true,
+ luyinArrow: true,
+ visitArrow: true,
+ xiaojiangArrow: true,
huaxiangList: [],
orderBylist: [
{
@@ -869,7 +863,7 @@ export default {
this.sortFilter = "排序";
this.receptionDuration = "所属顾问";
this.arriveFilter = "到访时间";
- this.screen.orderBy = null;
+ this.screen.orderBy = '';
this.screen.staTime = "";
this.screen.endTime = "";
this.nextPage = 1;
@@ -882,7 +876,7 @@ export default {
//选择标签
selectCallback2(e) {
this.sortFilter = e[0].label;
- this.orderBy = e[0].value;
+ this.screen.orderBy = e[0].value;
this.nextPage = 1;
this.recordList = [];
this.isRefresh = false;
@@ -952,6 +946,14 @@ export default {
});
},
getMyCustom() {
+ this.screen.visitRecord = []
+ this.screen.jiedaiVal = []
+ this.screen.wajueVal = []
+ this.screen.xiaojiangVal = []
+ this.screen.level = []
+ this.screen.clientStage = []
+ this.screen.sourceIds = []
+ let keywordsIds = []
let dateType = 0;
if (this.activeTotal == 5||this.activeTotal == 4) {
dateType = null;
@@ -986,7 +988,7 @@ export default {
this.sourceList.forEach(i => {
if(i.isShow) this.screen.sourceIds.push(i.value)
})
- let keywordsIds = []
+
this.huaxiangList.forEach(item => {
if(item.children.length){
item.children.forEach(im=>{
@@ -999,19 +1001,19 @@ export default {
pageSize: 10,
query: {
projectId: this.buildingID,
- fractions: this.screen.xiaojiangVal.join(','),// 销讲执行率
- wordFractions: this.screen.wajueVal.join(','),//需求挖掘
- visitRecordNum: this.screen.visitRecord.join(','),//到访次数
- clientStages: this.screen.clientStage.join(','), // 客户阶段
- sourceIds: this.screen.sourceIds.join(','),// 客户来源
- level: this.screen.level.join(','),// 客户等级
- duractionNums: this.screen.jiedaiVal.join(','),// 接待时长
+ fractions: this.screen.xiaojiangVal.length?this.screen.xiaojiangVal.join(','):'',// 销讲执行率
+ wordFractions: this.screen.wajueVal.length?this.screen.wajueVal.join(','):'',//需求挖掘
+ visitRecordNum: this.screen.visitRecord.length?this.screen.visitRecord.join(','):'',//到访次数
+ clientStages: this.screen.clientStage.length?this.screen.clientStage.join(','):'', // 客户阶段
+ sourceIds: this.screen.sourceIds.length?this.screen.sourceIds.join(','):'',// 客户来源
+ level: this.screen.level.length?this.screen.level.join(','):'',// 客户等级
+ duractionNums: this.screen.jiedaiVal.length?this.screen.jiedaiVal.join(','):'',// 接待时长
keywordsIds: keywordsIds.length?keywordsIds.join(','):'',// 画像标签
dateType: dateType, // 接待时间
staTime: this.screen.staTime,
endTime: this.screen.endTime,
agentId: this.screen.agentId,// 顾问
- orderBy: this.screen.orderBy==0?null: this.screen.orderBy,// 排序
+ orderBy: this.screen.orderBy==''?'': this.screen.orderBy,// 排序
},
};
this.userInfo = uni.getStorageSync("weapp_session_userInfo_data");
@@ -1062,7 +1064,7 @@ export default {
// console.log(res)
if(res.length){
res.forEach(item=>{
- item.isShow = false;
+ item.isShow = true;
if(item.children.length){
item.children.forEach(subitem=>{
subitem.isShow = false;
@@ -1165,7 +1167,7 @@ export default {
resetHuaXiang(){
if(this.huaxiangList.length){
this.huaxiangList.forEach(item=>{
- item.isShow = false;
+ item.isShow = true;
if(item.children.length){
item.children.forEach(subitem=>{
subitem.isShow = false;
diff --git a/pages/center/records/index.vue b/pages/center/records/index.vue
index 71ea8b3..ec8c181 100644
--- a/pages/center/records/index.vue
+++ b/pages/center/records/index.vue
@@ -82,7 +82,7 @@
访问次数
- {{item.wordFraction||'--'}}
+ {{item.demand.cusSemanticWordsList?item.demand.cusSemanticWordsList.length:'--'}}
画像标签
@@ -167,15 +167,15 @@
-
有效接待
-
无效接待
-
无录音
@@ -192,7 +192,7 @@
@click="screenvisitRecord(1)">
标记
-
未标记
@@ -265,13 +265,13 @@
},
data() {
return {
- wajueArrow: false,
+ wajueArrow: true,
zixunArrow: true,
- jiedaiArrow: false,
- luyinArrow: false,
- visitArrow: false,
+ jiedaiArrow: true,
+ luyinArrow: true,
+ visitArrow: true,
xiaojiangArrow: true,
- markArrow: false,
+ markArrow: true,
orderBylist: [{
label: '全部',
value: ''
@@ -422,13 +422,13 @@
screen: {
orderBy: '',//排序
agentId: '', //顾问id
- markAdvisor: null,//标记顾问
+ markAdvisor: '',//标记顾问
visitRecord: [],// 到访次数
- zixunVal: [],// 咨询业务
+ // zixunVal: [],// 咨询业务
wajueVal: [],// 需求挖掘
xiaojiangVal:[],//销讲执行率
jiedaiVal: [],// 接待时长
- validInvalid: null,// 录音标识
+ validInvalid: ''// 录音标识
},
freeList: [], //顾问
recordList: [],
@@ -646,13 +646,13 @@
staTime: this.staTime,// 接待时间
endTime: this.endTime,// 接待时间
agentId: this.screen.agentId, // 顾问ID
- visitRecordNum: this.screen.visitRecord.join(','),//到访次数
- wordFractions: this.screen.wajueVal.join(','),//挖掘
- duractionNums: this.screen.jiedaiVal.join(','),//接待时长
- fractions: this.screen.xiaojiangVal.join(','),//销讲
+ 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.orderBy==0?null:this.orderBy,//排序
+ orderBy: this.screen.orderBy==''?'':this.screen.orderBy,//排序
validInvalid: this.screen.validInvalid,//录音标识
clientStage: this.screen.clientStage,// 客户阶段
recording: this.screen.validInvalid == 2 ? 0 : null // 录音
@@ -705,8 +705,10 @@
reset() {
this.screen.agentId =''
this.screen.jiedaiVal =''
+ this.screen.validInvalid = ''
+ this.screen.markAdvisor = ''
+ this.screen.orderBy = '';
this.sortFilter = '排序';
- this.orderBy = null;
this.arriveFilter = '到访时间';
this.staTime = '';
this.endTime = '';
@@ -720,7 +722,10 @@
this.jiedaiList.map(i => {
i.isShow = false
})
- this.zixunList.map(i => {
+ // this.zixunList.map(i => {
+ // i.isShow = false
+ // })
+ this.wajueList.map(i => {
i.isShow = false
})
this.xiaojiangList.map(i => {
@@ -732,40 +737,22 @@
},
//标记顾问
screenvisitRecord(i) {
- console.log(i)
- if (this.screen.markAdvisor == i) {
- this.screen.markAdvisor = null
+ // console.log(i)
+ if (this.screen.markAdvisor === i) {
+ this.screen.markAdvisor = ''
} else {
this.screen.markAdvisor = i
}
},
// 录音标识
screenvisivalidInvalid(i) {
- console.log(this.screen.validInvalid, i)
- if (this.screen.validInvalid == i) {
- this.screen.validInvalid = null
+ // console.log(this.screen.validInvalid, i)
+ if (this.screen.validInvalid === i) {
+ this.screen.validInvalid = ''
} else {
this.screen.validInvalid = i
}
},
- //咨询业务
- screenzixunClick(i) {
- console.log(this.screen.zixunVal, i)
- if (this.screen.zixunVal == i) {
- this.screen.zixunVal = null
- } else {
- this.screen.zixunVal = i
- }
- },
- // 需求挖掘选择
- screenwajueValClick(i) {
- // console.log(this.screen.wajueVal, i)
- if (this.screen.wajueVal == i) {
- this.screen.wajueVal = null
- } else {
- this.screen.wajueVal = i
- }
- },
screensure() {
this.screenShow = false;
this.recordList = [];
diff --git a/pages/mine/details2.vue b/pages/mine/details2.vue
index 8abc7e7..226cbf9 100644
--- a/pages/mine/details2.vue
+++ b/pages/mine/details2.vue
@@ -28,7 +28,7 @@
录音文件
+ v-for="(item,index) in dialog.message" :key="index" :data-speaker="item.speaker">
@@ -147,30 +147,30 @@
-
+
-
+
话术分类:
-
+
-
- 话术内容:
-
+
+ 话术内容:
+
-
-
- 常错词:
-
+
+ 常错词:
+
- 正确词:
+ 正确词:
+
@@ -753,21 +753,44 @@
},
// 添加挖掘词
wajueConfirm(){
- this.$u.post("/corpus/addWordMining", {
- "houseId":this.buildingID,// 楼盘id
- "cusId":this.customerId, //客户id
- "question":this.thewrongword,// 问题
- "keywordsId":this.wordBiao.wordBiaoqianId,// 标签id
- "level":this.wordBiao.level // 标签等级
- })
- .then((res) => {
- console.log(res)
- this.wajueItem.isshow = false
+ 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)
+ if(res.data.code==10000){
+ this.wajueItem.isshow = false
+ this.wajueshow = false
+ uni.showToast({
+ title: '添加成功',
+ duration: 2000
+ });
+ }else{
+ this.wajueshow = true
+ this.wajueItem.isshow = false
+ uni.showToast({
+ title: '添加失败',
+ icon: 'none',
+ duration: 2000
+ });
+ }
+ }
})
},
// 挖掘话术分类树的选择
confirmTree(e){
- console.log(e)
+ // console.log(e)
if(e[1].label=='--'){
this.wordBiao.wordBiaoqian = e[0].label
this.wordBiao.wordBiaoqianId = e[0].value
@@ -777,11 +800,12 @@
this.wordBiao.wordBiaoqianId= e[1].value
this.wordBiao.level = 2
}
- console.log(this.wordBiao.wordBiaoqian)
+ // console.log(this.wordBiao.wordBiaoqian)
},
CancelAdd(){
this.wajueshow = false
this.wajueItem.isshow= false
+ this.wordBiao.wordBiaoqian = ''
},
// 选中取反
cbChange(item) {
@@ -2695,27 +2719,16 @@
width: 100%;
font-size: 34rpx;
display: flex;
- align-items: center;
color: #333;
- .tian-input {
- width: 384rpx;
- font-size: 34rpx;
- padding: 0 10rpx;
- border: none;
- border-bottom: 1px solid #e0e0e0;
- }
}
.tian-view-t3 {
width: 100%;
display: flex;
font-size: 34rpx;
- align-items: center;
.huashu-input{
- width: 384rpx;
- height: 60rpx;
- padding: 0 10rpx;
+ padding:0 10rpx;
font-size: 34rpx;
- border-bottom: 1px solid #E0E0E0;
+ border-bottom: 1px solid #ccc;
}
}
}
diff --git a/utils/domain.js b/utils/domain.js
index 04967f5..82ebeb1 100644
--- a/utils/domain.js
+++ b/utils/domain.js
@@ -2,6 +2,7 @@
const baseUrl = 'http://81.70.55.170:9090/autoSR/api';// 最新测试
// const baseUrl = 'http://127.0.0.1:8080/autoSR/api'; // 本地
// const baseUrl = 'http://192.168.31.169:8080/autoSR/api'; // 长龙
+// const baseUrl = 'http://192.168.31.231:8080/autoSR/api'; // 长龙
// const baseUrl = 'http://192.168.31.149:9090/api'; // 盛浩
// const baseUrl = 'https://zkgj.quhouse.com/api'; // 质控正式
// const baseUrl = 'https://hfju.com/api'; // 数智正式