|
|
@@ -1,7 +1,7 @@ |
|
|
|
<template> |
|
|
|
<view class="cented-box"> |
|
|
|
|
|
|
|
<view class="customer" v-for="(item,index) in waitCustomList" :key='index'> |
|
|
|
<view class="customer" v-for="(item,index) in waitCustomList" :key='index' @click="tapThevisiting(item)"> |
|
|
|
<view class="title"> |
|
|
|
<view class="zuo"> |
|
|
|
<view class="zuoimg">A</view> |
|
|
@@ -17,7 +17,7 @@ |
|
|
|
<view class="centerbox-che">手机号码:<text class="shizai">{{item.phone || "--"}}</text></view> |
|
|
|
<view class="centerbox-che">开始时间:<text class="shizai">{{item.createTime}}</text></view> |
|
|
|
<view class="centerbox-che">顾问姓名:<text class="shizai">{{item.agentName}}</text></view> |
|
|
|
<view class="centerbox-che2" v-if="item.zkEquipmentState.audioStatus!=''"> |
|
|
|
<view class="centerbox-che2" v-if="item.zkEquipmentState.audioStatus!='' && item.zkEquipmentState!=null"> |
|
|
|
<view class="Workcard">工牌电量:<text class="shizai">{{item.zkEquipmentState.electricity}}%</text></view> |
|
|
|
<view class="Workcard">录音状态: |
|
|
|
<text v-if="item.zkEquipmentState.audioStatus=='true'" class="shizai">使用中</text> |
|
|
@@ -67,6 +67,42 @@ |
|
|
|
this.queryHaveDept() |
|
|
|
}, |
|
|
|
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 => { |
|
|
|
if(res){ |
|
|
|
let newobj = res[0]; |
|
|
|
uni.navigateTo({ |
|
|
|
url: `/pages/mine/details?customerId=${newobj.customerId}&status=${newobj.status}&itemobj=${JSON.stringify(item)}&stateisshow=${"1"}` |
|
|
|
}) |
|
|
|
}else{ |
|
|
|
uni.showToast({ |
|
|
|
icon: "none", |
|
|
|
title: "暂无音频" |
|
|
|
}) |
|
|
|
return |
|
|
|
} |
|
|
|
}) |
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
queryHaveDept() { |
|
|
|
return new Promise((resolve, reject) => { |
|
|
|
this.$u.get("/user/queryHaveDept?houseId="+this.buildingID).then(res => { |
|
|
@@ -81,7 +117,6 @@ |
|
|
|
itemId:this.buildingID |
|
|
|
} |
|
|
|
this.$u.post("/customer/reception", parames).then(data => { |
|
|
|
console.log(data) |
|
|
|
this.waitCustomList=data; |
|
|
|
}); |
|
|
|
}, |
|
|
@@ -166,7 +201,6 @@ |
|
|
|
url: '/pages/mine/reception/addreception' |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
assign(item) { |
|
|
|
let url = `/pages/mine/reception/consultant?id=${item.id}` |
|
|
|