From f503e200308cfbb3de552b9a152cf4cb9436e785 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B6=8C=ED=98=81=EC=84=B1?= Date: Wed, 4 Mar 2026 11:19:12 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20[production]=20=EC=9E=91=EC=97=85?= =?UTF-8?q?=EC=9E=90=20=ED=99=94=EB=A9=B4=20=ED=95=98=EB=93=9C=EC=BD=94?= =?UTF-8?q?=EB=94=A9=20=EB=8F=84=EB=A9=B4=20=EC=9D=B4=EB=AF=B8=EC=A7=80=20?= =?UTF-8?q?=EC=98=81=EC=97=AD=20=EC=A0=9C=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - BendingExtraInfo, WipExtraInfo에서 drawingUrl 도면 이미지 div 제거 - types.ts에서 drawingUrl 필드 제거 - actions.ts, index.tsx에서 drawing_url 매핑 제거 --- .../production/WorkerScreen/WorkItemCard.tsx | 98 ++++++------------- .../production/WorkerScreen/actions.ts | 4 +- .../production/WorkerScreen/index.tsx | 4 +- .../production/WorkerScreen/types.ts | 2 - 4 files changed, 34 insertions(+), 74 deletions(-) diff --git a/src/components/production/WorkerScreen/WorkItemCard.tsx b/src/components/production/WorkerScreen/WorkItemCard.tsx index fd40751b..5f16010d 100644 --- a/src/components/production/WorkerScreen/WorkItemCard.tsx +++ b/src/components/production/WorkerScreen/WorkItemCard.tsx @@ -14,7 +14,7 @@ */ import { useState, useCallback, memo } from 'react'; -import { ChevronDown, ChevronUp, SquarePen, Trash2, ImageIcon } from 'lucide-react'; +import { ChevronDown, ChevronUp, SquarePen, Trash2 } from 'lucide-react'; import { Card, CardContent } from '@/components/ui/card'; import { Badge } from '@/components/ui/badge'; import { Button } from '@/components/ui/button'; @@ -291,45 +291,26 @@ import type { BendingInfo, WipInfo } from './types'; function BendingExtraInfo({ info }: { info: BendingInfo }) { return (
- {/* 도면 + 공통사항 (가로 배치) */} -
- {/* 도면 이미지 */} -
- {info.drawingUrl ? ( - 도면 - ) : ( -
- - 도면 -
- )} -
- - {/* 공통사항 */} -
-

공통사항

-
-
- 종류 - {info.common.kind} -
-
- 유형 - {info.common.type} -
- {info.common.lengthQuantities.map((lq, i) => ( -
- {i === 0 ? '길이별 수량' : ''} - - {formatNumber(lq.length)}mm X {lq.quantity}개 - -
- ))} + {/* 공통사항 */} +
+

공통사항

+
+
+ 종류 + {info.common.kind}
+
+ 유형 + {info.common.type} +
+ {info.common.lengthQuantities.map((lq, i) => ( +
+ {i === 0 ? '길이별 수량' : ''} + + {formatNumber(lq.length)}mm X {lq.quantity}개 + +
+ ))}
@@ -361,35 +342,16 @@ function BendingExtraInfo({ info }: { info: BendingInfo }) { // ===== 재공품 전용: 도면 + 공통사항 (규격, 길이별 수량) ===== function WipExtraInfo({ info }: { info: WipInfo }) { return ( -
- {/* 도면 이미지 (큰 영역) */} -
- {info.drawingUrl ? ( - 도면 - ) : ( -
- - IMG -
- )} -
- - {/* 공통사항 */} -
-

공통사항

-
-
- 규격 - {info.specification} -
-
- 길이별 수량 - {info.lengthQuantity} -
+
+

공통사항

+
+
+ 규격 + {info.specification} +
+
+ 길이별 수량 + {info.lengthQuantity}
diff --git a/src/components/production/WorkerScreen/actions.ts b/src/components/production/WorkerScreen/actions.ts index 464df189..bcddb261 100644 --- a/src/components/production/WorkerScreen/actions.ts +++ b/src/components/production/WorkerScreen/actions.ts @@ -678,9 +678,9 @@ export async function getWorkOrderDetail( } if (opts.is_wip) { workItem.isWip = true; - const wi = opts.wip_info as { specification: string; length_quantity: string; drawing_url?: string } | undefined; + const wi = opts.wip_info as { specification: string; length_quantity: string } | undefined; if (wi) { - workItem.wipInfo = { specification: wi.specification, lengthQuantity: wi.length_quantity, drawingUrl: wi.drawing_url }; + workItem.wipInfo = { specification: wi.specification, lengthQuantity: wi.length_quantity }; } } if (opts.is_joint_bar) { diff --git a/src/components/production/WorkerScreen/index.tsx b/src/components/production/WorkerScreen/index.tsx index af641783..183b75ad 100644 --- a/src/components/production/WorkerScreen/index.tsx +++ b/src/components/production/WorkerScreen/index.tsx @@ -746,9 +746,9 @@ export default function WorkerScreen() { } if (opts.is_wip) { workItem.isWip = true; - const wi = opts.wip_info as { specification: string; length_quantity: string; drawing_url?: string } | undefined; + const wi = opts.wip_info as { specification: string; length_quantity: string } | undefined; if (wi) { - workItem.wipInfo = { specification: wi.specification, lengthQuantity: wi.length_quantity, drawingUrl: wi.drawing_url }; + workItem.wipInfo = { specification: wi.specification, lengthQuantity: wi.length_quantity }; } } if (opts.is_joint_bar) { diff --git a/src/components/production/WorkerScreen/types.ts b/src/components/production/WorkerScreen/types.ts index 3d72e050..a9d11a99 100644 --- a/src/components/production/WorkerScreen/types.ts +++ b/src/components/production/WorkerScreen/types.ts @@ -62,7 +62,6 @@ export interface WorkItemData { // ===== 재공품 전용 정보 ===== export interface WipInfo { - drawingUrl?: string; // 도면 이미지 URL specification: string; // 규격 (EGI 1.55T (W576)) lengthQuantity: string; // 길이별 수량 (4,000mm X 6개) } @@ -90,7 +89,6 @@ export interface SlatJointBarInfo { // ===== 절곡 전용 정보 ===== export interface BendingInfo { - drawingUrl?: string; // 도면 이미지 URL common: BendingCommonInfo; // 공통사항 detailParts: BendingDetailPart[]; // 세부부품 }