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;
|
||||
}
|
||||
}
|
||||
|
||||
export const NON_MANAGED_SHOW_CLAIM_NUMBER_PARENTS = [
|
||||
{ name: "KentuckyFarmBureau", value: "223499" },
|
||||
];
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -39,7 +39,18 @@
|
|||
format="MM/dd/yyyy"
|
||||
modelType="MM/dd/yyyy"
|
||||
: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
|
||||
isRequired
|
||||
|
|
@ -89,6 +100,7 @@
|
|||
:options="stateOptions"
|
||||
validationRules="state-required"
|
||||
autocomplete="address-level1"
|
||||
placeHolderText="Select State"
|
||||
:labelBold="true" />
|
||||
|
||||
<textboxQuestion
|
||||
|
|
@ -128,6 +140,7 @@ import { fetchCmsContentForPage } from "@/helpers/cms-content-helper";
|
|||
import { settleAllPromises } from "@/helpers/layout-helper";
|
||||
import { stateOptions } from "@/constants/state-options";
|
||||
import { regex } from "@/helpers/validation-rules";
|
||||
import { NON_MANAGED_SHOW_CLAIM_NUMBER_PARENTS } from "@/constants/insurance";
|
||||
|
||||
// DEFINE VALIDATION RULES
|
||||
defineRule(
|
||||
|
|
@ -157,6 +170,7 @@ export default {
|
|||
city: this.getCityFromStore(),
|
||||
policyState: this.getPolicyStateFromStore(),
|
||||
policyZip: this.getPolicyZipFromStore(),
|
||||
claimNumber: this.getClaimNumberFromStore(),
|
||||
};
|
||||
},
|
||||
components: {
|
||||
|
|
@ -186,6 +200,17 @@ export default {
|
|||
},
|
||||
|
||||
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() {
|
||||
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
|
||||
);
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue