feat/prescription: more adjustment
This commit is contained in:
@@ -12,12 +12,11 @@ export const config: Config = {
|
|||||||
{ label: 'Bentuk' },
|
{ label: 'Bentuk' },
|
||||||
{ label: 'Freq' },
|
{ label: 'Freq' },
|
||||||
{ label: 'Dosis' },
|
{ label: 'Dosis' },
|
||||||
{ label: 'Interval' },
|
|
||||||
{ label: 'Total' },
|
{ label: 'Total' },
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
|
|
||||||
keys: ['name', 'uom_code', 'frequency', 'multiplier', 'interval', 'total'],
|
keys: ['medicine.name', 'medicine.medicineForm.name', 'frequency', 'dose', 'total'],
|
||||||
|
|
||||||
delKeyNames: [
|
delKeyNames: [
|
||||||
{ key: 'code', label: 'Kode' },
|
{ key: 'code', label: 'Kode' },
|
||||||
|
|||||||
@@ -1,4 +1,6 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
|
import DataTable from '~/components/pub/my-ui/data-table/data-table.vue'
|
||||||
|
|
||||||
import type { PrescriptionItem } from '~/models/prescription-item';
|
import type { PrescriptionItem } from '~/models/prescription-item';
|
||||||
import { config } from './list.cfg'
|
import { config } from './list.cfg'
|
||||||
|
|
||||||
@@ -13,7 +15,7 @@ const emit = defineEmits<{
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<PubMyUiDataTable class="border mb-2 2xl:mb-3"
|
<DataTable class="border mb-2"
|
||||||
v-bind="config"
|
v-bind="config"
|
||||||
:rows="data"
|
:rows="data"
|
||||||
/>
|
/>
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ const props = defineProps<{
|
|||||||
Order {{ data.issuedAt?.substring(0, 10) || data.createdAt?.substring(0, 10) }} - {{ data.status_code }}
|
Order {{ data.issuedAt?.substring(0, 10) || data.createdAt?.substring(0, 10) }} - {{ data.status_code }}
|
||||||
</div>
|
</div>
|
||||||
<div class="max-w-[1000px]">
|
<div class="max-w-[1000px]">
|
||||||
<DE.Block mode="preview" :col-count=5 class="!mb-3">
|
<DE.Block mode="preview" label-size="sm" :col-count=5 class="!mb-3">
|
||||||
<DE.Cell :col-span="2">
|
<DE.Cell :col-span="2">
|
||||||
<DE.Label class="font-semibold">DPJP</DE.Label>
|
<DE.Label class="font-semibold">DPJP</DE.Label>
|
||||||
<DE.Field>
|
<DE.Field>
|
||||||
|
|||||||
@@ -65,7 +65,7 @@ function navClick(type: 'cancel' | 'edit' | 'submit', data: Prescription): void
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</DE.Block>
|
</DE.Block>
|
||||||
<PrescriptionItem :data="item.items || []" @click="console.log('click')" class="mb-10" />
|
<PrescriptionItem :data="item.items || []" class="mb-10" />
|
||||||
<!-- <div v-if="idx < data.length - 1" class="my-8 -mx-4 border-t border-t-slate-300" /> -->
|
<!-- <div v-if="idx < data.length - 1" class="my-8 -mx-4 border-t border-t-slate-300" /> -->
|
||||||
</template>
|
</template>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ const {
|
|||||||
search,
|
search,
|
||||||
page,
|
page,
|
||||||
'encounter-id': encounter_id,
|
'encounter-id': encounter_id,
|
||||||
includes: 'doctor,doctor-employee,doctor-employee-person',
|
includes: 'doctor,doctor-employee,doctor-employee-person,items,items-medicine,items-medicine-medicineForm',
|
||||||
})
|
})
|
||||||
return { success: result.success || false, body: result.body || {} }
|
return { success: result.success || false, body: result.body || {} }
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user