Files
simrsx-fe/app/components/app/soapi/list-cfg.ts

48 lines
1.0 KiB
TypeScript

import type { Config } 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: 100 }, { width: 120 }, {}, {}, {}, { width: 100 }, { width: 100 }, {}, { width: 50 }],
headers: [
[
{ label: 'Tanggal' },
{ label: 'DPJP' },
{ label: 'Keluhan & Riwayat' },
{ label: 'Pemeriksaan' },
{ label: 'Diagnosa' },
{ label: 'Status' },
{ label: 'Aksi' },
],
],
keys: ['time', 'employee_id', 'main_complaint', 'examination', 'diagnose', 'status', 'action'],
delKeyNames: [
{ key: 'code', label: 'Kode' },
{ key: 'name', label: 'Nama' },
],
parses: {},
components: {
action(rec, idx) {
return {
idx,
rec: rec as object,
component: action,
}
},
},
htmls: {
patient_address(_rec) {
return '-'
},
},
}