chore: restucture list and entry form

This commit is contained in:
riefive
2025-09-26 12:37:47 +07:00
parent e78521793b
commit 457b927c4f
12 changed files with 61 additions and 28 deletions
+9 -7
View File
@@ -1,16 +1,18 @@
<script setup lang="ts">
// types
import type z from 'zod'
import type { MaterialFormData } from '~/schemas/material'
// helpers
import { useForm } from 'vee-validate'
import { toTypedSchema } from '@vee-validate/zod'
// components
// Components
import Block from '~/components/pub/custom-ui/doc-entry/block.vue'
import Cell from '~/components/pub/custom-ui/doc-entry/cell.vue'
import Field from '~/components/pub/custom-ui/doc-entry/field.vue'
import Label from '~/components/pub/custom-ui/doc-entry/label.vue'
// Types
import type z from 'zod'
import type { MaterialFormData } from '~/schemas/material.schema'
// Helpers
import { useForm } from 'vee-validate'
import { toTypedSchema } from '@vee-validate/zod'
interface Props {
schema: z.ZodSchema<any>
uoms: any[]
+9 -7
View File
@@ -1,16 +1,18 @@
<script setup lang="ts">
// helpers
import { toTypedSchema } from '@vee-validate/zod'
import { useForm } from 'vee-validate'
// types
import type z from 'zod'
import type { DeviceFormData } from '~/schemas/device'
// components
// Components
import Block from '~/components/pub/custom-ui/doc-entry/block.vue'
import Cell from '~/components/pub/custom-ui/doc-entry/cell.vue'
import Field from '~/components/pub/custom-ui/doc-entry/field.vue'
import Label from '~/components/pub/custom-ui/doc-entry/label.vue'
// Helpers
import { toTypedSchema } from '@vee-validate/zod'
import { useForm } from 'vee-validate'
// Types
import type z from 'zod'
import type { DeviceFormData } from '~/schemas/device.schema'
interface Props {
schema: z.ZodSchema<any>
uoms: any[]