diff options
| author | dujinkim <dujin.kim@dtsolution.co.kr> | 2025-09-29 13:32:39 +0000 |
|---|---|---|
| committer | dujinkim <dujin.kim@dtsolution.co.kr> | 2025-09-29 13:32:39 +0000 |
| commit | f9afa89a4f27283f5b115cd89ececa08145b5c89 (patch) | |
| tree | d8fb77fdf67f79347bb285462d39576b15b2316c | |
| parent | 4614210aa9878922cfa1e424ce677ef893a1b6b2 (diff) | |
(최겸) 빌드 오류(오타), rfq필터 시트 용어 수정, 프로젝트 셀렉터 고정값 수정
| -rw-r--r-- | components/ProjectSelector.tsx | 2 | ||||
| -rw-r--r-- | lib/project-doc-templates/table/doc-template-table.tsx | 2 | ||||
| -rw-r--r-- | lib/rfq-last/table/rfq-filter-sheet.tsx | 10 | ||||
| -rw-r--r-- | lib/rfq-last/table/rfq-table.tsx | 2 |
4 files changed, 7 insertions, 9 deletions
diff --git a/components/ProjectSelector.tsx b/components/ProjectSelector.tsx index 773ab7dd..58fa2c23 100644 --- a/components/ProjectSelector.tsx +++ b/components/ProjectSelector.tsx @@ -19,7 +19,7 @@ export function ProjectSelector({ selectedProjectId, onProjectSelect, placeholder = "프로젝트 선택...", - filterType = "ship" // 기본값을 plant로 설정 + filterType }: ProjectSelectorProps) { const [open, setOpen] = React.useState(false) const [searchTerm, setSearchTerm] = React.useState("") diff --git a/lib/project-doc-templates/table/doc-template-table.tsx b/lib/project-doc-templates/table/doc-template-table.tsx index 7d8210d8..90c00d31 100644 --- a/lib/project-doc-templates/table/doc-template-table.tsx +++ b/lib/project-doc-templates/table/doc-template-table.tsx @@ -532,7 +532,7 @@ interface CreateVersionDialogProps { function CreateVersionDialog({ template, onClose, onSuccess }: CreateVersionDialogProps) { - const [isLoading, setIsLoading] = React.usseState(false); + const [isLoading, setIsLoading] = React.useState(false); const [selectedFile, setSelectedFile] = React.useState<File | null>(null); const [uploadProgress, setUploadProgress] = React.useState(0); const [showProgress, setShowProgress] = React.useState(false); diff --git a/lib/rfq-last/table/rfq-filter-sheet.tsx b/lib/rfq-last/table/rfq-filter-sheet.tsx index c0b6c0e2..ef0022c9 100644 --- a/lib/rfq-last/table/rfq-filter-sheet.tsx +++ b/lib/rfq-last/table/rfq-filter-sheet.tsx @@ -110,7 +110,7 @@ export function RfqFilterSheet({ async function onSubmit(data: RfqFilterFormValues) { startTransition(() => { try { - const newFilters = []; + const newFilters: any[] = []; // 기본 필드 if (data.rfqCode?.trim()) { @@ -635,7 +635,7 @@ export function RfqFilterSheet({ )} {/* ITB 필드 */} - {(rfqCategory === "itb" || rfqCategory === "all") && ( + {/* {(rfqCategory === "itb" || rfqCategory === "all") && ( <> <FormField control={form.control} @@ -670,7 +670,7 @@ export function RfqFilterSheet({ )} /> </> - )} + )} */} {/* RFQ 필드 */} {(rfqCategory === "rfq" || rfqCategory === "all") && ( @@ -720,7 +720,7 @@ export function RfqFilterSheet({ <FormControl> <DatePicker date={field.value} - onDateChange={field.onChange} + onSelect={(date) => field.onChange(date)} placeholder="시작일" /> </FormControl> @@ -736,7 +736,7 @@ export function RfqFilterSheet({ <FormControl> <DatePicker date={field.value} - onDateChange={field.onChange} + onSelect={(date) => field.onChange(date)} placeholder="종료일" /> </FormControl> diff --git a/lib/rfq-last/table/rfq-table.tsx b/lib/rfq-last/table/rfq-table.tsx index 09bf5af4..9f78f578 100644 --- a/lib/rfq-last/table/rfq-table.tsx +++ b/lib/rfq-last/table/rfq-table.tsx @@ -285,8 +285,6 @@ export function RfqTable({ { id: "rfqTitle", label: "견적 제목", type: "text" }, ] as DataTableAdvancedFilterField<RfqsLastView>[] : []), ...(rfqCategory === "itb" ? [ - { id: "projectCompany", label: "프로젝트 회사", type: "text" }, - { id: "projectSite", label: "프로젝트 사이트", type: "text" }, { id: "smCode", label: "SM 코드", type: "text" }, ] as DataTableAdvancedFilterField<RfqsLastView>[] : []), ...(rfqCategory === "rfq" ? [ |
