CASH-699 Insurance details page updates
CASH-699 Insurance details page updates
This commit is contained in:
parent
ef77ed8e77
commit
b1884ab751
2 changed files with 30 additions and 1 deletions
|
|
@ -1,3 +1,4 @@
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<Form @submit="onSubmit" @invalid-submit="onInvalidSubmit" ref="theForm" v-slot="{ meta }">
|
<Form @submit="onSubmit" @invalid-submit="onInvalidSubmit" ref="theForm" v-slot="{ meta }">
|
||||||
<loadingModal ref="loadingModal" />
|
<loadingModal ref="loadingModal" />
|
||||||
|
|
@ -39,7 +40,16 @@
|
||||||
format="MM/dd/yyyy"
|
format="MM/dd/yyyy"
|
||||||
modelType="MM/dd/yyyy"
|
modelType="MM/dd/yyyy"
|
||||||
:enableTimePicker="false"
|
:enableTimePicker="false"
|
||||||
:clearable="false" />
|
:clearable="false"
|
||||||
|
:textInput="true" />
|
||||||
|
|
||||||
|
<textboxQuestion
|
||||||
|
v-if="displayClaimNumber"
|
||||||
|
isRequired
|
||||||
|
class="mb-4"
|
||||||
|
cmsWidgetName="ClaimNumberWidget"
|
||||||
|
v-model="claimNumber"
|
||||||
|
inputId="claimNumber" />
|
||||||
|
|
||||||
<dropdownQuestion
|
<dropdownQuestion
|
||||||
isRequired
|
isRequired
|
||||||
|
|
@ -89,6 +99,7 @@
|
||||||
:options="stateOptions"
|
:options="stateOptions"
|
||||||
validationRules="state-required"
|
validationRules="state-required"
|
||||||
autocomplete="address-level1"
|
autocomplete="address-level1"
|
||||||
|
placeHolderText="Select State"
|
||||||
:labelBold="true" />
|
:labelBold="true" />
|
||||||
|
|
||||||
<textboxQuestion
|
<textboxQuestion
|
||||||
|
|
@ -157,6 +168,7 @@ export default {
|
||||||
city: this.getCityFromStore(),
|
city: this.getCityFromStore(),
|
||||||
policyState: this.getPolicyStateFromStore(),
|
policyState: this.getPolicyStateFromStore(),
|
||||||
policyZip: this.getPolicyZipFromStore(),
|
policyZip: this.getPolicyZipFromStore(),
|
||||||
|
claimNumber: this.getClaimNumberFromStore(),
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
components: {
|
components: {
|
||||||
|
|
@ -186,6 +198,14 @@ export default {
|
||||||
},
|
},
|
||||||
|
|
||||||
computed: {
|
computed: {
|
||||||
|
displayClaimNumber() {
|
||||||
|
const order = store.getters.order;
|
||||||
|
// Kentucky Farm Bureau
|
||||||
|
if (order.payment?.parentAccountNumber.toString() === "223499") {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
},
|
||||||
stateOptions() {
|
stateOptions() {
|
||||||
return stateOptions;
|
return stateOptions;
|
||||||
},
|
},
|
||||||
|
|
@ -231,6 +251,9 @@ export default {
|
||||||
getPolicyZipFromStore() {
|
getPolicyZipFromStore() {
|
||||||
return store.getters.order.policy.zipCode ?? "";
|
return store.getters.order.policy.zipCode ?? "";
|
||||||
},
|
},
|
||||||
|
getClaimNumberFromStore() {
|
||||||
|
return store.getters.order.policy.claimNumber ?? "";
|
||||||
|
},
|
||||||
backButtonAction() {
|
backButtonAction() {
|
||||||
this.$router.navigateWithoutSaving(
|
this.$router.navigateWithoutSaving(
|
||||||
this.navigationScenarios.CLICKED_BACK,
|
this.navigationScenarios.CLICKED_BACK,
|
||||||
|
|
@ -247,6 +270,7 @@ export default {
|
||||||
city: this.city,
|
city: this.city,
|
||||||
state: this.policyState,
|
state: this.policyState,
|
||||||
zipCode: this.policyZip,
|
zipCode: this.policyZip,
|
||||||
|
claimNumber: this.claimNumber,
|
||||||
},
|
},
|
||||||
false
|
false
|
||||||
);
|
);
|
||||||
|
|
|
||||||
|
|
@ -170,6 +170,7 @@ const getDefaultState = () => {
|
||||||
currentDeductible: 0,
|
currentDeductible: 0,
|
||||||
originalDeductible: 0,
|
originalDeductible: 0,
|
||||||
policyNumber: null,
|
policyNumber: null,
|
||||||
|
claimNumber: null,
|
||||||
isItac: false,
|
isItac: false,
|
||||||
additionalAuthFlag: null,
|
additionalAuthFlag: null,
|
||||||
isNoComp: false,
|
isNoComp: false,
|
||||||
|
|
@ -355,6 +356,9 @@ export const mutations = {
|
||||||
updateZipCode(state, zipCode) {
|
updateZipCode(state, zipCode) {
|
||||||
state.order.policy.zipCode = zipCode;
|
state.order.policy.zipCode = zipCode;
|
||||||
},
|
},
|
||||||
|
updateClaimNumber(state, claimNumber) {
|
||||||
|
state.order.policy.claimNumber = claimNumber;
|
||||||
|
},
|
||||||
updateIsClaimAndCoverage(state, isClaimAndCoverage) {
|
updateIsClaimAndCoverage(state, isClaimAndCoverage) {
|
||||||
state.order.payment.isClaimAndCoverage = isClaimAndCoverage;
|
state.order.payment.isClaimAndCoverage = isClaimAndCoverage;
|
||||||
},
|
},
|
||||||
|
|
@ -523,6 +527,7 @@ export const mutations = {
|
||||||
state.order.policy.city = insuranceDetails.city;
|
state.order.policy.city = insuranceDetails.city;
|
||||||
state.order.policy.state = insuranceDetails.state;
|
state.order.policy.state = insuranceDetails.state;
|
||||||
state.order.policy.zipCode = insuranceDetails.zipCode;
|
state.order.policy.zipCode = insuranceDetails.zipCode;
|
||||||
|
state.order.policy.claimNumber = insuranceDetails.claimNumber;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
updateDamageDetails(state, damageDetails) {
|
updateDamageDetails(state, damageDetails) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue