From 4111fa527733aacc813a6b6f80b94658dcc2ae2d Mon Sep 17 00:00:00 2001 From: douzhuo <17611323298@163.com> Date: Tue, 28 Feb 2023 15:55:12 +0800 Subject: [PATCH] tijiao --- pages/center/consumer/consumerDetail.vue | 441 +++++++++++++++-------- pages/center/consumer/consumerSearch.vue | 2 +- pages/center/consumer/index.vue | 42 +-- pages/index/index.vue | 43 ++- pages/mine/equipmentLog.vue | 2 + pages/mine/reception/addreception.vue | 9 +- 6 files changed, 344 insertions(+), 195 deletions(-) diff --git a/pages/center/consumer/consumerDetail.vue b/pages/center/consumer/consumerDetail.vue index df68fd8..1f81aac 100644 --- a/pages/center/consumer/consumerDetail.vue +++ b/pages/center/consumer/consumerDetail.vue @@ -42,7 +42,9 @@ - 客户意向率:{{ `${customerInfo.levelFraction||'0'}%` }} + + 客户意向率:{{ `${customerInfo.levelFraction||'0'}%` }} 查看 + 上次到访:{{ customerInfo.createTime || "--" }} @@ -87,53 +89,53 @@ - - - - {{item.agentName}} - 代接待 - {{item.receptionStatusName || ''}} - - - - {{item.validInvalidName||''}} - - 违禁接待 - | - - 未标记 - 已标记 + + + + {{item.agentName}} + 代接待 + {{item.receptionStatusName || ''}} - - 无录音 + + + {{item.validInvalidName||''}} + + 违禁接待 + | + 未标记 + 已标记 - - {{item.createTime}} | {{item.mm || '0'}}min + + 无录音 - - 客户:{{item.name || '--'}} - 销讲业务:{{ item.marketingBusinessName || '--' }} + + + {{item.createTime}} | {{item.mm || '0'}}min + + + 客户:{{item.name || '--'}} + 销讲业务:{{ item.marketingBusinessName || '--' }} + + + + {{item.visitRecord|| 0}} + 访问次数 - - - {{item.visitRecord|| 0}} - 访问次数 - - - {{item.wordFraction||0}}% - 挖掘执行 - - - {{item.wordFinishFraction|| 0}}% - 挖掘成功 - - - {{item.fraction|| 0}}% - 销讲执行率 - + + {{item.wordFraction||0}}% + 挖掘执行 + + + {{item.wordFinishFraction|| 0}}% + 挖掘成功 - + + {{item.fraction|| 0}}% + 销讲执行率 + + + @@ -169,7 +171,9 @@ -
销讲业务:{{ showBeText }}
+
销讲业务:{{ showBeText }} + +
销讲执行:{{ totalRate||0 }}%
- + + + + 客户意向{{ `${customerInfo.levelFraction||'0'}%` }} + x + + + + + + {{ item.name }} + + + + + {{ second.name }} + + + + + + + @@ -453,6 +479,9 @@ showBeText: '全部业务', // templateList: [], // 销讲业务 showTemplate: false, // 展示选择销讲业务弹窗 + + showIntentionRate: false, // 客户意向率命中词弹窗 + intentionRateList: [], // 客户意向率列表 } }, computed: { @@ -477,10 +506,57 @@ this.getCustomerInfo() this.tabtimetap(0) this.getMarketingBusiness() + this.getListByType() }, methods: { + // 字典表接口 + getListByType() { + this.$u.get("/matchKeywords/findPersonalMatchData", { + customerId: this.customerId + }) + .then(res => { + let arr = [] + res.forEach(item1 => { + item1.children.map(item => { + if (item.isInterval == 0) { + item.label = item.name + item.unit + '-' + item.endName + item + .unit; + } else { + item.label = item.name + } + item.value = item.id; + if (item.selected == 0) { + arr.push({ + name: item.label, + fName: item1.name + }) + } + }) + }) + + let arr1 = [] + arr.map(item => { + let index = arr1.findIndex(items => items.name == item.fName) + if (index != -1) { + arr1[index].children.push({ + name: item.name + }) + } else { + arr1.push({ + name: item.fName, + children: [{ + name: item.name + }] + }) + } + }) + this.intentionRateList = arr1 + console.log(arr, 'asdsaas', arr1) + }) + }, + // 销讲业务方法 templateCancel() { this.showTemplate = false; @@ -1397,145 +1473,145 @@ padding-bottom: 100rpx; - .content-tips { - background: #fff; - box-sizing: border-box; - overflow: hidden; - margin: 0 0 20rpx 0; - padding: 30rpx; - - .content-first { - display: flex; - justify-content: space-between; + .content-tips { + background: #fff; + box-sizing: border-box; + overflow: hidden; + margin: 0 0 20rpx 0; + padding: 30rpx; - .left { + .content-first { display: flex; - align-items: center; + justify-content: space-between; - .img { - width: 52rpx; - height: 52rpx; - background: #FFFFFF; - border: 1px solid #C9C9C9; - border-radius: 50%; - text-align: center; - line-height: 52rpx; - } + .left { + display: flex; + align-items: center; + + .img { + width: 52rpx; + height: 52rpx; + background: #FFFFFF; + border: 1px solid #C9C9C9; + border-radius: 50%; + text-align: center; + line-height: 52rpx; + } - .name { - font-weight: 600; - color: #333333; - margin-right: 10rpx; - font-size: 30rpx; - } + .name { + font-weight: 600; + color: #333333; + margin-right: 10rpx; + font-size: 30rpx; + } - .status { - width: 110rpx; - height: 42rpx; - background: #FFF9F5; - border-radius: 4rpx; - font-size: 26rpx; - font-weight: 400; - color: #EC8D49; - line-height: 42rpx; - text-align: center; - margin: 0 10rpx; - } + .status { + width: 110rpx; + height: 42rpx; + background: #FFF9F5; + border-radius: 4rpx; + font-size: 26rpx; + font-weight: 400; + color: #EC8D49; + line-height: 42rpx; + text-align: center; + margin: 0 10rpx; + } - .normal-status { - color: red; + .normal-status { + color: red; + } } - } - .right { - display: flex; - margin-top: 11rpx; + .right { + display: flex; + margin-top: 11rpx; - .point { - width: 12rpx; - height: 12rpx; - background: #2B6EFF; - border-radius: 50%; - margin-right: 9rpx; - margin-top: 16rpx; + .point { + width: 12rpx; + height: 12rpx; + background: #2B6EFF; + border-radius: 50%; + margin-right: 9rpx; + margin-top: 16rpx; + } } } - } - .content-sec { - display: flex; - justify-content: space-between; - margin: 24rpx 0; + .content-sec { + display: flex; + justify-content: space-between; + margin: 24rpx 0; - .left { - flex-grow: 1; - height: 40rpx; - font-size: 28rpx; - font-family: PingFangSC-Medium, PingFang SC; - font-weight: 500; - color: #333333; - line-height: 40rpx; + .left { + flex-grow: 1; + height: 40rpx; + font-size: 28rpx; + font-family: PingFangSC-Medium, PingFang SC; + font-weight: 500; + color: #333333; + line-height: 40rpx; + } + + .right { + flex-shrink: 0; + width: 340rpx; + height: 40rpx; + font-size: 28rpx; + font-family: PingFangSC-Regular, PingFang SC; + font-weight: 400; + color: #333333; + line-height: 40rpx; + text-align: right; + overflow: hidden; + white-space: nowrap; + text-overflow: ellipsis; + } } - .right { - flex-shrink: 0; - width: 340rpx; - height: 40rpx; + .content-time { font-size: 28rpx; font-family: PingFangSC-Regular, PingFang SC; font-weight: 400; color: #333333; line-height: 40rpx; - text-align: right; - overflow: hidden; - white-space: nowrap; - text-overflow: ellipsis; + padding: 20rpx 0 24rpx; + border-bottom: 1px solid #E0E0E0; } - } - - .content-time { - font-size: 28rpx; - font-family: PingFangSC-Regular, PingFang SC; - font-weight: 400; - color: #333333; - line-height: 40rpx; - padding: 20rpx 0 24rpx; - border-bottom: 1px solid #E0E0E0; - } - .content-last { - display: flex; - justify-content: space-around; - - .cont-item { + .content-last { display: flex; - flex-direction: column; - align-items: center; - justify-content: center; + justify-content: space-around; - .count { - height: 42rpx; - font-size: 30rpx; - font-family: PingFangSC-Regular, PingFang SC; - font-weight: 400; - color: #000000; - line-height: 42rpx; - margin-bottom: 16rpx; - } + .cont-item { + display: flex; + flex-direction: column; + align-items: center; + justify-content: center; - .text { - height: 32rpx; - font-size: 24rpx; - font-family: PingFangSC-Regular, PingFang SC; - font-weight: 400; - color: #666666; - line-height: 32rpx; + .count { + height: 42rpx; + font-size: 30rpx; + font-family: PingFangSC-Regular, PingFang SC; + font-weight: 400; + color: #000000; + line-height: 42rpx; + margin-bottom: 16rpx; + } + + .text { + height: 32rpx; + font-size: 24rpx; + font-family: PingFangSC-Regular, PingFang SC; + font-weight: 400; + color: #666666; + line-height: 32rpx; + } } } } - } - + } .tabactive2 { @@ -1674,4 +1750,61 @@ height: 100%; } } + + .intentionRateList-title { + position: relative; + height: 90rpx; + background: #fff; + display: flex; + align-items: center; + justify-content: center; + + .close { + position: absolute; + right: 10rpx; + top: 50%; + transform: translateY(-50%); + width: 45rpx; + height: 45rpx; + border: 1px solid #E0E0E0; + border-radius: 50%; + text-align: center; + line-height: 45rpx; + font-size: 26rpx; + font-weight: bold; + color: #E0E0E0; + } + } + + .intentionRateList { + padding: 0 20rpx; + width: 100%; + display: flex; + flex-direction: column; + + .first-title { + width: 100%; + height: 90rpx; + display: flex; + align-items: center; + } + + .second { + width: 100%; + display: flex; + flex-wrap: wrap; + + .second-item { + margin: 0 20rpx 25rpx 0; + padding: 0 10rpx; + height: 60rpx; + border: 1px solid #E0E0E0; + border-radius: 12rpx; + display: flex; + align-items: center; + justify-content: center; + } + } + + } diff --git a/pages/center/consumer/consumerSearch.vue b/pages/center/consumer/consumerSearch.vue index 73784ea..8122f8f 100644 --- a/pages/center/consumer/consumerSearch.vue +++ b/pages/center/consumer/consumerSearch.vue @@ -24,7 +24,7 @@ 客户标签: 暂无 - + {{che.name}} diff --git a/pages/center/consumer/index.vue b/pages/center/consumer/index.vue index 33f0e57..2a87c77 100644 --- a/pages/center/consumer/index.vue +++ b/pages/center/consumer/index.vue @@ -93,20 +93,17 @@ 上次到访:{{ item.createTime || "--" }} - - - - - - - - + + 写跟进 + + + 打标签 + @@ -571,9 +568,9 @@ sortFilter: "排序", arriveFilter: "到访时间", receptionDuration: "所属顾问", - - - + + + templateList: [], // 销讲业务 showTemplate: true, // 展示销讲业务 }; @@ -624,7 +621,12 @@ }, methods: { - + // 跳转编辑 + goedit(data) { + uni.navigateTo({ + url: `/pages/center/consumer/edit?id=${data.id}&projectId=${data.projectId}` + }) + }, // 获取销讲业务 getMarketingBusiness() { this.$u.get('/customer/marketingBusiness', { @@ -638,8 +640,8 @@ }) }) }, - - + + max100(num) { if (num > 100) { return 100 @@ -818,7 +820,7 @@ orderBy: this.screen.orderBy == '' ? '' : this.screen.orderBy, // 排序 }, }; - + let ars = [] this.templateList.forEach(item => { if (item.isShow) { @@ -826,7 +828,7 @@ } }) parames.query.marketingBusiness = ars.join(',') - + this.$u.post("/customer/customerManagement", parames) .then((data) => { this.LOADING = false; @@ -1264,11 +1266,9 @@ .content-last { display: flex; - height: 42rpx; - margin-top: 30rpx; - .content-last-tab { width: 33.4%; + height: 78rpx; text-align: center; font-size: 30rpx; font-weight: 400; diff --git a/pages/index/index.vue b/pages/index/index.vue index 0e4e823..4596c64 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -124,14 +124,17 @@ {{realtimeobj.activeCustomer|| 0}} 有效接待
- - {{realtimeobj.receivingCustomer || 0}} - 正在接待 - {{realtimeobj.tagCustomer || 0}} 未标顾问 + + + + {{realtimeobj.prohibitedCustomer || 0}} + + 违禁预警 +
@@ -147,10 +150,10 @@ 平均挖掘率 - - {{realtimeobj.prohibitedCustomer || 0}} + + {{realtimeobj.sumLevelFraction || 0}}% - 违禁预警 + 客户意向度 @@ -176,9 +179,13 @@ {{Thisweekobj.activeCustomer|| 0}} 有效接待
- - {{max100(Thisweekobj.fraction)}}% - 平均执行率 + + {{Thisweekobj.tagCustomer || 0}} + 未标顾问 + + + {{Thisweekobj.prohibitedCustomer || 0}} + 违禁预警 @@ -190,13 +197,17 @@ {{max100(Thisweekobj.wordFinishFraction)}}% 平均挖掘率 - - {{Thisweekobj.prohibitedCustomer || 0}} - 违禁预警 + + + {{max100(Thisweekobj.fraction)}}% + 平均执行率 - - - + + + + {{Thisweekobj.sumLevelFraction || 0}}% + + 客户意向度 diff --git a/pages/mine/equipmentLog.vue b/pages/mine/equipmentLog.vue index 60211c3..3cdead3 100644 --- a/pages/mine/equipmentLog.vue +++ b/pages/mine/equipmentLog.vue @@ -127,6 +127,8 @@ return "接待中"; case 1: return "部分录音"; + case 2: + return "无录音"; default: return "完整录音"; } diff --git a/pages/mine/reception/addreception.vue b/pages/mine/reception/addreception.vue index 8ea2ef6..6f53168 100644 --- a/pages/mine/reception/addreception.vue +++ b/pages/mine/reception/addreception.vue @@ -253,15 +253,18 @@ save() { this.$u.get('/customer/findByAgentIdNotEnd', { - agentId: this.parames.agentId + agentId: this.parames.agentId, + houseId: this.parames.projectId }).then(res => { console.log(res, 'asdaskljdalksjdlksajdksl') - if (res > 0) { - this.beyondContent = `【${this.text}】正在接待客户,是否要结束现有的接待?` + if (res.num > 0) { + this.beyondContent = `【${this.text}】正在接待客户,是否要结束超过${res.endRecordInterval}分钟的接待?` this.showBeyound = true } else { this.saveAddreception() } + }).catch(() => { + this.saveAddreception() }) },