From 41fa0b4d39b472b2d49d03f8fe0e382225188ad5 Mon Sep 17 00:00:00 2001 From: liujun Date: Fri, 22 Dec 2023 13:53:24 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9F=A5=E7=9C=8Bbug=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/xgf/flowApply/components/apply.vue | 21 ++++++++++++++++++++ 1 file changed, 21 insertions(+) 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(