- Tambah Kunjungan
+ {{ props.formType }} Kunjungan
+
diff --git a/app/components/content/encounter/list.vue b/app/components/content/encounter/list.vue
index 1a3044e1..4df4f998 100644
--- a/app/components/content/encounter/list.vue
+++ b/app/components/content/encounter/list.vue
@@ -56,6 +56,19 @@ onMounted(() => {
getPatientList()
})
+watch(
+ () => recAction.value,
+ () => {
+ if (recAction.value === 'showDetail') {
+ navigateTo(`/rehab/encounter/${recId.value}/detail`)
+ } else if (recAction.value === 'showEdit') {
+ navigateTo(`/rehab/encounter/${recId.value}/edit`)
+ } else {
+ // handle other actions
+ }
+ },
+)
+
provide('rec_id', recId)
provide('rec_action', recAction)
provide('rec_item', recItem)
diff --git a/app/pages/(features)/rehab/encounter/[id]/detail.vue b/app/pages/(features)/rehab/encounter/[id]/detail.vue
index 33a36f0f..e26b566c 100644
--- a/app/pages/(features)/rehab/encounter/[id]/detail.vue
+++ b/app/pages/(features)/rehab/encounter/[id]/detail.vue
@@ -1,9 +1,41 @@