From 06476756fb7160854de95c6b6ef499c4940f5736 Mon Sep 17 00:00:00 2001 From: Munawwirul Jamal Date: Wed, 8 Oct 2025 07:58:48 +0700 Subject: [PATCH] fe-prescription-56: wip --- .../app/prescription-item/list-entry.vue | 19 ++ .../app/prescription/list-entry.vue | 84 +++---- app/components/content/encounter/process.vue | 3 +- app/components/content/prescription/list.vue | 216 +++++++++++++----- .../pub/my-ui/data-table/data-table.vue | 3 +- app/components/pub/my-ui/nav-header/prep.vue | 2 +- app/composables/usePaginatedList.ts | 4 + app/handlers/prescription.handler.ts | 17 ++ app/models/_model.ts | 2 +- app/models/device.ts | 4 +- app/models/division-position.ts | 7 + app/models/division.ts | 7 +- app/models/doctor.ts | 32 +-- app/models/employee.ts | 14 +- app/models/encounter.ts | 39 ++++ app/models/person.ts | 34 +++ app/models/prescription-item.ts | 2 +- app/models/prescription.ts | 57 +++++ app/models/specialist-intern.ts | 29 +++ app/models/specialist.ts | 16 +- app/models/subspecialist.ts | 16 +- app/schemas/prescription-item.schema.ts | 10 + app/schemas/prescription.schema.ts | 11 + 23 files changed, 492 insertions(+), 136 deletions(-) create mode 100644 app/handlers/prescription.handler.ts create mode 100644 app/models/division-position.ts create mode 100644 app/models/encounter.ts create mode 100644 app/models/person.ts create mode 100644 app/models/prescription.ts create mode 100644 app/models/specialist-intern.ts create mode 100644 app/schemas/prescription-item.schema.ts create mode 100644 app/schemas/prescription.schema.ts diff --git a/app/components/app/prescription-item/list-entry.vue b/app/components/app/prescription-item/list-entry.vue index e5feecba..6629f782 100644 --- a/app/components/app/prescription-item/list-entry.vue +++ b/app/components/app/prescription-item/list-entry.vue @@ -15,5 +15,24 @@ defineProps<{ :func-parsed="funcParsed" :func-html="funcHtml" :func-component="funcComponent" + class="border mb-4 2xl:mb-5" /> +
+
+ + +
+
+ +
+
diff --git a/app/components/app/prescription/list-entry.vue b/app/components/app/prescription/list-entry.vue index 8231dd84..91cf96d5 100644 --- a/app/components/app/prescription/list-entry.vue +++ b/app/components/app/prescription/list-entry.vue @@ -1,8 +1,12 @@ diff --git a/app/components/pub/my-ui/data-table/data-table.vue b/app/components/pub/my-ui/data-table/data-table.vue index 883273b7..c0df12a9 100644 --- a/app/components/pub/my-ui/data-table/data-table.vue +++ b/app/components/pub/my-ui/data-table/data-table.vue @@ -15,6 +15,7 @@ const props = defineProps<{ funcComponent?: RecStrFuncComponent selectMode?: 'single' | 'multiple' modelValue?: any[] | any + class?: string }>() const emit = defineEmits<{ @@ -61,7 +62,7 @@ function handleActionCellClick(event: Event, _cellRef: string) {