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

no message

parent dab9a279
......@@ -255,6 +255,7 @@
},
data() {
return {
ruleList:[],
guestDialogBoxShow: false,
drawer2: false,
activeMenu: 1,
......@@ -582,7 +583,36 @@
if (type === 3) {
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 {
if (this.transferMsg.EmpId === '') {
return this.$message.error('请选择变更负责人!')
......@@ -635,6 +665,15 @@
this.drawer2 = true
}
},
// 获取是否开启规则
GetCustomerAllotRule(){
this.apipost('/api/Customer/GetCustomerAllotRule', {}, res=>{
if (res.data.resultCode == 1) {
this.ruleList = res.data.data.EmpList
}
})
},
handleSizeChange(val) {
this.msg.pageSize = val
this.getList();
......@@ -656,6 +695,11 @@
this.loading = false;
}
})
if(this.msg.CustomerType==1){
// 获取是否开启规则
this.GetCustomerAllotRule()
}
},
handleSelectionChange(val) {
this.multipleSelection = val.map(x =>
......
......@@ -42,7 +42,7 @@ export default {
},
data() {
return {
selectTitle:2,
selectTitle:1,
headerList:[
{title:'客户来源',id:1},
{title:'分配规则',id:2},
......
<style>
<style scoped>
.distributionRules{
}
......
<style>
<style scoped>
.addDistributionRules .add-tit{
display: flex;
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