diff --git a/app/components/app/antibiotic-in-use/entry.vue b/app/components/app/antibiotic-in-use/entry.vue new file mode 100644 index 00000000..e69de29b diff --git a/app/components/app/antibiotic-in-use/list.cfg.ts b/app/components/app/antibiotic-in-use/list.cfg.ts new file mode 100644 index 00000000..429e2dd8 --- /dev/null +++ b/app/components/app/antibiotic-in-use/list.cfg.ts @@ -0,0 +1,28 @@ +import type { Config, RecComponent } from '~/components/pub/my-ui/data-table' +import { defineAsyncComponent } from 'vue' + +type SmallDetailDto = any + +const action = defineAsyncComponent(() => import('~/components/pub/my-ui/data/dropdown-action-dud.vue')) + +export const config: Config = { + cols: [{}, {}], + + headers: [[{ label: 'Kode' }, { label: 'Nama' }]], + + keys: ['code', 'name'], + + delKeyNames: [ + { key: 'code', label: 'Kode' }, + { key: 'name', label: 'Nama' }, + ], + + parses: { + }, + + components: { + }, + + htmls: { + }, +} diff --git a/app/components/app/antibiotic-in-use/list.vue b/app/components/app/antibiotic-in-use/list.vue new file mode 100644 index 00000000..fac15e5c --- /dev/null +++ b/app/components/app/antibiotic-in-use/list.vue @@ -0,0 +1,17 @@ + + + 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 89d85dce..841b77a0 100644 --- a/app/components/app/mcu-order-item/list-entry.cfg.ts +++ b/app/components/app/mcu-order-item/list-entry.cfg.ts @@ -1,18 +1,20 @@ import type { Config } from '~/components/pub/my-ui/data-table' import { defineAsyncComponent } from 'vue' +import type { McuOrderItem } from '~/models/mcu-order-item' const action = defineAsyncComponent(() => import('~/components/pub/my-ui/data/dropdown-action-dud.vue')) +// const input = defineAsyncComponent(() => import('~/components/pub/my-ui/data/editable-div.vue')) const input = defineAsyncComponent(() => import('~/components/pub/ui/input/Input.vue')) export const config: Config = { - cols: [{}, {}, { classVal: '!p-0.5' }, { width: 50 }], + cols: [{}, {}, { classVal: '!p-0.5' }], headers: [ [ { label: 'Nama' }, { label: 'Jenis' }, - { label: 'Catatan' }, - { label: '' }, + { label: 'Catatan', classVal: '!w-[40%]' }, + // { label: '' }, ], ], @@ -27,16 +29,17 @@ export const config: Config = { return { idx, rec: rec as object, + props: { data: (rec as McuOrderItem).note }, component: input, } }, - action(rec, idx) { - return { - idx, - rec: rec as object, - component: action, - } - }, + // action(rec, idx) { + // return { + // idx, + // rec: rec as object, + // component: action, + // } + // }, }, htmls: {}, diff --git a/app/components/app/mcu-order-item/list-entry.vue b/app/components/app/mcu-order-item/list-entry.vue index 6c93c5ac..4fd8edb8 100644 --- a/app/components/app/mcu-order-item/list-entry.vue +++ b/app/components/app/mcu-order-item/list-entry.vue @@ -1,4 +1,6 @@