fix(입고관리): mockData.ts 타입 에러 수정
- ReceivingItem 목록 항목에 unit 필드 추가 - ReceivingDetail 상세 목업에 unit 필드 추가 - ReceivingStats 통계에 receivingCompletedCount, inspectionCompletedCount 추가
This commit is contained in:
@@ -23,6 +23,7 @@ export const mockReceivingItems: ReceivingItem[] = [
|
||||
orderUnit: '톤',
|
||||
receivingQty: undefined,
|
||||
lotNo: undefined,
|
||||
unit: '톤',
|
||||
status: 'inspection_pending',
|
||||
},
|
||||
{
|
||||
@@ -35,6 +36,7 @@ export const mockReceivingItems: ReceivingItem[] = [
|
||||
orderUnit: 'EA',
|
||||
receivingQty: undefined,
|
||||
lotNo: undefined,
|
||||
unit: 'EA',
|
||||
status: 'receiving_pending',
|
||||
},
|
||||
{
|
||||
@@ -47,6 +49,7 @@ export const mockReceivingItems: ReceivingItem[] = [
|
||||
orderUnit: 'M',
|
||||
receivingQty: undefined,
|
||||
lotNo: undefined,
|
||||
unit: 'M',
|
||||
status: 'inspection_pending',
|
||||
},
|
||||
{
|
||||
@@ -59,6 +62,7 @@ export const mockReceivingItems: ReceivingItem[] = [
|
||||
orderUnit: 'EA',
|
||||
receivingQty: undefined,
|
||||
lotNo: undefined,
|
||||
unit: 'EA',
|
||||
status: 'order_completed',
|
||||
},
|
||||
{
|
||||
@@ -71,6 +75,7 @@ export const mockReceivingItems: ReceivingItem[] = [
|
||||
orderUnit: '톤',
|
||||
receivingQty: undefined,
|
||||
lotNo: undefined,
|
||||
unit: '톤',
|
||||
status: 'shipping',
|
||||
},
|
||||
];
|
||||
@@ -95,6 +100,7 @@ export const mockReceivingDetails: Record<string, ReceivingDetail> = {
|
||||
supplierLot: undefined,
|
||||
receivingLocation: undefined,
|
||||
receivingManager: '자재팀',
|
||||
unit: '톤',
|
||||
},
|
||||
'5': {
|
||||
id: '5',
|
||||
@@ -114,14 +120,17 @@ export const mockReceivingDetails: Record<string, ReceivingDetail> = {
|
||||
supplierLot: undefined,
|
||||
receivingLocation: undefined,
|
||||
receivingManager: undefined,
|
||||
unit: '톤',
|
||||
},
|
||||
};
|
||||
|
||||
// 통계 목업
|
||||
export const mockStats: ReceivingStats = {
|
||||
receivingPendingCount: 2,
|
||||
shippingCount: 1,
|
||||
receivingCompletedCount: 0,
|
||||
inspectionPendingCount: 2,
|
||||
inspectionCompletedCount: 0,
|
||||
shippingCount: 1,
|
||||
todayReceivingCount: 0,
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user