CASH-818
defect fixes for CASH-1149 and CASH-1154
This commit is contained in:
parent
f604f3c961
commit
835cfb01ac
1 changed files with 1 additions and 20 deletions
|
|
@ -119,6 +119,7 @@
|
||||||
@update:modelValue="onShopModelUpdated"
|
@update:modelValue="onShopModelUpdated"
|
||||||
@updated-zipcode-ctu="setZipcodeCtu"
|
@updated-zipcode-ctu="setZipcodeCtu"
|
||||||
@update-shop-provider-data="shopProviderData = $event"
|
@update-shop-provider-data="shopProviderData = $event"
|
||||||
|
@updated-contains-military-base="setContainsMilitaryBase"
|
||||||
:zipCode="zipCode"
|
:zipCode="zipCode"
|
||||||
:isDisplayed="isShopQuestionDisplayed"
|
:isDisplayed="isShopQuestionDisplayed"
|
||||||
cmsWidgetName="YourSafeliteShopWidget" />
|
cmsWidgetName="YourSafeliteShopWidget" />
|
||||||
|
|
@ -1607,35 +1608,15 @@ export default {
|
||||||
appointmentType: {
|
appointmentType: {
|
||||||
handler(newValue, oldValue) {
|
handler(newValue, oldValue) {
|
||||||
if (newValue === AppointmentTypeStrings.MOBILE) {
|
if (newValue === AppointmentTypeStrings.MOBILE) {
|
||||||
const providerExists = this.shopProviderData.shopProviders.some(
|
|
||||||
(p) => p.providerNumber === this.selectedProvider?.providerNumber
|
|
||||||
);
|
|
||||||
if (providerExists) {
|
|
||||||
this.lastInshopProvider = this.selectedProvider;
|
|
||||||
}
|
|
||||||
this.selectedProvider = new Provider(
|
this.selectedProvider = new Provider(
|
||||||
this.shopProviderData.mobileProviderNumber
|
this.shopProviderData.mobileProviderNumber
|
||||||
);
|
);
|
||||||
this.isMobileSelected = true;
|
this.isMobileSelected = true;
|
||||||
} else if (
|
|
||||||
newValue === AppointmentTypeStrings.DROP_OFF ||
|
|
||||||
newValue === AppointmentTypeStrings.IN_SHOP ||
|
|
||||||
newValue === AppointmentTypeStrings.IN_SHOP_OR_DROP_OFF
|
|
||||||
) {
|
|
||||||
const providerExists = this.shopProviderData.shopProviders.some(
|
|
||||||
(p) => p.providerNumber === this.selectedProvider?.providerNumber
|
|
||||||
);
|
|
||||||
if (providerExists) {
|
|
||||||
this.selectedProvider = this.lastInshopProvider;
|
|
||||||
} else {
|
|
||||||
this.selectedProvider = this.shopProviderData.shopProviders[0];
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
this.selectedProvider = this.shopProviderData.shopProviders[0];
|
this.selectedProvider = this.shopProviderData.shopProviders[0];
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
appointmentTypeFromAppointmentTypeQuestion: {
|
appointmentTypeFromAppointmentTypeQuestion: {
|
||||||
handler(newValue, oldValue) {
|
handler(newValue, oldValue) {
|
||||||
if (newValue === AppointmentTypeStrings.MOBILE) {
|
if (newValue === AppointmentTypeStrings.MOBILE) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue