feat: Introduce encounter list page with filtering, search, and action support, along with new handlers for encounter entries and supporting documents.

This commit is contained in:
riefive
2025-12-09 12:50:11 +07:00
parent 1634256bec
commit 9dc9c85fab
4 changed files with 15 additions and 4 deletions
+2 -2
View File
@@ -27,7 +27,7 @@ export async function uploadAttachmentCustom(payload: any) {
const { user } = useUserStore()
const formData = new FormData()
formData.append('code', payload.type)
formData.append('name', payload.name)
formData.append('content', payload.file)
formData.append('entityType_code', payload.entityTypeCode)
formData.append('type_code', payload.type)
@@ -35,5 +35,5 @@ export async function uploadAttachmentCustom(payload: any) {
formData.append('upload_employee_id', user.employee_id)
const response = payload.id ? await update(payload.id, formData) : await create(formData)
return response?.body?.data
return response
}