diff --git a/pages/center/consumer/index.vue b/pages/center/consumer/index.vue index e283e30..e36b692 100644 --- a/pages/center/consumer/index.vue +++ b/pages/center/consumer/index.vue @@ -1,228 +1,149 @@ diff --git a/pages/center/records/index.vue b/pages/center/records/index.vue index 0e19787..06f0702 100644 --- a/pages/center/records/index.vue +++ b/pages/center/records/index.vue @@ -15,17 +15,17 @@ - + {{ sortFilter }} - + {{ arriveFilter }} - + {{ counselorName }} @@ -74,7 +74,7 @@ 客户:{{item.name || '--'}} - + {{ item.marketingBusinessName }} @@ -94,130 +94,162 @@ {{item.fraction|| 0}}% 销讲执行率 - + - - + + + 销讲业务 + + + + + + + {{item.templateName}} + + + - --> - - - - 销讲执行率 - + + + + 销讲执行率 + + + + + + + {{item.label}} + + + - - - - {{item.label}} - - + + + + 需求挖掘率 + + + + + + + {{item.label}} + + + - - - - - 需求挖掘率 - + + + + 接待时长 + + + + + + + {{item.label}} + + + - - - - {{item.label}} + + + + 录音标识 + + + + + + 有效接待 - - - - - - - 接待时长 - - - - - - {{item.label}} + + 无效接待 + + + 无录音 + + + 无效(未审核) - - - - - - - 录音标识 - - - - - 有效接待 - - - 无效接待 - - 无录音 + + + + + 标记顾问 + + - - 无效(未审核) + + + 标记 + + + 未标记 + - - - - - 标记顾问 - - - - - 标记 + + + + 到访次数 + + - - 未标记 + + + + {{item.label}} + + - - - - - 到访次数 - - - - - - {{item.label}} - - - - @@ -229,13 +261,15 @@ + + - + @@ -249,7 +283,7 @@ 近7天 - 近15天 { + this.templateList = res.map(item => { + return { + ...item, + isShow: false, + } + }) + }) + }, + choice(item) { item.isShow = !item.isShow; }, @@ -593,10 +639,10 @@ // let items = JSON.parse(res[0].transferContent) // uni.setStorageSync("searchobj", items); //写入缓存 // }).catch(e => { - + // }) // } - + const parames = { pageNum: 1, pageSize: 100, @@ -609,7 +655,7 @@ customerId: item.id, wordFraction: item.wordFraction } - + uni.setStorageSync("searchobj", item1); //写入缓存 uni.setStorageSync("entrance", 1); //写入缓存 this.$u.post("/corpus/findByPage", parames).then(res => { @@ -648,50 +694,57 @@ this.screen.wajueVal = [] this.screen.xiaojiangVal = [] let dateType = 0; - if ((this.activeTotal == 15)||(this.activeTotal == 4)) {// 选择全部和自定义 + if ((this.activeTotal == 15) || (this.activeTotal == 4)) { // 选择全部和自定义 dateType = null; - }else { + } else { dateType = this.activeTotal; this.staTime = '' this.endTime = '' } // 到访次数 this.visitList.forEach(i => { - if(i.isShow) this.screen.visitRecord.push(i.value) + if (i.isShow) this.screen.visitRecord.push(i.value) }) // 接待时长 this.jiedaiList.forEach(i => { - if(i.isShow) this.screen.jiedaiVal.push(i.value) + if (i.isShow) this.screen.jiedaiVal.push(i.value) }) // 需求挖掘 this.wajueList.forEach(i => { - if(i.isShow) this.screen.wajueVal.push(i.value) + if (i.isShow) this.screen.wajueVal.push(i.value) }) // 销讲执行率 this.xiaojiangList.forEach(i => { - if(i.isShow) this.screen.xiaojiangVal.push(i.value) + if (i.isShow) this.screen.xiaojiangVal.push(i.value) }) var parames = { - pageNum: this.nextPage, - pageSize: 10, - query: { - projectId: this.buildingID, - keywordsId: this.keywordsId, - staTime: this.staTime,// 接待时间 - endTime: this.endTime,// 接待时间 - agentId: this.screen.agentId, // 顾问ID - 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.screen.orderBy==''?'':this.screen.orderBy,//排序 - validInvalid: this.screen.validInvalid,//录音标识 - clientStage: this.screen.clientStage,// 客户阶段 - recording: this.screen.validInvalid == 2 ? 0 : null // 录音 - } + pageNum: this.nextPage, + pageSize: 10, + query: { + projectId: this.buildingID, + keywordsId: this.keywordsId, + staTime: this.staTime, // 接待时间 + endTime: this.endTime, // 接待时间 + agentId: this.screen.agentId, // 顾问ID + 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.screen.orderBy == '' ? '' : this.screen.orderBy, //排序 + validInvalid: this.screen.validInvalid, //录音标识 + clientStage: this.screen.clientStage, // 客户阶段 + recording: this.screen.validInvalid == 2 ? 0 : null // 录音 + } }; + let ars = [] + this.templateList.forEach(item => { + if (item.isShow) { + ars.push(item.id) + } + }) + parames.query.marketingBusiness = ars.join(',') if (this.screen.agentId) { parames.query.agentId = this.screen.agentId } @@ -714,27 +767,27 @@ }, //获取顾问列表 getFreeList() { - if(this.userInfo.dataCode==6){// 顾问角色登录时只显示自己 - this.freeList = [{ - label: this.userInfo.name, - value: this.userInfo.accountId - }] - }else{ - this.$u.post("/cusLvStatistics/selectAllAccountIdByHouseId", { - houseId: this.buildingID - }).then(res => { - this.freeList = res; - this.freeList.forEach(item => { - item.label = item.name; - item.value = item.accountId - }) - this.freeList.unshift({ - label:'全部', - value: '' - }) - + if (this.userInfo.dataCode == 6) { // 顾问角色登录时只显示自己 + this.freeList = [{ + label: this.userInfo.name, + value: this.userInfo.accountId + }] + } else { + this.$u.post("/cusLvStatistics/selectAllAccountIdByHouseId", { + houseId: this.buildingID + }).then(res => { + this.freeList = res; + this.freeList.forEach(item => { + item.label = item.name; + item.value = item.accountId }) - } + this.freeList.unshift({ + label: '全部', + value: '' + }) + + }) + } }, actionSelectCallback(e) { this.screen.agentId = e[0].value; @@ -745,8 +798,8 @@ this.getRecordsList(); }, reset() { - this.screen.agentId ='' - this.screen.jiedaiVal ='' + this.screen.agentId = '' + this.screen.jiedaiVal = '' this.screen.validInvalid = '' this.screen.markAdvisor = '' this.screen.orderBy = ''; @@ -959,8 +1012,9 @@ text-align: center; margin: 0 10rpx; } - .normal-status{ - color:red; + + .normal-status { + color: red; } } @@ -979,10 +1033,12 @@ } } } + .content-sec { display: flex; justify-content: space-between; margin: 24rpx 0; + .left { flex: 1; height: 40rpx; @@ -992,7 +1048,8 @@ color: #333333; line-height: 40rpx; } - .right{ + + .right { flex: 1; height: 40rpx; font-size: 28rpx; @@ -1003,6 +1060,7 @@ text-align: right; } } + .content-time { font-size: 28rpx; font-family: PingFangSC-Regular, PingFang SC; @@ -1012,15 +1070,18 @@ padding: 20rpx 0 24rpx; border-bottom: 1px solid #E0E0E0; } + .content-last { display: flex; justify-content: space-around; - .cont-item{ + + .cont-item { display: flex; flex-direction: column; align-items: center; justify-content: center; - .count{ + + .count { height: 42rpx; font-size: 30rpx; font-family: PingFangSC-Regular, PingFang SC; @@ -1029,7 +1090,8 @@ line-height: 42rpx; margin-bottom: 16rpx; } - .text{ + + .text { height: 32rpx; font-size: 24rpx; font-family: PingFangSC-Regular, PingFang SC; @@ -1094,7 +1156,8 @@ display: flex; align-items: center; justify-content: space-between; - .arrow{ + + .arrow { width: 30rpx; height: 14rpx; } @@ -1105,7 +1168,8 @@ padding-bottom: 10rpx; display: flex; flex-wrap: wrap; - .screen-record-item{ + + .screen-record-item { min-width: 150rpx; padding: 0 14rpx; height: 60rpx; @@ -1113,14 +1177,17 @@ text-align: center; line-height: 60rpx; margin: 0 22rpx 22rpx 0; - &:nth-child(4n){ + + &:nth-child(4n) { margin-right: 0; } } + .screen-record-chose { background: #F1F6FD; color: #2671E2; } + .screen-record-nochose { background: #F7F8FA; color: #333; @@ -1130,39 +1197,39 @@ } .screen-foot { - width: 100%; - height: 78rpx; - display: flex; - margin: 30rpx 30rpx 0; - - .screen-foot-reset { - width: 176rpx; + width: 100%; 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: #2671E2; - text-align: center; - } + display: flex; + margin: 30rpx 30rpx 0; - .screen-foot-sure { - 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; - text-align: center; - } - } + .screen-foot-reset { + 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: #2671E2; + text-align: center; + } + + .screen-foot-sure { + 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; + text-align: center; + } + } } diff --git a/pages/mine/details2.vue b/pages/mine/details2.vue index 6102d98..be2f2b8 100644 --- a/pages/mine/details2.vue +++ b/pages/mine/details2.vue @@ -122,6 +122,13 @@ 更多 + -