diff --git a/app/components/app/doctor/list-cfg.ts b/app/components/app/doctor/list-cfg.ts
index 14c9cf0d..52111fc7 100644
--- a/app/components/app/doctor/list-cfg.ts
+++ b/app/components/app/doctor/list-cfg.ts
@@ -1,11 +1,4 @@
-import type {
- Col,
- KeyLabel,
- RecComponent,
- RecStrFuncComponent,
- RecStrFuncUnknown,
- Th,
-} from '~/components/pub/my-ui/data/types'
+import type { Config, RecComponent } from '~/components/pub/my-ui/data-table'
import { defineAsyncComponent } from 'vue'
type SmallDetailDto = any
@@ -18,97 +11,99 @@ const _doctorStatus = {
1: 'Aktif',
}
-export const cols: Col[] = [
- { width: 100 },
- { width: 250 },
- {},
- { width: 100 },
- { width: 100 },
- {},
- {},
- {},
- { width: 120 },
- { width: 100 },
- {},
- {},
-]
-
-export const header: Th[][] = [
- [
- { label: 'Kode JKN' },
- { label: 'Nama' },
- { label: 'No KTP' },
- { label: 'No SIP' },
- { label: 'No IHS' },
- { label: 'Telpon' },
- { label: 'Fee Ranap' },
- { label: 'Fee Rajal' },
- { label: 'Status' },
- { label: '' },
+export const config: Config = {
+ cols: [
+ { width: 100 },
+ { width: 250 },
+ {},
+ { width: 100 },
+ { width: 100 },
+ {},
+ {},
+ {},
+ { width: 120 },
+ { width: 100 },
+ {},
+ {},
],
-]
-export const keys = [
- 'bpjs_code',
- 'name',
- 'identity_number',
- 'sip_no',
- 'ihs_number',
- 'phone',
- 'inPatient_itemPrice',
- 'outPatient_itemPrice',
- 'status',
- 'action',
-]
+ headers: [
+ [
+ { label: 'Kode JKN' },
+ { label: 'Nama' },
+ { label: 'No KTP' },
+ { label: 'No SIP' },
+ { label: 'No IHS' },
+ { label: 'Telpon' },
+ { label: 'Fee Ranap' },
+ { label: 'Fee Rajal' },
+ { label: 'Status' },
+ { label: '' },
+ ],
+ ],
-export const delKeyNames: KeyLabel[] = [
- { key: 'code', label: 'Kode' },
- { key: 'name', label: 'Nama' },
-]
+ keys: [
+ 'bpjs_code',
+ 'name',
+ 'identity_number',
+ 'sip_no',
+ 'ihs_number',
+ 'phone',
+ 'inPatient_itemPrice',
+ 'outPatient_itemPrice',
+ 'status',
+ 'action',
+ ],
-export const funcParsed: RecStrFuncUnknown = {
- name: (rec: unknown): unknown => {
- const recX = rec as SmallDetailDto
- return `${recX.frontTitle} ${recX.name} ${recX.endTitle}`.trim()
- },
- identity_number: (rec: unknown): unknown => {
- const recX = rec as SmallDetailDto
- if (recX.identity_number?.substring(0, 5) === 'BLANK') {
- return '(TANPA NIK)'
- }
- return recX.identity_number
- },
- inPatient_itemPrice: (rec: unknown): unknown => {
- const recX = rec as SmallDetailDto
- return Number(recX.inPatient_itemPrice.price).toLocaleString('id-ID')
- },
- outPatient_itemPrice: (rec: unknown): unknown => {
- const recX = rec as SmallDetailDto
- return Number(recX.outPatient_itemPrice.price).toLocaleString('id-ID')
- },
-}
+ delKeyNames: [
+ { key: 'code', label: 'Kode' },
+ { key: 'name', label: 'Nama' },
+ ],
-export const funcComponent: RecStrFuncComponent = {
- action(rec, idx) {
- const res: RecComponent = {
- idx,
- rec: rec as object,
- component: action,
- }
- return res
+ parses: {
+ name: (rec: unknown): unknown => {
+ const recX = rec as SmallDetailDto
+ return `${recX.frontTitle} ${recX.name} ${recX.endTitle}`.trim()
+ },
+ identity_number: (rec: unknown): unknown => {
+ const recX = rec as SmallDetailDto
+ if (recX.identity_number?.substring(0, 5) === 'BLANK') {
+ return '(TANPA NIK)'
+ }
+ return recX.identity_number
+ },
+ inPatient_itemPrice: (rec: unknown): unknown => {
+ const recX = rec as SmallDetailDto
+ return Number(recX.inPatient_itemPrice.price).toLocaleString('id-ID')
+ },
+ outPatient_itemPrice: (rec: unknown): unknown => {
+ const recX = rec as SmallDetailDto
+ return Number(recX.outPatient_itemPrice.price).toLocaleString('id-ID')
+ },
},
- status(rec, idx) {
- const res: RecComponent = {
- idx,
- rec: rec as object,
- component: statusBadge,
- }
- return res
- },
-}
-export const funcHtml: RecStrFuncUnknown = {
- patient_address(_rec) {
- return '-'
+ components: {
+ action(rec, idx) {
+ const res: RecComponent = {
+ idx,
+ rec: rec as object,
+ component: action,
+ }
+ return res
+ },
+ status(rec, idx) {
+ const res: RecComponent = {
+ idx,
+ rec: rec as object,
+ component: statusBadge,
+ }
+ return res
+ },
},
-}
+
+ htmls: {
+ patient_address(_rec) {
+ return '-'
+ },
+ },
+}
\ No newline at end of file
diff --git a/app/components/app/doctor/list.vue b/app/components/app/doctor/list.vue
index b9a74929..96697bde 100644
--- a/app/components/app/doctor/list.vue
+++ b/app/components/app/doctor/list.vue
@@ -1,5 +1,5 @@
-
+
diff --git a/app/components/app/sep/list-cfg.ts b/app/components/app/sep/list-cfg.ts
index 55fa91e1..4a6784fc 100644
--- a/app/components/app/sep/list-cfg.ts
+++ b/app/components/app/sep/list-cfg.ts
@@ -1,78 +1,77 @@
-import type { Col, KeyLabel, RecComponent, RecStrFuncComponent, Th } from '~/components/pub/my-ui/data/types'
+import type { Config } from '~/components/pub/my-ui/data-table'
import { defineAsyncComponent } from 'vue'
type SepDto = any
const action = defineAsyncComponent(() => import('~/components/pub/my-ui/data/dropdown-action-dud.vue'))
-export const cols: Col[] = [
- { width: 120 }, // TGL. SEP
- { width: 150 }, // NO. SEP
- { width: 120 }, // PELAYANAN
- { width: 100 }, // JALUR
- { width: 150 }, // NO. RM
- { width: 200 }, // NAMA PASIEN
- { width: 150 }, // NO. KARTU BPJS
- { width: 150 }, // NO. SURAT KONTROL
- { width: 150 }, // TGL SURAT KONTROL
- { width: 150 }, // KLINIK TUJUAN
- { width: 200 }, // DPJP
- { width: 200 }, // DIAGNOSIS AWAL
- { width: 100 }, // AKSI
-]
-
-export const header: Th[][] = [
- [
- { label: 'TGL. SEP' },
- { label: 'NO. SEP' },
- { label: 'PELAYANAN' },
- { label: 'JALUR' },
- { label: 'NO. RM' },
- { label: 'NAMA PASIEN' },
- { label: 'NO. KARTU BPJS' },
- { label: 'NO. SURAT KONTROL' },
- { label: 'TGL SURAT KONTROL' },
- { label: 'KLINIK TUJUAN' },
- { label: 'DPJP' },
- { label: 'DIAGNOSIS AWAL' },
- { label: 'AKSI' },
+export const config: Config = {
+ cols: [
+ { width: 120 }, // TGL. SEP
+ { width: 150 }, // NO. SEP
+ { width: 120 }, // PELAYANAN
+ { width: 100 }, // JALUR
+ { width: 150 }, // NO. RM
+ { width: 200 }, // NAMA PASIEN
+ { width: 150 }, // NO. KARTU BPJS
+ { width: 150 }, // NO. SURAT KONTROL
+ { width: 150 }, // TGL SURAT KONTROL
+ { width: 150 }, // KLINIK TUJUAN
+ { width: 200 }, // DPJP
+ { width: 200 }, // DIAGNOSIS AWAL
+ { width: 100 }, // AKSI
],
-]
-export const keys = [
- 'tgl_sep',
- 'no_sep',
- 'pelayanan',
- 'jalur',
- 'no_rm',
- 'nama_pasien',
- 'no_kartu_bpjs',
- 'no_surat_kontrol',
- 'tgl_surat_kontrol',
- 'klinik_tujuan',
- 'dpjp',
- 'diagnosis_awal',
- 'action',
-]
+ headers: [
+ [
+ { label: 'TGL. SEP' },
+ { label: 'NO. SEP' },
+ { label: 'PELAYANAN' },
+ { label: 'JALUR' },
+ { label: 'NO. RM' },
+ { label: 'NAMA PASIEN' },
+ { label: 'NO. KARTU BPJS' },
+ { label: 'NO. SURAT KONTROL' },
+ { label: 'TGL SURAT KONTROL' },
+ { label: 'KLINIK TUJUAN' },
+ { label: 'DPJP' },
+ { label: 'DIAGNOSIS AWAL' },
+ { label: 'AKSI' },
+ ],
+ ],
-export const delKeyNames: KeyLabel[] = [
- { key: 'no_sep', label: 'NO. SEP' },
- { key: 'nama_pasien', label: 'Nama Pasien' },
-]
+ keys: [
+ 'tgl_sep',
+ 'no_sep',
+ 'pelayanan',
+ 'jalur',
+ 'no_rm',
+ 'nama_pasien',
+ 'no_kartu_bpjs',
+ 'no_surat_kontrol',
+ 'tgl_surat_kontrol',
+ 'klinik_tujuan',
+ 'dpjp',
+ 'diagnosis_awal',
+ 'action',
+ ],
-export const funcParsed: Record
any> = {
+ delKeyNames: [
+ { key: 'no_sep', label: 'NO. SEP' },
+ { key: 'nama_pasien', label: 'Nama Pasien' },
+ ],
-}
+ parses: {},
-export const funcComponent: RecStrFuncComponent = {
- action(rec, idx) {
- const res: RecComponent = {
- idx,
- rec: rec as object,
- component: action,
- }
- return res
+ components: {
+ action(rec, idx) {
+ return {
+ idx,
+ rec: rec as object,
+ component: action,
+ }
+ },
},
-}
-export const funcHtml: Record any> = {}
+ htmls: {},
+}
diff --git a/app/components/app/sep/list.vue b/app/components/app/sep/list.vue
index abf68e25..f44166e2 100644
--- a/app/components/app/sep/list.vue
+++ b/app/components/app/sep/list.vue
@@ -1,5 +1,5 @@