[as] feat: 기본계획 상세 페이지 구현

This commit is contained in:
2026-08-04 17:22:21 +09:00
parent 70136aa65d
commit e105f52fea
30 changed files with 3014 additions and 38 deletions
@@ -21,7 +21,6 @@ import {
Textarea,
} from "@common/components";
const SPLMNT_ARTCL_UP_CD = "SPLMNTARTCL";
const SPLMNT_DMND_FILE_KEY_PREFIX = "splmnt-dmnd::";
interface UploadedSplmntFile {
@@ -50,6 +49,7 @@ interface SplmntDmndDialogConfirmPayload {
}
interface SplmntDmndDialogProps {
splmntArtclUpCd: string;
open: boolean;
onOpenChange: (open: boolean) => void;
isSubmitting?: boolean;
@@ -86,7 +86,13 @@ function isRowsValid(rows: SplmntDmndRow[]) {
return rows.every((row) => row.splmntArtclComCd.trim() && row.splmntDmndCn.trim());
}
function SplmntDmndDialog({ open, onOpenChange, isSubmitting, onConfirm }: SplmntDmndDialogProps) {
function SplmntDmndDialog({
splmntArtclUpCd,
open,
onOpenChange,
isSubmitting,
onConfirm,
}: SplmntDmndDialogProps) {
const formId = useId();
const [rows, setRows] = useState<SplmntDmndRow[]>([createEmptyRow()]);
@@ -239,7 +245,7 @@ function SplmntDmndDialog({ open, onOpenChange, isSubmitting, onConfirm }: Splmn
<TableRow key={row.rowKey}>
<TableCell align="center" className="align-top">
<CodeSelect
upCd={SPLMNT_ARTCL_UP_CD}
upCd={splmntArtclUpCd}
value={row.splmntArtclComCd || undefined}
onValueChange={(value) =>
updateRow(row.rowKey, { splmntArtclComCd: value })