From a77680fbfa5fe81e2a0d491a5d3f6e91c79f0091 Mon Sep 17 00:00:00 2001 From: liujun Date: Wed, 20 Mar 2024 16:19:21 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=BB=E7=AE=A1=E5=8D=95=E4=BD=8D=E9=80=89?= =?UTF-8?q?=E6=97=A0=E6=97=B6=E4=B8=8D=E8=83=BD=E9=80=89=E6=8B=A9=E5=85=B6?= =?UTF-8?q?=E4=BB=96=E4=B8=BB=E7=AE=A1=E5=8D=95=E4=BD=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/relevantunits/insert/components/corpInfoAdd.vue | 6 ++++++ src/views/relevantunits/insert/components/corpInfoEdit.vue | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/src/views/relevantunits/insert/components/corpInfoAdd.vue b/src/views/relevantunits/insert/components/corpInfoAdd.vue index 5c3cdb0..c3100d8 100644 --- a/src/views/relevantunits/insert/components/corpInfoAdd.vue +++ b/src/views/relevantunits/insert/components/corpInfoAdd.vue @@ -510,6 +510,12 @@ export default { this.form.MANAGER_DEPARTMENT_ID = this.form.MANAGER_DEPARTMENT_ID.join(',') } this.form.CORP_TYPE = JSON.stringify(this.form.CORP_TYPE) + if (this.form.MAIN_DEPARTMENT.indexOf('0') > -1 && this.form.MAIN_DEPARTMENT.length > 1) { + this.listLoading = false + this.buttonLoading = false + this.$message.error('主管部门选无时不能选择其他部门') + return + } this.form.MAIN_DEPARTMENT = JSON.stringify(this.form.MAIN_DEPARTMENT) requestFN( '/relevantunits/saveCorpInfo', diff --git a/src/views/relevantunits/insert/components/corpInfoEdit.vue b/src/views/relevantunits/insert/components/corpInfoEdit.vue index dd093ca..181d56e 100644 --- a/src/views/relevantunits/insert/components/corpInfoEdit.vue +++ b/src/views/relevantunits/insert/components/corpInfoEdit.vue @@ -569,6 +569,12 @@ export default { this.form.MANAGER_DEPARTMENT_ID = this.form.MANAGER_DEPARTMENT_ID.join(',') } this.form.CORP_TYPE = JSON.stringify(this.form.CORP_TYPE) + if (this.form.MAIN_DEPARTMENT.indexOf('0') > -1 && this.form.MAIN_DEPARTMENT.length > 1) { + this.listLoading = false + this.buttonLoading = false + this.$message.error('主管部门选无时不能选择其他部门') + return + } this.form.MAIN_DEPARTMENT = JSON.stringify(this.form.MAIN_DEPARTMENT) requestFN( '/xgf/corp/editCorpInfo',