Update fmg's apartmentNumberOrBusinessName to iss streetAddress2
This commit is contained in:
parent
a5fd5ad467
commit
035e03e72f
2 changed files with 9 additions and 8 deletions
|
|
@ -43,7 +43,7 @@
|
||||||
:onModalOpenedCallback="onModalOpened"
|
:onModalOpenedCallback="onModalOpened"
|
||||||
:onModalClosedCallback="onModalClosed"
|
:onModalClosedCallback="onModalClosed"
|
||||||
@isModalOpened="setModalStatus"
|
@isModalOpened="setModalStatus"
|
||||||
@footer-button-event="setMobileLocation">
|
@footerButtonEvent="setMobileLocation">
|
||||||
<template v-if="isModalOpened">
|
<template v-if="isModalOpened">
|
||||||
<addressQuestions
|
<addressQuestions
|
||||||
ref="addressQuestions"
|
ref="addressQuestions"
|
||||||
|
|
@ -109,7 +109,7 @@ export default {
|
||||||
default: () => ({
|
default: () => ({
|
||||||
addressQuestions: {
|
addressQuestions: {
|
||||||
streetAddress: '',
|
streetAddress: '',
|
||||||
apartmentNumberOrBusinessName: '',
|
streetAddress2: '',
|
||||||
city: '',
|
city: '',
|
||||||
state: '',
|
state: '',
|
||||||
zipCode: ''
|
zipCode: ''
|
||||||
|
|
@ -286,12 +286,14 @@ export default {
|
||||||
await this.onZipUpdateCallback(serviceZipCode);
|
await this.onZipUpdateCallback(serviceZipCode);
|
||||||
}
|
}
|
||||||
// Update the page level model
|
// Update the page level model
|
||||||
|
console.log(this.internalModel);
|
||||||
this.$emit('update:modelValue', this.internalModel);
|
this.$emit('update:modelValue', this.internalModel);
|
||||||
|
|
||||||
this.closeModal();
|
this.closeModal();
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// Update the page level model
|
// Update the page level model
|
||||||
|
console.log(this.internalModel);
|
||||||
this.$emit('update:modelValue', this.internalModel);
|
this.$emit('update:modelValue', this.internalModel);
|
||||||
|
|
||||||
this.closeModal();
|
this.closeModal();
|
||||||
|
|
|
||||||
|
|
@ -194,7 +194,7 @@ export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
streetAddress: this.getServiceAddressFromStore(),
|
streetAddress: this.getServiceAddressFromStore(),
|
||||||
apartmentNumberOrBusinessName: this.getServiceAddress2FromStore(),
|
streetAddress2: this.getServiceAddress2FromStore(),
|
||||||
city: this.getServiceCityFromStore(),
|
city: this.getServiceCityFromStore(),
|
||||||
state: this.getServiceStateFromStore(),
|
state: this.getServiceStateFromStore(),
|
||||||
zipCode: this.getServiceZipCodeFromStore(),
|
zipCode: this.getServiceZipCodeFromStore(),
|
||||||
|
|
@ -243,7 +243,7 @@ export default {
|
||||||
return {
|
return {
|
||||||
addressQuestions: {
|
addressQuestions: {
|
||||||
streetAddress: this.streetAddress,
|
streetAddress: this.streetAddress,
|
||||||
apartmentNumberOrBusinessName: this.apartmentNumberOrBusinessName,
|
streetAddress2: this.streetAddress2,
|
||||||
city: this.city,
|
city: this.city,
|
||||||
state: this.state,
|
state: this.state,
|
||||||
zipCode: this.zipCode
|
zipCode: this.zipCode
|
||||||
|
|
@ -253,8 +253,7 @@ export default {
|
||||||
},
|
},
|
||||||
set(newValue) {
|
set(newValue) {
|
||||||
this.streetAddress = newValue.addressQuestions.streetAddress;
|
this.streetAddress = newValue.addressQuestions.streetAddress;
|
||||||
this.apartmentNumberOrBusinessName =
|
this.streetAddress2 = newValue.addressQuestions.streetAddress2;
|
||||||
newValue.addressQuestions.apartmentNumberOrBusinessName;
|
|
||||||
this.city = newValue.addressQuestions.city;
|
this.city = newValue.addressQuestions.city;
|
||||||
this.state = newValue.addressQuestions.state;
|
this.state = newValue.addressQuestions.state;
|
||||||
this.zipCode = newValue.addressQuestions.zipCode;
|
this.zipCode = newValue.addressQuestions.zipCode;
|
||||||
|
|
@ -342,7 +341,7 @@ export default {
|
||||||
async forwardButtonAction() {
|
async forwardButtonAction() {
|
||||||
useMainStore().saveServiceLocation({
|
useMainStore().saveServiceLocation({
|
||||||
address: this.streetAddress,
|
address: this.streetAddress,
|
||||||
address2: this.apartmentNumberOrBusinessName,
|
address2: this.streetAddress2,
|
||||||
city: this.city,
|
city: this.city,
|
||||||
state: this.state,
|
state: this.state,
|
||||||
zipCode: this.zipCode,
|
zipCode: this.zipCode,
|
||||||
|
|
@ -417,7 +416,7 @@ export default {
|
||||||
},
|
},
|
||||||
resetMobileLocation() {
|
resetMobileLocation() {
|
||||||
this.streetAddress = '';
|
this.streetAddress = '';
|
||||||
this.apartmentNumberOrBusinessName = '';
|
this.streetAddress2 = '';
|
||||||
this.city = '';
|
this.city = '';
|
||||||
|
|
||||||
this.isVehicleProtected = null;
|
this.isVehicleProtected = null;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue