diff --git a/app/components/app/procedure-room-order/list.cfg.ts b/app/components/app/procedure-room-order/list.cfg.ts index 30fdc894..e415e26f 100644 --- a/app/components/app/procedure-room-order/list.cfg.ts +++ b/app/components/app/procedure-room-order/list.cfg.ts @@ -2,7 +2,7 @@ import type { Config, RecComponent } from '~/components/pub/my-ui/data-table' import { defineAsyncComponent } from 'vue' import type { ProcedureRoomOrder } from '~/models/procedure-room-order' -const action = defineAsyncComponent(() => import('~/components/pub/my-ui/data/dropdown-action-dud.vue')) +const action = defineAsyncComponent(() => import('~/components/pub/my-ui/data/dropdown-action-dsd.vue')) export const config: Config = { cols: [{}, {}, {}, {}, {}, { width: 50 }], @@ -16,7 +16,7 @@ export const config: Config = { { label: '' }, ]], - keys: ['date', 'number', 'room', 'status', 'resume', 'action'], + keys: ['date', 'number', 'room', 'status_code', 'resume', 'action'], delKeyNames: [ { key: 'createdAt', label: 'Tgl. Order' }, @@ -35,7 +35,14 @@ export const config: Config = { }, room: (rec: any) => { const recX = rec as ProcedureRoomOrder - return recX.procedureRoom?.infra?.name || '--belum terdata0--' + let result = '' + if (recX.items && recX.items.length > 0) { + recX.items.forEach((item, idx) => { + result += item.infra?.name ? `
${item.infra.name}
` : '' + }) + } + // recX.ite + return '' }, }, diff --git a/app/components/app/procedure-room-order/list.vue b/app/components/app/procedure-room-order/list.vue index a97ea3fb..bdbfe1be 100644 --- a/app/components/app/procedure-room-order/list.vue +++ b/app/components/app/procedure-room-order/list.vue @@ -1,5 +1,6 @@ diff --git a/app/components/app/procedure-room/multi-opt-picker.vue b/app/components/app/procedure-room/multi-opt-picker.vue index 47dcd6da..ecdd945a 100644 --- a/app/components/app/procedure-room/multi-opt-picker.vue +++ b/app/components/app/procedure-room/multi-opt-picker.vue @@ -1,22 +1,41 @@ \ No newline at end of file + diff --git a/app/components/app/procedure-room/single-opt-picker.vue b/app/components/app/procedure-room/single-opt-picker.vue index ae2b0b6f..ecdd945a 100644 --- a/app/components/app/procedure-room/single-opt-picker.vue +++ b/app/components/app/procedure-room/single-opt-picker.vue @@ -1,9 +1,41 @@ + + \ No newline at end of file +