refactor: handleDate

This commit is contained in:
nwpptrs 2024-12-04 15:42:15 +07:00
parent bb8d007b2d
commit 71ccf65f9d
4 changed files with 26 additions and 1 deletions

View file

@ -177,6 +177,11 @@ watch(
:readonly="readonly"
:label="$t('personnel.form.retireDate')"
v-model="retireDate"
:disabled-dates="
(date: Date) =>
date.getTime() <
((startDate && new Date(startDate).getTime()) || Date.now())
"
clearable
/>