feat: Add encounter list page with filter form and document upload functionality.
This commit is contained in:
@@ -11,6 +11,7 @@ const props = defineProps<{
|
||||
|
||||
const emit = defineEmits<{
|
||||
(e: 'search', values: any): void
|
||||
(e: 'reset'): void
|
||||
}>()
|
||||
|
||||
const paymentItem = ref<any>(null)
|
||||
@@ -21,6 +22,7 @@ function handleReset() {
|
||||
paymentItem.value = null
|
||||
unitItem.value = null
|
||||
visitItem.value = null
|
||||
emit('reset')
|
||||
}
|
||||
|
||||
function handleSearch() {
|
||||
|
||||
@@ -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"
|
||||
/>
|
||||
</Dialog>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user