From 1fbd20d9ae5ba9f90dd0e53074b196c8e3759e12 Mon Sep 17 00:00:00 2001 From: Khafid Prayoga Date: Thu, 27 Nov 2025 11:15:09 +0700 Subject: [PATCH] done: form entry laporan tindakan todo: manage state readonly ke komponen app prosedur pager-nav: scroll x on small screen form-schema: catatan opsional feat(treatment-report): add datetime validation and duration calculation - Change operator team fields from IDs to names in schema and form - Modify blood input schema to use type-based amount selection - Update form fields to match new schema structure - Simplify radio bloods component logic and styling - Add validation for ISO datetime format in treatment report schema - Implement duration calculation for operation and anesthesia times - Update input fields to use datetime-local type - Add disabled state for radio bloods component --- .../app/treatment-report/entry-form.vue | 95 +++++++++++++++---- .../treatment-report/fields/radio-bloods.vue | 40 ++++---- .../content/treatment-report/add.vue | 50 +++++++++- app/components/pub/my-ui/form/input-base.vue | 4 + .../pub/my-ui/pagination/pagination.vue | 2 +- app/components/pub/ui/form/array-message.vue | 20 ++++ app/components/pub/ui/form/index.ts | 1 + app/schemas/treatment-report.schema.ts | 67 ++++++++----- 8 files changed, 208 insertions(+), 71 deletions(-) create mode 100644 app/components/pub/ui/form/array-message.vue diff --git a/app/components/app/treatment-report/entry-form.vue b/app/components/app/treatment-report/entry-form.vue index aa504191..98eafbad 100644 --- a/app/components/app/treatment-report/entry-form.vue +++ b/app/components/app/treatment-report/entry-form.vue @@ -1,6 +1,7 @@