feat: [stocks] 벤딩 LOT 폼 추가 + 재고 상세/액션 보강

This commit is contained in:
유병철
2026-03-17 13:47:09 +09:00
parent 1a3538863d
commit 9b6f4c6684
4 changed files with 776 additions and 8 deletions

View File

@@ -4,23 +4,19 @@
* 재고생산관리 페이지
*
* - 기본: 목록 (StockProductionList)
* - ?mode=new: 등록 (StockProductionForm)
* - ?mode=new: 등록 (BendingLotForm — 절곡품 LOT 방식)
*/
import { useSearchParams } from 'next/navigation';
import { StockProductionList } from '@/components/stocks/StockProductionList';
import { StockProductionForm } from '@/components/stocks/StockProductionForm';
function CreateStockContent() {
return <StockProductionForm />;
}
import { BendingLotForm } from '@/components/stocks/BendingLotForm';
export default function StocksPage() {
const searchParams = useSearchParams();
const mode = searchParams.get('mode');
if (mode === 'new') {
return <CreateStockContent />;
return <BendingLotForm />;
}
return <StockProductionList />;