feat: enhance encounter entry forms with mode handling and default date setup

This commit is contained in:
riefive
2025-11-27 11:46:06 +07:00
parent c4ab408a09
commit b38487e41f
10 changed files with 57 additions and 50 deletions
+4 -3
View File
@@ -43,7 +43,7 @@ const {
toNavigateSep,
getListPath,
handleInit,
loadEncounterDetail,
getFetchEncounterDetail,
handleSaveEncounter,
getPatientsList,
getPatientCurrent,
@@ -120,7 +120,7 @@ watch(
onMounted(async () => {
await handleInit()
if (props.id > 0) {
await loadEncounterDetail()
await getFetchEncounterDetail()
}
})
</script>
@@ -131,12 +131,13 @@ onMounted(async () => {
name="i-lucide-user"
class="me-2"
/>
<span class="font-semibold">{{ props.formType }}</span>
<span class="font-semibold">{{ props.formType === 'add' ? 'Tambah' : 'Ubah' }}</span>
Kunjungan
</div>
<AppEncounterEntryForm
ref="formRef"
:mode="props.formType"
:is-loading="isLoadingDetail"
:is-sep-valid="isSepValid"
:is-checking-sep="isCheckingSep"