diff --git a/app/components/app/specialist/list-cfg.ts b/app/components/app/specialist/list-cfg.ts index 79685879..2ddc5007 100644 --- a/app/components/app/specialist/list-cfg.ts +++ b/app/components/app/specialist/list-cfg.ts @@ -30,7 +30,7 @@ export const funcParsed: RecStrFuncUnknown = { }, unit: (rec: unknown): unknown => { const recX = rec as SmallDetailDto - return `${recX.unit_id}` + return recX.unit_id || '-' }, } diff --git a/app/components/app/specialist/list.vue b/app/components/app/specialist/list.vue index e9489ef1..cde2a4ce 100644 --- a/app/components/app/specialist/list.vue +++ b/app/components/app/specialist/list.vue @@ -22,10 +22,15 @@ function handlePageChange(page: number) { diff --git a/app/components/app/subspecialist/entry-form-prev.vue b/app/components/app/subspecialist/entry-form-prev.vue new file mode 100644 index 00000000..9d31fd3f --- /dev/null +++ b/app/components/app/subspecialist/entry-form-prev.vue @@ -0,0 +1,213 @@ + + + diff --git a/app/components/app/subspecialist/entry-form.vue b/app/components/app/subspecialist/entry-form.vue index 9d31fd3f..6aea232d 100644 --- a/app/components/app/subspecialist/entry-form.vue +++ b/app/components/app/subspecialist/entry-form.vue @@ -1,213 +1,128 @@ diff --git a/app/components/app/subspecialist/list-cfg.ts b/app/components/app/subspecialist/list-cfg.ts index eb25f5d0..c7ded48e 100644 --- a/app/components/app/subspecialist/list-cfg.ts +++ b/app/components/app/subspecialist/list-cfg.ts @@ -10,14 +10,13 @@ import { defineAsyncComponent } from 'vue' type SmallDetailDto = any -const action = defineAsyncComponent(() => import('~/components/pub/custom-ui/data/dropdown-action-ud.vue')) +const action = defineAsyncComponent(() => import('~/components/pub/custom-ui/data/dropdown-action-dud.vue')) -export const cols: Col[] = [{ width: 100 }, {}, {}, {}, { width: 50 }] +export const cols: Col[] = [{}, {}, {}, { width: 50 }] -export const header: Th[][] = [ - [{ label: 'Id' }, { label: 'Nama' }, { label: 'Kode' }, { label: 'Specialist' }, { label: '' }], -] -export const keys = ['id', 'name', 'cellphone', 'religion_code', 'action'] +export const header: Th[][] = [[{ label: 'Kode' }, { label: 'Nama' }, { label: 'Specialis' }, { label: '' }]] + +export const keys = ['code', 'name', 'specialist', 'action'] export const delKeyNames: KeyLabel[] = [ { key: 'code', label: 'Kode' }, @@ -27,15 +26,11 @@ export const delKeyNames: KeyLabel[] = [ export const funcParsed: RecStrFuncUnknown = { name: (rec: unknown): unknown => { const recX = rec as SmallDetailDto - return `${recX.firstName} ${recX.lastName || ''}`.trim() - }, - unit: (rec: unknown): unknown => { - const recX = rec as SmallDetailDto - return recX.unit?.name || '-' + return `${recX.name}`.trim() }, specialist: (rec: unknown): unknown => { const recX = rec as SmallDetailDto - return recX.specialist?.name || '-' + return recX.specialist_id || '-' }, } @@ -45,9 +40,6 @@ export const funcComponent: RecStrFuncComponent = { idx, rec: rec as object, component: action, - props: { - size: 'sm', - }, } return res }, diff --git a/app/components/app/subspecialist/list.vue b/app/components/app/subspecialist/list.vue index e9489ef1..cde2a4ce 100644 --- a/app/components/app/subspecialist/list.vue +++ b/app/components/app/subspecialist/list.vue @@ -22,10 +22,15 @@ function handlePageChange(page: number) { diff --git a/app/components/content/subspecialist/list-prev.vue b/app/components/content/subspecialist/list-prev.vue new file mode 100644 index 00000000..a5496df6 --- /dev/null +++ b/app/components/content/subspecialist/list-prev.vue @@ -0,0 +1,239 @@ + + + diff --git a/app/components/content/subspecialist/list.vue b/app/components/content/subspecialist/list.vue index a478ef22..ad38241f 100644 --- a/app/components/content/subspecialist/list.vue +++ b/app/components/content/subspecialist/list.vue @@ -1,34 +1,41 @@