From 582bd67cbe224f6b79dd92dbd823250ee2085f74 Mon Sep 17 00:00:00 2001 From: riefive Date: Wed, 10 Sep 2025 14:37:54 +0700 Subject: [PATCH] feat(sep): modify form entry with calendar select --- app/components/app/sep/entry-form.vue | 40 +++++++++++++------ .../pub/custom-ui/form/datepicker-single.vue | 32 +++++++++++++++ package.json | 1 + pnpm-lock.yaml | 7 ++++ 4 files changed, 68 insertions(+), 12 deletions(-) create mode 100644 app/components/pub/custom-ui/form/datepicker-single.vue diff --git a/app/components/app/sep/entry-form.vue b/app/components/app/sep/entry-form.vue index ae82c741..1b546322 100644 --- a/app/components/app/sep/entry-form.vue +++ b/app/components/app/sep/entry-form.vue @@ -10,6 +10,7 @@ import { Label } from '~/components/pub/ui/label' import { Select } from '~/components/pub/ui/select' import { RadioGroup, RadioGroupItem } from '~/components/pub/ui/radio-group' import { Textarea } from '~/components/pub/ui/textarea' +import DatepickerSingle from '~/components/pub/custom-ui/form/datepicker-single.vue' const items = [ { value: 'item-1', label: 'Item 1' }, @@ -72,7 +73,7 @@ const onSubmit = handleSubmit((values) => {
- +

{{ errors.tanggalSep }}

@@ -87,7 +88,7 @@ const onSubmit = handleSubmit((values) => {

Data Pasien

- @@ -144,15 +145,30 @@ const onSubmit = handleSubmit((values) => {

{{ errors.tglSuratKontrol }}

-
- - -

{{ errors.klinikTujuan }}

+
+
+ + +

{{ errors.klinikTujuan }}

+
+
+ + +
+ + +
+
+ + +
+
+
@@ -169,7 +185,7 @@ const onSubmit = handleSubmit((values) => {
-