diff --git a/src/components/hr/DepartmentManagement/DepartmentDialog.tsx b/src/components/hr/DepartmentManagement/DepartmentDialog.tsx index 4b5535e4..e28c8705 100644 --- a/src/components/hr/DepartmentManagement/DepartmentDialog.tsx +++ b/src/components/hr/DepartmentManagement/DepartmentDialog.tsx @@ -21,9 +21,9 @@ import type { DepartmentDialogProps, DepartmentFormData } from './types'; const departmentFormSchema = z.object({ code: z.string().min(1, '부서 코드를 입력하세요').max(50, '50자 이내로 입력하세요'), name: z.string().min(1, '부서명을 입력하세요').max(100, '100자 이내로 입력하세요'), - description: z.string().max(500, '500자 이내로 입력하세요').default(''), - sortOrder: z.coerce.number().min(0, '0 이상 입력하세요').default(0), - isActive: z.boolean().default(true), + description: z.string().max(500, '500자 이내로 입력하세요'), + sortOrder: z.number().min(0, '0 이상 입력하세요'), + isActive: z.boolean(), }); type FormData = z.infer; diff --git a/src/components/pricing/PricingFormClient.tsx b/src/components/pricing/PricingFormClient.tsx index f84224ac..a9487fcc 100644 --- a/src/components/pricing/PricingFormClient.tsx +++ b/src/components/pricing/PricingFormClient.tsx @@ -76,7 +76,7 @@ import { PricingRevisionDialog } from './PricingRevisionDialog'; import { PricingFinalizeDialog } from './PricingFinalizeDialog'; interface PricingFormClientProps { - mode: 'create' | 'edit'; + mode: 'create' | 'edit' | 'view'; itemInfo?: ItemInfo; initialData?: PricingData; onSave?: (data: PricingData, isRevision?: boolean, revisionReason?: string) => Promise;