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<{
|
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() {
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user