|
@@ -2844,26 +2844,14 @@
|
|
|
valid2 = valid
|
|
valid2 = valid
|
|
|
})
|
|
})
|
|
|
if (valid1 && valid2) {
|
|
if (valid1 && valid2) {
|
|
|
- let AllInfochangeItemList = {
|
|
|
|
|
- SupplierId: this.formData.Id + '',
|
|
|
|
|
- MInfoId: this.annualId,
|
|
|
|
|
- InfochangeForm: this.infochangeItemList
|
|
|
|
|
- }
|
|
|
|
|
- annualapi.addInfoChangeItemCh(AllInfochangeItemList, this.$axios).then(res => {
|
|
|
|
|
- if (res.data.code === 0) {
|
|
|
|
|
- // 保存成功后,初始化数据,变成修改
|
|
|
|
|
- this.initDatas()
|
|
|
|
|
- if (val !== 1) {
|
|
|
|
|
- this.$message({
|
|
|
|
|
- type: 'success',
|
|
|
|
|
- message: res.data.message
|
|
|
|
|
- })
|
|
|
|
|
- }
|
|
|
|
|
- } else {
|
|
|
|
|
|
|
+ api.checkBack(this.formData.BankAccount, this.formData.Id, this.$axios).then(res => {
|
|
|
|
|
+ if (res.data.item) {
|
|
|
this.$message({
|
|
this.$message({
|
|
|
type: 'warning',
|
|
type: 'warning',
|
|
|
- message: res.data.message
|
|
|
|
|
|
|
+ message: '该银行账号与其他公司重复'
|
|
|
})
|
|
})
|
|
|
|
|
+ } else {
|
|
|
|
|
+ this.addInfoChangeItemCh(val)
|
|
|
}
|
|
}
|
|
|
}).catch(err => {
|
|
}).catch(err => {
|
|
|
console.error(err)
|
|
console.error(err)
|
|
@@ -2873,7 +2861,32 @@
|
|
|
return false
|
|
return false
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
-
|
|
|
|
|
|
|
+ addInfoChangeItemCh (val) {
|
|
|
|
|
+ let AllInfochangeItemList = {
|
|
|
|
|
+ SupplierId: this.formData.Id + '',
|
|
|
|
|
+ MInfoId: this.annualId,
|
|
|
|
|
+ InfochangeForm: this.infochangeItemList
|
|
|
|
|
+ }
|
|
|
|
|
+ annualapi.addInfoChangeItemCh(AllInfochangeItemList, this.$axios).then(res => {
|
|
|
|
|
+ if (res.data.code === 0) {
|
|
|
|
|
+ // 保存成功后,初始化数据,变成修改
|
|
|
|
|
+ this.initDatas()
|
|
|
|
|
+ if (val !== 1) {
|
|
|
|
|
+ this.$message({
|
|
|
|
|
+ type: 'success',
|
|
|
|
|
+ message: res.data.message
|
|
|
|
|
+ })
|
|
|
|
|
+ }
|
|
|
|
|
+ } else {
|
|
|
|
|
+ this.$message({
|
|
|
|
|
+ type: 'warning',
|
|
|
|
|
+ message: res.data.message
|
|
|
|
|
+ })
|
|
|
|
|
+ }
|
|
|
|
|
+ }).catch(err => {
|
|
|
|
|
+ console.error(err)
|
|
|
|
|
+ })
|
|
|
|
|
+ },
|
|
|
updateEntity () {
|
|
updateEntity () {
|
|
|
annualapi.supupdateEntity(this.formData.Id, this.formData, this.$axios).then(res => {
|
|
annualapi.supupdateEntity(this.formData.Id, this.formData, this.$axios).then(res => {
|
|
|
if (res.data.code === 0) {
|
|
if (res.data.code === 0) {
|