diff --git a/app/components/app/medical-action-src/entry-form.vue b/app/components/app/medical-action-src/entry-form.vue new file mode 100644 index 00000000..0a02ea85 --- /dev/null +++ b/app/components/app/medical-action-src/entry-form.vue @@ -0,0 +1,119 @@ + + + diff --git a/app/components/app/medical-action-src/list-cfg.ts b/app/components/app/medical-action-src/list-cfg.ts new file mode 100644 index 00000000..2fecde69 --- /dev/null +++ b/app/components/app/medical-action-src/list-cfg.ts @@ -0,0 +1,32 @@ +import type { Config, RecComponent } from '~/components/pub/my-ui/data-table' +import { defineAsyncComponent } from 'vue' + +const action = defineAsyncComponent(() => import('~/components/pub/my-ui/data/dropdown-action-dud.vue')) + +export const config: Config = { + cols: [{}, {}, {}, { width: 50 }], + + headers: [[{ label: 'Kode' }, { label: 'Nama' }, { label: '' }]], + + keys: ['code', 'name', 'action'], + + delKeyNames: [ + { key: 'code', label: 'Kode' }, + { key: 'name', label: 'Nama ' }, + ], + + parses: {}, + + components: { + action(rec, idx) { + const res: RecComponent = { + idx, + rec: rec as object, + component: action, + } + return res + }, + }, + + htmls: {}, +} diff --git a/app/components/app/medical-action-src/list.vue b/app/components/app/medical-action-src/list.vue new file mode 100644 index 00000000..1be60a60 --- /dev/null +++ b/app/components/app/medical-action-src/list.vue @@ -0,0 +1,36 @@ + + + diff --git a/app/components/content/medical-action-src/list.vue b/app/components/content/medical-action-src/list.vue new file mode 100644 index 00000000..c39ff4b8 --- /dev/null +++ b/app/components/content/medical-action-src/list.vue @@ -0,0 +1,184 @@ + + + diff --git a/app/handlers/medical-action-src.handler.ts b/app/handlers/medical-action-src.handler.ts new file mode 100644 index 00000000..652d6d60 --- /dev/null +++ b/app/handlers/medical-action-src.handler.ts @@ -0,0 +1,24 @@ +// Handlers +import { genCrudHandler } from '~/handlers/_handler' + +// Services +import { create, update, remove } from '~/services/medical-action-src.service' + +export const { + recId, + recAction, + recItem, + isReadonly, + isProcessing, + isFormEntryDialogOpen, + isRecordConfirmationOpen, + onResetState, + handleActionSave, + handleActionEdit, + handleActionRemove, + handleCancelForm, +} = genCrudHandler({ + create, + update, + remove, +}) diff --git a/app/pages/(features)/mcu-src/medical-action/index.vue b/app/pages/(features)/mcu-src/medical-action/index.vue index 36fb8feb..7e471367 100644 --- a/app/pages/(features)/mcu-src/medical-action/index.vue +++ b/app/pages/(features)/mcu-src/medical-action/index.vue @@ -32,7 +32,9 @@ const canRead = true