From e5f4a774fabc17b5b18d50c96f5695d89dcabc86 Mon Sep 17 00:00:00 2001 From: joonhoekim <26rote@gmail.com> Date: Mon, 2 Jun 2025 02:27:56 +0000 Subject: (김준회) 기술영업 조선 RFQ 에러 처리 및 필터와 소팅 처리 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../(partners)/techsales/rfq-ship/page.tsx | 52 +++------------------- 1 file changed, 5 insertions(+), 47 deletions(-) (limited to 'app') diff --git a/app/[lng]/partners/(partners)/techsales/rfq-ship/page.tsx b/app/[lng]/partners/(partners)/techsales/rfq-ship/page.tsx index 5b0ffb61..12ff9a81 100644 --- a/app/[lng]/partners/(partners)/techsales/rfq-ship/page.tsx +++ b/app/[lng]/partners/(partners)/techsales/rfq-ship/page.tsx @@ -7,17 +7,13 @@ import { authOptions } from "@/app/api/auth/[...nextauth]/route"; import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card"; import { Button } from "@/components/ui/button"; import { LogIn } from "lucide-react"; -import { DataTableSkeleton } from "@/components/data-table/data-table-skeleton"; import { Shell } from "@/components/shell"; -import { getValidFilters } from "@/lib/data-table"; -import { type SearchParams } from "@/types/table"; -import { searchParamsVendorRfqCache } from "@/lib/techsales-rfq/validations"; import { TECH_SALES_QUOTATION_STATUSES, TECH_SALES_QUOTATION_STATUS_CONFIG } from "@/db/schema"; -import { getQuotationStatusCounts, getVendorQuotations } from "@/lib/techsales-rfq/service"; +import { getQuotationStatusCounts } from "@/lib/techsales-rfq/service"; import { VendorQuotationsTable } from "@/lib/techsales-rfq/vendor-response/table/vendor-quotations-table"; export const metadata: Metadata = { @@ -25,13 +21,7 @@ export const metadata: Metadata = { description: "기술영업 RFQ 견적서를 관리합니다.", }; -interface VendorQuotationsPageProps { - searchParams: SearchParams; -} - -export default async function VendorQuotationsPage({ - searchParams, -}: VendorQuotationsPageProps) { +export default async function VendorQuotationsPage() { // 세션 확인 const session = await getServerSession(authOptions); @@ -73,29 +63,9 @@ export default async function VendorQuotationsPage({ ); } - // 검색 파라미터 파싱 및 검증 - const search = searchParamsVendorRfqCache.parse(searchParams); - const validFilters = getValidFilters(search.filters); - // 견적서 상태별 개수 조회 const statusCountsPromise = getQuotationStatusCounts(vendorId.toString()); - // 견적서 목록 조회 - const quotationsPromise = getVendorQuotations( - { - flags: search.flags, - page: search.page, - perPage: search.perPage, - sort: search.sort, - filters: validFilters, - joinOperator: search.joinOperator, - search: search.search, - from: search.from, - to: search.to, - }, - vendorId.toString() - ); - return ( {/* 고정 헤더 영역 */} @@ -135,21 +105,9 @@ export default async function VendorQuotationsPage({ {/* 견적서 테이블 */}
- - } - > -
- ({ data: result.data, pageCount: result.pageCount }))])} /> -
-
+
+ +
-- cgit v1.2.3