sync up with most recent changes
This commit is contained in:
parent
ca58d87083
commit
73044bac7a
1 changed files with 16 additions and 31 deletions
|
|
@ -176,9 +176,6 @@ export default {
|
|||
},
|
||||
data() {
|
||||
return {
|
||||
// isVerified: useMainStore().order.payment.insuranceCoverage.isVerified,
|
||||
// supportingItems: [],
|
||||
// pricedGlassParts: [],
|
||||
availableLineItems: [],
|
||||
selectedProvider: '',
|
||||
deductibleText: 'Your deductible is:',
|
||||
|
|
@ -203,27 +200,19 @@ export default {
|
|||
'BodyText')?.replaceAll('{custom:costSavings}', this.costSavings);
|
||||
},
|
||||
coverageStatementSubHeader() {
|
||||
const subheader = this.getSubheaderTextFromCms('SiteSubHeaderWidget');
|
||||
return subheader;
|
||||
return this.getSubheaderTextFromCms('SiteSubHeaderWidget');
|
||||
},
|
||||
secondaryText() {
|
||||
const secondaryText = this.getSecondaryTextFromCms('SiteSubHeaderWidget');
|
||||
return secondaryText;
|
||||
return this.getSecondaryTextFromCms('SiteSubHeaderWidget');
|
||||
},
|
||||
explanatoryText() {
|
||||
const explanatoryText = this.getExplantoryTextFromCms('ExplanatoryTextWidget');
|
||||
return explanatoryText;
|
||||
return this.getExplantoryTextFromCms('ExplanatoryTextWidget');
|
||||
},
|
||||
nextStepsHeader() {
|
||||
const header = this.getHeaderTextFromCms('NextStepsWidget');
|
||||
return header;
|
||||
return this.getHeaderTextFromCms('NextStepsWidget');
|
||||
},
|
||||
nextStepsBody() {
|
||||
const body = this.getBodyTextFromCms('NextStepsWidget')?.replaceAll('{custom:damage}', this.damageText);
|
||||
return body;
|
||||
},
|
||||
continueWithSchedulingBodyText() {
|
||||
return this.getCmsContent('continueWithSchedulingCopy', 'BodyText');
|
||||
return this.getBodyTextFromCms('NextStepsWidget')?.replaceAll('{custom:damage}', this.damageText);
|
||||
},
|
||||
unverifiedADASNextStepsBodyText() {
|
||||
return this.getCmsContent('UnverifiedADASNextStepsWidget', 'BodyText')?.replaceAll('{custom:damage}', this.damageText);
|
||||
|
|
@ -239,12 +228,12 @@ export default {
|
|||
return damageString === 'match' ? '' : damageString;
|
||||
},
|
||||
vehicleDeductible() {
|
||||
if (this.mainStore.order.damage.isRepair) {
|
||||
const repairDeductible = this.mainStore.order.policy.deductible.repair;
|
||||
if (useMainStore().order.damage.isRepair) {
|
||||
const repairDeductible = useMainStore().order.policy.deductible.repair;
|
||||
return repairDeductible;
|
||||
}
|
||||
|
||||
const replaceDeductible = this.mainStore.order.policy.deductible.replace;
|
||||
const replaceDeductible = useMainStore().order.policy.deductible.replace;
|
||||
return replaceDeductible;
|
||||
},
|
||||
formattedDeductible() {
|
||||
|
|
@ -260,7 +249,7 @@ export default {
|
|||
return useMainStore().payment.insuranceCoverage.isVerified;
|
||||
},
|
||||
verifiedNoComp() {
|
||||
return this.policyLookupSuccessful ? store.order.policy.noCoverage : false;
|
||||
return this.policyLookupSuccessful ? useMainStore().order.policy.noCoverage : false;
|
||||
},
|
||||
verifiedITAC() {
|
||||
return this.policyLookupSuccessful
|
||||
|
|
@ -271,7 +260,7 @@ export default {
|
|||
return !this.verifiedNoComp && this.totalServicePrice >= this.vehicleDeductible;
|
||||
},
|
||||
verifiedDeductible() {
|
||||
return this.isClaimRegistrationRequired
|
||||
return useMainStore().isClaimRegistrationRequired
|
||||
? this.registerClaimSuccessful && this.coveredAndServicePriceAboveOrEqualDeductible
|
||||
: this.policyLookupSuccessful && this.coveredAndServicePriceAboveOrEqualDeductible;
|
||||
},
|
||||
|
|
@ -279,11 +268,11 @@ export default {
|
|||
return !this.verifiedDeductible && !this.verifiedITAC && !this.verifiedNoComp;
|
||||
},
|
||||
isADAS() {
|
||||
const parts = store.order.lineItems.glassParts;
|
||||
const parts = useMainStore().order.lineItems.glassParts;
|
||||
return parts != null && parts.find((part) => part.requiresRecalibration);
|
||||
},
|
||||
isRepair() {
|
||||
return this.mainStore.order.damage.isRepair;
|
||||
return useMainStore().order.damage.isRepair;
|
||||
},
|
||||
totalServicePrice() {
|
||||
let total = 0;
|
||||
|
|
@ -339,10 +328,7 @@ export default {
|
|||
},
|
||||
methods: {
|
||||
arePagePrerequisitesValid() {
|
||||
if (useMainStore().vehicle.vin) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
return !!useMainStore().vehicle.vin;
|
||||
},
|
||||
async forwardButtonAction() {
|
||||
return this.navigateForward();
|
||||
|
|
@ -355,8 +341,8 @@ export default {
|
|||
if (this.selectedProvider === 'Safelite') {
|
||||
this.$router.navigate(navigationScenarios.CLICKED_FORWARD_WITH_SAFELITE,
|
||||
this.$route);
|
||||
} else if (store.issConfig.enableTPAFlow) {
|
||||
this.$router.navigate(navigationScenarios.CLICKED_FORWARD_WITH_TPA_DISABLED,
|
||||
} else if (useMainStore().issConfig.enableTPAFlow) {
|
||||
this.$router.navigate(navigationScenarios.CLICKED_FORWARD_WITH_TPA_ENABLED,
|
||||
this.$route);
|
||||
} else {
|
||||
this.$router.navigate(navigationScenarios.CLICKED_FORWARD_WITH_TPA_DISABLED,
|
||||
|
|
@ -428,8 +414,7 @@ export default {
|
|||
return `$${formattedPriceFloat}`;
|
||||
},
|
||||
getITACCostSavings(vehicleDeductible, totalServicePrice) {
|
||||
const savings = vehicleDeductible - totalServicePrice;
|
||||
return savings;
|
||||
return vehicleDeductible - totalServicePrice;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue