CSR-747 Remove temp heritage button, change account number to int
This commit is contained in:
parent
c7498f2ebe
commit
da402bcaa4
8 changed files with 16 additions and 50 deletions
|
|
@ -15,10 +15,6 @@
|
|||
data-bs-target="#footerModal"
|
||||
data-bs-dismiss="modal" />
|
||||
</div>
|
||||
<!-- TODO KO DELETE FOR QUOTE MVP -->
|
||||
<div class="col-auto">
|
||||
<button @click="$emit('tempButtonClicked')">Heritage</button>
|
||||
</div>
|
||||
<div v-if="!isBackButtonHidden" class="col-auto link-col py-1 text-break">
|
||||
<textLink
|
||||
linkType="navigation"
|
||||
|
|
|
|||
|
|
@ -174,9 +174,7 @@ export default {
|
|||
).parts = partFromCapabilityQuestionAnswer;
|
||||
}
|
||||
|
||||
// this.navigateForward(partsOrQuestions);
|
||||
// TODO KO delete after quote MVP
|
||||
this.navigateForward(partsOrQuestions, null, this.shouldGoToHeritageQuote);
|
||||
this.navigateForward(partsOrQuestions);
|
||||
},
|
||||
},
|
||||
components: {
|
||||
|
|
|
|||
|
|
@ -158,9 +158,7 @@ export default {
|
|||
];
|
||||
}
|
||||
|
||||
// this.navigateForward(partsOrQuestions);
|
||||
// TODO KO delete after quote MVP
|
||||
this.navigateForward(partsOrQuestions, null, this.shouldGoToHeritageQuote);
|
||||
this.navigateForward(partsOrQuestions);
|
||||
},
|
||||
},
|
||||
components: {
|
||||
|
|
|
|||
|
|
@ -35,7 +35,6 @@
|
|||
cmsWidgetName="FunnelFooterWidget"
|
||||
ref="funnelFooter"
|
||||
:isForwardActionDisabled="isForwardActionDisabled"
|
||||
@tempButtonClicked="() => handleTempButtonClicked(this)"
|
||||
@back-click="navigateBack"
|
||||
@ForwardClicked="forwardButtonAction" />
|
||||
</div>
|
||||
|
|
@ -189,10 +188,8 @@ export default {
|
|||
false
|
||||
);
|
||||
|
||||
// TODO KO delete after quote MVP
|
||||
this.navigateForward(matchedParts, null, this.shouldGoToHeritageQuote);
|
||||
// Navigate to the next page
|
||||
// this.navigateForward(matchedParts);
|
||||
this.navigateForward(matchedParts);
|
||||
},
|
||||
|
||||
LoadInitialPartsData() {
|
||||
|
|
|
|||
|
|
@ -100,7 +100,6 @@
|
|||
cmsWidgetName="FunnelFooterWidget"
|
||||
ref="funnelFooter"
|
||||
:isForwardActionDisabled="!meta.valid"
|
||||
@tempButtonClicked="() => handleTempButtonClicked(this)"
|
||||
@back-clicked="backButtonAction"
|
||||
@ForwardClicked="forwardButtonAction" />
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -7,12 +7,6 @@ import baseMixin from "@/mixins/base-mixin.js";
|
|||
import store from "@/store";
|
||||
|
||||
export default {
|
||||
data() {
|
||||
// TODO KO DELETE AFTER QUOTE MVP
|
||||
return {
|
||||
shouldGoToHeritageQuote: false,
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
hasPartQuestions(partsOrQuestions) {
|
||||
return partsOrQuestions?.some((pq) => pq.partQuestions?.length > 0);
|
||||
|
|
@ -353,9 +347,8 @@ export default {
|
|||
}
|
||||
}
|
||||
},
|
||||
// TODO KO Delete `shouldGoToHeritageQuote`
|
||||
// Can't use `this` because navigateForward is also called from vin-pages-mixin
|
||||
async navigateForward(partsOrQuestions, vm, shouldGoToHeritageQuote) {
|
||||
async navigateForward(partsOrQuestions, vm) {
|
||||
const self = vm ?? this;
|
||||
const currentPage = self.$route.query.fmgPage;
|
||||
|
||||
|
|
@ -450,13 +443,15 @@ export default {
|
|||
self.$store.commit(storeMutations.UPDATE_GLASS_PARTS, collectedGlassParts);
|
||||
|
||||
const payment = store.getters.payment;
|
||||
shouldGoToHeritageQuote ||
|
||||
(payment.isInsurance && payment.insuranceCoverage.isVerified)
|
||||
? navigateToHeritageFunnel({ loadingModal: self.$refs.loadingModal })
|
||||
: self.$router.navigateWithSaving(
|
||||
self.navigationScenarios.CLICKED_FORWARD_WITH_NO_MORE_QUESTIONS,
|
||||
self.$route
|
||||
);
|
||||
|
||||
if (payment.isInsurance && payment.insuranceCoverage.isVerified) {
|
||||
navigateToHeritageFunnel({ loadingModal: self.$refs.loadingModal })
|
||||
} else {
|
||||
self.$router.navigateWithSaving(
|
||||
self.navigationScenarios.CLICKED_FORWARD_WITH_NO_MORE_QUESTIONS,
|
||||
self.$route
|
||||
);
|
||||
}
|
||||
}
|
||||
},
|
||||
// Can't use `this` because navigateForward is also called from quote
|
||||
|
|
@ -507,9 +502,5 @@ export default {
|
|||
|
||||
self.$router.navigateWithoutSaving(backNavigationScenario, self.$route);
|
||||
},
|
||||
// TODO KO delete this after quote mvp
|
||||
async handleTempButtonClicked(vm) {
|
||||
this.shouldGoToHeritageQuote = true;
|
||||
},
|
||||
},
|
||||
};
|
||||
|
|
|
|||
|
|
@ -4,12 +4,6 @@ import vehicleQuestionsMixin from "@/mixins/vehicle-questions-mixin";
|
|||
import { saveSession } from "@/helpers/heritage-integration/order-helper.js";
|
||||
|
||||
export default {
|
||||
data() {
|
||||
// TODO KO DELETE AFTER QUOTE MVP
|
||||
return {
|
||||
shouldGoToHeritageQuote: false,
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
async navigateForwardWithSingleCarMatch() {
|
||||
// If we have not already saved a session, we need to save one now before the lengthy call to getPartsOrQuestions
|
||||
|
|
@ -20,17 +14,10 @@ export default {
|
|||
const result = await this.dispatchStoreAction(storeActions.GET_PARTS_OR_QUESTIONS);
|
||||
const partsOrQuestions = result.data.partsOrQuestions;
|
||||
|
||||
// TODO KO delete `this.shouldGoToHeritageQuote`
|
||||
vehicleQuestionsMixin.methods.navigateForward(
|
||||
partsOrQuestions,
|
||||
this,
|
||||
this.shouldGoToHeritageQuote
|
||||
);
|
||||
},
|
||||
// TODO KO delete this after quote mvp
|
||||
async handleTempButtonClicked(vm) {
|
||||
this.shouldGoToHeritageQuote = true;
|
||||
await vm.forwardButtonAction();
|
||||
},
|
||||
},
|
||||
};
|
||||
|
|
|
|||
|
|
@ -906,14 +906,14 @@ export const actions = {
|
|||
const carId = context.getters.vehicle.carId;
|
||||
const isRepair = context.getters.damage.isRepair;
|
||||
const numberOfChips = context.getters.damage.numberOfChips;
|
||||
const parentAccountNumber = context.getters.order.accountNumber.toString();
|
||||
const parentAccountNumber = context.getters.order.accountNumber;
|
||||
return globalMethods.callHttpClient({
|
||||
method: endpoints.GetSupportingItems.method,
|
||||
endpoint: endpoints.GetSupportingItems.url,
|
||||
payload: {
|
||||
carId: carId,
|
||||
serviceType: isRepair ? "Repair" : "Replace",
|
||||
parentAccountNumber: parentAccountNumber,
|
||||
parentAccountNumber: parentAccountNumber == 0 ? 167132 : parentAccountNumber,
|
||||
parts: glassPartsArray,
|
||||
numberOfRepairChips: isRepair ? numberOfChips : 0,
|
||||
},
|
||||
|
|
@ -1010,7 +1010,7 @@ export const actions = {
|
|||
},
|
||||
isInsurance: order.payment.isInsurance ?? false,
|
||||
},
|
||||
accountNumber: order.accountNumber?.toString(),
|
||||
accountNumber: order.accountNumber,
|
||||
providerNumber: "",
|
||||
serviceLocation: {
|
||||
streetAddress: order.serviceLocation.address,
|
||||
|
|
|
|||
Loading…
Reference in a new issue