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