diff --git a/modules/supplier/front/account/index.js b/modules/supplier/front/account/index.js index 069601a20..e72e6d0db 100644 --- a/modules/supplier/front/account/index.js +++ b/modules/supplier/front/account/index.js @@ -38,6 +38,13 @@ class Controller extends Section { return this.$http.patch(query, this.newBankEntity) .then(res => this.supplierAccount.bankEntityFk = res.data.id); } + + onResponse(response) { + this.supplier.postcode = response.code; + this.supplier.city = response.city; + this.supplier.provinceFk = response.provinceFk; + this.supplier.countryFk = response.countryFk; + } } ngModule.vnComponent('vnSupplierAccount', {