feat: [stocks] 벤딩 LOT 폼 추가 + 재고 상세/액션 보강
This commit is contained in:
@@ -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 />;
|
||||
|
||||
Reference in New Issue
Block a user