feat: Add encounter list page with filter form and document upload functionality.

This commit is contained in:
riefive
2025-12-08 15:01:14 +07:00
parent 4fc48d6131
commit 356647f810
2 changed files with 14 additions and 0 deletions
@@ -11,6 +11,7 @@ const props = defineProps<{
const emit = defineEmits<{ const emit = defineEmits<{
(e: 'search', values: any): void (e: 'search', values: any): void
(e: 'reset'): void
}>() }>()
const paymentItem = ref<any>(null) const paymentItem = ref<any>(null)
@@ -21,6 +22,7 @@ function handleReset() {
paymentItem.value = null paymentItem.value = null
unitItem.value = null unitItem.value = null
visitItem.value = null visitItem.value = null
emit('reset')
} }
function handleSearch() { function handleSearch() {
+12
View File
@@ -244,6 +244,16 @@ function handleFilterApply(filters: { personName: string; startDate: string; end
getPatientList() getPatientList()
} }
function handleFilterReset() {
filterParams.value = {}
getPatientList()
}
function handleFilterSearch(filters: any) {
filterParams.value = { ...filterParams.value, ...filters }
getPatientList()
}
// Handle confirmation result // Handle confirmation result
async function handleConfirmCancel(record: any, action: string) { async function handleConfirmCancel(record: any, action: string) {
if (action === 'deactivate' && record?.id) { if (action === 'deactivate' && record?.id) {
@@ -363,6 +373,8 @@ function handleRemoveConfirmation() {
:payments="payments" :payments="payments"
:units="units" :units="units"
:visits="visits" :visits="visits"
@search="handleFilterSearch"
@reset="handleFilterReset"
/> />
</Dialog> </Dialog>