Merge pull request #1802 from Safelite/feature/CSR-2005
This commit is contained in:
commit
d4ccc7095d
4 changed files with 16 additions and 4 deletions
|
|
@ -129,6 +129,11 @@ export async function navigateToHeritageFunnel({ shouldSaveSession, pageNameToLo
|
||||||
heritageParms["forceEndToEndInsurance"] = true;
|
heritageParms["forceEndToEndInsurance"] = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// if they are going to heritage and already have a policy number then this is a nav back flow
|
||||||
|
if (store.getters.policy.policyNumber) {
|
||||||
|
heritageParms["insuranceNavBack"] = true;
|
||||||
|
}
|
||||||
|
|
||||||
router.navigateToExternalUrl(externalUrls.HERITAGE_FUNNEL, heritageParms);
|
router.navigateToExternalUrl(externalUrls.HERITAGE_FUNNEL, heritageParms);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -166,6 +166,7 @@ async function saveSessionHelper(
|
||||||
customerPortalLoginToken: savedSessionInfo.data.customerPortalLoginToken,
|
customerPortalLoginToken: savedSessionInfo.data.customerPortalLoginToken,
|
||||||
lockToken: savedSessionInfo.data.lockToken,
|
lockToken: savedSessionInfo.data.lockToken,
|
||||||
settledTenderAmount: savedSessionInfo.data.settledTenderAmount,
|
settledTenderAmount: savedSessionInfo.data.settledTenderAmount,
|
||||||
|
billToAccountNumber: savedSessionInfo.data.billToAccountNumber,
|
||||||
},
|
},
|
||||||
false
|
false
|
||||||
);
|
);
|
||||||
|
|
|
||||||
|
|
@ -119,6 +119,7 @@ export default {
|
||||||
return {
|
return {
|
||||||
searchableInsuranceCompanyList: [],
|
searchableInsuranceCompanyList: [],
|
||||||
originalList: [],
|
originalList: [],
|
||||||
|
selectedParentAccount: "",
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|
@ -142,8 +143,11 @@ export default {
|
||||||
// Go back to Quote page
|
// Go back to Quote page
|
||||||
this.$router.navigateWithoutSaving(this.navigationScenarios.CLICKED_BACK, this.$route);
|
this.$router.navigateWithoutSaving(this.navigationScenarios.CLICKED_BACK, this.$route);
|
||||||
},
|
},
|
||||||
forwardButtonAction() {
|
async forwardButtonAction() {
|
||||||
this.dispatchStoreAction(
|
// await any pending save-sessions. if you don't, we will save the new parent account into vuex and then a pending async save-session response overwrites it
|
||||||
|
await store.getters.applicationUser.saveSessionPromise;
|
||||||
|
|
||||||
|
await this.dispatchStoreAction(
|
||||||
this.storeActions.SAVE_PARENT_ACCOUNT_NUMBER,
|
this.storeActions.SAVE_PARENT_ACCOUNT_NUMBER,
|
||||||
this.selectedParentAccount,
|
this.selectedParentAccount,
|
||||||
false
|
false
|
||||||
|
|
@ -156,12 +160,12 @@ export default {
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
selectParentAccountNumber(parentAccountName) {
|
selectParentAccountNumber(parentAccountName) {
|
||||||
if (!this.insuranceCompanyList) {
|
if (!this.searchableInsuranceCompanyList) {
|
||||||
console.error("No insurance companies found");
|
console.error("No insurance companies found");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
var selectedItem = this.insuranceCompanyList.filter((item) => {
|
var selectedItem = this.searchableInsuranceCompanyList.filter((item) => {
|
||||||
return item.accountName === parentAccountName;
|
return item.accountName === parentAccountName;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1069,6 +1069,7 @@ export const actions = {
|
||||||
customerPortalLoginToken,
|
customerPortalLoginToken,
|
||||||
lockToken,
|
lockToken,
|
||||||
settledTenderAmount,
|
settledTenderAmount,
|
||||||
|
billToAccountNumber,
|
||||||
}
|
}
|
||||||
) {
|
) {
|
||||||
context.commit(storeMutations.UPDATE_REFERRAL_NUMBER, referralNumber);
|
context.commit(storeMutations.UPDATE_REFERRAL_NUMBER, referralNumber);
|
||||||
|
|
@ -1084,6 +1085,7 @@ export const actions = {
|
||||||
context.commit(storeMutations.LOCK_TOKEN, lockToken);
|
context.commit(storeMutations.LOCK_TOKEN, lockToken);
|
||||||
context.commit(storeMutations.Customer_Portal_Login_Token, customerPortalLoginToken);
|
context.commit(storeMutations.Customer_Portal_Login_Token, customerPortalLoginToken);
|
||||||
context.commit(storeMutations.UPDATE_SETTLED_TENDER_AMOUNT, settledTenderAmount);
|
context.commit(storeMutations.UPDATE_SETTLED_TENDER_AMOUNT, settledTenderAmount);
|
||||||
|
context.commit(storeMutations.UPDATE_BILL_TO_ACCT_NUMBER, billToAccountNumber);
|
||||||
},
|
},
|
||||||
|
|
||||||
logPageView(
|
logPageView(
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue