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

This commit is contained in:
Khafid Prayoga
2025-08-20 09:38:49 +07:00
8 changed files with 59 additions and 11 deletions
+16 -6
View File
@@ -3,6 +3,18 @@ import Block from '~/components/pub/form/block.vue'
import FieldGroup from '~/components/pub/form/field-group.vue'
import Field from '~/components/pub/form/field.vue'
import Label from '~/components/pub/form/label.vue'
const props = defineProps<{ modelValue: any }>()
const emit = defineEmits(['update:modelValue', 'event'])
const data = computed({
get: () => props.modelValue,
set: (val) => emit('update:modelValue', val),
})
function onClick(type: string) {
emit('event', type)
}
</script>
<template>
@@ -18,7 +30,7 @@ import Label from '~/components/pub/form/label.vue'
<FieldGroup :column="1">
<Label>Nama dan Gelar</Label>
<Field>
<Input type="text" name="name" default-value="dr." />
<Input v-model="data.name" type="text" name="name" default-value="dr." />
</Field>
<Field>
<Input type="text" name="name" />
@@ -61,7 +73,6 @@ import Label from '~/components/pub/form/label.vue'
<Label>Fee Rajal</Label>
<Field>
<Input type="number" name="outPatient_rate" />
</Field>
</FieldGroup>
<FieldGroup :column="2">
@@ -76,8 +87,8 @@ import Label from '~/components/pub/form/label.vue'
<Label>Status</Label>
<Field>
<Input type="select" name="status">
<option value="active">Aktif</option>
<option value="inactive">Tidak Aktif</option>
<option value="active">Aktif</option>
<option value="inactive">Tidak Aktif</option>
</Input>
</Field>
</FieldGroup>
@@ -94,13 +105,12 @@ import Label from '~/components/pub/form/label.vue'
<Field>
<Input type="password" name="password" />
</Field>
</FieldGroup>
</Block>
</div>
</div>
<div class="my-2 flex justify-end py-2">
<PubNavFooterCsd />
<PubNavFooterCsd @click="onClick" />
</div>
</form>
</template>
+15 -1
View File
@@ -1,6 +1,20 @@
<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 />
<AppDoctorEntryForm v-model="data" @event="onEvent" />
</template>
+3 -3
View File
@@ -12,15 +12,15 @@ function onClick(type: ClickType) {
<template>
<div class="m-2 flex gap-2 px-2">
<Button class="bg-gray-400" @click="onClick('cancel')">
<Button class="bg-gray-400" type="button" @click="onClick('cancel')">
<Icon name="i-lucide-arrow-left" class="me-2 align-middle" />
Kembali
</Button>
<Button class="bg-orange-500" variant="outline" @click="onClick('draft')">
<Button class="bg-orange-500" variant="outline" type="button" @click="onClick('draft')">
<Icon name="i-lucide-file" class="me-2" />
Draf
</Button>
<Button class="bg-primary" @click="onClick('submit')">
<Button class="bg-primary" type="button" @click="onClick('submit')">
<Icon name="i-lucide-check" class="me-2 align-middle" />
Selesai
</Button>
@@ -0,0 +1,3 @@
<template>
<div>Examination Queue</div>
</template>
@@ -0,0 +1,3 @@
<template>
<div>Examination</div>
</template>
@@ -0,0 +1,3 @@
<template>
<div>Registration Queue</div>
</template>
@@ -0,0 +1,3 @@
<template>
<div>Registration</div>
</template>
+13 -1
View File
@@ -43,7 +43,19 @@
{
"title": "Rehabilitasi Medik",
"icon": "i-lucide-heart",
"link": "/rehabilitasi"
"link": "/rehabilitasi",
"children": [
{
"title": "Daftar Kunjungan Rawat Jalan",
"icon": "i-lucide-stethoscope",
"link": "/rehab/registration-queue"
},
{
"title": "Daftar Kunjungan Rawat Inap",
"icon": "i-lucide-building-2",
"link": "/rehab/examination"
}
]
},
{
"title": "Rawat Inap",