WIP
This commit is contained in:
parent
5a12b401fd
commit
193d660e8b
2 changed files with 10 additions and 5 deletions
|
|
@ -1,5 +1,6 @@
|
|||
<template>
|
||||
<div class="cart">
|
||||
Should Hide Recal {{ shouldHideRecalibration }} // isInsurnce {{ isInsurance }}
|
||||
<div class="px-0" v-if="isCartReadyToLoad">
|
||||
<div
|
||||
class="row vin-toggle flex align-items-center pt-4"
|
||||
|
|
|
|||
|
|
@ -111,6 +111,9 @@ import { containsRecalParts } from "@/helpers/recal-helper.js";
|
|||
export default {
|
||||
name: "confirmation",
|
||||
async beforeRouteEnter(to, from, next) {
|
||||
const hasRecalPriceRemoveExperiment = await store.getters.shouldHideRecalibration;
|
||||
console.log("Has recal", hasRecalPriceRemoveExperiment);
|
||||
|
||||
await baseMixin.methods.dispatchStoreAction(storeActions.CREATE_SUBMITTED_ORDER); // This nulls the Store order
|
||||
|
||||
// Call APIs
|
||||
|
|
@ -155,15 +158,14 @@ export default {
|
|||
const isNoComp = submittedOrder?.policy?.isNoComp;
|
||||
const isItac = submittedOrder?.policy?.isItac;
|
||||
const isRecalibrationOnOrder = containsRecalParts(lineItemsFromSubmittedOrder);
|
||||
const hasRecalPriceRemoveExperiment =
|
||||
experimentMixin.methods
|
||||
.getSettingValue(experimentSettings.RECAL_PRICE_REMOVE)
|
||||
?.toLowerCase() === "true";
|
||||
|
||||
const shouldHideRecalibration = () => {
|
||||
if (isNoComp || isItac) {
|
||||
console.log("is NoComp OR Itac...");
|
||||
return false;
|
||||
}
|
||||
console.log("hasRecalPriceRemoveExperiment: ", hasRecalPriceRemoveExperiment);
|
||||
console.log("isRecalibrationOnOrder: ", isRecalibrationOnOrder);
|
||||
|
||||
return hasRecalPriceRemoveExperiment && isRecalibrationOnOrder;
|
||||
};
|
||||
|
|
@ -344,7 +346,9 @@ export default {
|
|||
}
|
||||
if (this.AppointmentType == AppointmentTypeStrings.DROP_OFF) {
|
||||
if (
|
||||
this.submittedOrder?.schedule?.routeCode.includes(RouteCodeFlags.OVERNIGHT_DROP_OFF)
|
||||
this.submittedOrder?.schedule?.routeCode.includes(
|
||||
RouteCodeFlags.OVERNIGHT_DROP_OFF
|
||||
)
|
||||
) {
|
||||
return `Drop off before 5:30 PM`;
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in a new issue