From 9fc979e135882184321623eca8b2d7bc8158285c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B6=8C=ED=98=81=EC=84=B1?= Date: Thu, 5 Mar 2026 17:27:49 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20[=EC=83=9D=EC=82=B0=EC=A7=80=EC=8B=9C]?= =?UTF-8?q?=20=EB=82=A0=EC=A7=9C=ED=8F=AC=EB=A7=B7=C2=B7=EC=88=98=EB=9F=89?= =?UTF-8?q?=E2=86=92=EA=B0=9C=EC=86=8C=EC=88=98=C2=B7=EC=A4=91=EB=B3=B5key?= =?UTF-8?q?=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - actions.ts: formatDateOnly 정규식 보강 (공백/T 구분자 모두 처리) - actions.ts: nodeCount 매핑 추가 (node_count/nodes_count) - types.ts: nodeCount, node_count, nodes_count 필드 추가 - page.tsx: 수량→개소 컬럼 변경, nodeCount 표시 - [id]/page.tsx: 수량→개소 표시, BOM 테이블 중복 key 수정 --- .../production-orders/[id]/page.tsx | 8 ++++---- .../production-orders/page.tsx | 7 ++++--- .../production/ProductionOrders/actions.ts | 14 +++++++++++--- .../production/ProductionOrders/types.ts | 4 ++++ 4 files changed, 23 insertions(+), 10 deletions(-) diff --git a/src/app/[locale]/(protected)/sales/order-management-sales/production-orders/[id]/page.tsx b/src/app/[locale]/(protected)/sales/order-management-sales/production-orders/[id]/page.tsx index 8da0a632..069e69ed 100644 --- a/src/app/[locale]/(protected)/sales/order-management-sales/production-orders/[id]/page.tsx +++ b/src/app/[locale]/(protected)/sales/order-management-sales/production-orders/[id]/page.tsx @@ -316,7 +316,7 @@ export default function ProductionOrderDetailPage() { - + @@ -378,7 +378,7 @@ export default function ProductionOrderDetailPage() { {group.items.map((item, idx) => ( - + {item.itemCode} @@ -442,7 +442,7 @@ export default function ProductionOrderDetailPage() { 작업지시번호 공정 - 수량 + 개소 상태 담당자 @@ -456,7 +456,7 @@ export default function ProductionOrderDetailPage() { {wo.processName} - {wo.quantity}개 + {wo.quantity}개소 {getWorkOrderStatusBadge(wo.status)} {wo.assignees.length > 0 ? wo.assignees.join(", ") : "-"} diff --git a/src/app/[locale]/(protected)/sales/order-management-sales/production-orders/page.tsx b/src/app/[locale]/(protected)/sales/order-management-sales/production-orders/page.tsx index 527e1091..cf874358 100644 --- a/src/app/[locale]/(protected)/sales/order-management-sales/production-orders/page.tsx +++ b/src/app/[locale]/(protected)/sales/order-management-sales/production-orders/page.tsx @@ -43,6 +43,7 @@ import type { ProductionStatus, ProductionOrderStats, } from "@/components/production/ProductionOrders/types"; +import { formatNumber } from '@/lib/utils/amount'; // 진행 단계 컴포넌트 function ProgressSteps({ statusCode }: { statusCode?: string }) { @@ -163,7 +164,7 @@ const TABLE_COLUMNS: TableColumn[] = [ { key: "orderNumber", label: "수주번호", className: "min-w-[150px]" }, { key: "siteName", label: "현장명", className: "min-w-[180px]" }, { key: "clientName", label: "거래처", className: "min-w-[120px]" }, - { key: "quantity", label: "수량", className: "w-[80px] text-center" }, + { key: "nodeCount", label: "개소", className: "w-[80px] text-center" }, { key: "deliveryDate", label: "납기", className: "w-[110px]" }, { key: "productionOrderedAt", label: "생산지시일", className: "w-[110px]" }, { key: "status", label: "상태", className: "w-[100px]" }, @@ -241,7 +242,7 @@ export default function ProductionOrdersListPage() { {item.siteName} {item.clientName} - {item.quantity}개 + {formatNumber(item.nodeCount)}개소 {item.deliveryDate} {item.productionOrderedAt} {getStatusBadge(item.productionStatus)} @@ -297,7 +298,7 @@ export default function ProductionOrdersListPage() { - +