|
|
@@ -2484,6 +2484,9 @@
|
|
|
this.dictData = res.data.items
|
|
|
this.ManagementUnitOptions = this.dictData['ManagementUnit']
|
|
|
this.UnitRelationOptions = this.dictData['UnitRelation']
|
|
|
+ if (this.formData.SpecTypeCode == '') {
|
|
|
+ this.formData.SpecTypeCode = "1"
|
|
|
+ }
|
|
|
this.InOptions = this.dictData['InOptions']
|
|
|
this.CompanyTypeOptions = this.dictData['CompanyType']
|
|
|
this.getCityList(this.dictData['GaodeMapChinaAreas'])
|
|
|
@@ -2521,22 +2524,32 @@
|
|
|
},
|
|
|
// 保存信息变更数据
|
|
|
saveinfochange (val) {
|
|
|
+ let v1 = false
|
|
|
+ let v2 = false
|
|
|
this.$refs['formData'].validate((valid) => {
|
|
|
if (valid) {
|
|
|
- supplierapi.checkBack(this.formData.BankAccount, this.formData.Id, this.$axios).then(res => {
|
|
|
- if (res.data.item) {
|
|
|
- this.$message({
|
|
|
- type: 'warning',
|
|
|
- message: '该银行账号与其他公司重复'
|
|
|
- })
|
|
|
- } else {
|
|
|
- this.addInfoChangeItemCh(val)
|
|
|
- }
|
|
|
- }).catch(err => {
|
|
|
- console.error(err)
|
|
|
- })
|
|
|
+ v1 = true
|
|
|
}
|
|
|
})
|
|
|
+ this.$refs['EntityFormCert'].validate((valid) => {
|
|
|
+ if (valid) {
|
|
|
+ v2 = true
|
|
|
+ }
|
|
|
+ })
|
|
|
+ if (v1 && v2) {
|
|
|
+ supplierapi.checkBack(this.formData.BankAccount, this.formData.Id, this.$axios).then(res => {
|
|
|
+ if (res.data.item) {
|
|
|
+ this.$message({
|
|
|
+ type: 'warning',
|
|
|
+ message: '该银行账号与其他公司重复'
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ this.addInfoChangeItemCh(val)
|
|
|
+ }
|
|
|
+ }).catch(err => {
|
|
|
+ console.error(err)
|
|
|
+ })
|
|
|
+ }
|
|
|
},
|
|
|
addInfoChangeItemCh (val) {
|
|
|
let AllInfochangeItemList = {
|