From f9af69fd272544744f4a76563b8a3739c52c8492 Mon Sep 17 00:00:00 2001 From: Abizrh Date: Sun, 31 Aug 2025 17:21:09 +0700 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat=20(employee):=20add=20based=20?= =?UTF-8?q?component=20&=20conditional=20form=20input?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/components/app/doctor/entry-form.vue | 72 +++-------- app/components/app/employee/entry-form.vue | 30 ++--- app/components/app/laborant/entry-form.vue | 31 +++++ app/components/app/laborant/list-cfg.ts | 114 ++++++++++++++++++ app/components/app/laborant/list.vue | 19 +++ app/components/app/laborant/picker.vue | 0 app/components/app/laborant/search.vue | 0 app/components/app/laborant/status-badge.vue | 29 +++++ app/components/app/nurse/entry-form.vue | 31 +++++ app/components/app/nurse/list-cfg.ts | 114 ++++++++++++++++++ app/components/app/nurse/list.vue | 19 +++ app/components/app/nurse/picker.vue | 0 app/components/app/nurse/search.vue | 0 app/components/app/nurse/status-badge.vue | 29 +++++ .../app/nutritionist/entry-form.vue | 31 +++++ app/components/app/nutritionist/list-cfg.ts | 114 ++++++++++++++++++ app/components/app/nutritionist/list.vue | 19 +++ app/components/app/nutritionist/picker.vue | 0 app/components/app/nutritionist/search.vue | 0 .../app/nutritionist/status-badge.vue | 29 +++++ app/components/app/pharmacist/entry-form.vue | 31 +++++ app/components/app/pharmacist/list-cfg.ts | 114 ++++++++++++++++++ app/components/app/pharmacist/list.vue | 19 +++ app/components/app/pharmacist/picker.vue | 0 app/components/app/pharmacist/search.vue | 0 .../app/pharmacist/status-badge.vue | 29 +++++ app/components/app/user/entry-form.vue | 37 ++++++ app/components/app/user/list-cfg.ts | 109 +++++++++++++++++ app/components/app/user/list.vue | 19 +++ app/components/app/user/picker.vue | 0 app/components/app/user/search.vue | 0 app/components/flow/employee/entry.vue | 27 ++++- app/components/flow/employee/list.vue | 8 +- app/lib/utils.ts | 19 +++ app/models/doctor.ts | 61 ++++++++++ app/models/employee.ts | 0 app/models/user.ts | 0 app/pages/(features)/doctor/[id]/detail.vue | 9 -- app/pages/(features)/doctor/[id]/edit.vue | 9 -- app/pages/(features)/doctor/add.vue | 41 ------- app/pages/(features)/doctor/index.vue | 40 ------ public/side-menu-items/sys.json | 7 +- 42 files changed, 1071 insertions(+), 189 deletions(-) create mode 100644 app/components/app/laborant/entry-form.vue create mode 100644 app/components/app/laborant/list-cfg.ts create mode 100644 app/components/app/laborant/list.vue create mode 100644 app/components/app/laborant/picker.vue create mode 100644 app/components/app/laborant/search.vue create mode 100644 app/components/app/laborant/status-badge.vue create mode 100644 app/components/app/nurse/entry-form.vue create mode 100644 app/components/app/nurse/list-cfg.ts create mode 100644 app/components/app/nurse/list.vue create mode 100644 app/components/app/nurse/picker.vue create mode 100644 app/components/app/nurse/search.vue create mode 100644 app/components/app/nurse/status-badge.vue create mode 100644 app/components/app/nutritionist/entry-form.vue create mode 100644 app/components/app/nutritionist/list-cfg.ts create mode 100644 app/components/app/nutritionist/list.vue create mode 100644 app/components/app/nutritionist/picker.vue create mode 100644 app/components/app/nutritionist/search.vue create mode 100644 app/components/app/nutritionist/status-badge.vue create mode 100644 app/components/app/pharmacist/entry-form.vue create mode 100644 app/components/app/pharmacist/list-cfg.ts create mode 100644 app/components/app/pharmacist/list.vue create mode 100644 app/components/app/pharmacist/picker.vue create mode 100644 app/components/app/pharmacist/search.vue create mode 100644 app/components/app/pharmacist/status-badge.vue create mode 100644 app/components/app/user/entry-form.vue create mode 100644 app/components/app/user/list-cfg.ts create mode 100644 app/components/app/user/list.vue create mode 100644 app/components/app/user/picker.vue create mode 100644 app/components/app/user/search.vue create mode 100644 app/models/doctor.ts create mode 100644 app/models/employee.ts create mode 100644 app/models/user.ts delete mode 100644 app/pages/(features)/doctor/[id]/detail.vue delete mode 100644 app/pages/(features)/doctor/[id]/edit.vue delete mode 100644 app/pages/(features)/doctor/add.vue delete mode 100644 app/pages/(features)/doctor/index.vue diff --git a/app/components/app/doctor/entry-form.vue b/app/components/app/doctor/entry-form.vue index 5aec1ba3..b5ac8613 100644 --- a/app/components/app/doctor/entry-form.vue +++ b/app/components/app/doctor/entry-form.vue @@ -11,76 +11,34 @@ const data = computed({ get: () => props.modelValue, set: (val) => emit('update:modelValue', val), }) + +const items = [ + { value: 'doctor', label: 'Dokter' }, + { value: 'nurse', label: 'Perawat' }, +]