CSR-520
This commit is contained in:
parent
78f965ec4f
commit
3466347eb7
1 changed files with 5 additions and 0 deletions
|
|
@ -82,6 +82,7 @@ import {
|
||||||
Form,
|
Form,
|
||||||
defineRule,
|
defineRule,
|
||||||
} from "vee-validate";
|
} from "vee-validate";
|
||||||
|
|
||||||
// DEFINE VALIDATION RULES
|
// DEFINE VALIDATION RULES
|
||||||
defineRule(
|
defineRule(
|
||||||
"license-plate-required",
|
"license-plate-required",
|
||||||
|
|
@ -104,6 +105,7 @@ export default {
|
||||||
async beforeRouteEnter(to, from, next) {
|
async beforeRouteEnter(to, from, next) {
|
||||||
// Call APIs
|
// Call APIs
|
||||||
const cmsContentPromise = fetchCmsContentForPage(to.query.fmgPage);
|
const cmsContentPromise = fetchCmsContentForPage(to.query.fmgPage);
|
||||||
|
|
||||||
// Settle promises and get results
|
// Settle promises and get results
|
||||||
const promiseResultMap = [
|
const promiseResultMap = [
|
||||||
{
|
{
|
||||||
|
|
@ -234,6 +236,7 @@ export default {
|
||||||
});
|
});
|
||||||
this.isCarIdDifferent =
|
this.isCarIdDifferent =
|
||||||
vinLookup.data.vehicle.carId !== store.getters.vehicle.carId;
|
vinLookup.data.vehicle.carId !== store.getters.vehicle.carId;
|
||||||
|
|
||||||
if (
|
if (
|
||||||
this.isCarIdDifferent &&
|
this.isCarIdDifferent &&
|
||||||
vinLookup.data.vehicle.carId !== this.previouslyEnteredCarId
|
vinLookup.data.vehicle.carId !== this.previouslyEnteredCarId
|
||||||
|
|
@ -249,11 +252,13 @@ export default {
|
||||||
this.$refs.funnelFooter.removeLoader();
|
this.$refs.funnelFooter.removeLoader();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
this.updateCustomerInfo(
|
this.updateCustomerInfo(
|
||||||
vinLookup.data.vin,
|
vinLookup.data.vin,
|
||||||
vinLookup.data.vehicle,
|
vinLookup.data.vehicle,
|
||||||
zipValidation.data.state
|
zipValidation.data.state
|
||||||
);
|
);
|
||||||
|
|
||||||
this.navigateForward();
|
this.navigateForward();
|
||||||
},
|
},
|
||||||
navigateForward() {
|
navigateForward() {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue