diff --git a/frontend/api-specs/stock-receiving-changes-20260317.md b/frontend/api-specs/stock-receiving-changes-20260317.md index e90d8b8..1538c1b 100644 --- a/frontend/api-specs/stock-receiving-changes-20260317.md +++ b/frontend/api-specs/stock-receiving-changes-20260317.md @@ -63,17 +63,23 @@ POST /api/v1/receivings (신규 등록) ``` AS-IS: - 입고관리 > 입고 상세 > 재고 조정 섹션 + 입고관리 목록 (ReceivingList.tsx) + → 헤더에 [재고 조정] 버튼 → InventoryAdjustmentDialog 팝업 + 입고관리 상세 (ReceivingDetail.tsx) + → 하단에 재고 조정 이력 섹션 TO-BE: - 재고현황 > 재고 상세 > 기본 정보 아래 > 재고 조정 섹션 + 입고관리 목록 → [재고 조정] 버튼 제거 + 입고관리 상세 → 재고 조정 섹션 제거 + 재고현황 > 재고 상세 > 기본 정보 아래 > 재고 조정 섹션 (이력 + 추가) ``` ### 대상 컴포넌트 | 작업 | 파일 | 내용 | |------|------|------| -| 제거 | `ReceivingManagement/ReceivingDetail.tsx` | 재고 조정 섹션 렌더링 제거 | +| 제거 | `ReceivingManagement/ReceivingList.tsx` | 헤더의 "재고 조정" 버튼 + `isAdjustmentOpen` 상태 + `InventoryAdjustmentDialog` 제거 | +| 제거 | `ReceivingManagement/ReceivingDetail.tsx` | 재고 조정 이력 섹션 렌더링 제거 | | 추가 | `StockStatus/StockStatusDetail.tsx` | 기본 정보 카드 아래에 재고 조정 섹션 추가 | | 이동 | `ReceivingManagement/InventoryAdjustmentDialog.tsx` | 공통 위치로 추출 권장 | @@ -231,12 +237,18 @@ export async function createStockAdjustment( ## 작업 체크리스트 -### 입고등록 (ReceivingDetail.tsx) +### 입고 목록 (ReceivingList.tsx) + +- [ ] 헤더의 "재고 조정" 버튼 제거 +- [ ] `isAdjustmentOpen` 상태 변수 제거 +- [ ] `InventoryAdjustmentDialog` import 및 렌더링 제거 + +### 입고 상세 (ReceivingDetail.tsx) - [ ] `lot_no` input → readOnly 변경 - [ ] placeholder: "저장 시 자동 생성" - [ ] `generateLotNo()` 호출 제거 -- [ ] 재고 조정 섹션 렌더링 제거 +- [ ] 재고 조정 이력 섹션 렌더링 제거 ### 재고 상세 (StockStatusDetail.tsx) diff --git a/plans/stock-detail-inventory-adjustment-request.md b/plans/stock-detail-inventory-adjustment-request.md index ace860a..bdc41fd 100644 --- a/plans/stock-detail-inventory-adjustment-request.md +++ b/plans/stock-detail-inventory-adjustment-request.md @@ -16,11 +16,11 @@ ## 현재 구조 (AS-IS) ``` -입고관리 (/material/receiving-management) -└─ 입고 상세 (ReceivingDetail.tsx) - ├─ 기본 정보 - ├─ 수입검사 정보 - └─ 재고 조정 섹션 ← 여기에 있음 (InventoryAdjustmentDialog.tsx) +입고관리 목록 (ReceivingList.tsx) + → 헤더에 [재고 조정] 버튼 → InventoryAdjustmentDialog 팝업 + +입고관리 상세 (ReceivingDetail.tsx) + → 하단에 재고 조정 이력 섹션 ``` **문제**: 재고 조정은 특정 입고 건과 무관하게 품목 재고를 직접 증감하는 기능이므로, 입고관리보다 재고현황에 위치하는 것이 적합하다. @@ -50,7 +50,8 @@ | 파일 | 변경 | |------|------| -| `ReceivingManagement/ReceivingDetail.tsx` | 재고 조정 섹션 렌더링 제거 | +| `ReceivingManagement/ReceivingList.tsx` | 헤더의 "재고 조정" 버튼 + `isAdjustmentOpen` 상태 + `InventoryAdjustmentDialog` 제거 | +| `ReceivingManagement/ReceivingDetail.tsx` | 재고 조정 이력 섹션 렌더링 제거 | | `ReceivingManagement/types.ts` | `InventoryAdjustmentRecord` 타입은 유지 (공유) 또는 이동 | ### 추가 (재고 상세)