From f83333f50e3f12d09e61f7210e3af8031cbc1062 Mon Sep 17 00:00:00 2001
From: corala <18339694416@163.com>
Date: Fri, 23 Dec 2022 16:07:41 +0800
Subject: [PATCH 01/14] =?UTF-8?q?=E9=9C=80=E6=B1=82=E6=8C=96=E6=8E=98?=
=?UTF-8?q?=E5=88=86=E6=9E=90?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pages.json | 9 +
.../Piabodata/requireminingAnalysis.vue | 744 ++++++++++++++++++
pages/center/records/index.vue | 29 -
pages/index/index.vue | 14 +-
pages/mine/details2.vue | 84 +-
5 files changed, 841 insertions(+), 39 deletions(-)
create mode 100644 pages/center/Piabodata/requireminingAnalysis.vue
diff --git a/pages.json b/pages.json
index 7060278..4bf0c0c 100644
--- a/pages.json
+++ b/pages.json
@@ -463,6 +463,15 @@
"enablePullDownRefresh": true
}
},
+ {
+ "path": "Piabodata/requireminingAnalysis",
+ "style": {
+ "navigationBarTitleText": "需求挖掘分析",
+ "navigationBarBackgroundColor": "#FFFFFF",
+ "navigationBarTextStyle": "black",
+ "enablePullDownRefresh": true
+ }
+ },
{
"path": "Piabodata/StaffAnalysis",
"style": {
diff --git a/pages/center/Piabodata/requireminingAnalysis.vue b/pages/center/Piabodata/requireminingAnalysis.vue
new file mode 100644
index 0000000..1c322a0
--- /dev/null
+++ b/pages/center/Piabodata/requireminingAnalysis.vue
@@ -0,0 +1,744 @@
+
+
+
+
+
+ {{ time }}
+
+
+
+ {{ dept}}
+
+
+
+ {{ guwen}}
+
+
+
+
+
+ 简报 统计说明
+
+
+ {{item.name}}
+ {{item.firstnum||0}}
+
+ 对比:{{item.endnum||0}}
+ {{item.duibinum||0}}
+
+
+
+
+
+
+
+
+
+
+ 统计说明
+
+ 平均挖掘执行率:筛选时间内,有效接待中已标记顾问的挖掘执行率的平均值;
+ 未标记:筛选时间内,有效接待中未标记顾问的接待数;
+ 有效接待:筛选时间内,标记为有效的接待数,不包含待接单;
+ 未挖掘数:筛选时间内,挖掘平均执行率为0的接待数;
+
+
+ X
+
+
+
+
+ 平均挖掘执行率趋势
+
+
+
+
+
+
+
+
+ 需求挖掘分布
+
+
+
+
+
+
+
+
+ 需求挖掘排名
+
+
+
+ 排名
+ 需求类型/挖掘执行接待数
+ 执行率
+ 操作
+
+ 暂无数据
+
+
+
+
+
+ {{i+1}}
+
+ {{item.name}}({{item.selected}})
+ {{max100(item.fraction)}}%
+ 查看
+
+
+
+
+
+ 近7天
+
+ 近15天
+
+ 近30天
+
+ 自定义
+
+
+
+
+
+
+
+
+
+
+
diff --git a/pages/center/records/index.vue b/pages/center/records/index.vue
index ab261a8..ba9763e 100644
--- a/pages/center/records/index.vue
+++ b/pages/center/records/index.vue
@@ -1,17 +1,5 @@
-
-
@@ -28,7 +16,6 @@
-
筛选结果:{{totalRecords}} 条
@@ -157,22 +144,6 @@
{{item.label}}
-
员工分析
+
+
+
+
+ 需求挖掘分析
+
@@ -506,7 +513,12 @@
this.updateInit()
},
methods: {
-
+ // 需求挖掘分析
+ toRequireAnalysis(){
+ uni.navigateTo({
+ url: '/pages/center/Piabodata/requireminingAnalysis'
+ });
+ },
updateInit() {
this.$u.get(config.service.notReadNum, {
id: uni.getStorageSync('weapp_session_userInfo_data').accountId,
diff --git a/pages/mine/details2.vue b/pages/mine/details2.vue
index 3834b2a..a96c2e4 100644
--- a/pages/mine/details2.vue
+++ b/pages/mine/details2.vue
@@ -80,6 +80,23 @@
+
+
+
+
+
+
+
+
+
+ {{dealword(subitem)[1]}}
+
+
+
@@ -682,6 +699,28 @@
},
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 []
+ }
+ },
+
+
// 跳转设备日志页面
eqLogClick() {
uni.navigateTo({
@@ -1925,6 +1964,40 @@
diff --git a/pages/center/consumer/consumerSearch.vue b/pages/center/consumer/consumerSearch.vue
index 78a3f82..a5b0653 100644
--- a/pages/center/consumer/consumerSearch.vue
+++ b/pages/center/consumer/consumerSearch.vue
@@ -56,7 +56,7 @@
-
+
@@ -71,7 +71,7 @@
">暂无数据
-
+
diff --git a/pages/center/consumer/remind.vue b/pages/center/consumer/remind.vue
index 0d936f8..6fa2158 100644
--- a/pages/center/consumer/remind.vue
+++ b/pages/center/consumer/remind.vue
@@ -6,7 +6,6 @@
客户信息
-
{{str}}
diff --git a/pages/center/prohibited/index.vue b/pages/center/prohibited/index.vue
index 5e61a58..ee530be 100644
--- a/pages/center/prohibited/index.vue
+++ b/pages/center/prohibited/index.vue
@@ -26,7 +26,7 @@
+ style="width: 100%;height: 100vh;display: flex;background: #FFFFFF;">
-
- {{ startFilterTime }}
+
+ {{ arriveFilter }}
-
- {{ receptionDuration }}
+
+ {{ counselorName }}
-
+
{{ sortText }}
-
+
更多筛选
- 筛选结果:{{totalRecords}} 条
+ 筛选结果:{{totalRecords}}条
顾
{{item.agentName}}
-
@@ -61,7 +60,6 @@
客
{{item.name || '--'}}
-
{{ item.phone | encryption }}
@@ -69,6 +67,17 @@
{{item.fraction || '0'}}%
+
+
+ 挖掘执行:100%
+
+
+ 挖掘成功:100%
+
+
+ 销讲业务:生鲜
+
+
@@ -86,66 +95,159 @@
-
+
-
-
-
- 所属顾问
-
-
-
-
-
-
-
-
-
- 录音标识
+
+
+
+
+ 销讲业务
+
+
+
+
+
+
+ {{item.templateName}}
+
+
+
-
-
- 有效接待
+
+
+
+ 销讲执行率
+
+
-
- 无效接待
-
- 无录音
+
+
+
+ {{item.label}}
+
+
-
-
-
- 标记顾问
+
+
+
+ 需求挖掘率
+
+
+
+
+
+
+ {{item.label}}
+
+
+
-
-
- 标记
+
+
+
+ 接待时长
+
+
-
- 未标记
+
+
+
+ {{item.label}}
+
+
-
-
-
- 到访次数
+
+
+
+ 录音标识
+
+
+
+
+
+ 有效接待
+
+
+ 无效接待
+
+
+ 无录音
+
+
+ 无效(未审核)
+
+
-
-
-
- {{item.label}}
+
+
+
+ 标记顾问
+
+
+
+
+
+ 标记
-
+
+ 未标记
+
+
-
+
+
+
+ 到访次数
+
+
+
+
+
+
+ {{item.label}}
+
+
+
+
+
-
- 全部
-
-
- 0~15min
-
- 15~30min
-
- 30~60min
-
- 60~90min
-
- 90min以上
-
@@ -200,6 +288,8 @@
export default {
data() {
return {
+ templateList: [], // 销讲业务
+ showTemplate: true, // 展示销讲业务
orderBylist: [
// {
// label: '全部',
@@ -238,19 +328,85 @@
value: '8'
},
],
+ jiedaiList: [{
+ label: '0~15min',
+ value: 1,
+ isShow: false,
+ }, {
+ label: '16~30min',
+ value: 2,
+ isShow: false,
+ }, {
+ label: '31~60min',
+ value: 3,
+ isShow: false,
+ }, {
+ label: '61~90min',
+ value: 4,
+ isShow: false,
+ }, {
+ label: '91min及以上',
+ value: 5,
+ isShow: false,
+ }],
+ wajueList: [{
+ label: '30%及以下',
+ value: 1,
+ isShow: false,
+ }, {
+ label: '31%~50%',
+ value: 2,
+ isShow: false,
+ }, {
+ label: '51%~70%',
+ value: 3,
+ isShow: false,
+ }, {
+ label: '71%及以上',
+ value: 4,
+ isShow: false,
+ }],
+ xiaojiangList: [{
+ label: '30%及以下',
+ value: 1,
+ isShow: false,
+ }, {
+ label: '31%~50%',
+ value: 2,
+ isShow: false,
+ }, {
+ label: '51%~70%',
+ value: 3,
+ isShow: false,
+ }, {
+ label: '71%及以上',
+ value: 4,
+ isShow: false,
+ }],
activeTotal: 5,
value: '',
screenShow: false,
+ wajueArrow: true,
+ jiedaiArrow: true,
+ markArrow: true,
+ visitArrow: true,
+ xiaojiangArrow: true,
+ luyinArrow: true,
selectshow: false,
totalTimeShow: false,
totalRecords: '',
screen: {
+ orderBy: '', //排序
agentId: '', //顾问id
- record: '0',
- markAdvisor: null,
- visitRecord: [],
- validInvalid: null
+ markAdvisor: '', //标记顾问
+ visitRecord: [], // 到访次数
+ wajueVal: [], // 需求挖掘
+ xiaojiangVal: [], //销讲执行率
+ jiedaiVal: [], // 接待时长
+ validInvalid: '', // 录音标识
+ marketingBusiness: '', // 选中销讲业务id ,
},
+
freeList: [], //顾问
recordList: [],
buildingID: '',
@@ -263,12 +419,11 @@
timeshow: false,
timetushow: false,
soltishow: false,
- orderBy: '',
methodsisshow: false,
userInfo: {},
- startFilterTime: '接待时间', // s筛选状态展示
- receptionDuration: '接待时长', // 筛选状态展示
- sortText: '排序', //
+ counselorName: '接待顾问',//接待顾问
+ arriveFilter: '接待时间', // 接待时间
+ sortText: '排序',
visitList: [{
label: '首次到访',
value: 1,
@@ -320,6 +475,7 @@
this.isRefresh = false;
this.getMyCustom()
this.getFreeList();
+ // this.getMarketingBusiness()
this.isnorefresh = '';
}
},
@@ -346,39 +502,39 @@
}
},
methods: {
- tapsoltishow() {
- this.soltishow = true;
+ // 获取销讲业务
+ getMarketingBusiness() {
+ this.$u.get('/customer/marketingBusiness', {
+ houseId: this.buildingID,
+ }).then(res => {
+ this.templateList = res.map(item => {
+ return {
+ ...item,
+ isShow: false,
+ }
+ })
+ })
},
+
taptimetuisshow() {
this.timetushow = true;
},
- taptimeisshow() {
- this.timeshow = true;
- },
+
//选择标签
selectCallback2(e) {
- this.orderBy = e[0].value;
this.sortText = e[0].label
+ this.screen.orderBy = e[0].value;
this.nextPage = 1;
this.recordList = [];
this.isRefresh = false;
this.getMyCustom();
},
- //选择录音时长
- timetap(index, text) {
- if (text) this.receptionDuration = text
- this.timetushow = false;
- this.activeTotal2 = index;
- this.nextPage = 1;
- this.recordList = [];
- this.isRefresh = false;
- this.getMyCustom();
- },
+
//时间选择
tabtimetap(index, text) {
this.timeshow = false;
if(text) {
- this.startFilterTime = text
+ this.arriveFilter = text
}
if (index == 4) {
this.totalTimeShow = true;
@@ -466,7 +622,6 @@
getMyCustom() {
let dateType = 0;
let recDurationInterval = 0;
- let orderBy = 0;
if (this.activeTotal == 5) {
dateType = null;
} else if (this.activeTotal == 4) {
@@ -481,11 +636,18 @@
recDurationInterval = this.activeTotal2
}
- if (this.orderBy == 0) {
- orderBy = null;
- } else {
- orderBy = this.orderBy;
- }
+ // 接待时长
+ this.jiedaiList.forEach(i => {
+ if (i.isShow) this.screen.jiedaiVal.push(i.value)
+ })
+ // 需求挖掘
+ this.wajueList.forEach(i => {
+ if (i.isShow) this.screen.wajueVal.push(i.value)
+ })
+ // 销讲执行率
+ this.xiaojiangList.forEach(i => {
+ if (i.isShow) this.screen.xiaojiangVal.push(i.value)
+ })
var parames = {
pageNum: this.nextPage,
pageSize: 10,
@@ -498,20 +660,29 @@
markAdvisor: this.screen.markAdvisor,
dateType: dateType,
recDurationInterval: recDurationInterval,
- orderBy: orderBy,
+ orderBy: this.screen.orderBy == '' ? '' : this.screen.orderBy, //排序,
validInvalid:this.screen.validInvalid==2?null:this.screen.validInvalid,
+ 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(',') : '', //销讲
recording:this.screen.validInvalid==2?0:null
}
};
if (this.screen.agentId) {
parames.query.agentId = this.screen.agentId
}
+ let ars = []
+ this.templateList.forEach(item => {
+ if (item.isShow) {
+ ars.push(item.id)
+ }
+ })
+ parames.query.marketingBusiness = ars.join(',')
this.$u.post("/customer/findbypage", parames).then(data => {
this.LOADING = false
var list = data.results || [];
- // this.recordList = [...this.recordList, ...list];
if(this.isRefresh){
this.recordList = list;
}else{
@@ -520,7 +691,7 @@
this.totalRecord = data.totalPage;
this.totalRecords = data.totalRecord;
if(this.staTime && this.endtime) {
- this.startFilterTime = `${this.staTime}-${this.endtime}`
+ this.arriveFilter = `${this.staTime}-${this.endtime}`
}
}).catch(e => {
this.LOADING = false
@@ -534,66 +705,76 @@
item.label = item.name;
item.value = item.accountId
})
+ this.freeList.unshift({
+ label: '全部',
+ value: ''
+ })
})
},
- // 筛选
- screenshow() {
- this.screenShow = true
- },
+
actionSelectCallback(e) {
- this.screen.agentId = e[0].value;
- this.screen.counselorName = e[0].label
+ if(e[0].label=='全部'){
+ this.counselorName = '接待顾问'
+ this.screen.agentId = ''
+ }else{
+ this.screen.agentId = e[0].value;
+ this.counselorName = e[0].label
+ }
this.recordList = [];
this.nextPage = 1;
this.isRefresh = false;
this.getMyCustom();
},
reset() {
- this.screen = {
- counselorName: '',
- record: '0',
- markAdvisor: null,
- visitRecord: [],
- validInvalid: null,
- recording:null,
- visitRecords: "",
- }
- this.visitList.map(i=>{
- i.isShow = false
- })
- // this.screenShow = false;
+ this.screen.agentId = ''
+ this.screen.jiedaiVal = ''
+ this.screen.validInvalid = ''
+ this.screen.markAdvisor = ''
+ this.screen.orderBy = '';
+ this.sortText = '排序';
+ this.arriveFilter = '接待时间';
+ this.staTime = '';
+ this.endTime = '';
this.nextPage = 1;
+ this.activeTotal = 5;
this.recordList = [];
+ this.counselorName = '接待顾问';
+ this.visitList.forEach(i => {
+ i.isShow = false
+ })
+ this.jiedaiList.forEach(i => {
+ i.isShow = false
+ })
+ this.wajueList.forEach(i => {
+ i.isShow = false
+ })
+ this.xiaojiangList.forEach(i => {
+ i.isShow = false
+ })
this.isRefresh = false;
this.getMyCustom();
},
- choice(index,e) {
- if (this.visitList[index].isShow == true) {
- this.visitList[index].isShow = false;
- for (var i = 0; i < this.screen.visitRecord.length; i++) {
- if (this.screen.visitRecord[i] === e) {
- this.screen.visitRecord.splice(i, 1);
- }
- }
- } else {
- this.visitList[index].isShow = true;
- this.screen.visitRecord.push(e)
- }
+ choice(item) {
+ item.isShow = !item.isShow;
},
- recordclick(i) {
- if (this.screen.visitRecord == i) {
- this.screen.visitRecord = null
+ // 标记顾问
+ screenvisitRecord(i) {
+ if (this.screen.markAdvisor === i) {
+ this.screen.markAdvisor = ''
} else {
- this.screen.visitRecord = i
+ this.screen.markAdvisor = i
}
},
- screenvisitRecord(i) {
- if (this.screen.markAdvisor == i) {
- this.screen.markAdvisor = null
+ // 销讲执行率
+ screenvisifractions(i) {
+ console.log(this.screen.fractions, i)
+ if (this.screen.fractions == i) {
+ this.screen.fractions = null
} else {
- this.screen.markAdvisor = i
+ this.screen.fractions = i
}
},
+ // 录音标识
screenvisivalidInvalid(i) {
console.log(this.screen.validInvalid, i)
if (this.screen.validInvalid == i) {
@@ -879,6 +1060,14 @@
}
}
}
+ .content-newadd{
+ padding: 0 30rpx 34rpx;
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ font-size: 30rpx;
+ color: #333;
+ }
.content-last {
padding: 0 30rpx 34rpx;
@@ -908,20 +1097,17 @@
// 这是弹出层
.screen {
- // box-sizing: border-box;
- // padding: 0 30rpx;
- position: absolute;
+ width: 750rpx;
.screen-counselor {
display: flex;
- align-items: center;
height: 106rpx;
- // padding: 40rpx 30rpx 36rpx 30rpx;
padding: 0 30rpx;
box-sizing: border-box;
border-bottom: 1px solid #EEEEEE;
.screen-text {
+ margin: 40rpx 0 36rpx 0;
font-size: 30rpx;
font-weight: 400;
color: #333333;
@@ -930,66 +1116,72 @@
.screen-sel {
display: flex;
- justify-content: flex-end;
- align-items: center;
+ justify-content: space-between;
width: 500rpx;
margin-left: 60rpx;
.screen-sel-img {
- flex-shrink: 0;
+ margin: 40rpx 0 36rpx 0;
width: 14rpx;
height: 30rpx;
}
.screen-inp {
- padding: 0 20rpx;
- text-align: right;
+ margin-top: 20rpx;
}
}
}
.screen-record {
- height: 192rpx;
- // width: 100%;
overflow: hidden;
padding: 0 30rpx;
box-sizing: border-box;
- border-bottom: 1px solid #EEEEEE;
+ border-bottom: 1px solid #e0e0e0;
.screen-record-text {
- margin-top: 36rpx;
+ padding: 30rpx 0;
font-size: 30rpx;
- font-weight: 400;
+ font-weight: 600;
color: #333333;
line-height: 30rpx;
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+
+ .arrow {
+ width: 30rpx;
+ height: 14rpx;
+ }
}
.screen-record-tab {
margin-top: 30rpx;
+ padding-bottom: 10rpx;
display: flex;
+ flex-wrap: wrap;
- // justify-content: space-around;
- .screen-record-chose {
- width: 156rpx;
+ .screen-record-item {
+ min-width: 150rpx;
+ padding: 0 14rpx;
height: 60rpx;
- background: #2671E2;
- border-radius: 4rpx;
- border: 1px solid #2671E2;
+ border-radius: 8rpx;
text-align: center;
line-height: 60rpx;
- margin-right: 22rpx;
- color: #FFFFFF;
+ margin: 0 22rpx 22rpx 0;
+
+ &:nth-child(4n) {
+ margin-right: 0;
+ }
+ }
+
+ .screen-record-chose {
+ background: #F1F6FD;
+ color: #2671E2;
}
.screen-record-nochose {
- width: 156rpx;
- height: 60rpx;
- background: #FFFFFF;
- border-radius: 4rpx;
- border: 1px solid #C9C9C9;
- text-align: center;
- line-height: 60rpx;
- margin-right: 22rpx;
+ background: #F7F8FA;
+ color: #333;
}
}
@@ -997,28 +1189,37 @@
.screen-foot {
width: 100%;
- height: 100rpx;
+ height: 78rpx;
display: flex;
+ margin: 30rpx 30rpx 0;
.screen-foot-reset {
- width: 50%;
- text-align: center;
- height: 100rpx;
- line-height: 100rpx;
+ 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: #666666;
+ color: #2671E2;
+ text-align: center;
}
.screen-foot-sure {
- width: 50%;
- text-align: center;
- line-height: 100rpx;
- height: 100rpx;
+ 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;
- background: #2671E2;
+ text-align: center;
}
}
}
diff --git a/pages/index/consumer/index.vue b/pages/index/consumer/index.vue
index 06e047c..ed0e032 100644
--- a/pages/index/consumer/index.vue
+++ b/pages/index/consumer/index.vue
@@ -1,6 +1,6 @@
-
+
@@ -8,10 +8,10 @@
输入客户姓名/手机号
-
+
-
@@ -79,6 +79,14 @@
+
+
+ 挖掘执行:10%
+
+
+ 挖掘成功:10%
+
+
添加时间:{{item.createTime | formatTime}}
@@ -127,7 +135,6 @@
-
客户等级
@@ -168,22 +175,6 @@
{{item.label}}
-
-
{{openFlag=='start'?'接待中':''}}
@@ -65,24 +64,6 @@
-
-
-
@@ -125,6 +106,10 @@
平均执行率
+
+ {{realtimeobj.avgDuration|| 0}}
+ 平均挖掘率
+
{{realtimeobj.receptionCount || 0}}
接待量
@@ -133,12 +118,12 @@
{{realtimeobj.receivingCustomer || 0}}
正在接待
-
+
+
+
{{realtimeobj.activeCustomer|| 0}}
有效接待
-
-
{{realtimeobj.avgDuration|| 0}}min
@@ -148,16 +133,13 @@
{{realtimeobj.tagCustomer || 0}}
未标顾问
-
-
+
+
{{realtimeobj.prohibitedCustomer || 0}}
- 违禁预警
-
-
-
-
+ 违禁预警
+
@@ -172,26 +154,29 @@
{{choiceIndex}}累计
-
{{Thisweekobj.fraction || 0}}%
-
平均执行率
+
+ {{Thisweekobj.receptionCount || 0}}
+ 平均挖掘率
+
{{Thisweekobj.receptionCount || 0}}
接待量
+
+
+
{{Thisweekobj.activeCustomer|| 0}}
有效接待
-
-
{{Thisweekobj.avgDuration || 0}}min
@@ -205,10 +190,6 @@
-
-
-
-
diff --git a/pages/learning/Keywordsearch.vue b/pages/learning/Keywordsearch.vue
index a6c2d37..3a068e5 100644
--- a/pages/learning/Keywordsearch.vue
+++ b/pages/learning/Keywordsearch.vue
@@ -1,37 +1,84 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{item.Content.time}}
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ item.Content.time }}
+
+
+
+
+
+
+
+
+ {{ dealword(subitem)[1] }}
+
+
+
+
+
diff --git a/pages/mine/details2.vue b/pages/mine/details2.vue
index a96c2e4..2dabd8c 100644
--- a/pages/mine/details2.vue
+++ b/pages/mine/details2.vue
@@ -299,6 +299,8 @@
禁忌执行
+ 需求挖掘率
暂无数据
+
+
+
+ 挖掘执行:{{KeyWordsfraction||0}}%
+ 挖掘成功:{{percent||0}}%
+
+
+ 指标
+
+ 执行率
+
+ 匹配标签
+
+
+
+
+
+ {{item.name}}
+
+ 执行{{item.fraction || 0}}%
+ 已匹配({{
+ item.keywordsList.length
+ }})
+ 未匹配
+
+
+
+
+
+
+
+
+
+
+ 客户标签:{{ getKeywordsList(item.keywordsList) }}
+ 话术内容:
+ 暂无话术
+
+
+ {{inc+1}}.{{che.showFormatExpression}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{subitem.name}}
+
+ 已执行
+ 未执行
+
+
+ 已匹配
+ 未匹配
+
+
+
+
+
+
+
+
+ 客户标签:{{ getKeywordsList(subitem.keywordsList) }}
+ 话术内容:
+ 暂无话术
+
+
+ {{inc+1}}.{{che.showFormatExpression}}
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -491,6 +594,8 @@
},
data() {
return {
+ KeyWordsfractionList: [],
+ KeyWordsfraction: 0,
customStyle: {
'width': '320rpx',
'font-size': '34rpx',
@@ -621,6 +726,8 @@
this.customerId = options.customerId;
this.itemobj = uni.getStorageSync('searchobj');
this.stateisshow = options.stateisshow;
+ this.KeyWordsfraction = options.wordFraction == 'undefined' ? 0 : options.wordFraction;
+
this.$zaudio.autoPlay = true
if (options.refresh) this.refresh = options.refresh
@@ -699,6 +806,59 @@
},
methods: {
+ hangeshow2(item, type) {
+ item.show = !item.show;
+ },
+ //挖掘率话术客户标签展示
+ 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)
+ this.percent = (countArr.length / this.KeyWordsfractionList.length) * 100
+ this.percent = this.percent.toFixed(0)
+ },
+ // 客户详情需求挖掘话术
+ getfindKeyWordsBycusId() {
+ this.$u.get("/cusLvStatistics/findKeyWordsBycusId?cusId=" + this.customerId).then(res => {
+ // console.log(res)
+ if (res.length) {
+ res.forEach((item, index) => {
+ item.show = false
+ if (index == 0) {
+ item.show = true
+ }
+ item.children.forEach((obj, i) => {
+ obj.show = false
+ if (i == 0 && index == 0) {
+ obj.show = true;
+ }
+ })
+ })
+ this.KeyWordsfractionList = res
+ this.getPercent()
+ } else {
+ this.KeyWordsfractionList = []
+ }
+ })
+ },
+ clickWajue(item) {
+ if (item.isAskQuestions == 0) {
+ this.Pinspeak = false
+ uni.navigateTo({
+ url: '/pages/learning/Keywordsearch?customerId=' + this.customerId + "&keyword=" + item
+ .showFormatExpression +
+ "&skpl=" + "2" + '&UpDateEvent=DETAILS2INIT'
+ })
+ }
+ },
// 对话加命中标签
dealTypes(type) {
if (type) {
@@ -840,8 +1000,10 @@
this.zhixingcenterindex = i;
if (i == 0) {
this.getRatelist()
- } else {
+ } else if(i ==1) {
this.huoqujinji()
+ }else{
+ this.getfindKeyWordsBycusId()
}
},
//获取禁忌
@@ -2010,13 +2172,13 @@
line-height: 60rpx;
border-bottom: 1px solid #E0E0E0;
display: flex;
+ justify-content: space-around;
}
.pingfenbox view {
- flex: 1;
text-align: center;
font-size: 28rpx;
- text-indent: 20rpx;
+ padding: 0 18rpx;
}
.activecllasscet {
@@ -2419,6 +2581,13 @@
.cenisbox {
flex: 1;
overflow: auto;
+ .top-box {
+ height: 80rpx;
+ line-height: 80rpx;
+ display: flex;
+ color: #2671E2;
+ border-bottom: 1rpx solid #ccc;
+ }
.jianbox {
width: 100%;
From b15fdc7f831964729db0aac893a517d49f3bffd4 Mon Sep 17 00:00:00 2001
From: corala <18339694416@163.com>
Date: Fri, 30 Dec 2022 18:40:41 +0800
Subject: [PATCH 03/14] =?UTF-8?q?=E6=8C=96=E6=8E=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
config.js | 2 +
pages/center/records/index.vue | 2 +-
pages/index/consumer/index.vue | 879 +++++++++++++++++++++------------
3 files changed, 578 insertions(+), 305 deletions(-)
diff --git a/config.js b/config.js
index c6d5858..6f6b84b 100644
--- a/config.js
+++ b/config.js
@@ -42,6 +42,8 @@ var config = {
cmmentList:`${host}/comment/list`,
// 新增评论
saveCmment:`${host}/comment/saveCmment`,
+ // 获取客户来源列表
+ sourceList: `${host}/customer/sourceList`,
// 新增文件评论
saveCmmentUpload:`${host}/comment/upload`,
// 点赞
diff --git a/pages/center/records/index.vue b/pages/center/records/index.vue
index 0e4411a..9360010 100644
--- a/pages/center/records/index.vue
+++ b/pages/center/records/index.vue
@@ -711,7 +711,7 @@
})
})
},
-
+ //select接待顾问
actionSelectCallback(e) {
if(e[0].label=='全部'){
this.counselorName = '接待顾问'
diff --git a/pages/index/consumer/index.vue b/pages/index/consumer/index.vue
index ed0e032..0a09fd7 100644
--- a/pages/index/consumer/index.vue
+++ b/pages/index/consumer/index.vue
@@ -14,20 +14,20 @@
-
+
{{ sortFilter }}
-
+
{{ arriveFilter }}
-
- {{ receptionDuration }}
+
+ {{ agentIdtext }}
-
- 更多筛选
+
+ 画像标签
@@ -113,90 +113,177 @@
-
+
+
-
-
-
- 所属顾问
-
-
-
-
-
-
-
-
- 客户标签
-
-
-
-
+
+
+
+
+ 销讲业务
+
+
+
+
+
+
+ {{item.templateName}}
+
+
+
-
-
-
- 客户等级
+
+
+
+ 接待时长
+
+
+
+
+
+
+ {{ item.label }}
+
+
+
-
-
-
- {{item.label}}
-
-
+
+
+
+ 意向等级
+
+
+
+
+
+
+ {{ item.label }}
+
+
+
-
-
-
+
-
+
客户来源
+
+
-
-
-
- {{ item.sourceName }}
+
+
+
+ {{ item.label }}
-
-
-
- 到访次数
+
+
+
+ 客户阶段
+
+
+
+
+
+
+ {{ item.label }}
+
+
+
-
-
-
- {{item.label}}
-
-
+
+
+
+ 需求挖掘率
+
+
+
+
+
+
+ {{ item.label }}
+
+
+
-
-
-
-
-
+
-
+
+ @click="tabtimetap(5, '接待时间')">
全部
@@ -213,27 +300,7 @@
自定义
-
- 全部
-
-
- 0~15min
-
- 15~30min
-
- 30~60min
-
- 60~90min
-
- 90min以上
-
-
+
@@ -244,8 +311,36 @@
-
-
+
+
+
+
+
+
+ {{item.name}}
+
+
+
+
+
+
+ {{ subitem.name }}
+
+
+
+
+
+
+
+
@@ -258,9 +353,23 @@
export default {
data() {
return {
- // tabbar配置项
- current: 1,
- //--- end --- tabbar配置项
+ keywordsIds: [], // 画像标签
+ sourceList: [],//客户来源
+ templateList: [], // 销讲业务
+ showTemplate: true, // 展示销讲业务
+ agentIdtext: '接待顾问',
+ phaseList: [],// 客户阶段
+ huaxiangShow: false,
+ wajueArrow: true,
+ jieduanArrow: true,
+ sourceArrow: true,
+ levelArrow: true,
+ zixunArrow: true,
+ jiedaiArrow: true,
+ luyinArrow: true,
+ visitArrow: true,
+ xiaojiangArrow: true,
+ huaxiangList: [],
orderBylist: [{
label: '创建时间倒序',
value: '1'
@@ -294,18 +403,92 @@
value: '8'
},
],
+ jiedaiList: [{
+ label: "0~15min",
+ value: 1,
+ isShow: false,
+ },
+ {
+ label: "16~30min",
+ value: 2,
+ isShow: false,
+ },
+ {
+ label: "31~60min",
+ value: 3,
+ isShow: false,
+ },
+ {
+ label: "61~90min",
+ value: 4,
+ isShow: false,
+ },
+ {
+ label: "91min及以上",
+ value: 5,
+ isShow: false,
+ },
+ ],
+ wajueList: [{
+ label: "31%及以下",
+ value: 1,
+ isShow: false,
+ },
+ {
+ label: "31%~50%",
+ value: 2,
+ isShow: false,
+ },
+ {
+ label: "51%~70%",
+ value: 3,
+ isShow: false,
+ },
+ {
+ label: "71%及以上",
+ value: 4,
+ isShow: false,
+ },
+ ],
+ xiaojiangList: [{
+ label: "30%及以下",
+ value: 1,
+ isShow: false,
+ },
+ {
+ label: "31%~50%",
+ value: 2,
+ isShow: false,
+ },
+ {
+ label: "51%~70%",
+ value: 3,
+ isShow: false,
+ },
+ {
+ label: "71%及以上",
+ value: 4,
+ isShow: false,
+ },
+ ],
value: '',
screenShow: false,
selectshow: false,
selectTipshow: false,
buildingID: '',
screen: {
- agentId: '',
- agentIdtext: '',
- visitRecord: [],
- record: [],
- cunsumerTips: '',
- cunsumerTipsid: '',
+ staTime: "",
+ endTime: "",
+ orderBy: "", // 排序
+ agentId: "", //顾问
+ sourceIds: [], // 客户来源
+ level: [], // 客户等级
+ visitRecord: [], // 到访次数
+ wajueVal: [], // 需求挖掘
+ xiaojiangVal: [], //销讲执行率
+ jiedaiVal: [], // 接待时长
+ validInvalid: null, // 录音标识
+ clientStage: [], // 客户阶段 clientStage
},
stageList: ['未知', '到访', '意向', '定金', '成交'],
recordList: [],
@@ -320,11 +503,7 @@
activeTotal2: 0,
totalTimeShow: false,
timeshow: false,
- timetushow: false,
soltishow: false,
- staTime: '',
- endtime: '',
- orderBy: '', // 排序的id
permissions: {
commonly1: false,
commonly2: false
@@ -332,17 +511,13 @@
list: [], // 客户来源列表
sourceId: '', // 选中的客户来源id
sourceIndex: -1, // 选中项的下标
-
// 不同等级之间的颜色
colorName: [
'', "A", "B", "C", "D"
],
-
-
// 筛选文字展示
sortFilter: '排序',
- arriveFilter: '到访时间',
- receptionDuration: '接待时长',
+ arriveFilter: '接待时间',
visitList: [{
label: '首次到访',
value: 1,
@@ -401,7 +576,7 @@
this.getFreeList()
this.getfindKeywordsList()
this.getFromSource();
- // this.getMyCustom();
+ this.getMyCustom();
setTimeout(() => {
uni.stopPullDownRefresh()
@@ -417,7 +592,9 @@
this.getMyCustom()
this.getFreeList()
this.getfindKeywordsList()
+ this.getCustomPhase();
this.getFromSource();
+ this.getMarketingBusiness();
this.isRefresh = false;
this.isnorefresh = 'refresh';
uni.setStorageSync('updatebuildingID', '');
@@ -439,7 +616,59 @@
}
},
methods: {
-
+ // 获取客户阶段数据
+ getCustomPhase() {
+ this.phaseList = [];
+ this.$u
+ .post("/customer/lifeTrackDefineList", {
+ houseId: this.buildingID,
+ })
+ .then((res) => {
+ if (res.length) {
+ this.phaseList = res.map(item => {
+ return {
+ label: item.stageName,
+ value: item.id,
+ isShow: false
+ }
+ })
+ } else {
+ this.phaseList = []
+ }
+ });
+ },
+ // 获取客户来源
+ getFromSource() {
+ this.$u.get(config.service.sourceList, {
+ houseId: this.buildingID
+ })
+ .then((res) => {
+ if (res.length) {
+ this.sourceList = res.map((item) => {
+ return {
+ label: item.sourceName,
+ value: item.id,
+ isShow: false
+ }
+ })
+ } else {
+ this.sourceList = []
+ }
+ })
+ },
+ // 获取销讲业务
+ getMarketingBusiness() {
+ this.$u.get('/customer/marketingBusiness', {
+ houseId: this.buildingID,
+ }).then(res => {
+ this.templateList = res.map(item => {
+ return {
+ ...item,
+ isShow: false,
+ }
+ })
+ })
+ },
updateInit() {
this.$u.get(config.service.notReadNum, {
id: uni.getStorageSync('weapp_session_userInfo_data').accountId,
@@ -469,55 +698,23 @@
// 过滤
resetFilter() {
this.sortFilter = '排序';
- this.orderBy = null;
- this.arriveFilter = '到访时间';
- this.staTime = '';
- this.endtime = '';
+ this.agentIdtext = '接待顾问';
+ this.screen.orderBy = null;
+ this.arriveFilter = '接待时间';
+ this.screen.staTime = '';
+ this.screen.endTime = '';
this.nextPage = 1;
this.activeTotal = 5;
this.recordList = [];
- this.receptionDuration = '接待时长';
this.activeTotal2 = 0;
},
-
-
- // 获取客户来源
- getFromSource() {
- this.$u.get('customer/findCustomerSourceList', {
- houseId: this.buildingID
- }).then(res => {
- console.log('我进来了')
- this.list = res
- })
- },
-
-
- tapsoltishow() {
- this.soltishow = true;
- },
- taptimetuisshow() {
- this.timetushow = true;
- },
- taptimeisshow() {
- this.timeshow = true;
- },
- //选择标签
+ //选择排序
selectCallback2(e) {
this.sortFilter = e.label;
- this.orderBy = e.value;
- this.nextPage = 1;
- this.recordList = [];
- this.soltishow = false
- this.isRefresh = false;
- this.getMyCustom();
- },
- //选择录音时长
- timetap(index, text) {
- if (text) this.receptionDuration = text
- this.timetushow = false;
- this.activeTotal2 = index;
+ this.screen.orderBy = e.value;
this.nextPage = 1;
this.recordList = [];
+ this.soltishow = false;
this.isRefresh = false;
this.getMyCustom();
},
@@ -529,8 +726,8 @@
this.totalTimeShow = true;
} else {
this.activeTotal = index;
- this.staTime = '';
- this.endtime = '';
+ this.screen.staTime = '';
+ this.screen.endTime = '';
this.nextPage = 1;
this.isRefresh = false;
this.recordList = [];
@@ -539,55 +736,18 @@
},
//自定义时间
totalTimeChange(e) {
- this.staTime = e.startDate;
- this.endtime = e.endDate;
+ this.screen.staTime = e.startDate;
+ this.screen.endTime = e.endDate;
this.activeTotal = 4;
this.nextPage = 1;
this.recordList = [];
this.isRefresh = false;
- this.arriveFilter = this.staTime + '-' + this.endtime
+ this.arriveFilter = this.screen.staTime + '-' + this.screen.endTime
this.getMyCustom();
},
- recordclick(i) {
- if (this.screen.record == i) {
- this.screen.record = null
- } else {
- this.screen.record = i
- }
- },
- choice(index, e) {
- if (this.visitList[index].isShow == true) {
- this.visitList[index].isShow = false;
- for (var i = 0; i < this.screen.visitRecord.length; i++) {
- if (this.screen.visitRecord[i] === e) {
- this.screen.visitRecord.splice(i, 1);
- }
- }
- } else {
- this.visitList[index].isShow = true;
- console.log(this.screen)
- this.screen.visitRecord.push(e)
- }
- },
- choiceLevel(index, e) {
- if (this.levelList[index].isShow == true) {
- this.levelList[index].isShow = false;
- for (var i = 0; i < this.screen.record.length; i++) {
- if (this.screen.record[i] === e) {
- this.screen.record.splice(i, 1);
- }
- }
- } else {
- this.levelList[index].isShow = true;
- this.screen.record.push(e)
- }
- },
- screenvisitRecord(i) {
- if (this.screen.visitRecord == i) {
- this.screen.visitRecord = ''
- } else {
- this.screen.visitRecord = i
- }
+
+ choice(item) {
+ item.isShow = !item.isShow;
},
// 客户详情
gotoDetail(id) {
@@ -598,6 +758,111 @@
}
},
getMyCustom() {
+ this.screen.visitRecord = []
+ this.screen.jiedaiVal = []
+ this.screen.wajueVal = []
+ this.screen.xiaojiangVal = []
+ this.screen.level = []
+ this.screen.clientStage = []
+ this.screen.sourceIds = []
+ let dateType = 0;
+ if (this.activeTotal == 5 || this.activeTotal == 4) {
+ dateType = null;
+ } else {
+ dateType = this.activeTotal;
+ }
+ // 到访次数
+ this.visitList.forEach(i => {
+ if (i.isShow) this.screen.visitRecord.push(i.value)
+ })
+ // 接待时长
+ this.jiedaiList.forEach(i => {
+ if (i.isShow) this.screen.jiedaiVal.push(i.value)
+ })
+ // 需求挖掘
+ this.wajueList.forEach(i => {
+ if (i.isShow) this.screen.wajueVal.push(i.value)
+ })
+ // 销讲执行率
+ this.xiaojiangList.forEach(i => {
+ if (i.isShow) this.screen.xiaojiangVal.push(i.value)
+ })
+ // 客户等级
+ this.levelList.forEach(i => {
+ if (i.isShow) this.screen.level.push(i.value)
+ })
+ //客户阶段
+ this.phaseList.forEach(i => {
+ if (i.isShow) this.screen.clientStage.push(i.value)
+ })
+ // 客户来源
+ this.sourceList.forEach(i => {
+ if (i.isShow) this.screen.sourceIds.push(i.value)
+ })
+ var parames = {
+ pageNum: this.nextPage,
+ pageSize: 10,
+ query: {
+ projectId: this.buildingID,
+ 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: this.keywordsIds.length ? this.keywordsIds.join(',') : '', // 画像标签
+ dateType: dateType, // 接待时间
+ staTime: this.screen.staTime,
+ endTime: this.screen.endTime,
+ agentId: this.screen.agentId, // 顾问
+ orderBy: this.screen.orderBy == '' ? '' : this.screen.orderBy, // 排序
+ },
+ };
+ let ars = []
+ this.templateList.forEach(item => {
+ if (item.isShow) {
+ ars.push(item.id)
+ }
+ })
+ parames.query.marketingBusiness = ars.join(',')
+
+ this.$u.post("/customer/customerManagement", parames)
+ .then((data) => {
+ this.LOADING = false;
+ var list = data.results || [];
+ list.forEach((item) => {
+ if (this.userInfo.dataCode == 6) {
+ item.isshow = true;
+ } else {
+ item.isshow = false;
+ }
+ });
+
+ list.forEach((item) => {
+ if (item.demand.cusSemanticWordsList != null) {
+ item.demand.cusSemanticWordsList.forEach((che) => {
+ if (che.isInterval == 0) {
+ che.name = che.name + che.unit + "-" + che.endName + che.unit;
+ }
+ });
+ } else {
+ item.demand.cusSemanticWordsList = []
+ }
+ });
+ if (this.isRefresh) {
+ this.recordList = list;
+ } else {
+ this.recordList = [...this.recordList, ...list];
+ }
+ this.totalRecord = data.totalPage;
+ this.totalRecords = data.totalRecord;
+ })
+ .catch((e) => {
+ this.LOADING = false;
+ });
+ },
+ getMyCustom1() {
let dateType = 0;
let recDurationInterval = 0;
let orderBy = 0;
@@ -629,14 +894,13 @@
keywordsId: this.screen.cunsumerTipsid,
agentId: this.screen.agentId,
dateType: dateType,
- staDate: this.staTime,
- endDate: this.endtime,
+ staDate: this.screen.staTime,
+ endDate: this.screen.endTime,
recDurationInterval: recDurationInterval,
orderBy: orderBy,
sourceId: this.sourceId
}
};
- console.log(this.screen.visitRecord)
if (this.screen.visitRecord.length > 0) {
parames.query.visitRecords = this.screen.visitRecord.join(',');
}
@@ -645,11 +909,7 @@
}
this.$u.post("/customer/customerManagement", parames).then(data => {
this.LOADING = false
- // if (this.staTime && this.endtime) {
- // this.receptionDuration = `${this.staTime}-${this.endtime}`
- // }
var list = data.results || [];
- console.log(list)
list.forEach(item => {
if (item.demand.cusSemanticWordsList != null) {
item.demand.cusSemanticWordsList.forEach(che => {
@@ -673,15 +933,19 @@
},
//获取顾问列表
getFreeList() {
- this.freeList = []
this.$u.post("/cusLvStatistics/selectAllAccountIdByHouseId", {
houseId: this.buildingID
}).then(res => {
- this.freeList = res;
- this.freeList.forEach(item => {
+ res.forEach(item => {
item.label = item.name;
item.value = item.accountId
})
+ res.unshift({
+ label: '全部',
+ value: ''
+ })
+ this.freeList = res
+ console.log(this.freeList)
})
},
//获取客户标签
@@ -701,50 +965,82 @@
this.findKeywordsList = res;
})
},
- // 筛选
- screenshow() {
- this.screenShow = true
- },
//选择顾问
actionSelectCallback(e) {
- this.screen.agentId = e[0].value;
- this.screen.agentIdtext = e[0].label;
- },
- //选择标签
- selectCallback(e) {
- this.screen.cunsumerTips = e[0].label;
- this.screen.cunsumerTipsid = e[0].value;
+ console.log(e)
+ if(e[0].label=='全部'){
+ this.agentIdtext = '接待顾问'
+ this.screen.agentId= ''
+ }else{
+ this.screen.agentId = e[0].value;
+ this.agentIdtext = e[0].label;
+ }
},
- //重置
+
+ //重置
reset() {
this.screen = {
- agentId: '',
- agentIdtext: '',
+ agentId: "",
visitRecord: [],
record: [],
- cunsumerTips: '',
- cunsumerTipsid: '',
- level: ''
- }
- this.visitList.map(i => {
- i.isShow = false
- })
- this.levelList.map(i => {
- i.isShow = false
- })
+ clientStage: "",
+ clientStageName: "",
+ };
+ this.sourceList.map((i) => {
+ i.isShow = false;
+ });
+ this.wajueList.map((i) => {
+ i.isShow = false;
+ });
+ this.phaseList.map((i) => {
+ i.isShow = false;
+ });
+ this.jiedaiList.map((i) => {
+ i.isShow = false;
+ });
+ this.xiaojiangList.map((i) => {
+ i.isShow = false;
+ });
+ this.visitList.map((i) => {
+ i.isShow = false;
+ });
+ this.levelList.map((i) => {
+ i.isShow = false;
+ });
this.nextPage = 1;
this.recordList = [];
- this.sourceId = '';
- this.sourceIndex = -1;
this.isRefresh = false;
this.getMyCustom();
},
+ //重置画像标签选择
+ resetHuaXiang() {
+ if (this.huaxiangList.length) {
+ this.huaxiangList.forEach(item => {
+ item.isShow = true;
+ if (item.children.length) {
+ item.children.forEach(subitem => {
+ subitem.isShow = false;
+ })
+ }
+ })
+ }
+ },
//筛选确认
screensure() {
this.nextPage = 1;
this.recordList = [];
+ this.keywordsIds = []
this.screenShow = false;
+ this.huaxiangShow = false;
this.isRefresh = false;
+ // 画像标签
+ this.huaxiangList.forEach(item => {
+ if (item.children.length) {
+ item.children.forEach(im => {
+ if (im.isShow) this.keywordsIds.push(im.id)
+ })
+ }
+ })
this.getMyCustom();
},
goSearch() {
@@ -1125,118 +1421,93 @@
// 这是弹出层
.screen {
-
- // box-sizing: border-box;
- // padding: 0 30rpx;
- .screen-counselor {
- display: flex;
- height: 106rpx;
- // padding: 40rpx 30rpx 36rpx 30rpx;
+ .screen-record {
+ overflow: hidden;
padding: 0 30rpx;
box-sizing: border-box;
- border-bottom: 1px solid #E0E0E0;
+ border-bottom: 1px solid #e0e0e0;
- .screen-text {
- flex-shrink: 0;
- margin: 40rpx 0 36rpx 0;
+ .screen-record-text {
+ font-weight: 600;
+ padding: 30rpx 0;
font-size: 30rpx;
- font-weight: 400;
color: #333333;
line-height: 30rpx;
- }
-
- .screen-sel {
- flex-grow: 1;
display: flex;
- justify-content: flex-end;
align-items: center;
- margin-left: 60rpx;
-
- .screen-sel-img {
- flex-shrink: 0;
- margin: 40rpx 0 36rpx 0;
- width: 14rpx;
- height: 30rpx;
- }
+ justify-content: space-between;
- .screen-inp {
- padding: 0 20rpx;
- text-align: right;
+ .arrow {
+ width: 30rpx;
+ height: 14rpx;
}
}
- }
-
- .screen-record {
- height: 192rpx;
- // width: 100%;
- overflow: hidden;
- padding: 0 30rpx;
- box-sizing: border-box;
- border-bottom: 1px solid #E0E0E0;
-
- .screen-record-text {
- margin-top: 36rpx;
- font-size: 30rpx;
- font-weight: 400;
- color: #333333;
- line-height: 30rpx;
- }
.screen-record-tab {
margin-top: 30rpx;
+ padding-bottom: 10rpx;
display: flex;
+ flex-wrap: wrap;
- // justify-content: space-around;
- .screen-record-chose {
- width: 156rpx;
+ .screen-record-item {
+ min-width: 150rpx;
+ padding: 0 14rpx;
height: 60rpx;
- background: #2671E2;
- border-radius: 4rpx;
- border: 1px solid #2671E2;
+ border-radius: 8rpx;
text-align: center;
line-height: 60rpx;
- margin-right: 22rpx;
- color: #FFFFFF;
+ margin: 0 22rpx 22rpx 0;
+
+ &:nth-child(4n) {
+ margin-right: 0;
+ }
}
- .screen-record-nochose {
- width: 156rpx;
- height: 60rpx;
- background: #FFFFFF;
- border-radius: 4rpx;
- border: 1px solid #C9C9C9;
- text-align: center;
- line-height: 60rpx;
- margin-right: 22rpx;
+ .screen-record-chose {
+ background: #f1f6fd;
+ color: #2671e2;
}
+ .screen-record-nochose {
+ background: #f7f8fa;
+ color: #333;
+ }
}
}
.screen-foot {
width: 100%;
- height: 88rpx;
+ height: 78rpx;
display: flex;
+ margin: 30rpx 30rpx 0;
.screen-foot-reset {
- width: 50%;
- text-align: center;
- height: 88rpx;
- line-height: 88rpx;
+ 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: #666666;
+ color: #2671E2;
+ text-align: center;
}
.screen-foot-sure {
- width: 50%;
- text-align: center;
- line-height: 88rpx;
- height: 88rpx;
+ 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;
- background: #2671E2;
+ text-align: center;
}
}
}
From b2afa640e578fff355013bf4533e1ee6bcb0e918 Mon Sep 17 00:00:00 2001
From: douzhuo <17611323298@163.com>
Date: Fri, 6 Jan 2023 11:03:34 +0800
Subject: [PATCH 04/14] =?UTF-8?q?=E6=8F=90=E4=BA=A4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pages/mine/equipmentLog.vue | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pages/mine/equipmentLog.vue b/pages/mine/equipmentLog.vue
index 36e3d7e..0cca13a 100644
--- a/pages/mine/equipmentLog.vue
+++ b/pages/mine/equipmentLog.vue
@@ -30,7 +30,7 @@
录音开启用时
{{info.startActionTime || ''}}min
+ :style="{color: info.recording==1?'red':'#333'}">{{info.startActionTime || 0}}min
From 6345a780dca4e1aaeb369ffe31dcea765d56e3ff Mon Sep 17 00:00:00 2001
From: corala <18339694416@163.com>
Date: Fri, 6 Jan 2023 17:39:40 +0800
Subject: [PATCH 05/14] =?UTF-8?q?=E6=8C=96=E6=8E=98=E5=88=86=E6=9E=90?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../Piabodata/requireminingAnalysis.vue | 26 ++++++++++++------
static/images/ranking1.png | Bin 0 -> 6155 bytes
static/images/ranking2.png | Bin 0 -> 6396 bytes
static/images/ranking3.png | Bin 0 -> 7404 bytes
4 files changed, 17 insertions(+), 9 deletions(-)
create mode 100644 static/images/ranking1.png
create mode 100644 static/images/ranking2.png
create mode 100644 static/images/ranking3.png
diff --git a/pages/center/Piabodata/requireminingAnalysis.vue b/pages/center/Piabodata/requireminingAnalysis.vue
index 1c322a0..5cc95c1 100644
--- a/pages/center/Piabodata/requireminingAnalysis.vue
+++ b/pages/center/Piabodata/requireminingAnalysis.vue
@@ -33,7 +33,7 @@
-
+
统计说明
@@ -51,8 +51,14 @@
平均挖掘执行率趋势
-
+
@@ -121,7 +127,6 @@
diff --git a/pages/mine/ScoringPlaylist.vue b/pages/mine/ScoringPlaylist.vue
index 290cc6a..41e1dd6 100644
--- a/pages/mine/ScoringPlaylist.vue
+++ b/pages/mine/ScoringPlaylist.vue
@@ -1,16 +1,31 @@
-
-
-
-
-
+
+
+
+
+
+
+ {{ item.Content.time }}
+
+
+
+
+
+
+
+
+
+ {{dealword(subitem)[1]}}
+
-
- {{item.Content.time}}
-
@@ -21,23 +36,44 @@
export default {
data() {
return {
- customerId:'',
- listarr:[],
- id:'',
- type:'',
+ customerId: '',
+ listarr: [],
+ id: '',
+ type: '',
tipsFncName: '', // 提醒页面变更的值
from: '', // 标记需要刷新的来源
};
},
onLoad(options) {
this.customerId = options.customerId;
- this.id=options.id;
- this.type=options.type;
+ this.id = options.id;
+ this.type = options.type;
if (options.UpDateEvent) this.tipsFncName = options.UpDateEvent
if (options.from) this.from = options.from
this.searchinfo()
},
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 []
+ }
+ },
formatTime(num) {
//格式化时间格式
num = num.toFixed(0);
@@ -48,35 +84,35 @@
return min + ":" + second;
},
//搜索
- searchinfo(){
- let parames={
- marketingId:this.id,
- customerId:this.customerId,
- type:this.type
+ searchinfo() {
+ let parames = {
+ marketingId: this.id,
+ customerId: this.customerId,
+ type: this.type
}
this.$u.post("/corpus/pinWordMatching", parames).then(res => {
- res.forEach(item=>{
- item.Content=JSON.parse(item.transferContent)
+ res.forEach(item => {
+ item.Content = JSON.parse(item.transferContent)
})
- res.forEach(cet=>{
- cet.Content.time=this.formatTime(cet.Content.bg/1000)
+ res.forEach(cet => {
+ cet.Content.time = this.formatTime(cet.Content.bg / 1000)
})
- this.listarr=res;
+ this.listarr = res;
})
},
//跳转
- toaidoinfo(item,id,index){
- item.customerId=this.customerId;
- item.id=id;
- item.index=index;
+ toaidoinfo(item, id, index) {
+ item.customerId = this.customerId;
+ item.id = id;
+ item.index = index;
this.infostust(item)
},
//只有一条的时候
- infostust(item){
+ infostust(item) {
console.log("zobudao")
let d = JSON.parse(JSON.stringify([item]))
- d[0].onebest="";
- console.log(d)
+ d[0].onebest = "";
+ console.log(d)
const parames = {
pageNum: 1,
pageSize: 100,
@@ -87,7 +123,7 @@
this.$u.post("/corpus/findByPage", parames).then(res => {
uni.setStorageSync("entrance", 2); //写入缓存
uni.setStorageSync("searchobj", d[0]); //写入缓存
- if(res[0].merge==0){
+ if (res[0].merge == 0) {
let newobj = res[0];
if (this.tipsFncName) {
uni.$emit(this.tipsFncName, d[0])
@@ -100,11 +136,11 @@
url: `/pages/mine/details2?customerId=${newobj.customerId}&status=${newobj.status}&itemobj=${JSON.stringify(d[0])}&stateisshow=${'2'}&refresh=true`
})
}
-
+
uni.navigateTo({
url: `/pages/mine/details2?customerId=${newobj.customerId}&status=${newobj.status}&itemobj=${JSON.stringify(d[0])}&stateisshow=${'2'}`
})
- }else{
+ } else {
let newobj = res[0];
uni.navigateTo({
url: `/pages/mine/details?customerId=${newobj.customerId}&status=${newobj.status}&itemobj=${JSON.stringify(d[0])}&stateisshow=${'2'}`
@@ -112,10 +148,50 @@
}
})
},
-
+
},
}
diff --git a/pages/mine/calibration.vue b/pages/mine/calibration.vue
index 57d3162..809b694 100644
--- a/pages/mine/calibration.vue
+++ b/pages/mine/calibration.vue
@@ -79,6 +79,7 @@
let param = {
keywordIds:'',
id: this.customerId,
+ projectId: uni.getStorageSync("buildingID").id
}
let str = []
this.allList.map(item => {
diff --git a/pages/mine/details2.vue b/pages/mine/details2.vue
index c7580c3..144e045 100644
--- a/pages/mine/details2.vue
+++ b/pages/mine/details2.vue
@@ -295,7 +295,7 @@
- 销讲总执行率{{totalRate}}%
+ 销讲总执行率{{totalRate}}%
禁忌执行
@@ -367,7 +367,7 @@
执行率
- 匹配标签
+ 挖掘成功
@@ -377,10 +377,10 @@
执行{{item.fraction || 0}}%
已匹配({{
+ v-if="item.keywordsList&&item.keywordsList.length">已完成({{
item.keywordsList.length
}})
- 未匹配
+ 未完成
未执行
- 已匹配
- 未匹配
+ 已完成
+ 未完成