diff --git a/pages/center/consumer/consumerDetail.vue b/pages/center/consumer/consumerDetail.vue index 283ac23..e390349 100644 --- a/pages/center/consumer/consumerDetail.vue +++ b/pages/center/consumer/consumerDetail.vue @@ -17,10 +17,6 @@ - @@ -39,6 +35,14 @@ 查看全部 + + + 挖掘执行:10% + + + 挖掘成功:10% + + 添加时间:{{customerInfo.createTime}} @@ -48,11 +52,6 @@ {{customerInfo.mm || '0'}}min/{{customerInfo.fraction || '0'}}% - @@ -71,7 +70,10 @@ 跟进记录 - 执行率 + 销讲执行率 + + + 挖掘执行率 @@ -94,10 +96,6 @@ {{item.agentName || '--'}} 代接待 - @@ -135,13 +133,10 @@ 跟进内容:{{item.remarks || '暂无'}} - - + 执行总览 @@ -218,12 +213,169 @@ + + + + + + + + + 暂无数据 + + + + + + 挖掘执行:{{customerInfo.wordFraction||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 + }} + + + + + + + + + + + + - - - 写跟进 + + 写跟进 @@ -248,6 +400,7 @@ export default { data() { return { + KeyWordsfractionList: [], activeTotal: 0, customerId: '', tipshow: false, @@ -287,9 +440,68 @@ } }, methods: { + clickWajue(item) { + if (item.isAskQuestions == 0) { + uni.navigateTo({ + url: '/pages/learning/Keywordsearch?customerId=' + this.customerId + "&keyword=" + item + .showFormatExpression + + "&skpl=" + "2" + '&UpDateEvent=' + }) + } + }, + // 计算挖掘执行的完成率 + getPercent() { + let countArr = this.KeyWordsfractionList.filter(item => item.selected == 0) + // console.log(countArr) + this.percent = (countArr.length / this.KeyWordsfractionList.length) * 100 + this.percent = this.percent.toFixed(0) + + }, + //挖掘率话术客户标签展示 + getKeywordsList(list) { + let keywords = []; + if (list && list.length) { + keywords = list.map((item) => item.name); + } else { + return "--"; + } + return keywords.join(","); + }, + 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, index) => { + item.show = false; + if (index == 0) { + item.show = true; + } + if (item.children && item.children.length) { + item.children.forEach((obj, i) => { + obj.show = false; + if (i == 0 && index == 0) { + obj.show = true; + } + }); + } + }); + this.KeyWordsfractionList = res; + this.getPercent() + } else { + this.KeyWordsfractionList = []; + } + }); + }, // 获取到访记录 getVisitList() { - this.$u.get("/customer/findByPhoneAndProject?id=" + this.customerId, ).then(res => { + this.$u.get("/customer/findByPhoneAndProject?id=" + this.customerId).then(res => { this.Thevisitingrecords = res }) }, @@ -325,12 +537,13 @@ this.getVisitList() } else if (idx == 1) { this.getFollowList() - } else { + } else if(idx == 2){ this.getRatelist() + }else{ // 需求挖掘率 + this.getfindKeyWordsBycusId() } }, tapThevisiting(item) { - console.log("11111111111111") uni.showLoading({ title: '加载中', mask: true @@ -975,7 +1188,6 @@ .content-sec { border-top: 1px solid #E0E0E0; padding: 0 30rpx; - height: 270rpx; position: relative; .content-sec-lab { @@ -1328,4 +1540,12 @@ .D { background: #E6625B; } + + .top-box { + height: 80rpx; + line-height: 80rpx; + display: flex; + color: #2671E2; + border-bottom: 1rpx solid #ccc; + } 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 @@ - + 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}} + + + + + 重置 @@ -175,20 +277,6 @@ 自定义 - - 全部 - - - 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 @@ + + + 挖掘执行:10% + + + 挖掘成功:10% + + 添加时间:{{item.createTime | formatTime}} @@ -127,7 +135,6 @@ - 客户等级 @@ -168,22 +175,6 @@ {{item.label}} - @@ -815,6 +806,67 @@ background: #F8F8F8; display: flex; flex-direction: column; + .top-search { + display: flex; + align-items: center; + justify-content: space-between; + background: #fff; + padding-right: 30rpx; + + .filter-icon { + width: 40rpx; + height: 40rpx; + padding: 15rpx; + } + + .search-box { + width: 670rpx; + height: 102rpx; + background: #ffffff; + display: flex; + align-items: center; + justify-content: center; + + .search { + width: 94%; + height: 70rpx; + display: flex; + align-items: center; + background: #f8f8f8; + border-radius: 33rpx; + + .search-img { + width: 26rpx; + height: 30rpx; + margin-left: 20rpx; + + .search-img1 { + width: 100%; + height: 100%; + margin-top: 2rpx; + } + } + + .search-text { + font-size: 28rpx; + font-weight: 400; + color: #999999; + margin-left: 10rpx; + } + } + + .search-screen { + width: 40rpx; + height: 40rpx; + margin-left: 30rpx; + + .search-screen1 { + width: 100%; + height: 100%; + } + } + } + } .content { flex-grow: 1; @@ -876,63 +928,6 @@ justify-content: center; } } - - .search-box { - width: 100%; - height: 102rpx; - background: #FFFFFF; - display: flex; - align-items: center; - justify-content: center; - - .filter { - width: 40rpx; - height: 40rpx; - margin-left: 30rpx; - } - - .search { - width: 620rpx; - height: 70rpx; - display: flex; - align-items: center; - background: #F8F8F8; - border-radius: 33rpx; - - .search-img { - width: 26rpx; - height: 30rpx; - margin-left: 20rpx; - - .search-img1 { - width: 100%; - height: 100%; - margin-top: 2rpx; - } - } - - .search-text { - font-size: 28rpx; - font-weight: 400; - color: #999999; - margin-left: 10rpx; - } - } - - .search-screen { - width: 40rpx; - height: 40rpx; - margin-left: 30rpx; - - .search-screen1 { - width: 100%; - height: 100%; - } - } - } - - - .count { width: 100%; height: 82rpx; diff --git a/pages/index/index.vue b/pages/index/index.vue index 187cfee..f7dc6cd 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -13,7 +13,6 @@ 我的工牌:{{imeiCode||'未绑定'}} - {{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 @@ 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%;