Merge branch 'develop' into feature/CASH-2563
This commit is contained in:
commit
b7da6506da
4 changed files with 44 additions and 1 deletions
|
|
@ -78,3 +78,7 @@ export function coverageTypeEnum(strCoverageType) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export const NON_MANAGED_SHOW_CLAIM_NUMBER_PARENTS = [
|
||||||
|
{ name: "KentuckyFarmBureau", value: "223499" },
|
||||||
|
];
|
||||||
|
|
|
||||||
|
|
@ -27,6 +27,7 @@
|
||||||
:max-date="maxDate"
|
:max-date="maxDate"
|
||||||
:auto-apply="autoApply"
|
:auto-apply="autoApply"
|
||||||
:text-input="textInput"
|
:text-input="textInput"
|
||||||
|
:prevent-min-max-navigation="preventMinMaxNavigation"
|
||||||
:teleport="true"
|
:teleport="true"
|
||||||
:aria-labels="{ input: questionText }"
|
:aria-labels="{ input: questionText }"
|
||||||
@update:model-value="onDateChange"
|
@update:model-value="onDateChange"
|
||||||
|
|
@ -106,6 +107,10 @@ export default {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
default: false,
|
default: false,
|
||||||
},
|
},
|
||||||
|
preventMinMaxNavigation: {
|
||||||
|
type: Boolean,
|
||||||
|
default: false,
|
||||||
|
},
|
||||||
questionAlignment: String,
|
questionAlignment: String,
|
||||||
labelBold: {
|
labelBold: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
|
|
|
||||||
|
|
@ -39,7 +39,18 @@
|
||||||
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"
|
||||||
|
:maxDate="today"
|
||||||
|
:preventMinMaxNavigation="true" />
|
||||||
|
|
||||||
|
<textboxQuestion
|
||||||
|
v-if="displayClaimNumber"
|
||||||
|
isRequired
|
||||||
|
class="mb-4"
|
||||||
|
cmsWidgetName="ClaimNumberWidget"
|
||||||
|
v-model="claimNumber"
|
||||||
|
inputId="claimNumber" />
|
||||||
|
|
||||||
<dropdownQuestion
|
<dropdownQuestion
|
||||||
isRequired
|
isRequired
|
||||||
|
|
@ -89,6 +100,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
|
||||||
|
|
@ -128,6 +140,7 @@ import { fetchCmsContentForPage } from "@/helpers/cms-content-helper";
|
||||||
import { settleAllPromises } from "@/helpers/layout-helper";
|
import { settleAllPromises } from "@/helpers/layout-helper";
|
||||||
import { stateOptions } from "@/constants/state-options";
|
import { stateOptions } from "@/constants/state-options";
|
||||||
import { regex } from "@/helpers/validation-rules";
|
import { regex } from "@/helpers/validation-rules";
|
||||||
|
import { NON_MANAGED_SHOW_CLAIM_NUMBER_PARENTS } from "@/constants/insurance";
|
||||||
|
|
||||||
// DEFINE VALIDATION RULES
|
// DEFINE VALIDATION RULES
|
||||||
defineRule(
|
defineRule(
|
||||||
|
|
@ -157,6 +170,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 +200,17 @@ export default {
|
||||||
},
|
},
|
||||||
|
|
||||||
computed: {
|
computed: {
|
||||||
|
today() {
|
||||||
|
return new Date();
|
||||||
|
},
|
||||||
|
displayClaimNumber() {
|
||||||
|
const order = store.getters.order;
|
||||||
|
|
||||||
|
const parent = NON_MANAGED_SHOW_CLAIM_NUMBER_PARENTS.find(
|
||||||
|
(item) => item.value === order.payment?.parentAccountNumber?.toString()
|
||||||
|
);
|
||||||
|
return !!parent;
|
||||||
|
},
|
||||||
stateOptions() {
|
stateOptions() {
|
||||||
return stateOptions;
|
return stateOptions;
|
||||||
},
|
},
|
||||||
|
|
@ -231,6 +256,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 +275,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,
|
||||||
|
|
@ -356,6 +357,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;
|
||||||
},
|
},
|
||||||
|
|
@ -526,6 +530,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