feat(material): update entry form

This commit is contained in:
riefive
2025-09-25 12:54:35 +07:00
parent 2bb38576a9
commit 23c8282095
2 changed files with 4 additions and 2 deletions
+2 -1
View File
@@ -15,11 +15,12 @@ interface Props {
schema: z.ZodSchema<any>
uoms: any[]
values: any
isLoading?: boolean
isReadonly?: boolean
}
const isLoading = ref(false)
const props = defineProps<Props>()
const isLoading = props.isLoading !== undefined ? props.isLoading : false
const isReadonly = props.isReadonly !== undefined ? props.isReadonly : false
const emit = defineEmits<{
submit: [values: MaterialFormData, resetForm: () => void]
+2 -1
View File
@@ -15,11 +15,12 @@ interface Props {
schema: z.ZodSchema<any>
uoms: any[]
values: any
isLoading?: boolean
isReadonly?: boolean
}
const isLoading = ref(false)
const props = defineProps<Props>()
const isLoading = props.isLoading !== undefined ? props.isLoading : false
const isReadonly = props.isReadonly !== undefined ? props.isReadonly : false
const emit = defineEmits<{
submit: [values: DeviceFormData, resetForm: () => void]