diff --git a/src/views/xgf/flowApply/components/apply.vue b/src/views/xgf/flowApply/components/apply.vue index a3b5532..f748966 100644 --- a/src/views/xgf/flowApply/components/apply.vue +++ b/src/views/xgf/flowApply/components/apply.vue @@ -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(