|
@@ -6,7 +6,12 @@
|
6
|
6
|
<div v-loading="loading">
|
7
|
7
|
<div class="f14 line21">{{dialogMsg}}</div>
|
8
|
8
|
<div v-if="dialogTitle == '分配'">
|
9
|
|
- <self-customerservice title='选择员工' width="300px" :reset="reset" :afferent_users='user_id_list' @customerDefine="(val)=>{user_id_list=val;}"></self-customerservice>
|
|
9
|
+ <self-customerservice title='选择员工'
|
|
10
|
+ width="300px"
|
|
11
|
+ :reset="reset"
|
|
12
|
+ :afferent_users='user_id_list'
|
|
13
|
+ @customerDefine="(val)=>{user_id_list=val;}">
|
|
14
|
+ </self-customerservice>
|
10
|
15
|
</div>
|
11
|
16
|
</div>
|
12
|
17
|
<span slot="footer" class="dialog-footer">
|
|
@@ -46,7 +51,7 @@ export default {
|
46
|
51
|
})
|
47
|
52
|
return
|
48
|
53
|
}
|
49
|
|
- this.$parent.dialogPublic_allot_single()
|
|
54
|
+ this.$emit('dialogPublic_allot_single')
|
50
|
55
|
}else if(this.type == 'allotMultiple'){
|
51
|
56
|
if(this.user_id_list && this.user_id_list.length==0){
|
52
|
57
|
this.$message({
|
|
@@ -55,14 +60,14 @@ export default {
|
55
|
60
|
})
|
56
|
61
|
return
|
57
|
62
|
}
|
58
|
|
- this.$parent.dialogPublic_allot_multiple()
|
|
63
|
+ this.$emit('dialogPublic_allot_single')
|
59
|
64
|
}else if(this.type == 'importconfirm'){
|
60
|
65
|
this.batchAddCustomerImportConfirm(num)
|
61
|
66
|
}else{
|
62
|
67
|
this.dialogVisible = false
|
63
|
68
|
}
|
64
|
69
|
},
|
65
|
|
- addCustomer_notice(){
|
|
70
|
+ addCustomer_notice(){//单个提醒
|
66
|
71
|
this.loading = true
|
67
|
72
|
this.$axios.post(this.URL.BASEURL + this.URL.noticeUser, {
|
68
|
73
|
user_ids:this.user_ids.join()
|
|
@@ -76,7 +81,7 @@ export default {
|
76
|
81
|
this.$loading(this.$loadingConfig).close();
|
77
|
82
|
if(res&&res.errno==0){
|
78
|
83
|
this.dialogVisible = false
|
79
|
|
- this.$parent.clearuser_ids()
|
|
84
|
+ // this.$emit('clearuser_ids')
|
80
|
85
|
this.$parent.init(1)
|
81
|
86
|
}
|
82
|
87
|
}).catch((err) => {
|
|
@@ -87,7 +92,7 @@ export default {
|
87
|
92
|
})
|
88
|
93
|
});
|
89
|
94
|
},
|
90
|
|
- batchAddCustomerImportConfirm (num){
|
|
95
|
+ batchAddCustomerImportConfirm (num){//导入客户二次确认
|
91
|
96
|
this.loading = true
|
92
|
97
|
this.$axios.post(this.URL.BASEURL + this.URL.batchAddCustomerImportConfirm, {
|
93
|
98
|
confirm:num,
|