CEO 대시보드 API 전환 및 주문 관리 페이지 수정

- CEO 대시보드 mock 데이터 제거, 실제 API 연동
- 대시보드 transformers/types 추가
- 영업 주문 관리 페이지 수정
- 주문 actions 업데이트
This commit is contained in:
2026-01-22 09:47:05 +09:00
parent 81a4d6baf1
commit 6fa69d81f4
11 changed files with 149 additions and 345 deletions

View File

@@ -197,10 +197,13 @@ export type OrderStatus =
| 'order_registered' // DRAFT
| 'order_confirmed' // CONFIRMED
| 'production_ordered' // IN_PROGRESS
| 'in_production' // IN_PROGRESS (세부)
| 'rework' // IN_PROGRESS (세부)
| 'work_completed' // IN_PROGRESS (세부)
| 'shipped' // COMPLETED
| 'in_production' // IN_PRODUCTION
| 'produced' // PRODUCED
| 'shipping' // SHIPPING
| 'shipped' // SHIPPED
| 'completed' // COMPLETED
| 'rework' // (세부 - 레거시)
| 'work_completed' // (세부 - 레거시)
| 'cancelled'; // CANCELLED
export interface Order {
@@ -401,7 +404,11 @@ const API_TO_FRONTEND_STATUS: Record<string, OrderStatus> = {
'DRAFT': 'order_registered',
'CONFIRMED': 'order_confirmed',
'IN_PROGRESS': 'production_ordered',
'COMPLETED': 'shipped',
'IN_PRODUCTION': 'in_production',
'PRODUCED': 'produced',
'SHIPPING': 'shipping',
'SHIPPED': 'shipped',
'COMPLETED': 'completed',
'CANCELLED': 'cancelled',
};
@@ -409,10 +416,13 @@ const FRONTEND_TO_API_STATUS: Record<OrderStatus, string> = {
'order_registered': 'DRAFT',
'order_confirmed': 'CONFIRMED',
'production_ordered': 'IN_PROGRESS',
'in_production': 'IN_PROGRESS',
'in_production': 'IN_PRODUCTION',
'produced': 'PRODUCED',
'shipping': 'SHIPPING',
'shipped': 'SHIPPED',
'completed': 'COMPLETED',
'rework': 'IN_PROGRESS',
'work_completed': 'IN_PROGRESS',
'shipped': 'COMPLETED',
'cancelled': 'CANCELLED',
};