diff --git a/app/components/app/material/entry-form.vue b/app/components/app/material/entry-form.vue index 52214e3f..81951d91 100644 --- a/app/components/app/material/entry-form.vue +++ b/app/components/app/material/entry-form.vue @@ -1,70 +1,132 @@ diff --git a/app/components/app/material/list-cfg.ts b/app/components/app/material/list-cfg.ts index 71ca97f6..a2a9f54c 100644 --- a/app/components/app/material/list-cfg.ts +++ b/app/components/app/material/list-cfg.ts @@ -3,7 +3,6 @@ import type { KeyLabel, RecComponent, RecStrFuncComponent, - RecStrFuncUnknown, Th, } from '~/components/pub/custom-ui/data/types' import { defineAsyncComponent } from 'vue' @@ -12,11 +11,11 @@ type SmallDetailDto = any const action = defineAsyncComponent(() => import('~/components/pub/custom-ui/data/dropdown-action-dud.vue')) -export const cols: Col[] = [{ width: 100 }, { width: 250 }, { width: 100 }, { width: 100 }, { width: 50 }] +export const cols: Col[] = [{ width: 100 }, { width: 250 }, { width: 100 }, { width: 100 }, { width: 100 }, { width: 50 }] -export const header: Th[][] = [[{ label: 'Kode' }, { label: 'Nama' }, { label: 'Item' }, { label: 'Satuan' }]] +export const header: Th[][] = [[{ label: 'Kode' }, { label: 'Nama' }, { label: 'Stok' }, { label: 'Item' }, { label: 'Satuan' }]] -export const keys = ['code', 'name', 'item_id', 'uom_code', 'action'] +export const keys = ['code', 'name', 'stock', 'item_id', 'uom_code', 'action'] export const delKeyNames: KeyLabel[] = [ { key: 'code', label: 'Kode' }, diff --git a/app/components/content/material/entry.vue b/app/components/content/material/entry.vue index a78ebb8e..50d68455 100644 --- a/app/components/content/material/entry.vue +++ b/app/components/content/material/entry.vue @@ -1,64 +1,34 @@ diff --git a/app/components/content/material/list.vue b/app/components/content/material/list.vue index 28fb6290..fa719f46 100644 --- a/app/components/content/material/list.vue +++ b/app/components/content/material/list.vue @@ -26,21 +26,21 @@ const recAction = ref('') const recItem = ref(null) const headerPrep: HeaderPrep = { - title: 'BMHP', - icon: 'i-lucide-paint-bucket', + title: 'Perlengkapan (BMHP)', + icon: 'i-lucide-panel-bottom', addNav: { label: 'Tambah', - onClick: () => navigateTo('/tools-equipment-src/material/add'), + onClick: () => navigateTo('/tools-equipment-src/equipment/add'), }, } async function getMaterialList() { isLoading.dataListLoading = true - const resp = await xfetch('/api/v1/material') - if (resp.success) { - data.value = (resp.body as Record).data - } + // const resp = await xfetch('/api/v1/material') + // if (resp.success) { + // data.value = (resp.body as Record).data + // } isLoading.dataListLoading = false } diff --git a/app/components/pub/ui/select/Select.vue b/app/components/pub/ui/select/Select.vue index b18bba63..37720694 100644 --- a/app/components/pub/ui/select/Select.vue +++ b/app/components/pub/ui/select/Select.vue @@ -18,6 +18,7 @@ interface Item { const props = defineProps< SelectRootProps & { items: Item[] + iconName?: string placeholder?: string label?: string separator?: boolean @@ -30,7 +31,7 @@ const forwarded = useForwardPropsEmits(props, emits)