Browse Source

调试接待记录

newyun
corala 1 year ago
parent
commit
ae070acc34
7 changed files with 18 additions and 53 deletions
  1. +1
    -1
      manifest.json
  2. +6
    -15
      pages/center/consumer/consumerDetail.vue
  3. +0
    -2
      pages/center/prohibited/details.vue
  4. +0
    -1
      pages/center/records/index.vue
  5. +3
    -24
      pages/index/consumer/index.vue
  6. +3
    -5
      pages/index/index.vue
  7. +5
    -5
      pages/mine/details2.vue

+ 1
- 1
manifest.json View File

@@ -82,7 +82,7 @@
"usingComponents" : true, "usingComponents" : true,
"permission" : {}, "permission" : {},
"requiredBackgroundModes" : [ "audio" ], "requiredBackgroundModes" : [ "audio" ],
"lazyCodeLoading": "requiredComponents",
"lazyCodeLoading" : "requiredComponents",
"plugins" : { "plugins" : {
"WechatSI" : { "WechatSI" : {
"version" : "0.3.4", "version" : "0.3.4",


+ 6
- 15
pages/center/consumer/consumerDetail.vue View File

@@ -222,7 +222,7 @@
<view v-if="KeyWordsfractionList.length"> <view v-if="KeyWordsfractionList.length">
<view class="top-box"> <view class="top-box">
<view style="width:50%;text-align:center">挖掘执行:{{customerInfo.wordFraction||0}}%</view> <view style="width:50%;text-align:center">挖掘执行:{{customerInfo.wordFraction||0}}%</view>
<view style="width:50%;text-align:center">挖掘成功:{{percent||0}}%</view>
<view style="width:50%;text-align:center">挖掘成功:{{customerInfo.wordFinishFraction||0}}%</view>
</view> </view>
<view style=" <view style="
width: 100%; width: 100%;
@@ -441,14 +441,6 @@
}) })
} }
}, },
// 计算挖掘执行的完成率
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) { getKeywordsList(list) {
let keywords = []; let keywords = [];
@@ -485,7 +477,6 @@
} }
}); });
this.KeyWordsfractionList = res; this.KeyWordsfractionList = res;
this.getPercent()
} else { } else {
this.KeyWordsfractionList = []; this.KeyWordsfractionList = [];
} }
@@ -525,12 +516,12 @@
this.getfindKeyWordsBycusId() this.getfindKeyWordsBycusId()
} }
}, },
tapThevisiting(item) {
tapThevisiting(_item) {
uni.showLoading({ uni.showLoading({
title: '加载中', title: '加载中',
mask: true mask: true
}); });
if (item.yon != 0) {
if (_item.yon != 0) {
setTimeout(function() { setTimeout(function() {
uni.hideLoading(); uni.hideLoading();
}, 2000); }, 2000);
@@ -545,12 +536,12 @@
pageNum: 1, pageNum: 1,
pageSize: 100, pageSize: 100,
query: { query: {
customerId: item.id,
customerId: _item.id,
} }
} }
var item = { var item = {
bg: 0, bg: 0,
customerId: item.id,
customerId: _item.id,
id: '' id: ''
} }
uni.setStorageSync("entrance", 1); //写入缓存 uni.setStorageSync("entrance", 1); //写入缓存
@@ -569,7 +560,7 @@
if (res[0].merge == 0) { if (res[0].merge == 0) {
let newobj = res[0]; let newobj = res[0];
uni.navigateTo({ uni.navigateTo({
url: `/pages/mine/details2?customerId=${newobj.customerId}&status=${newobj.status}&stateisshow=${"2"}`
url: `/pages/mine/details2?customerId=${newobj.customerId}&status=${newobj.status}&stateisshow=${"2"}&wordFraction=${_item.wordFraction}`
}) })
} else { } else {
let newobj = res[0]; let newobj = res[0];


+ 0
- 2
pages/center/prohibited/details.vue View File

@@ -108,14 +108,12 @@
:data-speaker="item.speaker"> :data-speaker="item.speaker">
<view class="avatar"> <view class="avatar">
<view :style="[SPEAKERSTYLE(item.speaker)]"> <view :style="[SPEAKERSTYLE(item.speaker)]">
<!-- <image v-if="item.isShow == 0" :src="Aimg" mode="widthFix"></image> -->
<text v-if="item.isShow == 0">顾</text> <text v-if="item.isShow == 0">顾</text>
<text v-else>{{ item.speaker | toCapital }}</text> <text v-else>{{ item.speaker | toCapital }}</text>
</view> </view>
</view> </view>
<view class="contentInfo"> <view class="contentInfo">
<view class="info"> <view class="info">
<!-- <text class="AudioUserName">{{ item.speaker | toCapital }}</text> -->
<text class="AudioUserName" v-if="item.isShow == 0">{{ item.username }}</text> <text class="AudioUserName" v-if="item.isShow == 0">{{ item.username }}</text>
<text class="AudioUserName" v-else>{{ item.speaker | toCapital }}</text> <text class="AudioUserName" v-else>{{ item.speaker | toCapital }}</text>
<text>{{conversionTiame(item.bg/1000)}}</text> <text>{{conversionTiame(item.bg/1000)}}</text>


+ 0
- 1
pages/center/records/index.vue View File

@@ -693,7 +693,6 @@
this.recordList = list; this.recordList = list;
}else{ }else{
this.recordList = [].concat(this.recordList,list) this.recordList = [].concat(this.recordList,list)
// [...this.recordList, ...list];
} }
this.totalRecord = data.pages; this.totalRecord = data.pages;
this.totalRecords = data.total; this.totalRecords = data.total;


+ 3
- 24
pages/index/consumer/index.vue View File

@@ -69,15 +69,6 @@
<view class="content-sec-lab"> <view class="content-sec-lab">
负责顾问:<view class="content-sec-lab1">{{item.agentName || ''}}</view> 负责顾问:<view class="content-sec-lab1">{{item.agentName || ''}}</view>
</view> </view>
<!-- <view class="content-sec-lab" style="line-height: 46rpx;">
客户意向:
<text v-if="item.demand.cusSemanticWordsList==null">暂无</text>
<template v-else>
<block v-for="(che,ind) in item.demand.cusSemanticWordsList" :key='ind'>
<view class="content-sec-tips" v-if="ind<=3">{{che.name}}</view>
</block>
</template>
</view> -->
<view class="content-sec-lab"> <view class="content-sec-lab">
<view class="u-flex" style="flex:1"> <view class="u-flex" style="flex:1">
挖掘执行:<view class="content-sec-lab1">{{item.wordFraction||0}}%</view> 挖掘执行:<view class="content-sec-lab1">{{item.wordFraction||0}}%</view>
@@ -826,7 +817,7 @@
this.$u.post("/customer/customerManagement", parames) this.$u.post("/customer/customerManagement", parames)
.then((data) => { .then((data) => {
this.LOADING = false; this.LOADING = false;
var list = data.results || [];
var list = data.records || [];
list.forEach((item) => { list.forEach((item) => {
if (this.userInfo.dataCode == 6) { if (this.userInfo.dataCode == 6) {
item.isshow = true; item.isshow = true;
@@ -834,25 +825,13 @@
item.isshow = false; 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) { if (this.isRefresh) {
this.recordList = list; this.recordList = list;
} else { } else {
this.recordList = [...this.recordList, ...list]; this.recordList = [...this.recordList, ...list];
} }
this.totalRecord = data.totalPage;
this.totalRecords = data.totalRecord;
this.totalRecord = data.pages;
this.totalRecords = data.total;
}) })
.catch((e) => { .catch((e) => {
this.LOADING = false; this.LOADING = false;


+ 3
- 5
pages/index/index.vue View File

@@ -94,8 +94,7 @@
<!-- 今日工作 --> <!-- 今日工作 -->
<view class="contbox" v-if="permissions.shishinum"> <view class="contbox" v-if="permissions.shishinum">
<view class="title"> <view class="title">
<image class="title-icon" src="https://static.quhouse.com/bc2ec951ad9a47e5bf58f2829926e143.png"
mode="" />今日工作
<image class="title-icon" src="https://static.quhouse.com/bc2ec951ad9a47e5bf58f2829926e143.png" mode="" />今日工作
</view> </view>
<view class="real-timebox"> <view class="real-timebox">
<view class="timebox"> <view class="timebox">
@@ -107,7 +106,7 @@
<view class="realtext">平均执行率</view> <view class="realtext">平均执行率</view>
</view> </view>
<view class="real"> <view class="real">
<view class="realnum">{{realtimeobj.avgDuration|| 0}}</view>
<view class="realnum">{{realtimeobj.wordFraction|| 0}}</view>
<view class="realtext">平均挖掘率</view> <view class="realtext">平均挖掘率</view>
</view> </view>
<view class="real" @click="tapjumpreception('11')"> <view class="real" @click="tapjumpreception('11')">
@@ -163,14 +162,13 @@
<view class="realtext">平均执行率</view> <view class="realtext">平均执行率</view>
</view> </view>
<view class="real"> <view class="real">
<view class="realnum">{{Thisweekobj.receptionCount || 0}}</view>
<view class="realnum">{{Thisweekobj.wordFraction || 0}}</view>
<view class="realtext">平均挖掘率</view> <view class="realtext">平均挖掘率</view>
</view> </view>
<view class="real" @click="tapjumpreception('33')"> <view class="real" @click="tapjumpreception('33')">
<view class="realnum">{{Thisweekobj.receptionCount || 0}}</view> <view class="realnum">{{Thisweekobj.receptionCount || 0}}</view>
<view class="realtext">接待量</view> <view class="realtext">接待量</view>
</view> </view>
</view> </view>
<view class="timebox" style="margin-bottom:0;"> <view class="timebox" style="margin-bottom:0;">
<view class="real" @click="tapjumpreception('7')"> <view class="real" @click="tapjumpreception('7')">


+ 5
- 5
pages/mine/details2.vue View File

@@ -358,7 +358,7 @@
<!-- 需求挖掘率 --> <!-- 需求挖掘率 -->
<view v-if="zhixingcenterindex == 2" class="cenisbox"> <view v-if="zhixingcenterindex == 2" class="cenisbox">
<view class="top-box"> <view class="top-box">
<view style="width:50%;text-align:center">挖掘执行:{{KeyWordsfraction||0}}%</view>
<view style="width:50%;text-align:center">挖掘执行:{{wordFraction||0}}%</view>
<view style="width:50%;text-align:center">挖掘成功:{{percent||0}}%</view> <view style="width:50%;text-align:center">挖掘成功:{{percent||0}}%</view>
</view> </view>
<view <view
@@ -504,7 +504,6 @@
</view> </view>
</view> </view>
</view> </view>
<!-- @click="Edittag(item,chend,index,i)" -->
<view class="cenisbox" v-if="kehuyixiangcenterindex==1"> <view class="cenisbox" v-if="kehuyixiangcenterindex==1">
<view style="width: 100%;height: 100%;text-align: center;margin-top: 200rpx;" <view style="width: 100%;height: 100%;text-align: center;margin-top: 200rpx;"
v-if="Acquirecustomerintentlist2.length==0"> v-if="Acquirecustomerintentlist2.length==0">
@@ -595,7 +594,6 @@
data() { data() {
return { return {
KeyWordsfractionList: [], KeyWordsfractionList: [],
KeyWordsfraction: 0,
customStyle: { customStyle: {
'width': '320rpx', 'width': '320rpx',
'font-size': '34rpx', 'font-size': '34rpx',
@@ -709,6 +707,8 @@
refined: false, // 多选加精; refined: false, // 多选加精;
nowPlaying: 0, // 当前播放位置 nowPlaying: 0, // 当前播放位置
stepPosition: 0, // 需要跳转的播放位置 stepPosition: 0, // 需要跳转的播放位置
percent: 0,// 挖掘成功
wordFraction: 0,// 挖掘执行
}; };
}, },
computed: { computed: {
@@ -726,7 +726,7 @@
this.customerId = options.customerId; this.customerId = options.customerId;
this.itemobj = uni.getStorageSync('searchobj'); this.itemobj = uni.getStorageSync('searchobj');
this.stateisshow = options.stateisshow; this.stateisshow = options.stateisshow;
this.KeyWordsfraction = options.wordFraction == 'undefined' ? 0 : options.wordFraction;
this.wordFraction = options.wordFraction == 'undefined' ? 0 : options.wordFraction;


this.$zaudio.autoPlay = true this.$zaudio.autoPlay = true
if (options.refresh) this.refresh = options.refresh if (options.refresh) this.refresh = options.refresh
@@ -819,7 +819,7 @@
} }
return keywords.join(","); return keywords.join(",");
}, },
// 计算挖掘执行的完成率
// // 计算挖掘执行的完成率
getPercent() { getPercent() {
let countArr = this.KeyWordsfractionList.filter(item => item.selected == 0) let countArr = this.KeyWordsfractionList.filter(item => item.selected == 0)
this.percent = (countArr.length / this.KeyWordsfractionList.length) * 100 this.percent = (countArr.length / this.KeyWordsfractionList.length) * 100


Loading…
Cancel
Save