-
-
-
-
-
-
-
-
-
-
-
+
@@ -207,7 +213,7 @@ export default {
})
) {
windShieldOptions.selectedWindshieldDamageType =
- damageLocationsSelected.REPLACE;
+ damageLocationsSelected.REPLACE;
windShieldOptions.selectedWindshieldReplaceOptions.push(
damageLocationsSelected.SINGLE
);
@@ -222,7 +228,7 @@ export default {
})
) {
windShieldOptions.selectedWindshieldDamageType =
- damageLocationsSelected.REPLACE;
+ damageLocationsSelected.REPLACE;
windShieldOptions.selectedWindshieldReplaceOptions.push(
damageLocationsSelected.DRIVER
);
@@ -237,7 +243,7 @@ export default {
})
) {
windShieldOptions.selectedWindshieldDamageType =
- damageLocationsSelected.REPLACE;
+ damageLocationsSelected.REPLACE;
windShieldOptions.selectedWindshieldReplaceOptions.push(
damageLocationsSelected.PASSENGER
);
@@ -302,147 +308,147 @@ export default {
async forwardButtonAction() {
await this.mainStore.saveVehicleDamage(this.isWindshieldRepair,
- this.selectedGlassToReplace(),
- this.selectedWindshieldOptions.selectedWindshieldChipCount);
- return this.navigateForward();
- },
+ this.selectedGlassToReplace(),
+ this.selectedWindshieldOptions.selectedWindshieldChipCount);
+ return this.navigateForward();
+ },
- navigateForward() {
- if (this.mainStore.damage.isRepair) {
- this.$router.navigate(
- this.navigationScenarios.CLICKED_FORWARD_WITH_REPAIR,
- this.$route
- );
- }
- else {
- // If vin already exists, navigate directly to vin-lookup
- if (this.mainStore.order.vehicle.vin) {
+ navigateForward() {
+ if (this.mainStore.damage.isRepair) {
this.$router.navigate(
- this.navigationScenarios.CLICKED_FORWARD_WITH_VIN,
- this.$route
- );
- } else {
- this.$router.navigate(
- this.navigationScenarios.CLICKED_FORWARD_WITHOUT_VIN,
+ this.navigationScenarios.CLICKED_FORWARD_WITH_REPAIR,
this.$route
);
}
- }
- },
-
- selectedGlassToReplace() {
- const selectedGlassToReplace = [];
- if (this.isWindshieldDamageLocation && !this.isWindshieldRepair) {
- this.selectedWindshieldOptions.selectedWindshieldReplaceOptions.forEach(
- (wsItem) => {
- selectedGlassToReplace.push({
- glassLocation: damageLocationsSelected.WINDSHIELD,
- glassName: wsItem,
- });
+ else {
+ // If vin already exists, navigate directly to vin-lookup
+ if (this.mainStore.order.vehicle.vin) {
+ this.$router.navigate(
+ this.navigationScenarios.CLICKED_FORWARD_WITH_VIN,
+ this.$route
+ );
+ } else {
+ this.$router.navigate(
+ this.navigationScenarios.CLICKED_FORWARD_WITHOUT_VIN,
+ this.$route
+ );
}
- );
- }
+ }
+ },
- if (this.isDriverSideReplace) {
- this.sideDoorOptionsData.selectedDriverSideReplaceOptions.forEach((driverItem) => {
- selectedGlassToReplace.push({
- glassLocation: damageLocationsSelected.DRIVER,
- glassName: driverItem,
+ selectedGlassToReplace() {
+ const selectedGlassToReplace = [];
+ if (this.isWindshieldDamageLocation && !this.isWindshieldRepair) {
+ this.selectedWindshieldOptions.selectedWindshieldReplaceOptions.forEach(
+ (wsItem) => {
+ selectedGlassToReplace.push({
+ glassLocation: damageLocationsSelected.WINDSHIELD,
+ glassName: wsItem,
+ });
+ }
+ );
+ }
+
+ if (this.isDriverSideReplace) {
+ this.sideDoorOptionsData.selectedDriverSideReplaceOptions.forEach((driverItem) => {
+ selectedGlassToReplace.push({
+ glassLocation: damageLocationsSelected.DRIVER,
+ glassName: driverItem,
+ });
});
+ }
+
+ if (this.isPassengerSideReplace) {
+ this.sideDoorOptionsData.selectedPassengerSideReplaceOptions.forEach(
+ (passengerItem) => {
+ selectedGlassToReplace.push({
+ glassLocation: damageLocationsSelected.PASSENGER,
+ glassName: passengerItem,
+ });
+ }
+ );
+ }
+
+ if (this.isRearWindowDamageLocation) {
+ selectedGlassToReplace.push({
+ glassLocation: damageLocationsSelected.REAR,
+ glassName: this.selectedRearReplaceOptions,
+ });
+ }
+
+ return selectedGlassToReplace;
+ },
+ },
+ computed: {
+ isWindshieldDamageLocation() {
+ return this.selectedDamageLocations.some((selectedDamages) => {
+ return selectedDamages.toUpperCase() === damageLocationsCms.WINDSHIELD;
});
- }
-
- if (this.isPassengerSideReplace) {
- this.sideDoorOptionsData.selectedPassengerSideReplaceOptions.forEach(
- (passengerItem) => {
- selectedGlassToReplace.push({
- glassLocation: damageLocationsSelected.PASSENGER,
- glassName: passengerItem,
- });
- }
- );
- }
-
- if (this.isRearWindowDamageLocation) {
- selectedGlassToReplace.push({
- glassLocation: damageLocationsSelected.REAR,
- glassName: this.selectedRearReplaceOptions,
+ },
+ isSideDoorDamageLocation() {
+ return this.selectedDamageLocations.some((selectedDamages) => {
+ return selectedDamages.toUpperCase() === damageLocationsCms.SIDEDOOR;
});
- }
-
- return selectedGlassToReplace;
- },
- },
- computed: {
- isWindshieldDamageLocation() {
- return this.selectedDamageLocations.some((selectedDamages) => {
- return selectedDamages.toUpperCase() === damageLocationsCms.WINDSHIELD;
- });
- },
- isSideDoorDamageLocation() {
- return this.selectedDamageLocations.some((selectedDamages) => {
- return selectedDamages.toUpperCase() === damageLocationsCms.SIDEDOOR;
- });
- },
- isRearWindowDamageLocation() {
- return this.selectedDamageLocations.some((selectedDamages) => {
- return selectedDamages.toUpperCase() === damageLocationsCms.REARWINDOW;
- });
- },
- isWindshieldRepair() {
- return (
- this.isWindshieldDamageLocation &&
- this.selectedWindshieldOptions.selectedWindshieldDamageType ===
+ },
+ isRearWindowDamageLocation() {
+ return this.selectedDamageLocations.some((selectedDamages) => {
+ return selectedDamages.toUpperCase() === damageLocationsCms.REARWINDOW;
+ });
+ },
+ isWindshieldRepair() {
+ return (
+ this.isWindshieldDamageLocation &&
+ this.selectedWindshieldOptions.selectedWindshieldDamageType ===
damageLocationsSelected.REPAIR
- );
- },
- isDriverSideReplace() {
- if (!this.isSideDoorDamageLocation) return false;
+ );
+ },
+ isDriverSideReplace() {
+ if (!this.isSideDoorDamageLocation) return false;
- return this.sideDoorOptionsData.selectedDoorSides.some((selectedDriverSide) => {
- return selectedDriverSide.toUpperCase() === damageLocationsCms.DRIVERSIDE;
- });
- },
- isPassengerSideReplace() {
- if (!this.isSideDoorDamageLocation) return false;
+ return this.sideDoorOptionsData.selectedDoorSides.some((selectedDriverSide) => {
+ return selectedDriverSide.toUpperCase() === damageLocationsCms.DRIVERSIDE;
+ });
+ },
+ isPassengerSideReplace() {
+ if (!this.isSideDoorDamageLocation) return false;
- return this.sideDoorOptionsData.selectedDoorSides.some((selectedPassengerSide) => {
- return selectedPassengerSide.toUpperCase() === damageLocationsCms.PASSENGERSIDE;
- });
- },
- hasRepairReplaceConflict() {
- return (
- this.isWindshieldDamageLocation &&
- this.selectedDamageLocations.length > 1 &&
- this.isWindshieldRepair
- );
- },
- hasSplitSingleConflict() {
- if (
- !this.selectedDamageLocations?.includes("Windshield") ||
- this.selectedWindshieldOptions.selectedWindshieldDamageType ===
+ return this.sideDoorOptionsData.selectedDoorSides.some((selectedPassengerSide) => {
+ return selectedPassengerSide.toUpperCase() === damageLocationsCms.PASSENGERSIDE;
+ });
+ },
+ hasRepairReplaceConflict() {
+ return (
+ this.isWindshieldDamageLocation &&
+ this.selectedDamageLocations.length > 1 &&
+ this.isWindshieldRepair
+ );
+ },
+ hasSplitSingleConflict() {
+ if (
+ !this.selectedDamageLocations?.includes("Windshield") ||
+ this.selectedWindshieldOptions.selectedWindshieldDamageType ===
damageLocationsSelected.REPAIR ||
- !this.selectedWindshieldOptions.selectedWindshieldReplaceOptions
- )
+ !this.selectedWindshieldOptions.selectedWindshieldReplaceOptions
+ )
return false;
- return (
- this.selectedWindshieldOptions.selectedWindshieldReplaceOptions?.some(
- (selectedSingleWindshield) => {
- return (
- selectedSingleWindshield.toUpperCase() ===
- damageLocationsSelected.SINGLE.toUpperCase()
- );
- }
- ) &&
- (this.selectedWindshieldOptions.selectedWindshieldReplaceOptions?.some(
- (selectedDriverWindshield) => {
- return (
- selectedDriverWindshield.toUpperCase() ===
- damageLocationsSelected.DRIVER.toUpperCase()
- );
- }
- ) ||
+ return (
+ this.selectedWindshieldOptions.selectedWindshieldReplaceOptions?.some(
+ (selectedSingleWindshield) => {
+ return (
+ selectedSingleWindshield.toUpperCase() ===
+ damageLocationsSelected.SINGLE.toUpperCase()
+ );
+ }
+ ) &&
+ (this.selectedWindshieldOptions.selectedWindshieldReplaceOptions?.some(
+ (selectedDriverWindshield) => {
+ return (
+ selectedDriverWindshield.toUpperCase() ===
+ damageLocationsSelected.DRIVER.toUpperCase()
+ );
+ }
+ ) ||
this.selectedWindshieldOptions.selectedWindshieldReplaceOptions?.some(
(selectedPassengerWindshield) => {
return (
@@ -451,31 +457,39 @@ export default {
);
}
))
- );
+ );
+ },
+ shouldDisplayVehicleChangeAlert() {
+ return this.$route.params[this.routerParams.DISPLAY_VEHICLE_CHANGE_ALERT];
+ }
},
- shouldDisplayVehicleChangeAlert() {
- return this.$route.params[this.routerParams.DISPLAY_VEHICLE_CHANGE_ALERT];
- }
- },
- components: {
- siteHeader,
- siteFooter,
- vehicleBanner,
- siteSubHeader,
- sideDoorOptions,
- damageLocationQuestion,
- windshieldOptions,
- replaceOptionsQuestion,
- Form,
- alert,
- },
-};
-
-
diff --git a/src/layouts/vehicle-make/vehicle-make.vue b/src/layouts/vehicle-make/vehicle-make.vue
index 2b91a3a7..519ae1fd 100644
--- a/src/layouts/vehicle-make/vehicle-make.vue
+++ b/src/layouts/vehicle-make/vehicle-make.vue
@@ -1,51 +1,45 @@
-
-
-
-
+
+
diff --git a/src/layouts/vehicle-model/vehicle-model.vue b/src/layouts/vehicle-model/vehicle-model.vue
index cf34cbbd..3c65af26 100644
--- a/src/layouts/vehicle-model/vehicle-model.vue
+++ b/src/layouts/vehicle-model/vehicle-model.vue
@@ -1,80 +1,78 @@
-
-
-
-
-
+
-
+};
+
+
+
diff --git a/src/layouts/vehicle-style/vehicle-style.vue b/src/layouts/vehicle-style/vehicle-style.vue
index 893de9d0..35baf525 100644
--- a/src/layouts/vehicle-style/vehicle-style.vue
+++ b/src/layouts/vehicle-style/vehicle-style.vue
@@ -1,22 +1,18 @@
-
+
-
@@ -124,3 +120,22 @@ export default {
}
};
+
+
diff --git a/src/layouts/vehicle-year/vehicle-year.vue b/src/layouts/vehicle-year/vehicle-year.vue
index 10ea7b52..d83d8911 100644
--- a/src/layouts/vehicle-year/vehicle-year.vue
+++ b/src/layouts/vehicle-year/vehicle-year.vue
@@ -1,101 +1,115 @@
-
-
-
-
-
+
-
+};
+
+
+
diff --git a/src/layouts/welcome-page/welcome-page.vue b/src/layouts/welcome-page/welcome-page.vue
index 82fe74a2..e0633b2f 100644
--- a/src/layouts/welcome-page/welcome-page.vue
+++ b/src/layouts/welcome-page/welcome-page.vue
@@ -1,116 +1,115 @@
-