From 224bc7cd610f4c09c62b3a1d1d2cf6d645e67a7d Mon Sep 17 00:00:00 2001 From: Andrian Roshandy Date: Sat, 15 Nov 2025 20:13:15 +0700 Subject: [PATCH] feat/prescription: integrated non-mix --- .../app/prescription-item/list-entry.cfg.ts | 2 +- .../app/prescription-item/mix-entry.vue | 32 ++++-- .../app/prescription-item/non-mix-entry.vue | 65 ++++++++---- app/components/content/prescription/entry.vue | 98 ++++++++++++------- app/components/content/prescription/list.vue | 10 ++ app/models/medicine.ts | 11 ++- app/models/medicinemix-item.ts | 4 +- app/models/prescription-item.ts | 29 +++--- 8 files changed, 167 insertions(+), 84 deletions(-) diff --git a/app/components/app/prescription-item/list-entry.cfg.ts b/app/components/app/prescription-item/list-entry.cfg.ts index 070dd65f..19b2f3d8 100644 --- a/app/components/app/prescription-item/list-entry.cfg.ts +++ b/app/components/app/prescription-item/list-entry.cfg.ts @@ -20,7 +20,7 @@ export const config: Config = { ], ], - keys: ['name', 'uom_code', 'frequency', 'multiplier', 'interval', 'total', 'action'], + keys: ['medicine.name', 'medicine.medicineForm.name', 'frequency', 'dose', 'interval', 'total', 'action'], delKeyNames: [ { key: 'code', label: 'Kode' }, diff --git a/app/components/app/prescription-item/mix-entry.vue b/app/components/app/prescription-item/mix-entry.vue index d9b4881e..187e9569 100644 --- a/app/components/app/prescription-item/mix-entry.vue +++ b/app/components/app/prescription-item/mix-entry.vue @@ -1,29 +1,37 @@