feat(installation): add encounter list
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user