查看bug修复
parent
7d18e1bb2a
commit
41fa0b4d39
|
@ -178,6 +178,27 @@ export default {
|
|||
if (e) {
|
||||
this.users = e
|
||||
}
|
||||
// 判断是否有主管部门
|
||||
for (let i; this.users.length > 0; i++) {
|
||||
if (!this.users[0].MANAGER_DEPARTMENT_ID || this.users[0].MANAGER_DEPARTMENT_ID === '') {
|
||||
this.$message({
|
||||
message: '系统未指定主管部门,请将完善相关方信息',
|
||||
type: 'error'
|
||||
})
|
||||
return false
|
||||
}
|
||||
}
|
||||
// 判断主管部门是否一致
|
||||
const warden = this.users[0].MANAGER_DEPARTMENT_ID
|
||||
for (let i; this.users.length > 0; i++) {
|
||||
if (warden !== this.users[i].MANAGER_DEPARTMENT_ID) {
|
||||
this.$message({
|
||||
message: '选择的人员(' + this.users[i].NAME + ')主管部门不一致,请重新选择',
|
||||
type: 'error'
|
||||
})
|
||||
return false
|
||||
}
|
||||
}
|
||||
this.visible = true
|
||||
this.loading = false
|
||||
requestFN(
|
||||
|
|
Loading…
Reference in New Issue