From 7e6be134dd052cb285bff744df60a92bd7e4981a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=EB=B3=B4=EA=B3=A4?= Date: Tue, 17 Mar 2026 21:27:52 +0900 Subject: [PATCH] =?UTF-8?q?docs:=20[stock]=20=EC=9E=85=EA=B3=A0=20?= =?UTF-8?q?=EB=AA=A9=EB=A1=9D=EC=9D=98=20=EC=9E=AC=EA=B3=A0=20=EC=A1=B0?= =?UTF-8?q?=EC=A0=95=20=EB=B2=84=ED=8A=BC=20=EC=9D=B4=EB=8F=99=20=EB=B0=98?= =?UTF-8?q?=EC=98=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - ReceivingList.tsx 헤더의 재고 조정 버튼 제거 명시 - 체크리스트에 입고 목록 제거 항목 추가 --- .../stock-receiving-changes-20260317.md | 22 ++++++++++++++----- ...ock-detail-inventory-adjustment-request.md | 13 ++++++----- 2 files changed, 24 insertions(+), 11 deletions(-) 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` 타입은 유지 (공유) 또는 이동 | ### 추가 (재고 상세)