From 8e7f9b19e38cb70110f11878f3f5cd39d25fff13 Mon Sep 17 00:00:00 2001 From: Munawwirul Jamal Date: Mon, 10 Nov 2025 23:17:49 +0700 Subject: [PATCH] feat/radiology-order-54: upgraded mcu-order/list --- app/components/app/mcu-order-item/list-entry.cfg.ts | 10 +++++++++- app/components/app/mcu-order-item/list.cfg.ts | 3 --- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/app/components/app/mcu-order-item/list-entry.cfg.ts b/app/components/app/mcu-order-item/list-entry.cfg.ts index 294232f0..89d85dce 100644 --- a/app/components/app/mcu-order-item/list-entry.cfg.ts +++ b/app/components/app/mcu-order-item/list-entry.cfg.ts @@ -2,9 +2,10 @@ import type { Config } from '~/components/pub/my-ui/data-table' import { defineAsyncComponent } from 'vue' const action = defineAsyncComponent(() => import('~/components/pub/my-ui/data/dropdown-action-dud.vue')) +const input = defineAsyncComponent(() => import('~/components/pub/ui/input/Input.vue')) export const config: Config = { - cols: [{}, {}, {}, { width: 50 }], + cols: [{}, {}, { classVal: '!p-0.5' }, { width: 50 }], headers: [ [ @@ -22,6 +23,13 @@ export const config: Config = { ], components: { + note(rec, idx) { + return { + idx, + rec: rec as object, + component: input, + } + }, action(rec, idx) { return { idx, diff --git a/app/components/app/mcu-order-item/list.cfg.ts b/app/components/app/mcu-order-item/list.cfg.ts index 852bee25..2b054379 100644 --- a/app/components/app/mcu-order-item/list.cfg.ts +++ b/app/components/app/mcu-order-item/list.cfg.ts @@ -1,7 +1,4 @@ import type { Config } from '~/components/pub/my-ui/data-table' -import { defineAsyncComponent } from 'vue' - -type SmallDetailDto = any export const config: Config = { cols: [{}, {}],