Merge branch 'dev' of github.com:dikstub-rssa/simrs-fe into feat/satusehat
This commit is contained in:
No files matched your search
@@ -3,6 +3,18 @@ import Block from '~/components/pub/form/block.vue'
|
|||||||
import FieldGroup from '~/components/pub/form/field-group.vue'
|
import FieldGroup from '~/components/pub/form/field-group.vue'
|
||||||
import Field from '~/components/pub/form/field.vue'
|
import Field from '~/components/pub/form/field.vue'
|
||||||
import Label from '~/components/pub/form/label.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>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
@@ -18,7 +30,7 @@ import Label from '~/components/pub/form/label.vue'
|
|||||||
<FieldGroup :column="1">
|
<FieldGroup :column="1">
|
||||||
<Label>Nama dan Gelar</Label>
|
<Label>Nama dan Gelar</Label>
|
||||||
<Field>
|
<Field>
|
||||||
<Input type="text" name="name" default-value="dr." />
|
<Input v-model="data.name" type="text" name="name" default-value="dr." />
|
||||||
</Field>
|
</Field>
|
||||||
<Field>
|
<Field>
|
||||||
<Input type="text" name="name" />
|
<Input type="text" name="name" />
|
||||||
@@ -61,7 +73,6 @@ import Label from '~/components/pub/form/label.vue'
|
|||||||
<Label>Fee Rajal</Label>
|
<Label>Fee Rajal</Label>
|
||||||
<Field>
|
<Field>
|
||||||
<Input type="number" name="outPatient_rate" />
|
<Input type="number" name="outPatient_rate" />
|
||||||
|
|
||||||
</Field>
|
</Field>
|
||||||
</FieldGroup>
|
</FieldGroup>
|
||||||
<FieldGroup :column="2">
|
<FieldGroup :column="2">
|
||||||
@@ -76,8 +87,8 @@ import Label from '~/components/pub/form/label.vue'
|
|||||||
<Label>Status</Label>
|
<Label>Status</Label>
|
||||||
<Field>
|
<Field>
|
||||||
<Input type="select" name="status">
|
<Input type="select" name="status">
|
||||||
<option value="active">Aktif</option>
|
<option value="active">Aktif</option>
|
||||||
<option value="inactive">Tidak Aktif</option>
|
<option value="inactive">Tidak Aktif</option>
|
||||||
</Input>
|
</Input>
|
||||||
</Field>
|
</Field>
|
||||||
</FieldGroup>
|
</FieldGroup>
|
||||||
@@ -94,13 +105,12 @@ import Label from '~/components/pub/form/label.vue'
|
|||||||
<Field>
|
<Field>
|
||||||
<Input type="password" name="password" />
|
<Input type="password" name="password" />
|
||||||
</Field>
|
</Field>
|
||||||
|
|
||||||
</FieldGroup>
|
</FieldGroup>
|
||||||
</Block>
|
</Block>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="my-2 flex justify-end py-2">
|
<div class="my-2 flex justify-end py-2">
|
||||||
<PubNavFooterCsd />
|
<PubNavFooterCsd @click="onClick" />
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</template>
|
</template>
|
||||||
@@ -1,6 +1,20 @@
|
|||||||
<script setup lang="ts">
|
<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>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<AppDoctorEntryForm />
|
<AppDoctorEntryForm v-model="data" @event="onEvent" />
|
||||||
</template>
|
</template>
|
||||||
@@ -12,15 +12,15 @@ function onClick(type: ClickType) {
|
|||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div class="m-2 flex gap-2 px-2">
|
<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" />
|
<Icon name="i-lucide-arrow-left" class="me-2 align-middle" />
|
||||||
Kembali
|
Kembali
|
||||||
</Button>
|
</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" />
|
<Icon name="i-lucide-file" class="me-2" />
|
||||||
Draf
|
Draf
|
||||||
</Button>
|
</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" />
|
<Icon name="i-lucide-check" class="me-2 align-middle" />
|
||||||
Selesai
|
Selesai
|
||||||
</Button>
|
</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>
|
||||||
@@ -43,7 +43,19 @@
|
|||||||
{
|
{
|
||||||
"title": "Rehabilitasi Medik",
|
"title": "Rehabilitasi Medik",
|
||||||
"icon": "i-lucide-heart",
|
"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",
|
"title": "Rawat Inap",
|
||||||
|
|||||||
Reference in New Issue
Block a user