Merge branch 'feature/kroell/INSR-8523' of https://github.com/Safelite/DigitalConsumer.ISS into feature/kroell/INSR-8523

This commit is contained in:
Katie Kroell 2026-03-10 13:23:35 -04:00
commit d5804c72e5
5 changed files with 13 additions and 3 deletions

View file

@ -1,6 +1,7 @@
const vehicleLookupAlertTypes = Object.freeze({
NOT_FOUND: 'notFound',
NOT_MATCHED: 'notMatched',
NO_SERVICE: 'noService',
TWO_IDENTICAL_YMM_MATCHED: 'twoIdenticalYMMMatched',
PERFECT_MATCH: 'perfectMatch'
});

View file

@ -252,7 +252,8 @@ export default {
const carFound = carsFound[0].vehicle;
if (!carFound.canSafeliteService) {
return this.mainStore.setBailout(bailoutMessage.HeavyTruckVehicle(carFound.carId));
this.mainStore.setBailout(bailoutMessage.HeavyTruckVehicle(carFound.carId));
return this.$router.push({ name: 'bailout' });
}
this.isCarIdDifferent = carFound.carId !== useMainStore().order.vehicle.carId;

View file

@ -257,7 +257,11 @@ export default {
// Vehicle found from VIN lookup
const vehicleFromLookup = vinLookupResponse.data.vehicle;
if (!vehicleFromLookup.canSafeliteService) {
return this.mainStore.setBailout(bailoutMessage.HeavyTruckVehicle(vehicleFromLookup.carId));
this.mainStore.setBailout({
type: 'HeavyTruckVehicle',
carId: vehicleFromLookup.carId
});
return this.navigateForward();
}
// Check if the CarId has changed

View file

@ -188,7 +188,9 @@ export default {
const vehicleLookupResponse = await this.lookupVehicleByVin(this.selectedVehicleVin);
if (!vehicleLookupResponse?.data.canSafeliteService) {
this.mainStore.setBailout(bailoutMessage.HeavyTruckVehicle(this.mainStore.order.vehicle.carId));
this.mainStore.setBailout(
bailoutMessage.HeavyTruckVehicle(vehicleLookupResponse?.data?.carId)
);
}
useMainStore().updateVehicle({
...vehicleLookupResponse.data,

View file

@ -181,6 +181,8 @@ export default {
if (!vehicleLookupResponse.data.canSafeliteService) {
this.mainStore.setBailout(bailoutMessage.HeavyTruckVehicle(vehicleLookupResponse.data.carId));
this.resetVehicleFromLookup();
showIssLoadingModal(false);
return;
}
// Add vin bcs the response from the service doesn't contain vin