主管单位选无时不能选择其他主管单位
parent
b71ad74667
commit
a77680fbfa
|
@ -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',
|
||||||
|
|
|
@ -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',
|
||||||
|
|
Loading…
Reference in New Issue