refactor(glob:form): update form handling and type definitions
- Migrate from Form component to vee-validate useForm - Update combobox component to support number values - Modify base model ID type for mock data - Improve type safety in treatment report schema - Add proper form submission handling
This commit is contained in:
No files matched your search
@@ -4,10 +4,18 @@ const isoDateTime = z.string().min(1, 'Tanggal / waktu wajib diisi')
|
||||
const positiveInt = z.number().int().nonnegative()
|
||||
|
||||
const OperatorTeamSchema = z.object({
|
||||
dpjpId: z.number().int(),
|
||||
operatorId: z.number().int(),
|
||||
assistantOperatorId: z.number().int().optional().nullable(),
|
||||
instrumentNurseId: z.number().int().optional().nullable(),
|
||||
dpjpId: z.coerce
|
||||
.number({
|
||||
invalid_type_error: 'Dokter Pemeriksa wajib diisi',
|
||||
})
|
||||
.int(),
|
||||
operatorId: z.coerce
|
||||
.number({
|
||||
invalid_type_error: 'Operator wajib diisi',
|
||||
})
|
||||
.int(),
|
||||
assistantOperatorId: z.coerce.number().int().optional().nullable(),
|
||||
instrumentNurseId: z.coerce.number().int().optional().nullable(),
|
||||
|
||||
surgeryDate: isoDateTime,
|
||||
actionDiagnosis: z.string().min(1),
|
||||
|
||||
Reference in New Issue
Block a user