Commit 238ba4ba authored by 罗超's avatar 罗超

no message

parent dab9a279
...@@ -255,6 +255,7 @@ ...@@ -255,6 +255,7 @@
}, },
data() { data() {
return { return {
ruleList:[],
guestDialogBoxShow: false, guestDialogBoxShow: false,
drawer2: false, drawer2: false,
activeMenu: 1, activeMenu: 1,
...@@ -582,7 +583,36 @@ ...@@ -582,7 +583,36 @@
if (type === 3) { if (type === 3) {
this.multipleSelection.push(this.CustomerId) this.multipleSelection.push(this.CustomerId)
} }
this.transferVisible = true if(this.ruleList.length==0){
this.transferVisible = true
}else{
let tips = '系统已开启自动分配,无法指定推送,是否继续推送?'
this.$confirm(tips, '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
let ids
if(this.CustomerId){
ids = this.CustomerId
}else{
ids = this.multipleSelection.join(',')
}
this.apipost('/api/Customer/AutoTransferCustomer', {
IDs: ids
}, res=>{
if (res.data.resultCode == 1) {
this.$message.success(res.data.message);
this.getList()
}
})
}).catch(() => {
this.$message({
type: 'info',
message: '已取消'
});
});
}
} else { } else {
if (this.transferMsg.EmpId === '') { if (this.transferMsg.EmpId === '') {
return this.$message.error('请选择变更负责人!') return this.$message.error('请选择变更负责人!')
...@@ -635,6 +665,15 @@ ...@@ -635,6 +665,15 @@
this.drawer2 = true this.drawer2 = true
} }
}, },
// 获取是否开启规则
GetCustomerAllotRule(){
this.apipost('/api/Customer/GetCustomerAllotRule', {}, res=>{
if (res.data.resultCode == 1) {
this.ruleList = res.data.data.EmpList
}
})
},
handleSizeChange(val) { handleSizeChange(val) {
this.msg.pageSize = val this.msg.pageSize = val
this.getList(); this.getList();
...@@ -656,6 +695,11 @@ ...@@ -656,6 +695,11 @@
this.loading = false; this.loading = false;
} }
}) })
if(this.msg.CustomerType==1){
// 获取是否开启规则
this.GetCustomerAllotRule()
}
}, },
handleSelectionChange(val) { handleSelectionChange(val) {
this.multipleSelection = val.map(x => this.multipleSelection = val.map(x =>
......
...@@ -42,7 +42,7 @@ export default { ...@@ -42,7 +42,7 @@ export default {
}, },
data() { data() {
return { return {
selectTitle:2, selectTitle:1,
headerList:[ headerList:[
{title:'客户来源',id:1}, {title:'客户来源',id:1},
{title:'分配规则',id:2}, {title:'分配规则',id:2},
......
<style> <style scoped>
.distributionRules{ .distributionRules{
} }
......
<style> <style scoped>
.addDistributionRules .add-tit{ .addDistributionRules .add-tit{
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
......
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