diff --git a/app/components/app/medicine-mix/list-entry.ts b/app/components/app/medicine-mix/list-entry.ts
new file mode 100644
index 00000000..03202670
--- /dev/null
+++ b/app/components/app/medicine-mix/list-entry.ts
@@ -0,0 +1,50 @@
+import type {
+ Col,
+ KeyLabel,
+ RecComponent,
+ RecStrFuncComponent,
+ RecStrFuncUnknown,
+ Th,
+} from '~/components/pub/my-ui/data/types'
+import { defineAsyncComponent } from 'vue'
+
+type SmallDetailDto = any
+
+const action = defineAsyncComponent(() => import('~/components/pub/my-ui/data/dropdown-action-dud.vue'))
+
+export const cols: Col[] = [{}, {}, {}, {}, {}, {}, { width: 50 }]
+
+export const header: Th[][] = [
+ [
+ { label: 'Nama' },
+ { label: "Dosis" },
+ { label: 'Satuan' },
+ { label: '' },
+ ],
+]
+
+export const keys = ['name', 'dose', 'uom.name', 'action']
+
+export const delKeyNames: KeyLabel[] = [
+ { key: 'code', label: 'Kode' },
+ { key: 'name', label: 'Nama' },
+]
+
+export const funcParsed: RecStrFuncUnknown = {
+ group: (rec: unknown): unknown => {
+ return (rec as SmallDetailDto).medicineGroup_code || '-'
+ },
+}
+
+export const funcComponent: RecStrFuncComponent = {
+ action: (rec: unknown, idx: number): RecComponent => {
+ const res: RecComponent = {
+ idx,
+ rec: rec as object,
+ component: action,
+ }
+ return res
+ },
+}
+
+export const funcHtml: RecStrFuncUnknown = {}
diff --git a/app/components/app/medicine-mix/list-entry.vue b/app/components/app/medicine-mix/list-entry.vue
new file mode 100644
index 00000000..ba0fa689
--- /dev/null
+++ b/app/components/app/medicine-mix/list-entry.vue
@@ -0,0 +1,35 @@
+
+
+
+
+
diff --git a/app/components/app/prescription-item/mix-entry.vue b/app/components/app/prescription-item/mix-entry.vue
new file mode 100644
index 00000000..9f94f280
--- /dev/null
+++ b/app/components/app/prescription-item/mix-entry.vue
@@ -0,0 +1,32 @@
+
+
+
+
+
+ Nama
+
+
+
+ Frequensi
+
+
+
+ Dosis
+
+
+
+ Sediaan
+
+
+
+ Total
+
+
+
+ Cara Pakai
+
+
+
+
diff --git a/app/components/app/prescription-item/non-mix-entry.vue b/app/components/app/prescription-item/non-mix-entry.vue
new file mode 100644
index 00000000..e69de29b
diff --git a/app/components/app/prescription/list-entry.vue b/app/components/app/prescription/list-entry.vue
new file mode 100644
index 00000000..8231dd84
--- /dev/null
+++ b/app/components/app/prescription/list-entry.vue
@@ -0,0 +1,84 @@
+
+
+
+
+ Memuat data..
+
+
+
Belum Ada Data
+
+
+
+
+
+
+
+
+ Order #1
+
+
+ 2025-01-01
+
+
+
+ Status
+
+
+ Status
+
+
+
+
+
+
+
+ DPJP
+
+
+ Nama Dokter
+
+
+
+ PPDS
+
+
+ Nama PPDS
+
+
+
+
+
+
+
+
+
diff --git a/app/components/app/prescription/list-with-sub.vue b/app/components/app/prescription/list-with-sub.vue
new file mode 100644
index 00000000..14bc1785
--- /dev/null
+++ b/app/components/app/prescription/list-with-sub.vue
@@ -0,0 +1,56 @@
+
+
+
+
+
Belum Ada Data
+
+
+
+
+
+
+
+
+
+ Order #1
+
+
+ 2025-01-01
+
+
+
+ Status
+
+
+ Status
+
+
+
+
+
+
+
+ DPJP
+
+
+ Nama Dokter
+
+
+
+ PPDS
+
+
+ Nama PPDS
+
+
+
+
+
+
diff --git a/app/components/app/prescription/list.vue b/app/components/app/prescription/list.vue
deleted file mode 100644
index 6fe27d39..00000000
--- a/app/components/app/prescription/list.vue
+++ /dev/null
@@ -1,42 +0,0 @@
-
-
-
Belum Ada Data
-
-
-
-
-
-
-
diff --git a/app/components/content/prescription/list.vue b/app/components/content/prescription/list.vue
index ad260ad0..c87953c3 100644
--- a/app/components/content/prescription/list.vue
+++ b/app/components/content/prescription/list.vue
@@ -6,7 +6,7 @@ import Header from '~/components/pub/my-ui/nav-header/prep.vue'
import ListEntry from '~/components/app/prescription/list-entry.vue'
import PrescriptionItemListEntry from '~/components/app/prescription-item/list-entry.vue'
-import { prescriptionSvc } from '~/services/prescription.service'
+import { getList } from '~/services/prescription.service'
import { usePaginatedList } from '~/composables/usePaginatedList'
import MixEntry from '~/components/app/prescription-item/mix-entry.vue'
@@ -21,7 +21,7 @@ const {
fetchData: getMedicineList,
} = usePaginatedList({
fetchFn: async ({ page, search }) => {
- const result = await prescriptionSvc.getList({ search, page })
+ const result = await getList({ search, page })
return { success: result.success || false, body: result.body || {} }
},
entityName: 'medicine',
@@ -90,7 +90,7 @@ function addMedicineMix() {
-
+
diff --git a/app/services/prescription.service.ts b/app/services/prescription.service.ts
new file mode 100644
index 00000000..87fe01e3
--- /dev/null
+++ b/app/services/prescription.service.ts
@@ -0,0 +1,23 @@
+import * as base from './_crud-base'
+
+const path = '/api/v1/prescription'
+
+export function create(data: any) {
+ return base.create(path, data)
+}
+
+export function getList(params: any = null) {
+ return base.getList(path, params)
+}
+
+export function getDetail(id: number | string) {
+ return base.getDetail(path, id)
+}
+
+export function update(id: number | string, data: any) {
+ return base.update(path, id, data)
+}
+
+export function remove(id: number | string) {
+ return base.remove(path, id)
+}