diff --git a/src/constants/insurance.js b/src/constants/insurance.js index f7550513b..b23e1fddd 100644 --- a/src/constants/insurance.js +++ b/src/constants/insurance.js @@ -78,3 +78,7 @@ export function coverageTypeEnum(strCoverageType) { return null; } } + +export const NON_MANAGED_SHOW_CLAIM_NUMBER_PARENTS = [ + { name: "KentuckyFarmBureau", value: "223499" }, +]; diff --git a/src/digital-components/date-picker-popup/date-picker-popup.vue b/src/digital-components/date-picker-popup/date-picker-popup.vue index 3c666e775..7f3e109ac 100644 --- a/src/digital-components/date-picker-popup/date-picker-popup.vue +++ b/src/digital-components/date-picker-popup/date-picker-popup.vue @@ -27,6 +27,7 @@ :max-date="maxDate" :auto-apply="autoApply" :text-input="textInput" + :prevent-min-max-navigation="preventMinMaxNavigation" :teleport="true" :aria-labels="{ input: questionText }" @update:model-value="onDateChange" @@ -106,6 +107,10 @@ export default { type: Boolean, default: false, }, + preventMinMaxNavigation: { + type: Boolean, + default: false, + }, questionAlignment: String, labelBold: { type: Boolean, diff --git a/src/layouts/insurance-details/insurance-details.vue b/src/layouts/insurance-details/insurance-details.vue index 67670b9cc..a675e0871 100644 --- a/src/layouts/insurance-details/insurance-details.vue +++ b/src/layouts/insurance-details/insurance-details.vue @@ -39,7 +39,18 @@ format="MM/dd/yyyy" modelType="MM/dd/yyyy" :enableTimePicker="false" - :clearable="false" /> + :clearable="false" + :textInput="true" + :maxDate="today" + :preventMinMaxNavigation="true" /> + + item.value === order.payment?.parentAccountNumber?.toString() + ); + return !!parent; + }, stateOptions() { return stateOptions; }, @@ -231,6 +256,9 @@ export default { getPolicyZipFromStore() { return store.getters.order.policy.zipCode ?? ""; }, + getClaimNumberFromStore() { + return store.getters.order.policy.claimNumber ?? ""; + }, backButtonAction() { this.$router.navigateWithoutSaving( this.navigationScenarios.CLICKED_BACK, @@ -247,6 +275,7 @@ export default { city: this.city, state: this.policyState, zipCode: this.policyZip, + claimNumber: this.claimNumber, }, false ); diff --git a/src/store/index.js b/src/store/index.js index e8d6cc7fe..7c2a10d88 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -170,6 +170,7 @@ const getDefaultState = () => { currentDeductible: 0, originalDeductible: 0, policyNumber: null, + claimNumber: null, isItac: false, additionalAuthFlag: null, isNoComp: false, @@ -356,6 +357,9 @@ export const mutations = { updateZipCode(state, zipCode) { state.order.policy.zipCode = zipCode; }, + updateClaimNumber(state, claimNumber) { + state.order.policy.claimNumber = claimNumber; + }, updateIsClaimAndCoverage(state, isClaimAndCoverage) { state.order.payment.isClaimAndCoverage = isClaimAndCoverage; }, @@ -526,6 +530,7 @@ export const mutations = { state.order.policy.city = insuranceDetails.city; state.order.policy.state = insuranceDetails.state; state.order.policy.zipCode = insuranceDetails.zipCode; + state.order.policy.claimNumber = insuranceDetails.claimNumber; } }, updateDamageDetails(state, damageDetails) {