เพิ่มเงื่อนไข ui แบบฟอร์มลาออก

This commit is contained in:
AnandaTon 2023-11-20 23:24:06 +07:00
parent f02468d7fd
commit b536f4a3c1
10 changed files with 94 additions and 51 deletions

View file

@ -165,7 +165,8 @@ function onValidate() {
hide-bottom-space
:enableTimePicker="false"
week-start="0"
:readonly="!edit"
:readonly="!formData.startLeaveDate"
:min-date="formData.startLeaveDate ? new Date(formData.startLeaveDate.getTime() + 24 * 60 * 60 * 1000) : null"
>
<template #year="{ year }">
{{ year + 543 }}
@ -180,7 +181,7 @@ function onValidate() {
ref="endLeaveDateRef"
for="endLeaveDateRef"
hide-bottom-space
:readonly="!edit"
:readonly="!formData.startLeaveDate"
class="full-width datepicker"
:model-value="formData.endLeaveDate != null ? date2Thai(formData.endLeaveDate) : null"
:label="`${'ลาถึงวันที่'}`"