commit
7705fe7d0e
1 changed files with 15 additions and 10 deletions
|
|
@ -183,6 +183,7 @@ export default {
|
||||||
zipContainsMilitaryBase: false,
|
zipContainsMilitaryBase: false,
|
||||||
zipCodeCtu: null,
|
zipCodeCtu: null,
|
||||||
shopProviderData: null,
|
shopProviderData: null,
|
||||||
|
navigatingForward: false,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
async beforeRouteEnter(to, from, next) {
|
async beforeRouteEnter(to, from, next) {
|
||||||
|
|
@ -477,6 +478,8 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
async forwardButtonAction() {
|
async forwardButtonAction() {
|
||||||
|
this.navigatingForward = true;
|
||||||
|
|
||||||
// clear items not needed for appointmentType
|
// clear items not needed for appointmentType
|
||||||
if (this.selectedAppointmentType == AppointmentTypeStrings.IN_SHOP) {
|
if (this.selectedAppointmentType == AppointmentTypeStrings.IN_SHOP) {
|
||||||
// if we have a provider.zipCodeCtu that's different than the servicelocation.zipCodeCtu then they
|
// if we have a provider.zipCodeCtu that's different than the servicelocation.zipCodeCtu then they
|
||||||
|
|
@ -537,16 +540,18 @@ export default {
|
||||||
watch: {
|
watch: {
|
||||||
zipCode: {
|
zipCode: {
|
||||||
handler(newValue) {
|
handler(newValue) {
|
||||||
getShopProviderData(this.zipCode).then(async (result) => {
|
if (!this.navigatingForward) {
|
||||||
this.shopProviderData = result.data;
|
getShopProviderData(this.zipCode).then(async (result) => {
|
||||||
if (this.selectedAppointmentType === "Mobile") {
|
this.shopProviderData = result.data;
|
||||||
this.selectedProvider = new Provider(
|
if (this.selectedAppointmentType === "Mobile") {
|
||||||
this.shopProviderData.mobileProviderNumber
|
this.selectedProvider = new Provider(
|
||||||
);
|
this.shopProviderData.mobileProviderNumber
|
||||||
} else {
|
);
|
||||||
this.selectedProvider = new Provider();
|
} else {
|
||||||
}
|
this.selectedProvider = new Provider();
|
||||||
});
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
selectedAppointmentType: {
|
selectedAppointmentType: {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue