|
- {order.assignees[0] || '-'}
+ {primaryAssignee}
{new Date().toLocaleDateString('ko-KR', { month: '2-digit', day: '2-digit' }).replace('. ', '/').replace('.', '')}
@@ -180,7 +263,7 @@ export function WorkLogModal({ open, onOpenChange, order }: WorkLogModalProps) {
LOT NO.
- {lotNo}
+ {order.lotNo}
@@ -191,18 +274,18 @@ export function WorkLogModal({ open, onOpenChange, order }: WorkLogModalProps) {
납기일
- {new Date(order.dueDate).toLocaleDateString('ko-KR', {
+ {order.dueDate !== '-' ? new Date(order.dueDate).toLocaleDateString('ko-KR', {
year: 'numeric',
month: '2-digit',
day: '2-digit',
- }).replace(/\. /g, '-').replace('.', '')}
+ }).replace(/\. /g, '-').replace('.', '') : '-'}
- 규격
+ 작업지시번호
- W- x H-
+ {order.workOrderNo}
@@ -213,56 +296,43 @@ export function WorkLogModal({ open, onOpenChange, order }: WorkLogModalProps) {
No
품목명
- 출/부호
+ 층/부호
규격
수량
상태
{/* 테이블 데이터 */}
- {items.map((item, index) => (
-
- {item.no}
- {item.name}
- {item.location}
- {item.spec}
- {item.qty}
- {item.status}
+ {items.length > 0 ? (
+ items.map((item, index) => (
+
+ {item.no}
+ {item.productName}
+ {item.floorCode}
+ {item.specification}
+ {item.quantity}
+ {ITEM_STATUS_LABELS[item.status]}
+
+ ))
+ ) : (
+
+ 등록된 품목이 없습니다.
- ))}
+ )}
{/* 작업내역 */}
{/* 검정 헤더 */}
- {PROCESS_LABELS[order.process]} 작업내역
+ {order.processName} 작업내역
- {/* 작업내역 그리드 */}
-
- 화단 유형
- {workStats.workType}
- 화단 폭
- {workStats.workWidth}
-
-
- 화단일반
- {workStats.general} EA
- 이싱
- {workStats.ironing} EA
-
-
- 센드락 작업
- {workStats.sandblast} EA
- 포장
- {workStats.packing} EA
-
{/* 수량 및 진행률 */}
-
+
지시수량
{workStats.orderQty} EA
완료수량
@@ -270,6 +340,16 @@ export function WorkLogModal({ open, onOpenChange, order }: WorkLogModalProps) {
진행률
{workStats.progress}%
+
+ {/* 상세 상태 */}
+
+ 대기
+ {workStats.waitingQty} EA
+ 작업중
+ {workStats.inProgressQty} EA
+ 완료
+ {workStats.completedQty} EA
+
{/* 특이 사항 */}
@@ -278,7 +358,7 @@ export function WorkLogModal({ open, onOpenChange, order }: WorkLogModalProps) {
특이사항
- {order.instruction || '-'}
+ {order.note || '-'}
diff --git a/src/components/production/WorkerScreen/index.tsx b/src/components/production/WorkerScreen/index.tsx
index 704a2512..096e7ce1 100644
--- a/src/components/production/WorkerScreen/index.tsx
+++ b/src/components/production/WorkerScreen/index.tsx
@@ -327,7 +327,7 @@ export default function WorkerScreen() {
|