diff --git a/src/components/AddLocationModal.vue b/src/components/AddLocationModal.vue index 14a3f952..4ef6917e 100644 --- a/src/components/AddLocationModal.vue +++ b/src/components/AddLocationModal.vue @@ -15,30 +15,30 @@ - {{ translate("Type") }} + {{ translate("Type") }} {{ description }} - {{ translate("Area") }} * - + {{ translate("Area") }} * + - {{ translate("Aisle") }} * - + {{ translate("Aisle") }} * + - {{ translate("Section") }} * - + {{ translate("Section") }} * + - {{ translate("Level") }} * - + {{ translate("Level") }} * + - {{ translate("Sequence") }} - + {{ translate("Sequence") }} + @@ -103,7 +103,7 @@ export default defineComponent({ locationInfo: {} as any } }, - mounted() { + beforeMount() { this.locationInfo = this.location ? JSON.parse(JSON.stringify(this.location)) : {} }, computed: { diff --git a/src/components/FacilityAddressModal.vue b/src/components/FacilityAddressModal.vue index a61bf78e..87443ba7 100644 --- a/src/components/FacilityAddressModal.vue +++ b/src/components/FacilityAddressModal.vue @@ -13,32 +13,32 @@
- {{ translate("Address line 1") }} * - + {{ translate("Address line 1") }} * + - {{ translate("Address line 2") }} - + {{ translate("Address line 2") }} + - {{ translate("City") }} * - + {{ translate("City") }} * + - {{ translate("Country") }} + {{ translate("Country") }} {{ country.geoName }} - {{ translate("State") }} + {{ translate("State") }} {{ state.geoName }} - {{ translate("Zipcode") }} - + {{ translate("Zipcode") }} +
@@ -110,8 +110,10 @@ export default defineComponent({ } }, props: ['facilityId'], - async mounted() { + beforeMount() { this.address = JSON.parse(JSON.stringify(this.postalAddress)) + }, + async mounted() { await this.store.dispatch('util/fetchCountries', { countryGeoId: this.address?.countryGeoId }) }, methods: { diff --git a/src/components/FacilityGeoPointModal.vue b/src/components/FacilityGeoPointModal.vue index c387653e..5734a632 100644 --- a/src/components/FacilityGeoPointModal.vue +++ b/src/components/FacilityGeoPointModal.vue @@ -20,12 +20,12 @@ - {{ translate("Latitude") }} - + {{ translate("Latitude") }} + - {{ translate("Longitude") }} - + {{ translate("Longitude") }} + @@ -90,7 +90,7 @@ export default defineComponent({ geoPoint: {} as any } }, - mounted() { + beforeMount() { this.geoPoint = JSON.parse(JSON.stringify(this.postalAddress)) }, methods: {