SSR-1377 PR Changes
This commit is contained in:
parent
67133af6fc
commit
bea5075656
5 changed files with 5 additions and 7 deletions
|
|
@ -1,5 +1,5 @@
|
||||||
const submitType = Object.freeze({
|
const submitType = Object.freeze({
|
||||||
REFERRAL: 0,
|
SAFELITE: 0,
|
||||||
TPA: 1
|
TPA: 1
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -54,9 +54,7 @@ export default {
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
getUnmatchedVehicleIcon() {
|
getUnmatchedVehicleIcon() {
|
||||||
const category = this.mainStore.hasSubmittedOrder()
|
const category = this.mainStore.submittedOrder?.vehicle.category ?? this.mainStore.order.vehicle.category;
|
||||||
? this.mainStore.submittedOrder.vehicle.category
|
|
||||||
: this.mainStore.order.vehicle.category;
|
|
||||||
switch (category) {
|
switch (category) {
|
||||||
case this.vehicleCategories.CAR:
|
case this.vehicleCategories.CAR:
|
||||||
return this.carUnmatchedVehicleIcon;
|
return this.carUnmatchedVehicleIcon;
|
||||||
|
|
|
||||||
|
|
@ -120,7 +120,7 @@ export default {
|
||||||
},
|
},
|
||||||
mixins: [BaseFormMixin],
|
mixins: [BaseFormMixin],
|
||||||
async beforeRouteEnter(to, from, next) {
|
async beforeRouteEnter(to, from, next) {
|
||||||
useMainStore().createSubmittedOrder(submitType.REFERRAL);
|
useMainStore().createSubmittedOrder(submitType.SAFELITE);
|
||||||
// Call APIs
|
// Call APIs
|
||||||
const cmsContentPromise = fetchCmsContentForPage(to.query.issPage);
|
const cmsContentPromise = fetchCmsContentForPage(to.query.issPage);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -134,7 +134,7 @@ export default {
|
||||||
}
|
}
|
||||||
|
|
||||||
showIssLoadingModal(false);
|
showIssLoadingModal(false);
|
||||||
useMainStore().createSubmittedOrder(submitType.REFERRAL);
|
useMainStore().createSubmittedOrder(submitType.SAFELITE);
|
||||||
this.$router.navigate(
|
this.$router.navigate(
|
||||||
this.navigationScenarios.PAY_IN_ADVANCE_SUCCESS,
|
this.navigationScenarios.PAY_IN_ADVANCE_SUCCESS,
|
||||||
this.$route
|
this.$route
|
||||||
|
|
|
||||||
|
|
@ -382,7 +382,7 @@ async function GoToConfirmationPage(next, order) {
|
||||||
|
|
||||||
function getConfirmationPageFromOrder(order) {
|
function getConfirmationPageFromOrder(order) {
|
||||||
switch (order.submitType) {
|
switch (order.submitType) {
|
||||||
case submitType.REFERRAL:
|
case submitType.SAFELITE:
|
||||||
return issPageValues.ORDER_CONFIRMATION;
|
return issPageValues.ORDER_CONFIRMATION;
|
||||||
case submitType.TPA:
|
case submitType.TPA:
|
||||||
return issPageValues.TPA_CONFIRMATION;
|
return issPageValues.TPA_CONFIRMATION;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue