diff --git a/app/components/app/ap-lab-order/list.cfg.ts b/app/components/app/ap-lab-order/list.cfg.ts new file mode 100644 index 00000000..186e9f26 --- /dev/null +++ b/app/components/app/ap-lab-order/list.cfg.ts @@ -0,0 +1,58 @@ +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: [{}, {}, {}, { width: 50 }], + + headers: [[ + { label: 'Tgl. Order' }, + { label: 'No. Order' }, + { label: 'Jadwal Pemeriksaan' }, + { label: 'Lokalisasi' }, + { label: 'Stadium' }, + { label: 'Status' }, + { label: 'Resume' }, + { label: '' }]], + + keys: [ + 'date', + 'number', + 'examinationDate', + 'localization', + 'stadium', + 'resume', + '', + ], + + delKeyNames: [ + { key: 'date', label: 'Tanggal' }, + { key: 'number', label: 'Nomor' }, + ], + + parses: { + parent: (rec: unknown): unknown => { + const recX = rec as SmallDetailDto + return recX.parent?.name || '-' + }, + }, + + components: { + action(rec, idx) { + const res: RecComponent = { + idx, + rec: rec as object, + component: action, + props: { + size: 'sm', + }, + } + return res + }, + }, + + htmls: {}, +} diff --git a/app/components/app/ap-lab-order/list.vue b/app/components/app/ap-lab-order/list.vue new file mode 100644 index 00000000..5d4820cc --- /dev/null +++ b/app/components/app/ap-lab-order/list.vue @@ -0,0 +1,37 @@ + + + diff --git a/app/components/app/mcu-order/entry-for-ap.vue b/app/components/app/mcu-order/entry-for-ap.vue new file mode 100644 index 00000000..80d0f7df --- /dev/null +++ b/app/components/app/mcu-order/entry-for-ap.vue @@ -0,0 +1,157 @@ + + +