diff --git a/src/components/production/WorkOrders/WorkOrderCreate.tsx b/src/components/production/WorkOrders/WorkOrderCreate.tsx index 3977a0e8..cf2ef9a9 100644 --- a/src/components/production/WorkOrders/WorkOrderCreate.tsx +++ b/src/components/production/WorkOrders/WorkOrderCreate.tsx @@ -151,7 +151,7 @@ export function WorkOrderCreate() { projectName: formData.projectName, processType: formData.processType, scheduledDate: formData.shipmentDate, - assigneeId: formData.assignees.length > 0 ? parseInt(formData.assignees[0]) : undefined, + assigneeIds: formData.assignees.map(id => parseInt(id)), memo: formData.note || undefined, }); diff --git a/src/components/production/WorkOrders/WorkOrderDetail.tsx b/src/components/production/WorkOrders/WorkOrderDetail.tsx index e5e61db9..16a2160b 100644 --- a/src/components/production/WorkOrders/WorkOrderDetail.tsx +++ b/src/components/production/WorkOrders/WorkOrderDetail.tsx @@ -275,7 +275,9 @@ export function WorkOrderDetail({ orderId }: WorkOrderDetailProps) { quantity: order.items.reduce((sum, item) => sum + item.quantity, 0), progress: order.currentStep * 20, // 대략적인 진행률 process: order.processType as 'screen' | 'slat' | 'bending', - assignees: [order.assignee], + assignees: order.assignees && order.assignees.length > 0 + ? order.assignees.map(a => a.name) + : [order.assignee], instruction: order.note || '', status: 'in_progress' as const, priority: order.priority <= 3 ? 'high' : order.priority <= 6 ? 'medium' : 'low', @@ -364,7 +366,11 @@ export function WorkOrderDetail({ orderId }: WorkOrderDetailProps) {
작업자
-{order.assignee}
++ {order.assignees && order.assignees.length > 0 + ? order.assignees.map(a => a.name).join(', ') + : order.assignee} +