|
|
@@ -98,7 +98,8 @@ |
|
|
|
dataCode: '', |
|
|
|
addAccount: '', |
|
|
|
endReception: true, |
|
|
|
fdFlag: null |
|
|
|
fdFlag: null, |
|
|
|
isAdd: 0, // 默认能指派 |
|
|
|
}; |
|
|
|
}, |
|
|
|
computed: { |
|
|
@@ -106,7 +107,8 @@ |
|
|
|
if (this.dataCode == 6) { |
|
|
|
return this.checkAuthority('顾问指派顾问') |
|
|
|
} else { |
|
|
|
return true |
|
|
|
if (this.isAdd == 0) return true |
|
|
|
else return false |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
@@ -126,6 +128,7 @@ |
|
|
|
this.dataCode = dataCode; |
|
|
|
this.init() |
|
|
|
this.updateInit() |
|
|
|
this.queryHaveDept() |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
// 删除接待 |
|
|
@@ -251,7 +254,7 @@ |
|
|
|
success: res => { |
|
|
|
if (this.noClick) { |
|
|
|
this.noClick = false; |
|
|
|
if (res.confirm) { |
|
|
|
if (res.confirm) { |
|
|
|
if (res.confirm) { |
|
|
|
this.$u.post("/customer/endReception", { |
|
|
|
id: id, |
|
|
@@ -260,11 +263,11 @@ |
|
|
|
uni.showToast({ |
|
|
|
icon: "none", |
|
|
|
title: "操作成功" |
|
|
|
}) |
|
|
|
}) |
|
|
|
this.init(); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
setTimeout(() => { |
|
|
|
this.noClick = true; |
|
|
|
}, 2000) |
|
|
@@ -274,6 +277,24 @@ |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
// 检测是否有添加顾问的权限 |
|
|
|
queryHaveDept() { |
|
|
|
uni.request({ |
|
|
|
url: config.service.getSelfAssignedByHouseId + "?houseId=" + uni.getStorageSync('buildingID').id, |
|
|
|
method: "GET", |
|
|
|
header: { |
|
|
|
'content-type': 'application/json', |
|
|
|
'Access-Token': uni.getStorageSync('weapp_session_login_data').token |
|
|
|
}, |
|
|
|
success: (data) => { |
|
|
|
if (data.data.code == 10000) { |
|
|
|
this.isAdd = data.data.data.selfAssigned |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
//新增接待 |
|
|
|
addreception() { |
|
|
|
const { |
|
|
@@ -436,7 +457,7 @@ |
|
|
|
border-top: 1rpx solid #E0E0E0; |
|
|
|
|
|
|
|
.footer1 { |
|
|
|
flex: 1; |
|
|
|
flex-grow: 1; |
|
|
|
text-align: center; |
|
|
|
line-height: 90rpx; |
|
|
|
border-right: 1rpx solid #E0E0E0; |
|
|
|