diff --git a/src/constants/error-messages.js b/src/constants/error-messages.js index 6c206946..47d6a0a9 100644 --- a/src/constants/error-messages.js +++ b/src/constants/error-messages.js @@ -33,7 +33,11 @@ const errorMessages = { LOSS_CITY_REQUIRED: "Please enter a city", LOSS_STATE_REQUIRED: "Please select an option", LOSS_DATE_REQUIRED: "Please enter a loss date", - DAMAGE_OPTION_REQUIRED: "Please select an option" + DAMAGE_OPTION_REQUIRED: "Please select an option", + + POLICYHOLDER_FIRST_NAME_REQUIRED: "Please enter the policyholder first name", + POLICYHOLDER_LAST_NAME_REQUIRED: "Please enter the policyholder last name", + }; export { errorMessages }; \ No newline at end of file diff --git a/src/layouts/policy-holder-details/policy-holder-details.vue b/src/layouts/policy-holder-details/policy-holder-details.vue index b1fb2a8a..5a26238a 100644 --- a/src/layouts/policy-holder-details/policy-holder-details.vue +++ b/src/layouts/policy-holder-details/policy-holder-details.vue @@ -6,32 +6,92 @@
- PlaceHolder for policy holder details -
+ +
+ +
+
+ +
- - \ No newline at end of file +export default { + name: "policy-holder-details", + mixins: [BaseFormMixin], + data() { + return { + policyHolderModel: + { + firstName: "", + lastName: "", + } + }; + }, + setup() { + const mainStore = useMainStore(); + return { mainStore }; + }, + async beforeRouteEnter(to, from, next) + { + // Call APIs + const cmsContentPromise = fetchCmsContentForPage(to.query.issPage); + + // Settle promises and get results + const promiseResultMap = [ + { + resultKey: "cmsContent", + promise: cmsContentPromise, + },]; + + + //use resultMap to populate layout content. + let resultMap = await settleAllPromises(promiseResultMap); + + next((vm) => { + vm.setCmsContent(resultMap.cmsContent); + }); + }, + components: { + siteHeader, + siteSubHeader, + textboxQuestion, + Form, + }, +} + \ No newline at end of file