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