From c3269e28b83f6f2d470002eb010eb5c5f0584a74 Mon Sep 17 00:00:00 2001 From: Methapon Metanipat Date: Fri, 8 Nov 2024 15:16:17 +0700 Subject: [PATCH] feat: disable past date from due date --- src/pages/05_quotation/QuotationFormMetadata.vue | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/pages/05_quotation/QuotationFormMetadata.vue b/src/pages/05_quotation/QuotationFormMetadata.vue index 21e43ce9..0cc79c4f 100644 --- a/src/pages/05_quotation/QuotationFormMetadata.vue +++ b/src/pages/05_quotation/QuotationFormMetadata.vue @@ -33,6 +33,9 @@ const createdAt = defineModel('createdAt'); :label="$t('quotation.dueDate')" :readonly v-model="dueDate" + :disabled-dates=" + (date: Date) => date.getTime() < Date.now() - 24 * 60 * 60 * 1000 + " class="col-6 col-md-2" />