From 2f6528e12a001f1b3be16261092c32432f26d515 Mon Sep 17 00:00:00 2001 From: riefive Date: Tue, 30 Sep 2025 14:24:39 +0700 Subject: [PATCH] feat(specialist): integrate specialist --- .../app/specialist/entry-form-prev.vue | 181 ++++++++++++ app/components/app/specialist/entry-form.vue | 256 +++++++---------- app/components/app/specialist/list-cfg.ts | 18 +- app/components/app/unit/entry-form.vue | 2 +- app/components/app/unit/list-cfg.ts | 7 +- app/components/content/division/list.vue | 3 +- app/components/content/equipment/list.vue | 1 + .../content/medicine-group/list.vue | 1 + .../content/medicine-method/list.vue | 1 + app/components/content/medicine/list.vue | 1 + .../content/specialist/list-prev.vue | 240 ++++++++++++++++ app/components/content/specialist/list.vue | 262 +++++++----------- app/components/content/tools/list.vue | 1 + app/components/content/unit/list.vue | 3 +- .../(features)/org-src/specialist/index.vue | 4 +- .../org-src/subspecialist/index.vue | 4 +- app/schemas/specialist.schema.ts | 13 + 17 files changed, 657 insertions(+), 341 deletions(-) create mode 100644 app/components/app/specialist/entry-form-prev.vue create mode 100644 app/components/content/specialist/list-prev.vue create mode 100644 app/schemas/specialist.schema.ts diff --git a/app/components/app/specialist/entry-form-prev.vue b/app/components/app/specialist/entry-form-prev.vue new file mode 100644 index 00000000..2dbfffc1 --- /dev/null +++ b/app/components/app/specialist/entry-form-prev.vue @@ -0,0 +1,181 @@ + + + diff --git a/app/components/app/specialist/entry-form.vue b/app/components/app/specialist/entry-form.vue index 2dbfffc1..d3391208 100644 --- a/app/components/app/specialist/entry-form.vue +++ b/app/components/app/specialist/entry-form.vue @@ -1,181 +1,119 @@ diff --git a/app/components/app/specialist/list-cfg.ts b/app/components/app/specialist/list-cfg.ts index 367d4d9f..afce3e16 100644 --- a/app/components/app/specialist/list-cfg.ts +++ b/app/components/app/specialist/list-cfg.ts @@ -10,15 +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: 'Name' }, { label: 'Code' }, { label: 'Unit' }, { label: '' }], -] +export const header: Th[][] = [[{ label: 'Kode' }, { label: 'Nama' }, { label: 'Unit' }, { label: '' }]] -export const keys = ['id', 'name', 'cellphone', 'religion_code', 'action'] +export const keys = ['code', 'name', 'unit', 'action'] export const delKeyNames: KeyLabel[] = [ { key: 'code', label: 'Kode' }, @@ -28,7 +26,7 @@ export const delKeyNames: KeyLabel[] = [ export const funcParsed: RecStrFuncUnknown = { name: (rec: unknown): unknown => { const recX = rec as SmallDetailDto - return `${recX.firstName} ${recX.lastName || ''}`.trim() + return `${recX.name}`.trim() }, } @@ -38,13 +36,9 @@ export const funcComponent: RecStrFuncComponent = { idx, rec: rec as object, component: action, - props: { - size: 'sm', - }, } return res }, } -export const funcHtml: RecStrFuncUnknown = { -} +export const funcHtml: RecStrFuncUnknown = {} diff --git a/app/components/app/unit/entry-form.vue b/app/components/app/unit/entry-form.vue index 5e3566b7..7bad3552 100644 --- a/app/components/app/unit/entry-form.vue +++ b/app/components/app/unit/entry-form.vue @@ -71,7 +71,7 @@ function onCancelForm() {