수주등록 저장기능

This commit is contained in:
kjs
2025-11-20 15:30:00 +09:00
parent b46559ba78
commit 45ac397417
4 changed files with 107 additions and 47 deletions

View File

@@ -7,6 +7,7 @@ import { cn } from "@/lib/utils";
import { Loader2 } from "lucide-react";
import { screenApi } from "@/lib/api/screen";
import { ComponentData } from "@/types/screen";
import { useAuth } from "@/hooks/useAuth";
/**
* 조건부 섹션 뷰어 컴포넌트
@@ -24,6 +25,7 @@ export function ConditionalSectionViewer({
formData,
onFormDataChange,
}: ConditionalSectionViewerProps) {
const { userId, userName, user } = useAuth();
const [isLoading, setIsLoading] = useState(false);
const [components, setComponents] = useState<ComponentData[]>([]);
const [screenInfo, setScreenInfo] = useState<{ id: number; tableName?: string } | null>(null);
@@ -142,6 +144,9 @@ export function ConditionalSectionViewer({
onClick={() => {}}
screenId={screenInfo?.id}
tableName={screenInfo?.tableName}
userId={userId}
userName={userName}
companyCode={user?.companyCode}
formData={formData}
onFormDataChange={onFormDataChange}
/>