schedule page updates

This commit is contained in:
Bill Richardson 2023-10-03 17:02:27 -04:00
parent 4afa129284
commit 4b3a866382
2 changed files with 6 additions and 9 deletions

View file

@ -15,7 +15,7 @@
cmsWidgetName="ChangeShopLink"
justifyText="center"
class="mb-3 text-link-small"
marginTopSizeOverride="1" />
:marginTopSizeOverride="1" />
</template>
<div class="main-content-container">
<locationAlerts
@ -31,7 +31,7 @@
validationRules="date-required"
@date-clicked="openInshopTimeSlotsModal" />
<siteFooter
ref="siteFooter"
ref="navbar"
class="mt-5"
cmsWidgetName="SiteFooterWidget"
:isForwardActionDisabled="!meta.valid"
@ -51,7 +51,6 @@ import siteFooter from '@/iss-components/site-footer/site-footer.vue';
import textBlock from '@/digital-components/text-block/text-block.vue';
// Supporting files
import baseMixin from '@/mixins/base-mixin.js';
import {
calcDaysBetweenDates,
convertDateStringToDate,
@ -151,7 +150,7 @@ const getAvailableDates = async (
timeSlotsResponse = await useMainStore().getShopTimeSlots(
storeAction.payload.startDate,
storeAction.payload.endDate,
storeAction.payload.appointmentType,
storeAction.payload.shopAppointmentType,
storeAction.payload.providerNumber
);
} else {
@ -249,7 +248,7 @@ export default {
return this.splitCopyOnCMSPlaceHolder(this.ChangeShopLinkText);
},
appointmentType() {
return this.mainStore.order.serviceLocation.appointmentType;
return useMainStore().order.serviceLocation.appointmentType;
},
timeSlotsForSelectedDate() {
if (!this.selectedDate) {

View file

@ -695,7 +695,7 @@ export const useMainStore = defineStore({
endDate,
shopAppointmentType,
applicationName: applicationConfig.APPLICATION_NAME,
parentAccountNumber: this.payment.parentAccountNumber,
parentAccountNumber: 167132, // this.payment.parentAccountNumber,
carId: vehicle.carId,
lineItems,
glassPieces,
@ -709,9 +709,7 @@ export const useMainStore = defineStore({
hasAnsweredPartQuestions: !!order.damage.partQuestionAnswers?.length,
hasAnsweredMoldingQuestions: !!order.damage.moldingQuestionAnswers?.length,
hasAnsweredCapabilityQuestions: !!order.damage.capabilityQuestionAnswers?.length,
hasManuallySelectedParts:
!!this.applicationUser.pageData['vehicle-parts']?.partsOrQuestions
.length
hasManuallySelectedParts: !!this.applicationUser.pageData['vehicle-parts']?.partsOrQuestions.length
},
vehicle: {
year: vehicle.year,