feat: add encounter list component with data display, filtering, and record management capabilities

This commit is contained in:
riefive
2025-12-08 16:10:11 +07:00
parent e33b23205a
commit 0a0461238c
+7 -3
View File
@@ -129,7 +129,6 @@ watch([recSepId, recSepMenu, recSepSubMenu], (value) => {
const id = value[0]
const menu = value[1]
const subMenu = value[2]
console.log(id, menu, subMenu)
if (!id) return
if (subMenu === 'view') {
handleViewFile(id, menu, subMenu)
@@ -189,8 +188,13 @@ async function getPatientList() {
function handleUploadFile(id: number, menu: string) {
uploadFile.value = null
document.getElementById('uploadFile')?.click()
console.log(id)
const fileInput: HTMLInputElement | undefined | null = document
.getElementById('uploadFile')
?.querySelector("input[type='file']")
if (fileInput) {
fileInput.value = ''
fileInput.click()
}
}
async function handleUploadFileSubmit() {