From bedfd1f559cbdfdd850bb57bc63177d5653e2567 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B6=8C=ED=98=81=EC=84=B1?= Date: Tue, 3 Mar 2026 21:31:26 +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=EC=A0=9C=ED=92=88=EB=AA=85=20?= =?UTF-8?q?=ED=91=9C=EC=8B=9C=20=EA=B0=84=EC=86=8C=ED=99=94=20=E2=80=94=20?= =?UTF-8?q?productCode=EB=A7=8C=20=ED=91=9C=EC=8B=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 작업목록, 상세카드, 자재투입, 중간검사 모달에서 부품 목록까지 길게 표시되던 제품명을 productCode만 표시하도록 변경 --- src/components/production/WorkerScreen/WorkCard.tsx | 2 +- .../production/WorkerScreen/WorkOrderListPanel.tsx | 6 ++++-- src/components/production/WorkerScreen/index.tsx | 8 ++++---- 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/src/components/production/WorkerScreen/WorkCard.tsx b/src/components/production/WorkerScreen/WorkCard.tsx index cdd4cbd0..cd9478ee 100644 --- a/src/components/production/WorkerScreen/WorkCard.tsx +++ b/src/components/production/WorkerScreen/WorkCard.tsx @@ -58,7 +58,7 @@ export function WorkCard({ {/* 헤더 박스: 품목명 + 수량 */}

- {order.productName} + {order.productCode !== '-' ? order.productCode : order.productName}

{order.quantity} diff --git a/src/components/production/WorkerScreen/WorkOrderListPanel.tsx b/src/components/production/WorkerScreen/WorkOrderListPanel.tsx index df90be9f..af8583f8 100644 --- a/src/components/production/WorkerScreen/WorkOrderListPanel.tsx +++ b/src/components/production/WorkerScreen/WorkOrderListPanel.tsx @@ -74,8 +74,10 @@ export function WorkOrderListPanel({
- {/* 제품코드 - 제품명 */} -

{order.productCode} - {order.productName}

+ {/* 제품코드 (제품명) */} +

+ {order.productCode !== '-' ? order.productCode : order.productName} +

{/* 현장명 + 수량 */}
diff --git a/src/components/production/WorkerScreen/index.tsx b/src/components/production/WorkerScreen/index.tsx index 848966f3..af641783 100644 --- a/src/components/production/WorkerScreen/index.tsx +++ b/src/components/production/WorkerScreen/index.tsx @@ -714,7 +714,7 @@ export default function WorkerScreen() { workOrderId: selectedOrder.id, itemNo: index + 1, itemCode: selectedOrder.orderNo || '-', - itemName: `${selectedOrder.productCode !== '-' ? selectedOrder.productCode + ' - ' : ''}${itemSummary}`, + itemName: selectedOrder.productCode !== '-' ? selectedOrder.productCode : itemSummary, floor: (opts.floor as string) || '-', code: (opts.code as string) || '-', width: (opts.width as number) || 0, @@ -740,7 +740,7 @@ export default function WorkerScreen() { detail_parts: { part_name: string; material: string; barcy_info: string }[]; }; workItem.bendingInfo = { - common: { kind: bi.common.kind, type: bi.common.type, lengthQuantities: bi.common.length_quantities || [] }, + common: { kind: bi.common?.kind || '', type: bi.common?.type || '', lengthQuantities: bi.common?.length_quantities || [] }, detailParts: (bi.detail_parts || []).map(dp => ({ partName: dp.part_name, material: dp.material, barcyInfo: dp.barcy_info })), }; } @@ -774,7 +774,7 @@ export default function WorkerScreen() { workOrderId: selectedOrder.id, itemNo: 1, itemCode: selectedOrder.orderNo || '-', - itemName: `${selectedOrder.productCode !== '-' ? selectedOrder.productCode + ' - ' : ''}${selectedOrder.productName || '-'}`, + itemName: selectedOrder.productCode !== '-' ? selectedOrder.productCode : (selectedOrder.productName || '-'), floor: '-', code: '-', width: 0, @@ -1763,7 +1763,7 @@ export default function WorkerScreen() { open={isInspectionInputModalOpen} onOpenChange={setIsInspectionInputModalOpen} processType={getInspectionProcessType()} - productName={selectedOrder?.productName || workItems[0]?.itemName || ''} + productName={selectedOrder?.productCode && selectedOrder.productCode !== '-' ? selectedOrder.productCode : (selectedOrder?.productName || workItems[0]?.itemName || '')} specification={workItems[0]?.slatJointBarInfo?.specification || workItems[0]?.wipInfo?.specification || ''} initialData={selectedOrder ? inspectionDataMap.get(selectedOrder.id) : undefined} onComplete={handleInspectionComplete}