From e41e3af4e72870d44a94b03e0f3246d6ccaaca48 Mon Sep 17 00:00:00 2001 From: joonhoekim <26rote@gmail.com> Date: Mon, 29 Sep 2025 21:22:00 +0900 Subject: (김준회) RFQ PR 아이템 dialog 및 견적히스토리 구매요구사항 반영 1. RFQ PR 아이템 dialog: 주요 품목 카드 및 개수 표시 제거, 컬럼명 변경 2. 견적히스토리: where condition 누락건 처리 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/rfq-last/table/rfq-items-dialog.tsx | 12 ++++++------ lib/vendors/service.ts | 10 ++-------- 2 files changed, 8 insertions(+), 14 deletions(-) (limited to 'lib') diff --git a/lib/rfq-last/table/rfq-items-dialog.tsx b/lib/rfq-last/table/rfq-items-dialog.tsx index 466bcbd6..c640f3bd 100644 --- a/lib/rfq-last/table/rfq-items-dialog.tsx +++ b/lib/rfq-last/table/rfq-items-dialog.tsx @@ -182,15 +182,15 @@ export function RfqItemsDialog({ isOpen, onClose, rfqData }: RfqItemsDialogProps {/* 통계 정보 */} {statistics && !isLoading && ( <> -
+
{statistics.total}
전체 품목
-
+ {/*
{statistics.major}
주요 품목
-
+
*/}
{statistics.regular}
일반 품목
@@ -213,7 +213,7 @@ export function RfqItemsDialog({ isOpen, onClose, rfqData }: RfqItemsDialogProps - 구분 + 아이템 자재코드 자재명 수량 @@ -255,7 +255,7 @@ export function RfqItemsDialog({ isOpen, onClose, rfqData }: RfqItemsDialogProps
- 구분 + 아이템 자재코드 자재명 수량 @@ -426,7 +426,7 @@ export function RfqItemsDialog({ isOpen, onClose, rfqData }: RfqItemsDialogProps
총 {statistics.total}개 품목 - (주요: {statistics.major}개, 일반: {statistics.regular}개) + {/* (주요: {statistics.major}개, 일반: {statistics.regular}개) */} 전체 수량: {statistics.totalQuantity.toLocaleString()} | diff --git a/lib/vendors/service.ts b/lib/vendors/service.ts index e6a2a139..6132832f 100644 --- a/lib/vendors/service.ts +++ b/lib/vendors/service.ts @@ -1396,10 +1396,7 @@ export async function getRfqHistory(input: GetRfqHistorySchema, vendorId: number )) .leftJoin(rfqLastDetails, eq(rfqLastVendorResponses.rfqLastDetailsId, rfqLastDetails.id)) .leftJoin(projects, eq(rfqsLast.projectId, projects.id)) - .where(and( - advancedWhere, - globalWhere - )) + .where(finalWhere) .orderBy(...orderBy) .limit(input.perPage) .offset(offset); @@ -1449,10 +1446,7 @@ export async function getRfqHistory(input: GetRfqHistorySchema, vendorId: number )) .leftJoin(rfqLastDetails, eq(rfqLastVendorResponses.rfqLastDetailsId, rfqLastDetails.id)) .leftJoin(projects, eq(rfqsLast.projectId, projects.id)) - .where(and( - advancedWhere, - globalWhere - )); + .where(finalWhere); const totalCount = total[0]?.count ?? 0; logger.debug({ totalCount }, "RFQ history total count"); -- cgit v1.2.3