fix: page encounter main

This commit is contained in:
riefive
2025-12-03 15:06:58 +07:00
parent 5cb03ea3d7
commit e1c4c585b1
5 changed files with 72 additions and 67 deletions
@@ -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)
},
+3 -3
View File
@@ -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?"