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