fix: [build] TS 에러 6건 수정 (수주 status 타입, 출하 cancelled 누락)

- page.tsx: draft→order_registered, in_progress→production_ordered (OrderStatus 타입 일치)
- actions.ts: ApiOrderStats에 in_production, produced optional 필드 추가
- ShipmentDetail.tsx: STATUS_TRANSITIONS에 cancelled 추가
- ShipmentList.tsx: colorMap에 cancelled 추가
This commit is contained in:
유병철
2026-03-18 15:50:55 +09:00
parent 4b8ca09ea5
commit 341f2b3e3f
5 changed files with 88 additions and 3 deletions

View File

@@ -212,6 +212,8 @@ interface ApiOrderStats {
draft: number;
confirmed: number;
in_progress: number;
in_production?: number;
produced?: number;
completed: number;
cancelled: number;
total_amount: number;

View File

@@ -85,6 +85,7 @@ const STATUS_TRANSITIONS: Record<ShipmentStatus, ShipmentStatus | null> = {
ready: 'shipping',
shipping: 'completed',
completed: null,
cancelled: null,
};
export function ShipmentDetail({ id }: ShipmentDetailProps) {

View File

@@ -129,6 +129,7 @@ export function ShipmentList() {
ready: 'yellow',
shipping: 'blue',
completed: 'green',
cancelled: 'red',
};
return {