feat/consulation-82: done

This commit is contained in:
2025-10-20 09:34:42 +07:00
parent e1358c0d9e
commit f3b45f2cb1
8 changed files with 79 additions and 66 deletions
+6 -2
View File
@@ -41,7 +41,6 @@ interface Props {
encounter: Encounter
}
const props = defineProps<Props>()
console.log(props.encounter);
let units = ref<{ value: string; label: string }[]>([])
const title = ref('')
@@ -56,7 +55,10 @@ const {
fetchData: getMyList,
} = usePaginatedList({
fetchFn: async ({ page, search }) => {
const result = await getList({ search, page })
const result = await getList({ 'encounter-id': props.encounter.id, includes: 'encounter,dstUnit', search, page })
if (result.success) {
data.value = result.body.data;
}
return { success: result.success || false, body: result.body || {} }
},
entityName: 'consultation',
@@ -148,6 +150,7 @@ onMounted(async () => {
<Entry
:schema="ConsultationSchema"
:values="recItem"
:encounter_id="props.encounter.id"
:units="units"
:is-loading="isProcessing"
:is-readonly="isReadonly"
@@ -165,6 +168,7 @@ onMounted(async () => {
</Dialog>
<!-- Record Confirmation Modal -->
{{ isRecordConfirmationOpen }}
<RecordConfirmation
v-model:open="isRecordConfirmationOpen"
action="delete"
+1 -1
View File
@@ -56,7 +56,7 @@ const tabs: TabItem[] = [
{ value: 'mcu-lab-pa', label: 'Order Lab PA' },
{ value: 'medical-action', label: 'Order Ruang Tindakan' },
{ value: 'mcu-result', label: 'Hasil Penunjang' },
{ value: 'consultation', label: 'Konsultasi', component: Consultation, props: { encounter } },
{ value: 'consultation', label: 'Konsultasi', component: Consultation, props: { encounter: data } },
{ value: 'resume', label: 'Resume' },
{ value: 'control', label: 'Surat Kontrol' },
{ value: 'screening', label: 'Skrinning MPP' },