feat(installation): add encounter list

This commit is contained in:
riefive
2025-10-01 13:05:36 +07:00
parent 59847dce34
commit 6b69e48bd6
4 changed files with 46 additions and 37 deletions
+9 -1
View File
@@ -28,6 +28,7 @@ import {
handleActionRemove,
handleCancelForm,
} from '~/handlers/installation.handler'
import { encounterClasses, getEncounterClassList } from '~/handlers/_shared.handler'
// Services
import { getInstallations, getInstallationDetail } from '~/services/installation.service'
@@ -110,6 +111,7 @@ watch([recId, recAction], () => {
})
onMounted(async () => {
await getEncounterClassList();
await getInstallationList()
})
</script>
@@ -124,9 +126,15 @@ onMounted(async () => {
/>
<AppInstallationList :data="data" :pagination-meta="paginationMeta" @page-change="handlePageChange" />
<Dialog v-model:open="isFormEntryDialogOpen" :title="!!recItem ? title : 'Tambah Instalasi'" size="lg" prevent-outside>
<Dialog
v-model:open="isFormEntryDialogOpen"
:title="!!recItem ? title : 'Tambah Instalasi'"
size="lg"
prevent-outside
>
<AppInstallationEntryForm
:schema="InstallationSchema"
:encounter-classes="encounterClasses"
:values="recItem"
:is-loading="isProcessing"
:is-readonly="isReadonly"