bailout from pricing service
from coverage statement
This commit is contained in:
parent
05e2da6dc9
commit
af9dc67924
2 changed files with 19 additions and 2 deletions
|
|
@ -104,7 +104,9 @@ export default {
|
|||
const pageData = useMainStore().pageData(to.query.issPage);
|
||||
next((vm) => {
|
||||
vm.setCmsContent(resultMap.cmsContent);
|
||||
vm.setNotSeeingPreferShop(pageData[routerParams.NOT_SEEING_PREFERRED_SHOP]);
|
||||
if (pageData && pageData[routerParams.NOT_SEEING_PREFERRED_SHOP]) {
|
||||
vm.setNotSeeingPreferShop(pageData[routerParams.NOT_SEEING_PREFERRED_SHOP]);
|
||||
}
|
||||
});
|
||||
},
|
||||
data() {
|
||||
|
|
|
|||
|
|
@ -127,6 +127,7 @@ import globalRules from '@/constants/global-rules.js';
|
|||
import baseFormMixin from '@/mixins/base-form-mixin.js';
|
||||
import navigationScenarios from '@/router/router-constants/navigation-scenarios.js';
|
||||
import routerParams from '@/router/router-constants/router-params';
|
||||
import issPageValues from '@/router/router-constants/issPage-values';
|
||||
|
||||
export default {
|
||||
name: 'coverage-statement',
|
||||
|
|
@ -171,7 +172,21 @@ export default {
|
|||
|
||||
let pricingResults = [];
|
||||
if (useMainStore().order.policy.policyLookupSuccessful) {
|
||||
pricingResults = await useMainStore().getPriceOrderItems(availableLineItems);
|
||||
pricingResults = await useMainStore().getPriceOrderItems(availableLineItems)
|
||||
.catch((err) => {
|
||||
const errorPageData = {
|
||||
errorData: err.data,
|
||||
functionLocation: 'beforeRouteEnter',
|
||||
functionName: 'getPriceOrderItems',
|
||||
functionParameters: {
|
||||
availableLineItems
|
||||
},
|
||||
routeFrom: from,
|
||||
routeTo: to
|
||||
};
|
||||
useMainStore().updatePageData({ page: issPageValues.BAILOUT_PAGE, data: errorPageData });
|
||||
next(`/?issPage=${issPageValues.BAILOUT_PAGE}`);
|
||||
});
|
||||
await useMainStore().getFinalDeductible();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue