Files
simrsx-fe/app/components/flow/material/entry.vue
T
2025-09-02 14:04:33 +07:00

32 lines
744 B
Vue

<script setup lang="ts">
import Action from '~/components/pub/custom-ui/nav-footer/ba-dr-su.vue'
const data = ref({
name: '',
password: '',
status: '',
type: '',
})
function onClick(type: string) {
if (type === 'cancel') {
navigateTo('/tools-equipment-src/material')
} else if (type === 'draft') {
// do something
} else if (type === 'submit') {
// do something
}
}
</script>
<template>
<div class="mb-5 border-b border-b-slate-300 pb-3 text-lg xl:text-xl">
<Icon name="i-lucide-paint-bucket" class="me-2" />
<span class="font-semibold">Tambah</span> BMHP
</div>
<AppMaterialEntryForm v-model="data" />
<div class="my-2 flex justify-end py-2">
<Action @click="onClick" />
</div>
</template>