Merge branch 'dev' of github.com:dikstub-rssa/simrs-fe into feat/org-src

This commit is contained in:
Khafid Prayoga
2025-08-28 13:37:44 +07:00
23 changed files with 726 additions and 86 deletions
-20
View File
@@ -1,20 +0,0 @@
<script setup lang="ts">
function onEvent(type: string) {
if (type === 'cancel') {
navigateTo('/doctor')
} else if (type === 'draft') {
// do something
} else if (type === 'submit') {
// do something
}
}
const data = ref({
name: '',
specialization: '',
hospital: '',
})
</script>
<template>
<AppDoctorEntryForm v-model="data" @event="onEvent" />
</template>
+4
View File
@@ -1,5 +1,9 @@
<script setup lang="ts"></script>
<template>
<div class="mb-5 border-b border-b-slate-300 pb-3 text-lg xl:text-xl">
<Icon name="i-lucide-user" class="me-2" />
<span class="font-semibold">Tambah</span> Pasien
</div>
<AppPatientEntryForm />
</template>
+34
View File
@@ -0,0 +1,34 @@
<script setup lang="ts">
import Action from '~/components/pub/custom-ui/nav-footer/ba-dr-su.vue'
const data = ref({
name: '',
password: '',
status: '',
type: '',
})
function onClick(type: string) {
if (type === 'cancel') {
navigateTo('/human-src/user')
} else if (type === 'draft') {
// do something
} else if (type === 'submit') {
// do something
}
}
</script>
<template>
<div class="mb-5 border-b border-b-slate-300 pb-3 text-lg xl:text-xl">
<Icon name="i-lucide-user" class="me-2" />
<span class="font-semibold">Tambah</span> Dokter
</div>
<div>
<AppDoctorEntryForm v-if="data.type === 'doctor'" v-model="data" />
</div>
<AppUserEntryForm v-model="data" />
<div class="my-2 flex justify-end py-2">
<Action @click="onClick" />
</div>
</template>
@@ -26,11 +26,11 @@ const recAction = ref<string>('')
const recItem = ref<any>(null)
const headerPrep: HeaderPrep = {
title: 'Dokter',
icon: 'i-lucide-network',
title: 'User',
icon: 'i-lucide-users',
addNav: {
label: 'Tambah',
onClick: () => navigateTo('/doctor/add'),
onClick: () => navigateTo('/human-src/user/add'),
},
}