diff --git a/app/components/app/equipment/entry-form.vue b/app/components/app/equipment/entry-form.vue index 0bcb6e5f..51d8947f 100644 --- a/app/components/app/equipment/entry-form.vue +++ b/app/components/app/equipment/entry-form.vue @@ -5,12 +5,12 @@ import type { MaterialFormData } from '~/schemas/material' // helpers import { toTypedSchema } from '@vee-validate/zod' import { useForm } from 'vee-validate' +import Alert from '~/components/pub/ui/alert/Alert.vue' // components interface Props { schema: z.ZodSchema uoms: any[] - items: any[] } const isLoading = ref(false) @@ -26,7 +26,6 @@ const { handleSubmit, defineField, errors } = useForm({ code: '', name: '', uom_code: '', - item_id: '', stock: 0, } as Partial, }) @@ -34,14 +33,12 @@ const { handleSubmit, defineField, errors } = useForm({ const [code, codeAttrs] = defineField('code') const [name, nameAttrs] = defineField('name') const [uom, uomAttrs] = defineField('uom_code') -const [item, itemAttrs] = defineField('item_id') const [stock, stockAttrs] = defineField('stock') const resetForm = () => { code.value = '' name.value = '' uom.value = '' - item.value = '' stock.value = 0 } @@ -61,7 +58,7 @@ function onCancelForm() {