|
|
@@ -147,11 +147,12 @@ Page({
|
|
|
console.log("领取公海客户", res)
|
|
|
wx.showToast({
|
|
|
title: res.msg == '成功' ? '领取成功' : res.msg,
|
|
|
- icon: "none"
|
|
|
+ icon: "none",
|
|
|
+ mask: true
|
|
|
});
|
|
|
if (res.msg == '成功') setTimeout(() => {
|
|
|
that.handleInit();
|
|
|
- }, 300)
|
|
|
+ }, 500)
|
|
|
})
|
|
|
}
|
|
|
})
|
|
|
@@ -331,12 +332,14 @@ Page({
|
|
|
value: res.data.deletereason
|
|
|
}];
|
|
|
let tabbarList = [{
|
|
|
- icon: "icon-paixushaixuanxuanzhong",
|
|
|
- label: "领取"
|
|
|
- }, {
|
|
|
icon: "icon-genjin",
|
|
|
label: "跟进"
|
|
|
}];
|
|
|
+ //公海客户可领取并且拥有领取客户的权限
|
|
|
+ if (res.data.freeget == 1 && this.data.options.some(v => v == 'getCustomer')) tabbarList.unshift({
|
|
|
+ icon: "icon-paixushaixuanxuanzhong",
|
|
|
+ label: "领取"
|
|
|
+ })
|
|
|
if (this.data.isAdmin) tabbarList = tabbarList.concat([{
|
|
|
icon: "icon-bianji",
|
|
|
label: "编辑"
|
|
|
@@ -344,6 +347,7 @@ Page({
|
|
|
icon: "icon-shanchu",
|
|
|
label: "删除"
|
|
|
}]);
|
|
|
+ //拥有分配权限或管理员权限
|
|
|
if (this.data.options.some(v => v == 'allot') || this.data.isAdmin) tabbarList.splice(0, 0, {
|
|
|
icon: "icon-a-tuiguangsucailaxinliang",
|
|
|
label: "分配"
|
|
|
@@ -355,6 +359,7 @@ Page({
|
|
|
list2,
|
|
|
tabbarList
|
|
|
});
|
|
|
+
|
|
|
},
|
|
|
//tabs 切换
|
|
|
tabsChange({
|