fix(WEB): 생산지시 생성 에러 표시 및 Loader2 import 수정
- 생산지시 생성 실패 시 에러 메시지가 UI에 표시되지 않던 문제 수정 - WorkOrderDetail.tsx에서 Loader2 import 누락 수정
This commit is contained in:
@@ -530,6 +530,17 @@ export default function ProductionOrderCreatePage() {
|
||||
}
|
||||
/>
|
||||
|
||||
{/* 에러 메시지 표시 */}
|
||||
{error && order && (
|
||||
<div className="mb-4 p-4 bg-red-50 border border-red-200 rounded-lg flex items-start gap-3">
|
||||
<AlertCircle className="h-5 w-5 text-red-500 flex-shrink-0 mt-0.5" />
|
||||
<div>
|
||||
<p className="text-sm font-medium text-red-800">생산지시 생성 실패</p>
|
||||
<p className="text-sm text-red-600 mt-1">{error}</p>
|
||||
</div>
|
||||
</div>
|
||||
)}
|
||||
|
||||
<div className="space-y-6">
|
||||
{/* 수주 정보 */}
|
||||
<Card>
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
|
||||
import { useState, useEffect, useCallback } from 'react';
|
||||
import { useRouter } from 'next/navigation';
|
||||
import { FileText, List, AlertTriangle, Play, CheckCircle2 } from 'lucide-react';
|
||||
import { FileText, List, AlertTriangle, Play, CheckCircle2, Loader2 } from 'lucide-react';
|
||||
import { ContentLoadingSpinner } from '@/components/ui/loading-spinner';
|
||||
import { Button } from '@/components/ui/button';
|
||||
import { Badge } from '@/components/ui/badge';
|
||||
|
||||
Reference in New Issue
Block a user