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