Merge branch 'release/2024.11.07' into rlsmerge/2024.11.07-to-develop-cn
This commit is contained in:
commit
2f0a0bcc12
4 changed files with 31 additions and 4 deletions
|
|
@ -57,6 +57,7 @@ const storeActions = {
|
||||||
GET_RECAL_PARTS_AND_SAVE_TO_LINE_ITEMS: "getRecalPartsAndSaveToLineItems",
|
GET_RECAL_PARTS_AND_SAVE_TO_LINE_ITEMS: "getRecalPartsAndSaveToLineItems",
|
||||||
|
|
||||||
// DEPENDENCY MUTATIONS
|
// DEPENDENCY MUTATIONS
|
||||||
|
RESET_VEHICLE_STATE_AND_DEPENDENCIES: "resetVehicleStateAndDependencies",
|
||||||
RESET_DAMAGE_STATE_AND_DEPENDENCIES: "resetDamageAndDependencies",
|
RESET_DAMAGE_STATE_AND_DEPENDENCIES: "resetDamageAndDependencies",
|
||||||
RESET_REGISTRATION_STATE_AND_DEPENDENCIES: "resetRegistrationAndDependencies",
|
RESET_REGISTRATION_STATE_AND_DEPENDENCIES: "resetRegistrationAndDependencies",
|
||||||
RESET_PARTS_STATE_AND_DEPENDENCIES: "resetPartsAndDependencies",
|
RESET_PARTS_STATE_AND_DEPENDENCIES: "resetPartsAndDependencies",
|
||||||
|
|
|
||||||
|
|
@ -110,7 +110,7 @@
|
||||||
<span>{{ subtotalText }}</span>
|
<span>{{ subtotalText }}</span>
|
||||||
<span>{{ getLineItemAmount(subTotal, showCoverageAsPending) }}</span>
|
<span>{{ getLineItemAmount(subTotal, showCoverageAsPending) }}</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="sales-tax">
|
<div class="sales-tax" v-show="showSalesTax">
|
||||||
<span>{{ salesTaxText }}</span>
|
<span>{{ salesTaxText }}</span>
|
||||||
<span>{{ getLineItemAmount(salesTax) }}</span>
|
<span>{{ getLineItemAmount(salesTax) }}</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -318,6 +318,10 @@ export default {
|
||||||
showCoverageAsVerified() {
|
showCoverageAsVerified() {
|
||||||
return this.showInsuranceCoverageAs === coverageStatus.VERIFIED;
|
return this.showInsuranceCoverageAs === coverageStatus.VERIFIED;
|
||||||
},
|
},
|
||||||
|
showSalesTax() {
|
||||||
|
const tax = parseFloat(this.salesTax).toFixed(2);
|
||||||
|
return tax > 0;
|
||||||
|
},
|
||||||
currentDeductible() {
|
currentDeductible() {
|
||||||
const deductible = this.insuranceDeductible;
|
const deductible = this.insuranceDeductible;
|
||||||
if (!(deductible === 0 || deductible > 0)) {
|
if (!(deductible === 0 || deductible > 0)) {
|
||||||
|
|
|
||||||
|
|
@ -97,8 +97,6 @@ const routes = [
|
||||||
);
|
);
|
||||||
updateOrCreateFunnelCookie();
|
updateOrCreateFunnelCookie();
|
||||||
}
|
}
|
||||||
//Update external parameter state
|
|
||||||
updateExternalParameterState();
|
|
||||||
|
|
||||||
//Affiliate Cookies
|
//Affiliate Cookies
|
||||||
const affiliateCookies = getAffiliateCookies();
|
const affiliateCookies = getAffiliateCookies();
|
||||||
|
|
@ -115,12 +113,14 @@ const routes = [
|
||||||
to.query.fmgPage
|
to.query.fmgPage
|
||||||
);
|
);
|
||||||
|
|
||||||
|
//Update external parameter state
|
||||||
|
updateExternalParameterState();
|
||||||
|
|
||||||
// clear part related state because heritage selected a new vehicle
|
// clear part related state because heritage selected a new vehicle
|
||||||
if (
|
if (
|
||||||
to.query.fmgPage === fmgPageValues.VEHICLE &&
|
to.query.fmgPage === fmgPageValues.VEHICLE &&
|
||||||
eval(getFunnelCookie()?.HasDelayedClaimRegistration)
|
eval(getFunnelCookie()?.HasDelayedClaimRegistration)
|
||||||
) {
|
) {
|
||||||
console.log(new Date() + "Router: Policy Vehicle Changed");
|
|
||||||
store.commit(storeMutations.RESET_GLASS_PARTS_STATE);
|
store.commit(storeMutations.RESET_GLASS_PARTS_STATE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -634,6 +634,22 @@ function getRedirectedStartPage() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function updateExternalParameterState() {
|
function updateExternalParameterState() {
|
||||||
|
// if there is an existing external parameter state then they have already been through from an external source(LeadGen) and
|
||||||
|
// are returning. clear out prior related things that need to be selected again like parts and damage type.
|
||||||
|
if (
|
||||||
|
store.getters.externalParameterState?.isExternalParameter ==
|
||||||
|
externalParameterStatus.INACTIVE
|
||||||
|
) {
|
||||||
|
store.dispatch(storeActions.RESET_VEHICLE_STATE_AND_DEPENDENCIES);
|
||||||
|
store.dispatch(storeActions.SAVE_SERVICE_ZIP_CODE_INFO, {
|
||||||
|
state: null,
|
||||||
|
zipCode: null,
|
||||||
|
zipCodeCtu: null,
|
||||||
|
});
|
||||||
|
store.dispatch(storeActions.SAVE_EMAIL, null);
|
||||||
|
store.dispatch(storeActions.RESET_DAMAGE_STATE_AND_DEPENDENCIES);
|
||||||
|
}
|
||||||
|
|
||||||
const externalParameterYear = getQuerystringParameter(queryStrings.VEHICLE_YEAR);
|
const externalParameterYear = getQuerystringParameter(queryStrings.VEHICLE_YEAR);
|
||||||
const externalParameterMake = getQuerystringParameter(queryStrings.VEHICLE_MAKE);
|
const externalParameterMake = getQuerystringParameter(queryStrings.VEHICLE_MAKE);
|
||||||
const externalParameterModel = getQuerystringParameter(queryStrings.VEHICLE_MODEL);
|
const externalParameterModel = getQuerystringParameter(queryStrings.VEHICLE_MODEL);
|
||||||
|
|
|
||||||
|
|
@ -1153,6 +1153,12 @@ export const actions = {
|
||||||
},
|
},
|
||||||
|
|
||||||
// Dependency Actions
|
// Dependency Actions
|
||||||
|
resetVehicleStateAndDependencies(context) {
|
||||||
|
context.commit(storeMutations.RESET_VEHICLE_STATE);
|
||||||
|
|
||||||
|
context.dispatch(storeActions.RESET_DAMAGE_STATE_AND_DEPENDENCIES);
|
||||||
|
},
|
||||||
|
|
||||||
resetDamageAndDependencies(context) {
|
resetDamageAndDependencies(context) {
|
||||||
context.commit(storeMutations.RESET_DAMAGE_STATE);
|
context.commit(storeMutations.RESET_DAMAGE_STATE);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue