-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
diff --git a/app/components/app/item/list-cfg.ts b/app/components/app/item/list-cfg.ts
index c3db4f50..fc3e6770 100644
--- a/app/components/app/item/list-cfg.ts
+++ b/app/components/app/item/list-cfg.ts
@@ -3,30 +3,78 @@ import { defineAsyncComponent } from 'vue'
const action = defineAsyncComponent(() => import('~/components/pub/my-ui/data/dropdown-action-dud.vue'))
-const _doctorStatus = {
- 0: 'Tidak Aktif',
- 1: 'Aktif',
-}
-
export const config: Config = {
- cols: [{}, {}, { width: 50 }],
+ cols: [
+ { width: 100 },
+ { width: 100 },
+ { width: 100 },
+ { width: 100 },
+ { width: 100 },
+ { width: 100 },
+ { width: 100 },
+ { width: 100 },
+ { width: 50 },
+ ],
headers: [
[
{ label: 'Kode' },
{ label: 'Nama' },
+ { label: 'Item Group' },
+ { label: 'UOM' },
+ { label: 'Infra' },
+ { label: 'Stok' },
+ { label: 'Harga Beli' },
+ { label: 'Harga Jual' },
{ label: 'Aksi' },
],
],
- keys: ['code', 'name', 'action'],
+ keys: ['code', 'name', 'itemGroup_code', 'uom_code', 'infra_code', 'stock', 'buyingPrice', 'sellingPrice', 'action'],
delKeyNames: [
{ key: 'code', label: 'Kode' },
{ key: 'name', label: 'Nama' },
],
- parses: {},
+ parses: {
+ itemGroup_code: (rec: unknown): unknown => {
+ const recX = rec as any
+ return recX.itemGroup_code || '-'
+ },
+ uom_code: (rec: unknown): unknown => {
+ const recX = rec as any
+ return recX.uom?.name || '-'
+ },
+ infra_code: (rec: unknown): unknown => {
+ const recX = rec as any
+ return recX.infra_code || '-'
+ },
+ stock: (rec: unknown): unknown => {
+ const recX = rec as any
+ const value = recX.stock
+ if (value === null || value === undefined) {
+ return '-'
+ }
+ return value
+ },
+ buyingPrice: (rec: unknown): unknown => {
+ const recX = rec as any
+ const value = recX.buyingPrice
+ if (value === null || value === undefined) {
+ return '-'
+ }
+ return value
+ },
+ sellingPrice: (rec: unknown): unknown => {
+ const recX = rec as any
+ const value = recX.sellingPrice
+ if (value === null || value === undefined) {
+ return '-'
+ }
+ return value
+ },
+ },
components: {
action(rec, idx) {
@@ -39,9 +87,5 @@ export const config: Config = {
},
},
- htmls: {
- patient_address(_rec) {
- return '-'
- },
- },
+ htmls: {},
}
diff --git a/app/components/app/item/list.vue b/app/components/app/item/list.vue
index 96697bde..2f7908cb 100644
--- a/app/components/app/item/list.vue
+++ b/app/components/app/item/list.vue
@@ -1,14 +1,39 @@
-
+
diff --git a/app/components/app/item/picker.vue b/app/components/app/item/picker.vue
deleted file mode 100644
index e69de29b..00000000
diff --git a/app/components/app/item/search.vue b/app/components/app/item/search.vue
deleted file mode 100644
index e69de29b..00000000
diff --git a/app/components/app/item/status-badge.vue b/app/components/app/item/status-badge.vue
deleted file mode 100644
index 32cdfbca..00000000
--- a/app/components/app/item/status-badge.vue
+++ /dev/null
@@ -1,29 +0,0 @@
-
-
-
-
-
- {{ statusText }}
-
-
-
diff --git a/app/components/app/mcu-order/detail.vue b/app/components/app/mcu-order/detail.vue
index 8d86a98b..59cd5595 100644
--- a/app/components/app/mcu-order/detail.vue
+++ b/app/components/app/mcu-order/detail.vue
@@ -13,20 +13,33 @@ const props = defineProps<{
Order {{ data?.createdAt?.substring(0, 10) }} - {{ data?.status_code }}