|
|
@@ -69,8 +69,8 @@ |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="clive" @click="$noMultipleClicks(save)">确定</view> |
|
|
|
<u-select :mask-close-able="false" v-model="Showhiddenunits" mode="single-column" :list="list" |
|
|
|
@cancel="cancel" @confirm="confirm"></u-select> |
|
|
|
<u-select :mask-close-able="false" v-model="Showhiddenunits" mode="single-column" :list="list" @cancel="cancel" |
|
|
|
@confirm="confirm"></u-select> |
|
|
|
<u-select :mask-close-able="false" v-model="Showhid" mode="single-column" :list="freeList" @cancel="cancel1" |
|
|
|
@confirm="confirm1"></u-select> |
|
|
|
<u-modal v-model="show" :mask-close-able="true" :title="'代接待提醒'" :confirm-text="confirmtext" |
|
|
@@ -119,6 +119,7 @@ |
|
|
|
daitiReceptionobj: {}, |
|
|
|
isShow: false, // 默认隐藏该权限 |
|
|
|
userInfo: {}, // 用户信息 |
|
|
|
isPass: false, // 当前顾问是否正在接待 |
|
|
|
}; |
|
|
|
}, |
|
|
|
onLoad() { |
|
|
@@ -154,6 +155,16 @@ |
|
|
|
this.baochunfun() |
|
|
|
}, |
|
|
|
save() { |
|
|
|
// 校验当前登录人是否是顾问 |
|
|
|
let obj = this.freeList.find(item => { |
|
|
|
return item.agentId == this.userInfo.accountId |
|
|
|
}) || null |
|
|
|
if (!obj && this.userInfo.userRoleType == 6) { |
|
|
|
this.isPass = true |
|
|
|
} else { |
|
|
|
this.isPass = false |
|
|
|
} |
|
|
|
|
|
|
|
if (this.parames.name.length == 0) { |
|
|
|
uni.showToast({ |
|
|
|
icon: "none", |
|
|
@@ -175,6 +186,14 @@ |
|
|
|
}) |
|
|
|
return; |
|
|
|
} |
|
|
|
// 判断条件2是否选中顾问 |
|
|
|
if (this.isPass && !this.parames.agentId) { |
|
|
|
uni.showToast({ |
|
|
|
icon: "none", |
|
|
|
title: "当前顾问正在接待,请选择其他顾问" |
|
|
|
}) |
|
|
|
return; |
|
|
|
} |
|
|
|
const that = this; |
|
|
|
this.$u.post("customer/daitiReception", { |
|
|
|
phone: that.parames.phone, |
|
|
|