主管单位选无时不能选择其他主管单位

5_7_地图同步
liujun 2024-03-20 16:19:21 +08:00
parent b71ad74667
commit a77680fbfa
2 changed files with 12 additions and 0 deletions

View File

@ -510,6 +510,12 @@ export default {
this.form.MANAGER_DEPARTMENT_ID = this.form.MANAGER_DEPARTMENT_ID.join(',') this.form.MANAGER_DEPARTMENT_ID = this.form.MANAGER_DEPARTMENT_ID.join(',')
} }
this.form.CORP_TYPE = JSON.stringify(this.form.CORP_TYPE) 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) this.form.MAIN_DEPARTMENT = JSON.stringify(this.form.MAIN_DEPARTMENT)
requestFN( requestFN(
'/relevantunits/saveCorpInfo', '/relevantunits/saveCorpInfo',

View File

@ -569,6 +569,12 @@ export default {
this.form.MANAGER_DEPARTMENT_ID = this.form.MANAGER_DEPARTMENT_ID.join(',') this.form.MANAGER_DEPARTMENT_ID = this.form.MANAGER_DEPARTMENT_ID.join(',')
} }
this.form.CORP_TYPE = JSON.stringify(this.form.CORP_TYPE) 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) this.form.MAIN_DEPARTMENT = JSON.stringify(this.form.MAIN_DEPARTMENT)
requestFN( requestFN(
'/xgf/corp/editCorpInfo', '/xgf/corp/editCorpInfo',