fix: page encounter main
This commit is contained in:
@@ -24,10 +24,19 @@ const baseLinkItems: LinkItem[] = [
|
||||
},
|
||||
icon: 'i-lucide-eye',
|
||||
},
|
||||
{
|
||||
label: 'Edit',
|
||||
value: 'edit',
|
||||
groups: ['registration'],
|
||||
onClick: () => {
|
||||
proceedItem(ActionEvents.showEdit)
|
||||
},
|
||||
icon: 'i-lucide-pencil',
|
||||
},
|
||||
{
|
||||
label: 'Process',
|
||||
value: 'process',
|
||||
groups: ['registration'],
|
||||
groups: ['medical'],
|
||||
onClick: () => {
|
||||
proceedItem(ActionEvents.showProcess)
|
||||
},
|
||||
|
||||
@@ -51,18 +51,17 @@ const recItem = ref<any>(null)
|
||||
const isFilterFormDialogOpen = ref(false)
|
||||
const isRecordConfirmationOpen = ref(false)
|
||||
const isRecordCancelOpen = ref(false)
|
||||
const isRoleRegistration = activeServicePosition.value === 'registration'
|
||||
|
||||
// Headers
|
||||
const hreaderPrep: CH.Config = {
|
||||
title: 'Kunjungan',
|
||||
icon: 'i-lucide-users',
|
||||
addNav: isRoleRegistration ? {
|
||||
addNav: {
|
||||
label: 'Tambah',
|
||||
onClick: () => {
|
||||
navigateTo(`/${props.classCode}/encounter/add`)
|
||||
},
|
||||
} : {} as any,
|
||||
},
|
||||
}
|
||||
if (!props.canCreate) {
|
||||
delete hreaderPrep.addNav
|
||||
@@ -265,6 +264,7 @@ function handleRemoveConfirmation() {
|
||||
|
||||
<!-- Batal -->
|
||||
<RecordConfirmation
|
||||
v-if="canDelete"
|
||||
v-model:open="isRecordCancelOpen"
|
||||
custom-title="Batalkan Kunjungan"
|
||||
custom-message="Apakah anda yakin ingin membatalkan kunjungan pasien berikut?"
|
||||
|
||||
Reference in New Issue
Block a user