From 356647f810337b25d8533fa1a4cfd4b95f7cedc9 Mon Sep 17 00:00:00 2001 From: riefive Date: Mon, 8 Dec 2025 15:01:14 +0700 Subject: [PATCH] feat: Add encounter list page with filter form and document upload functionality. --- app/components/app/encounter/filter-form.vue | 2 ++ app/components/content/encounter/list.vue | 12 ++++++++++++ 2 files changed, 14 insertions(+) diff --git a/app/components/app/encounter/filter-form.vue b/app/components/app/encounter/filter-form.vue index 9ae0123b..338b3fc2 100644 --- a/app/components/app/encounter/filter-form.vue +++ b/app/components/app/encounter/filter-form.vue @@ -11,6 +11,7 @@ const props = defineProps<{ const emit = defineEmits<{ (e: 'search', values: any): void + (e: 'reset'): void }>() const paymentItem = ref(null) @@ -21,6 +22,7 @@ function handleReset() { paymentItem.value = null unitItem.value = null visitItem.value = null + emit('reset') } function handleSearch() { diff --git a/app/components/content/encounter/list.vue b/app/components/content/encounter/list.vue index 84e6026f..d14b6023 100644 --- a/app/components/content/encounter/list.vue +++ b/app/components/content/encounter/list.vue @@ -244,6 +244,16 @@ function handleFilterApply(filters: { personName: string; startDate: string; end getPatientList() } +function handleFilterReset() { + filterParams.value = {} + getPatientList() +} + +function handleFilterSearch(filters: any) { + filterParams.value = { ...filterParams.value, ...filters } + getPatientList() +} + // Handle confirmation result async function handleConfirmCancel(record: any, action: string) { if (action === 'deactivate' && record?.id) { @@ -363,6 +373,8 @@ function handleRemoveConfirmation() { :payments="payments" :units="units" :visits="visits" + @search="handleFilterSearch" + @reset="handleFilterReset" />