diff --git a/pages/center/consumer/edit.vue b/pages/center/consumer/edit.vue
index fea70a0..8e39875 100644
--- a/pages/center/consumer/edit.vue
+++ b/pages/center/consumer/edit.vue
@@ -14,7 +14,7 @@
-
+
diff --git a/pages/center/consumer/index.vue b/pages/center/consumer/index.vue
index a7134bc..e98a168 100644
--- a/pages/center/consumer/index.vue
+++ b/pages/center/consumer/index.vue
@@ -428,11 +428,11 @@
//获取顾问列表
getFreeList() {
this.freeList=[]
- this.$u.get("/zkAgentPool/freeList?itemId="+this.buildingID).then(res => {
+ this.$u.post("/cusLvStatistics/selectAllAccountIdByHouseId", {houseId: this.buildingID}).then(res => {
this.freeList = res;
this.freeList.forEach(item=>{
item.label=item.name;
- item.value=item.agentId
+ item.value=item.accountId
})
})
},
diff --git a/pages/center/prohibited/index.vue b/pages/center/prohibited/index.vue
index 93cc80e..bfcb5b4 100644
--- a/pages/center/prohibited/index.vue
+++ b/pages/center/prohibited/index.vue
@@ -260,11 +260,11 @@
},
//获取顾问列表
getFreeList() {
- this.$u.get("/zkAgentPool/freeList?itemId="+this.buildingID).then(res => {
+ this.$u.post("/cusLvStatistics/selectAllAccountIdByHouseId", { houseId: this.buildingID }).then(res => {
this.freeList = res;
- this.freeList.forEach(item=>{
+ this.freeList.forEach(item => {
item.label=item.name;
- item.value=item.agentId
+ item.value=item.accountId
})
})
},
diff --git a/pages/center/records/index.vue b/pages/center/records/index.vue
index 34f07ae..2d2298d 100644
--- a/pages/center/records/index.vue
+++ b/pages/center/records/index.vue
@@ -455,11 +455,11 @@
},
//获取顾问列表
getFreeList() {
- this.$u.get("/zkAgentPool/freeList?itemId="+this.buildingID).then(res => {
+ this.$u.post("/cusLvStatistics/selectAllAccountIdByHouseId", { houseId: this.buildingID }).then(res => {
this.freeList = res;
this.freeList.forEach(item=>{
item.label=item.name;
- item.value=item.agentId
+ item.value=item.accountId
})
})
},
diff --git a/pages/index/customer.vue b/pages/index/customer.vue
index 2a1cbf3..557735c 100644
--- a/pages/index/customer.vue
+++ b/pages/index/customer.vue
@@ -3,12 +3,14 @@
-
+
- 暂无数据
+ 暂无数据
-
+
@@ -23,35 +25,42 @@
手机号码:{{item.phone || "--"}}
开始时间:{{item.createTime}}
- 顾问姓名:{{item.agentName}}
-
+ 顾问姓名:{{item.agentName}}
+
+
- 设备状态:离线
- 工牌电量:{{item.zkEquipmentState.electricity}}%
+ 设备状态:离线
+ 工牌电量:{{item.zkEquipmentState.electricity}}%
录音状态:
- 使用中
- 未使用
+ 使用中
+ 未使用
-
-
+
+
-
+
手机号码:{{item.phone || "--"}}
-
+
-
-
+
+
+
@@ -59,11 +68,11 @@
export default {
data() {
return {
- buildingID:'',
- waitCustomList:[],
- isAdd:'',
- dataCode:'',
- addAccount:'',
+ buildingID: '',
+ waitCustomList: [],
+ isAdd: '',
+ dataCode: '',
+ addAccount: '',
};
},
components: {},
@@ -74,53 +83,53 @@
addAccount,
dataCode
} = uni.getStorageSync("weapp_session_userInfo_data");
- this.addAccount=addAccount;
- this.dataCode=dataCode;
+ this.addAccount = addAccount;
+ this.dataCode = dataCode;
this.init()
this.queryHaveDept()
},
methods: {
- reshCustom(){
+ reshCustom() {
this.init()
},
tapThevisiting(item) {
uni.showLoading({
- title: '加载中',
- mask:true
+ title: '加载中',
+ mask: true
});
- if(item.status==0){
- setTimeout(function () {
- uni.hideLoading();
+ if (item.status == 0) {
+ setTimeout(function() {
+ uni.hideLoading();
}, 2000);
uni.showToast({
icon: "none",
title: "排队中"
})
return
- }else{
+ } else {
const parames = {
pageNum: 1,
pageSize: 100,
query: {
customerId: item.id,
}
- }
- var itemsd={
- bg:0,
- customerId:item.id,
- id:'',
- onebest:''
+ }
+ var itemsd = {
+ bg: 0,
+ customerId: item.id,
+ id: '',
+ onebest: ''
}
this.$u.post("/corpus/findByPage", parames).then(res => {
- setTimeout(function () {
- uni.hideLoading();
+ setTimeout(function() {
+ uni.hideLoading();
}, 2000);
- if(res){
+ if (res) {
let newobj = res[0];
uni.navigateTo({
url: `/pages/mine/details?customerId=${newobj.customerId}&status=${newobj.status}&itemobj=${JSON.stringify(itemsd)}&stateisshow=${"1"}`
})
- }else{
+ } else {
uni.showToast({
icon: "none",
title: "暂无音频"
@@ -129,23 +138,23 @@
}
})
}
-
+
},
queryHaveDept() {
return new Promise((resolve, reject) => {
- this.$u.get("/user/queryHaveDept?houseId="+this.buildingID).then(res => {
- this.isAdd=res;
+ this.$u.get("/user/queryHaveDept?houseId=" + this.buildingID).then(res => {
+ this.isAdd = res;
resolve();
})
})
},
- init(){
- this.waitCustomList=[]
- let parames={
- itemId:this.buildingID
+ init() {
+ this.waitCustomList = []
+ let parames = {
+ itemId: this.buildingID
}
this.$u.post("/customer/reception", parames).then(data => {
- this.waitCustomList=data;
+ this.waitCustomList = data;
});
},
//延时接待
@@ -175,8 +184,8 @@
success: res => {
if (res.confirm) {
this.$u.post("/customer/endReception", {
- id:id,
- houseId:this.buildingID
+ id: id,
+ houseId: this.buildingID
}).then(res => {
uni.showToast({
icon: "none",
@@ -189,45 +198,46 @@
})
},
//新增接待
- addreception(){
+ addreception() {
const {
- dataCode,addAccount
+ dataCode,
+ addAccount
} = uni.getStorageSync("weapp_session_userInfo_data");
-
- if(dataCode==6){
- if(addAccount!=0){
+
+ if (dataCode == 6) {
+ if (addAccount != 0) {
uni.showToast({
title: '不允许自建客户!',
duration: 2000
});
return
}
- if(this.waitCustomList.length==0){
+ if (this.waitCustomList.length == 0) {
uni.navigateTo({
url: '/pages/mine/reception/addreception'
})
return
- }else{
- for(var i=0; i
diff --git a/pages/learning/Thefulltext/index2.vue b/pages/learning/Thefulltext/index2.vue
index dcab089..20a90e7 100644
--- a/pages/learning/Thefulltext/index2.vue
+++ b/pages/learning/Thefulltext/index2.vue
@@ -705,7 +705,7 @@
uploadImage() {
const that = this;
var parames = {
- targetId: that.id,
+ targetId: that.customerId,
commentType: 1
};
if (this.answerUserId) {
diff --git a/pages/mine/equipment/index.vue b/pages/mine/equipment/index.vue
index 41aa31b..edb4153 100644
--- a/pages/mine/equipment/index.vue
+++ b/pages/mine/equipment/index.vue
@@ -57,13 +57,16 @@
关闭
- 上传状态
-
+ 待上传
+
- (待上传{{ item.fileCount }}条)
+ {{ item.fileCount }}条
+
+
+ 0