CASH-699 do not allow future dates for date of loss

CASH-699 do not allow future dates for date of loss
This commit is contained in:
CarlNation 2026-05-07 13:08:12 -04:00
parent 65a1712fc4
commit 0cccbb2db1
2 changed files with 11 additions and 1 deletions

View file

@ -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,

View file

@ -40,7 +40,9 @@
modelType="MM/dd/yyyy" modelType="MM/dd/yyyy"
:enableTimePicker="false" :enableTimePicker="false"
:clearable="false" :clearable="false"
:textInput="true" /> :textInput="true"
:maxDate="today"
:preventMinMaxNavigation="true" />
<textboxQuestion <textboxQuestion
v-if="displayClaimNumber" v-if="displayClaimNumber"
@ -198,6 +200,9 @@ export default {
}, },
computed: { computed: {
today() {
return new Date();
},
displayClaimNumber() { displayClaimNumber() {
const order = store.getters.order; const order = store.getters.order;