feat/procedure-room-order: adjust material-package

This commit is contained in:
Andrian Roshandy
2025-12-04 10:24:52 +07:00
parent 52454a019e
commit 9adb77d10b
2 changed files with 14 additions and 4 deletions

No files matched your search

@@ -14,10 +14,10 @@ defineProps<Props>()
</script> </script>
<template> <template>
<div> <div class="mb-4">
<div class="font-semibold text-sm 2xl:text-base mb-2"> <div class="font-semibold text-sm 2xl:text-base mb-2">
Daftar Item BMHP Daftar Item BMHP
</div> </div>
<DataTable v-bind="config" :rows="data" /> <DataTable v-bind="config" :rows="data" class="border"/>
</div> </div>
</template> </template>
@@ -1,14 +1,24 @@
<script setup lang="ts"> <script setup lang="ts">
// //
import * as CB from '~/components/pub/my-ui/combobox' import * as CB from '~/components/pub/my-ui/combobox'
import type { MaterialPackage } from '~/models/material-package';
// //
defineProps<{ const props =defineProps<{
items: CB.Item[] data: MaterialPackage[]
}>() }>()
const model = defineModel() const model = defineModel()
const items = computed(() => {
return props.data.map((item) => {
return {
label: item.name,
value: item.code,
}
})
})
</script> </script>
<template> <template>