From f05db5e319e14e331ecfbaa596b94a3d50abcd9e Mon Sep 17 00:00:00 2001 From: douzhuo <17611323298@163.com> Date: Tue, 30 Aug 2022 18:53:02 +0800 Subject: [PATCH] =?UTF-8?q?5891=E9=97=AE=E9=A2=98=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- manifest.json | 4 +- pages/center/consumer/consumerDetail.vue | 528 +++++++++--------- pages/center/consumer/edit.vue | 2 +- pages/center/consumer/index.vue | 2 +- .../consumer/newFollowup/newFollowup.vue | 16 +- 5 files changed, 281 insertions(+), 271 deletions(-) diff --git a/manifest.json b/manifest.json index 16c8fd4..d5bfc1e 100644 --- a/manifest.json +++ b/manifest.json @@ -1,5 +1,5 @@ { - "name" : "去房智控管家", + "name" : "数智工牌", "appid" : "__UNI__7A1611D", "description" : "去房智控管家", "versionName" : "1.1.0", @@ -91,7 +91,7 @@ }, "quickapp" : {}, "mp-weixin" : { - "appid" : "wx8f883dca5ecc5510", + "appid" : "wxe044603515ff2cb5", "setting" : { "urlCheck" : false, "es6" : true, diff --git a/pages/center/consumer/consumerDetail.vue b/pages/center/consumer/consumerDetail.vue index 053de95..6f2ac0e 100644 --- a/pages/center/consumer/consumerDetail.vue +++ b/pages/center/consumer/consumerDetail.vue @@ -15,11 +15,7 @@ - 销讲执行:{{ customerInfo.fraction || 0 }}% + 销讲执行:{{ customerInfo.fraction || 0 }}% @@ -27,34 +23,25 @@ 手机号码:{{customerInfo.phone&&customerInfo.isShow==1?customerInfo.phone.length==11?customerInfo.phone.substr(0, 3) + '****' + customerInfo.phone.substr(7):customerInfo.phone:customerInfo.phone&&customerInfo.isShow!=1?customerInfo.phone: '--'}} - 到访次数:{{ customerInfo.visitRecord || 0 }}次/{{ + 到访次数:{{ customerInfo.visitRecord || 0 }}次/{{ customerInfo.mm || 0 - }}min + }}min - 需求挖掘:{{ customerInfo.wordFraction || 0 }}% - 画像标签:{{ - customerInfo.demand.cusSemanticWordsList?customerInfo.demand.cusSemanticWordsList.length:0}}查看 - + 需求挖掘:{{ customerInfo.wordFraction || 0 }}% + 画像标签:{{ + customerInfo.demand.cusSemanticWordsList?customerInfo.demand.cusSemanticWordsList.length:0}}查看 + - 所属顾问:{{ customerInfo.agentName || "--" }} - 客户阶段:{{ customerInfo.stageName || "--" }} - + 所属顾问:{{ customerInfo.agentName || "--" }} + 客户阶段:{{ customerInfo.stageName || "--" }} + + - 上次到访:{{ customerInfo.createTime || "--" }} - + 上次到访:{{ customerInfo.createTime || "--" }} + @@ -64,234 +51,240 @@ - - - - 接待记录 - - - 跟进记录 - - - 销讲执行率 - - - 挖掘执行率 - + + + 接待记录 + + + 跟进记录 + + + 销讲执行率 + + + 挖掘执行率 + - - - - - - + + + + + + + + + + 暂无数据 - 暂无数据 - - - - - - A - B - C - D - - {{item.agentName || '--'}} - 代接待 + + + + {{item.agentName || '--'}} + 代接待 + - - - - - 客户:{{item.name || '--'}} | - {{item.visitRecord || '0'}}次到访 + + + 客户:{{item.name || '--'}} | + {{item.visitRecord || '0'}}次到访 + + + {{item.fraction || '0'}}% - {{item.fraction || '0'}}% - - {{item.createTime}} | {{item.mm || 0}}min + {{item.createTime}} | {{item.mm || 0}}min + - - - - - - - + + + + + + + + 暂无数据 - 暂无数据 - - - - - - {{item.agentName.slice(0,1) || '--'}} - {{item.agentName || '||'}} + + + + + {{item.agentName.slice(0,1) || '--'}} + {{item.agentName || '||'}} + + {{item.createTime}} - {{item.createTime}} + 跟进内容:{{item.remarks || '暂无'}} - 跟进内容:{{item.remarks || '暂无'}} + - - - - - - 指标 - 执行率 - - - - - - + + + + 指标 + + 执行率 - 暂无数据 - - - - - {{item.name}} - - - - {{((item.ratepercent/item.rate).toFixed(2)*100).toFixed()}}% + + + + - - - - + 暂无数据 - - - {{subitem.name}} + + + {{item.name}} - 已执行 - 未执行 + + + {{((item.ratepercent/item.rate).toFixed(2)*100).toFixed()}}% + + - - 话术内容 - - - {{inc+1}}.{{che.name}} - - - - + + + {{subitem.name}} + + 已执行 + 未执行 + + + + + + + 话术内容 + + + + {{inc+1}}.{{che.name}} + + + + + + + - - - - - 指标 - 执行率 - - - - - - - + + + 指标 + + 执行率 - 暂无数据 - - - - - {{item.name}} - - - - - {{item.selected==0?item.fraction:0}}% + + + + + - - - - + 暂无数据 - - - - 话术内容 - - {{inc+1}}.{{che.question}} - - - - - + + + + {{item.name}} + + + + + + {{item.selected==0?item.fraction:0}}% + + + + - - - - - - {{subitem.name}} - - 已执行 - 未执行 - - - - + + + + 话术内容 + + + {{inc+1}}.{{che.question}} + + + + + + + - - 话术内容 - - {{inc+1}}.{{che.question}} + + + + + + {{subitem.name}} + + 已执行 + 未执行 + - - - + + + + + + 话术内容 + + + {{inc+1}}.{{che.question}} + + + + + + @@ -343,7 +336,7 @@ totalRate: [], ratelist: [], fllowList: [], - KeyWordsfractionList: [],//需求挖掘话术list + KeyWordsfractionList: [], //需求挖掘话术list userInfo: {}, buttonisshow: false } @@ -371,7 +364,7 @@ this.tabtimetap(0) }, methods: { - changeshowlevel1(item,type){ + changeshowlevel1(item, type) { console.log(item) item.show = !item.show }, @@ -379,26 +372,26 @@ getfindKeyWordsBycusId() { this.$u.get("/cusLvStatistics/findKeyWordsBycusId?cusId=" + this.customerId).then(res => { // console.log(res) - if(res.length){ - res.forEach(item=>{ + if (res.length) { + res.forEach(item => { item.show = false - item.children.forEach(obj=>{ + item.children.forEach(obj => { obj.show = false - if(obj.questionList.length){ - obj.questionList.forEach(subobj=>{ - subobj.show =false + if (obj.questionList.length) { + obj.questionList.forEach(subobj => { + subobj.show = false }) } }) - if(item.questionList.length){ - item.questionList.forEach(obj=>{ - obj.show =false + if (item.questionList.length) { + item.questionList.forEach(obj => { + obj.show = false }) } }) this.KeyWordsfractionList = res - }else{ - this.KeyWordsfractionList = [] + } else { + this.KeyWordsfractionList = [] } }) }, @@ -517,7 +510,7 @@ // 新增跟进 followRecordAdd() { uni.navigateTo({ - url: `/pages/center/consumer/newFollowup/newFollowup?id=${this.customerId}` + url: `/pages/center/consumer/newFollowup/newFollowup?id=${this.customerId}&level=${this.customerInfo.level}&stageName=${this.customerInfo.stageName}` }) }, // 去编辑 @@ -536,9 +529,10 @@ }, //评分点击 clickaudeopal(item) { - if (item.selected == 0 && item.viewFlag !=1) { + if (item.selected == 0 && item.viewFlag != 1) { uni.navigateTo({ - url: '/pages/mine/ScoringPlaylist?customerId=' + this.customerId + "&id=" + item.marketingId + '&type=0' + url: '/pages/mine/ScoringPlaylist?customerId=' + this.customerId + "&id=" + item + .marketingId + '&type=0' }) } }, @@ -914,13 +908,15 @@ background-color: #FFFFFF; padding-bottom: 30rpx; width: 100%; - .my-tab{ + + .my-tab { padding: 20rpx 0; display: flex; justify-content: space-around; align-items: center; border-bottom: 1px solid #E0E0E0; - .tab-item{ + + .tab-item { padding: 0 30rpx; height: 56rpx; font-size: 28rpx; @@ -930,7 +926,8 @@ line-height: 56rpx; text-shadow: 0px 1px 0px #E0E0E0; } - .tabactive{ + + .tabactive { height: 56rpx; background: rgba(38, 113, 226, 0.1); box-shadow: 0px 1px 0px 0px #E0E0E0; @@ -982,8 +979,10 @@ } .tab { + position: sticky; + top: 0; height: 88rpx; - // border-bottom: 1px solid #E0E0E0; + z-index: 999; background: #FFFFFF; display: flex; align-items: center; @@ -1032,22 +1031,22 @@ display: flex; .img { - width: 52rpx; - height: 52rpx; - border-radius: 50%; - text-align: center; - line-height: 50rpx; - margin-right: 20rpx; - color: #fff; - font-size: 30rpx; - background: #9f61c8; - } - - .test { - margin-top: 11rpx; - font-weight: 500; - color: #333333; - } + width: 52rpx; + height: 52rpx; + border-radius: 50%; + text-align: center; + line-height: 50rpx; + margin-right: 20rpx; + color: #fff; + font-size: 30rpx; + background: #9f61c8; + } + + .test { + margin-top: 11rpx; + font-weight: 500; + color: #333333; + } .edit { height: 30rpx; @@ -1062,18 +1061,20 @@ } } - .right { - display: flex; - .test { - margin-top: 11rpx; - .blue { - font-size: 32rpx; - font-family: PingFangSC-Medium, PingFang SC; - font-weight: 500; - color: #2671e2; - } - } - } + .right { + display: flex; + + .test { + margin-top: 11rpx; + + .blue { + font-size: 32rpx; + font-family: PingFangSC-Medium, PingFang SC; + font-weight: 500; + color: #2671e2; + } + } + } } .content-sec { @@ -1092,13 +1093,15 @@ .content-sec-lab1 { color: #333333; - .look{ + + .look { font-size: 32rpx; font-family: PingFangSC-Semibold, PingFang SC; font-weight: 600; color: #2671E2; } - .look1{ + + .look1 { height: 42rpx; font-size: 30rpx; font-family: PingFangSC-Regular, PingFang SC; @@ -1163,7 +1166,6 @@ } .tabchange { - overflow: hidden; .tabactive1 { padding-bottom: 100rpx; @@ -1387,7 +1389,7 @@ } .upon-sec-tips { - min-width:96rpx; + min-width: 96rpx; height: 46rpx; background: #F2F2F2; border-radius: 6rpx; diff --git a/pages/center/consumer/edit.vue b/pages/center/consumer/edit.vue index 5bfe27c..a4fe208 100644 --- a/pages/center/consumer/edit.vue +++ b/pages/center/consumer/edit.vue @@ -55,7 +55,7 @@ - 客户等级 + 意向等级 diff --git a/pages/center/consumer/index.vue b/pages/center/consumer/index.vue index 4436281..ccfda1e 100644 --- a/pages/center/consumer/index.vue +++ b/pages/center/consumer/index.vue @@ -228,7 +228,7 @@ - 客户等级 - 最新状态 + 客户阶段 @@ -111,9 +111,12 @@ this.customerId = e.id this.buildingID = uni.getStorageSync('buildingID').id; this.recordList = [] + if (e.level) { + this.screen.level = Number(e.level) + } // this.getMyCustom() // this.getFreeList() - this.getNewStatus() + this.getNewStatus(e) this.getCustomerType(); }, methods: { @@ -130,14 +133,19 @@ this.customerType = res; }) }, - getNewStatus() { + getNewStatus(e) { var that = this; let premo = { houseId: uni.getStorageSync('buildingID').id } this.$u.post('/customer/getStage', premo) .then(res => { - this.stateList = res + console.log(res) + console.log(e.stageName, res.findIndex(item => item.stageName == e.stageName )) + if (e.stageName) { + that.screen.state = res.findIndex(item => item.stageName == e.stageName ) + } + that.stateList = res }) },