diff --git a/app/components/app/antibiotic-in-use/entry.vue b/app/components/app/antibiotic-in-use/entry.vue new file mode 100644 index 00000000..e69de29b diff --git a/app/components/app/antibiotic-in-use/list.cfg.ts b/app/components/app/antibiotic-in-use/list.cfg.ts new file mode 100644 index 00000000..429e2dd8 --- /dev/null +++ b/app/components/app/antibiotic-in-use/list.cfg.ts @@ -0,0 +1,28 @@ +import type { Config, RecComponent } from '~/components/pub/my-ui/data-table' +import { defineAsyncComponent } from 'vue' + +type SmallDetailDto = any + +const action = defineAsyncComponent(() => import('~/components/pub/my-ui/data/dropdown-action-dud.vue')) + +export const config: Config = { + cols: [{}, {}], + + headers: [[{ label: 'Kode' }, { label: 'Nama' }]], + + keys: ['code', 'name'], + + delKeyNames: [ + { key: 'code', label: 'Kode' }, + { key: 'name', label: 'Nama' }, + ], + + parses: { + }, + + components: { + }, + + htmls: { + }, +} diff --git a/app/components/app/antibiotic-in-use/list.vue b/app/components/app/antibiotic-in-use/list.vue new file mode 100644 index 00000000..fac15e5c --- /dev/null +++ b/app/components/app/antibiotic-in-use/list.vue @@ -0,0 +1,17 @@ + + + diff --git a/app/components/app/control-letter/_common/select-unit.vue b/app/components/app/control-letter/_common/select-unit.vue index afe0ca0a..0aef857f 100644 --- a/app/components/app/control-letter/_common/select-unit.vue +++ b/app/components/app/control-letter/_common/select-unit.vue @@ -33,7 +33,7 @@ const { const units = ref>([]) async function fetchData() { - units.value = await getUnitLabelList({}, true) + units.value = await getUnitLabelList({}) } const selectedUnitId = inject>("selectedUnitId")! diff --git a/app/components/app/encounter/check-in-entry.vue b/app/components/app/encounter/check-in-entry.vue index ad7de5d6..ea897a31 100644 --- a/app/components/app/encounter/check-in-entry.vue +++ b/app/components/app/encounter/check-in-entry.vue @@ -10,12 +10,13 @@ import ComboBox from '~/components/pub/my-ui/combobox/combobox.vue' import * as DE from '~/components/pub/my-ui/doc-entry' import type { CheckInFormData } from '~/schemas/encounter.schema' import type { Encounter } from '~/models/encounter' +import { now } from '@internationalized/date'; interface Props { schema: z.ZodSchema values: any doctors: { value: string; label: string }[] - employees: { value: string; label: string }[] + // employees: { value: string; label: string }[] encounter: Encounter isLoading?: boolean isReadonly?: boolean @@ -36,18 +37,23 @@ const { defineField, errors, meta } = useForm({ } as Partial, }) -const [responsible_doctor_id, responsible_doctor_idAttrs] = defineField('responsible_doctor_id') -const [adm_employee_id, adm_employee_idAttrs] = defineField('discharge_method_code') +const [responsible_doctor_code, responsible_doctor_codeAttrs] = defineField('responsible_doctor_code') +// const [adm_employee_id, adm_employee_idAttrs] = defineField('discharge_method_code') const [registeredAt, registeredAtAttrs] = defineField('registeredAt') function submitForm() { const formData: CheckInFormData = { - responsible_doctor_id: responsible_doctor_id.value, - adm_employee_id: adm_employee_id.value, - // registeredAt: registeredAt.value || '', + responsible_doctor_code: responsible_doctor_code.value, + // adm_employee_id: adm_employee_id.value, + registeredAt: registeredAt.value || '', } emit('submit', formData) } + +function setTime() { + const today = new Date() + registeredAt.value = today.toISOString().substring(0, 10) + ' ' + today.toLocaleTimeString('id-ID').substring(0, 5).replace('.', ':'); +}