feat/micro-lab-order-50: adjust for antibiotic
This commit is contained in:
@@ -1,16 +1,18 @@
|
||||
import type { Config } from '~/components/pub/my-ui/data-table'
|
||||
|
||||
export const config: Config = {
|
||||
cols: [{}, {}],
|
||||
cols: [{}, { width: 150 }, {}],
|
||||
|
||||
headers: [
|
||||
[
|
||||
{ label: 'Nama' },
|
||||
{ label: 'Jadwal Pemeriksaan' },
|
||||
{ label: 'Status' },
|
||||
{ label: 'Catatan' },
|
||||
],
|
||||
],
|
||||
|
||||
keys: ['mcuSrc.name', 'mcuSrcCategory.name'],
|
||||
keys: ['mcuSrc.name', 'examinationDate', 'status_code', 'note'],
|
||||
|
||||
delKeyNames: [
|
||||
{ key: 'mcuSrc.name', label: 'Nama' },
|
||||
|
||||
@@ -4,10 +4,13 @@ import type { PaginationMeta } from '~/components/pub/my-ui/pagination/paginatio
|
||||
import Nav from '~/components/pub/my-ui/nav-footer/ca-ed-su.vue'
|
||||
|
||||
import type { McuOrder } from '~/models/mcu-order';
|
||||
import AntibioticInUseList from '~/components/app/antibiotic-in-use/list.vue';
|
||||
import McuOrderItems from '~/components/app/mcu-order-item/list.vue';
|
||||
import type { AntibioticInUse } from '~/models/antibiotic-in-use';
|
||||
|
||||
interface Props {
|
||||
data: McuOrder[]
|
||||
antibioticInUses: AntibioticInUse[]
|
||||
paginationMeta: PaginationMeta
|
||||
}
|
||||
const props = defineProps<Props>()
|
||||
@@ -59,6 +62,7 @@ function navClick(type: 'cancel' | 'edit' | 'submit', data: McuOrder): void {
|
||||
/>
|
||||
</div>
|
||||
</DE.Block>
|
||||
<AntibioticInUseList v-if="item.antibioticInUseItems?.length > 0" :data="[]" class="!mb-5" />
|
||||
<McuOrderItems :data="item.items || []" @click="console.log('click')" class="!mb-5" />
|
||||
</template>
|
||||
</template>
|
||||
|
||||
@@ -54,7 +54,7 @@ const {
|
||||
page,
|
||||
'scope-code': props.scopeCode,
|
||||
'encounter-id': encounter_id,
|
||||
includes: 'doctor,doctor-employee,doctor-employee-person',
|
||||
includes: 'doctor,doctor-employee,doctor-employee-person,items,items-mcuSrc',
|
||||
})
|
||||
return { success: result.success || false, body: result.body || {} }
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user