|
|
@@ -30,92 +30,41 @@ |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="content"> |
|
|
|
<view class="content-tips"> |
|
|
|
<view class="content-first"> |
|
|
|
<view class="left"> |
|
|
|
<view class="img"> |
|
|
|
宋 |
|
|
|
</view> |
|
|
|
<view class="name"> |
|
|
|
宋幸运 |
|
|
|
</view> |
|
|
|
<view class="status"> |
|
|
|
代接待 |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="right"> |
|
|
|
<view class="point"> |
|
|
|
</view> |
|
|
|
<view class=""> |
|
|
|
优秀案例 |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
|
|
|
|
<view class="content-sec"> |
|
|
|
<view class="left"> |
|
|
|
<view class="cus"> |
|
|
|
客户:王先生 | |
|
|
|
</view> |
|
|
|
<view class="arriveNum"> |
|
|
|
首次到访 |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="right"> |
|
|
|
88% | 55分 |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
|
|
|
|
<view class="content-last"> |
|
|
|
2021-07-20 16:00:30 | 80分钟 |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="content-tips"> |
|
|
|
|
|
|
|
<view class="content-tips" v-for="(item,index) in recordList" :key='index' @click="tapThevisiting(item)"> |
|
|
|
<view class="content-first"> |
|
|
|
<view class="left"> |
|
|
|
<view class="img"> |
|
|
|
宋 |
|
|
|
</view> |
|
|
|
<view class="name"> |
|
|
|
宋幸运 |
|
|
|
</view> |
|
|
|
<view class="status"> |
|
|
|
代接待 |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="right"> |
|
|
|
<view class="point"> |
|
|
|
</view> |
|
|
|
<view class=""> |
|
|
|
优秀案例 |
|
|
|
</view> |
|
|
|
<view class="img">{{item.agentName.slice(0,1)}}</view> |
|
|
|
<view class="name">{{item.agentName}}</view> |
|
|
|
<view class="status">代接待</view> |
|
|
|
</view> |
|
|
|
<!-- <view class="right"> |
|
|
|
<view class="point"></view> |
|
|
|
<view class="">优秀案例</view> |
|
|
|
</view> --> |
|
|
|
</view> |
|
|
|
|
|
|
|
<view class="content-sec"> |
|
|
|
<view class="left"> |
|
|
|
<view class="cus"> |
|
|
|
客户:王先生 | |
|
|
|
</view> |
|
|
|
<view class="arriveNum"> |
|
|
|
首次到访 |
|
|
|
</view> |
|
|
|
<view class="cus">客户:{{item.name || '--'}} |</view> |
|
|
|
<view class="arriveNum">首次到访</view> |
|
|
|
</view> |
|
|
|
<view class="right"> |
|
|
|
88% | 55分 |
|
|
|
{{item.fraction || '0'}}% | {{item.fraction || '0'}}分 |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
|
|
|
|
<view class="content-last"> |
|
|
|
2021-07-20 16:00:30 | 80分钟 |
|
|
|
{{item.createTime}} | {{item.mm || '0'}}分钟 |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</view> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<u-popup v-model="screenShow" mode="top" height="770"> |
|
|
|
<u-popup v-model="screenShow" mode="top" height="600"> |
|
|
|
<view class="screen"> |
|
|
|
<!-- 顾问选择 --> |
|
|
|
<view class="screen-counselor"> |
|
|
@@ -128,10 +77,8 @@ |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<!-- 录音标示 --> |
|
|
|
<view class="screen-record"> |
|
|
|
<view class="screen-record-text"> |
|
|
|
录音标识 |
|
|
|
</view> |
|
|
|
<!-- <view class="screen-record"> |
|
|
|
<view class="screen-record-text">录音标识</view> |
|
|
|
<view class="screen-record-tab"> |
|
|
|
<view :class="[screen.record==0?'screen-record-chose':'screen-record-nochose']" @click="screen.record=0"> |
|
|
|
有效录音 |
|
|
@@ -140,7 +87,7 @@ |
|
|
|
无效录音 |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> --> |
|
|
|
<view class="screen-record"> |
|
|
|
<view class="screen-record-text"> |
|
|
|
标记顾问 |
|
|
@@ -184,7 +131,7 @@ |
|
|
|
</view> |
|
|
|
</u-popup> |
|
|
|
<!-- 选择顾问的选择框 --> |
|
|
|
<u-select v-model="selectshow" :list="list" @confirm="actionSelectCallback"></u-select> |
|
|
|
<u-select v-model="selectshow" :list="freeList" @confirm="actionSelectCallback"></u-select> |
|
|
|
|
|
|
|
<u-calendar v-model="totalTimeShow" mode="range" @change="totalTimeChange"></u-calendar> |
|
|
|
</view> |
|
|
@@ -200,58 +147,136 @@ |
|
|
|
selectshow:false, |
|
|
|
totalTimeShow: false, |
|
|
|
screen:{ |
|
|
|
counselorName:'', |
|
|
|
agentId:'',//顾问id |
|
|
|
record:'0', |
|
|
|
flag:'0', |
|
|
|
arriveNum:'0' |
|
|
|
|
|
|
|
}, |
|
|
|
list:[ |
|
|
|
{ |
|
|
|
value:1, |
|
|
|
label:'1' |
|
|
|
}, |
|
|
|
{ |
|
|
|
value:2, |
|
|
|
label:'2' |
|
|
|
}, |
|
|
|
{ |
|
|
|
value:3, |
|
|
|
label:'3' |
|
|
|
}, |
|
|
|
{ |
|
|
|
value:4, |
|
|
|
label:'4' |
|
|
|
}, |
|
|
|
], |
|
|
|
recordList:[], |
|
|
|
|
|
|
|
|
|
|
|
freeList:[],//顾问 |
|
|
|
recordList:[], |
|
|
|
buildingID:'', |
|
|
|
nextPage:1, |
|
|
|
totalRecord:"", |
|
|
|
staTime:'', |
|
|
|
endtime:'' |
|
|
|
} |
|
|
|
}, |
|
|
|
onShow() { |
|
|
|
this.buildingID = uni.getStorageSync('buildingID').id; |
|
|
|
this.getMyCustom() |
|
|
|
this.getFreeList(); |
|
|
|
}, |
|
|
|
onReachBottom() { |
|
|
|
if(this.totalRecord==this.nextPage){ |
|
|
|
uni.showToast({ |
|
|
|
icon:'none', |
|
|
|
title: '到底了', |
|
|
|
duration: 2000 |
|
|
|
}); |
|
|
|
return |
|
|
|
}else{ |
|
|
|
this.nextPage+=1; |
|
|
|
this.getMyCustom(); |
|
|
|
} |
|
|
|
}, |
|
|
|
methods:{ |
|
|
|
tapThevisiting(item) { |
|
|
|
if(item.status==0){ |
|
|
|
uni.showToast({ |
|
|
|
icon: "none", |
|
|
|
title: "排队中" |
|
|
|
}) |
|
|
|
return |
|
|
|
}else{ |
|
|
|
const parames = { |
|
|
|
pageNum: 1, |
|
|
|
pageSize: 100, |
|
|
|
query: { |
|
|
|
customerId: item.id, |
|
|
|
} |
|
|
|
} |
|
|
|
var item={ |
|
|
|
bg:0, |
|
|
|
customerId:item.id, |
|
|
|
} |
|
|
|
this.$u.post("/corpus/findByPage", parames).then(res => { |
|
|
|
let newobj = res[0]; |
|
|
|
if(res[0].recordDuration>360){ |
|
|
|
uni.navigateTo({ |
|
|
|
url: `/pages/mine/details2?customerId=${newobj.customerId}&status=${newobj.status}&itemobj=${JSON.stringify(item)}&stateisshow=${"2"}` |
|
|
|
}) |
|
|
|
}else{ |
|
|
|
uni.navigateTo({ |
|
|
|
url: `/pages/mine/details?customerId=${newobj.customerId}&status=${newobj.status}&itemobj=${JSON.stringify(item)}&stateisshow=${"1"}` |
|
|
|
}) |
|
|
|
// uni.navigateTo({ |
|
|
|
// url: `/pages/main/details?customerId=${newobj.customerId}&status=${newobj.status}&itemobj=${JSON.stringify(item)}&stateisshow=${"2"}` |
|
|
|
// }) |
|
|
|
} |
|
|
|
}) |
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
getMyCustom(){ |
|
|
|
var parames = { |
|
|
|
pageNum: this.nextPage, |
|
|
|
pageSize: 10, |
|
|
|
query: { |
|
|
|
projectId:this.buildingID, |
|
|
|
time:1, |
|
|
|
staTime:this.staTime, |
|
|
|
endtime:this.endtime |
|
|
|
} |
|
|
|
}; |
|
|
|
if(this.screen.agentId){ |
|
|
|
parames.query.agentId = this.screen.agentId |
|
|
|
} |
|
|
|
this.$u.post("/customer/findbypage", parames).then(data => { |
|
|
|
var list = data.results || []; |
|
|
|
this.recordList = [...this.recordList, ...list]; |
|
|
|
this.totalRecord=data.totalPage; |
|
|
|
}) |
|
|
|
}, |
|
|
|
//获取顾问列表 |
|
|
|
getFreeList() { |
|
|
|
this.$u.get("/zkAgentPool/freeList?itemId="+this.buildingID).then(res => { |
|
|
|
this.freeList = res; |
|
|
|
this.freeList.forEach(item=>{ |
|
|
|
item.label=item.name; |
|
|
|
item.value=item.agentId |
|
|
|
}) |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
tabtimetap(index){ |
|
|
|
// console.log(idx) |
|
|
|
// this.activeTotal=idx |
|
|
|
if (index == 3) { |
|
|
|
this.totalTimeShow = true; |
|
|
|
} else { |
|
|
|
this.activeTotal = index; |
|
|
|
this.staTime=''; |
|
|
|
this.endtime=''; |
|
|
|
} |
|
|
|
}, |
|
|
|
//自定义时间 |
|
|
|
totalTimeChange(e) { |
|
|
|
console.log(e.startDate, e.endDate) |
|
|
|
this.staTime=e.startDate; |
|
|
|
this.endtime=e.endDate; |
|
|
|
this.activeTotal=3; |
|
|
|
this.nextPage=1; |
|
|
|
this.recordList=[]; |
|
|
|
this.getMyCustom(); |
|
|
|
}, |
|
|
|
// 筛选 |
|
|
|
screenshow(){ |
|
|
|
this.screenShow=true |
|
|
|
}, |
|
|
|
actionSelectCallback(e){ |
|
|
|
console.log(e[0].label) |
|
|
|
// this.value = this.actionSheetList[index].label; |
|
|
|
this.screen.counselorName=e[0].label |
|
|
|
this.screen.agentId=e[0].value; |
|
|
|
this.screenShow=false; |
|
|
|
this.recordList=[]; |
|
|
|
this.nextPage=1; |
|
|
|
this.getMyCustom(); |
|
|
|
}, |
|
|
|
reset(){ |
|
|
|
this.screen={ |
|
|
@@ -271,9 +296,6 @@ |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
onLoad() { |
|
|
|
console.log('这里是进入') |
|
|
|
} |
|
|
|
} |
|
|
|
</script> |
|
|
|
|
|
|
@@ -325,12 +347,8 @@ |
|
|
|
} |
|
|
|
} |
|
|
|
.content{ |
|
|
|
// background: #F8F8F8; |
|
|
|
height: 1000rpx; |
|
|
|
overflow: hidden; |
|
|
|
.content-tips{ |
|
|
|
background: #fff; |
|
|
|
// height: 210rpx; |
|
|
|
padding: 0 20rpx; |
|
|
|
box-sizing: border-box; |
|
|
|
overflow: hidden; |
|
|
@@ -430,6 +448,7 @@ |
|
|
|
.screen{ |
|
|
|
// box-sizing: border-box; |
|
|
|
// padding: 0 30rpx; |
|
|
|
position:absolute; |
|
|
|
.screen-counselor{ |
|
|
|
display: flex; |
|
|
|
height: 106rpx; |
|
|
@@ -501,6 +520,9 @@ |
|
|
|
} |
|
|
|
} |
|
|
|
.screen-foot{ |
|
|
|
position: relative; |
|
|
|
left: 0rpx; |
|
|
|
bottom: 0rpx; |
|
|
|
height: 88rpx; |
|
|
|
display: flex; |
|
|
|
.screen-foot-reset{ |
|
|
|