Commit 336ffbd8 authored by 吴春's avatar 吴春

1

parent a51b01ca
......@@ -1686,9 +1686,54 @@
this.allowAdd = true
} else {
if (res.data.message.indexOf('已注册客户信息') != -1) {
this.allowAdd = false
this.allowAdd = false;
let tipsInfo="";
if(res.data.data.isMain==1){
tipsInfo="系统已存在"+res.data.data.customerInfo.customerName+"("+res.data.data.customerInfo.contactNumber+")是否加入团队?";
}
else if(res.data.data.isMain==0){
//联系人已存在于系统客户(康辉驷马桥门店/17333。。。。。)是否加入团队?
tipsInfo="联系人已存在于系统客户("+res.data.data.customerInfo.customerName+"/"+res.data.data.customerInfo.contactNumber+")是否加入团队?";
}
else if(res.data.data.isMain==4||res.data.data.isMain==5){
tipsInfo="该客户已存在系统,可以立即转入你的名下,是否立即转入?";
}
//弹出提示:加入团队
this.$confirm(tipsInfo, this.$t('tips.tips'), {
confirmButtonText: this.$t('pub.yes'),
cancelButtonText: this.$t('pub.no'),
type: 'warning'
}).then(() => {
this.apipost("app_JoinCustomerTeam", {
IsMain:res.data.data.isMain,
CustomerId: res.data.data.customerInfo.customerId,
}, res => {
if (res.data.resultCode === 1) {
this.Success(res.data.message);
this.cancelEdit();
this.addLayer1=false;
this.getList();
} else {
this.Error(res.data.message)
}
}, null);
}).catch(() => {
this.cancelEdit();
this.addLayer1=false;
// this.$message({
// type: 'info',
// message: this.$t(res.data.message)
// });
});
}
else{
if(res.data.data.IsMain==2){
this.cancelEdit();
this.addLayer1=false;
}
this.$message.error(res.data.message)
}
this.$message.error(res.data.message)
}
}, err => {})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment