From 887db6f2a26248a80f37cb5f623be48a94714c3b Mon Sep 17 00:00:00 2001 From: Abizrh Date: Tue, 23 Sep 2025 23:05:22 +0700 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat=20(rehab):=20implement=20rehab?= =?UTF-8?q?=20registration=20home=20component?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/components/app/encounter/list-cfg.ts | 2 +- app/components/app/patient/quick-info.vue | 75 ++++++++++++ app/components/content/encounter/list.vue | 3 + .../content/rehab/registration/home.vue | 111 +++++++++++------- .../custom-ui/data/dropdown-action-pdud.vue | 96 +++++++++++++++ app/components/pub/custom-ui/data/types.ts | 1 + .../rehab/encounter/[id]/process.vue | 41 +++++++ 7 files changed, 287 insertions(+), 42 deletions(-) create mode 100644 app/components/app/patient/quick-info.vue create mode 100644 app/components/pub/custom-ui/data/dropdown-action-pdud.vue create mode 100644 app/pages/(features)/rehab/encounter/[id]/process.vue diff --git a/app/components/app/encounter/list-cfg.ts b/app/components/app/encounter/list-cfg.ts index fd4d0317..9e1b5d33 100644 --- a/app/components/app/encounter/list-cfg.ts +++ b/app/components/app/encounter/list-cfg.ts @@ -10,7 +10,7 @@ import { defineAsyncComponent } from 'vue' type SmallDetailDto = any -const action = defineAsyncComponent(() => import('~/components/pub/custom-ui/data/dropdown-action-dud.vue')) +const action = defineAsyncComponent(() => import('~/components/pub/custom-ui/data/dropdown-action-pdud.vue')) const statusBadge = defineAsyncComponent(() => import('./status-badge.vue')) export const cols: Col[] = [ diff --git a/app/components/app/patient/quick-info.vue b/app/components/app/patient/quick-info.vue new file mode 100644 index 00000000..1f8943c2 --- /dev/null +++ b/app/components/app/patient/quick-info.vue @@ -0,0 +1,75 @@ + + + diff --git a/app/components/content/encounter/list.vue b/app/components/content/encounter/list.vue index 4df4f998..363d99bf 100644 --- a/app/components/content/encounter/list.vue +++ b/app/components/content/encounter/list.vue @@ -59,10 +59,13 @@ onMounted(() => { watch( () => recAction.value, () => { + console.log('recAction.value', recAction.value) if (recAction.value === 'showDetail') { navigateTo(`/rehab/encounter/${recId.value}/detail`) } else if (recAction.value === 'showEdit') { navigateTo(`/rehab/encounter/${recId.value}/edit`) + } else if (recAction.value === 'showProcess') { + navigateTo(`/rehab/encounter/${recId.value}/process`) } else { // handle other actions } diff --git a/app/components/content/rehab/registration/home.vue b/app/components/content/rehab/registration/home.vue index 7fe1e669..f6b646a9 100644 --- a/app/components/content/rehab/registration/home.vue +++ b/app/components/content/rehab/registration/home.vue @@ -1,57 +1,86 @@ - - diff --git a/app/components/pub/custom-ui/data/dropdown-action-pdud.vue b/app/components/pub/custom-ui/data/dropdown-action-pdud.vue new file mode 100644 index 00000000..a65d435a --- /dev/null +++ b/app/components/pub/custom-ui/data/dropdown-action-pdud.vue @@ -0,0 +1,96 @@ + + + diff --git a/app/components/pub/custom-ui/data/types.ts b/app/components/pub/custom-ui/data/types.ts index fe9f9ebd..7c63d991 100644 --- a/app/components/pub/custom-ui/data/types.ts +++ b/app/components/pub/custom-ui/data/types.ts @@ -105,4 +105,5 @@ export const ActionEvents = { showConfirmDelete: 'showConfirmDel', showEdit: 'showEdit', showDetail: 'showDetail', + showProcess: 'showProcess', } diff --git a/app/pages/(features)/rehab/encounter/[id]/process.vue b/app/pages/(features)/rehab/encounter/[id]/process.vue new file mode 100644 index 00000000..ad499dfe --- /dev/null +++ b/app/pages/(features)/rehab/encounter/[id]/process.vue @@ -0,0 +1,41 @@ + + +