feat(WEB): 주문/작업지시 공정 연동 개선

- process_id 필드 추가 (공정 연동)
- 공정별 다중 작업지시 생성 지원 (processIds)
- ApiProductionOrderResponse 타입 수정 (work_orders 배열 지원)
- process 정보 포함 응답 처리
This commit is contained in:
2026-01-13 19:47:39 +09:00
parent e162ad5a12
commit 81f7c5aeac
2 changed files with 42 additions and 18 deletions

View File

@@ -416,7 +416,7 @@ export function OrderRegistration({
<span>{form.selectedQuotation.siteName}</span>
<span className="text-muted-foreground mx-2">/</span>
<span className="text-green-600 font-medium">
{formatAmount(form.selectedQuotation.amount)}
{formatAmount(form.selectedQuotation.amount)}
</span>
</div>
</div>
@@ -491,6 +491,7 @@ export function OrderRegistration({
setForm((prev) => ({ ...prev, siteName: e.target.value }));
clearFieldError("siteName");
}}
disabled={!!form.selectedQuotation}
className={cn(fieldErrors.siteName && "border-red-500")}
/>
{fieldErrors.siteName && (
@@ -757,8 +758,6 @@ export function OrderRegistration({
<TableHead className="w-[60px] text-center"></TableHead>
<TableHead></TableHead>
<TableHead></TableHead>
<TableHead></TableHead>
<TableHead></TableHead>
<TableHead></TableHead>
<TableHead className="w-[80px] text-center"></TableHead>
<TableHead className="w-[60px] text-center"></TableHead>
@@ -770,7 +769,7 @@ export function OrderRegistration({
<TableBody>
{form.items.length === 0 ? (
<TableRow>
<TableCell colSpan={11} className="text-center py-8 text-muted-foreground">
<TableCell colSpan={9} className="text-center py-8 text-muted-foreground">
. .
</TableCell>
</TableRow>
@@ -784,8 +783,6 @@ export function OrderRegistration({
</code>
</TableCell>
<TableCell>{item.itemName}</TableCell>
<TableCell>{item.type || "-"}</TableCell>
<TableCell>{item.symbol || "-"}</TableCell>
<TableCell>{item.spec}</TableCell>
<TableCell className="text-center">
<Input
@@ -803,10 +800,10 @@ export function OrderRegistration({
</TableCell>
<TableCell className="text-center">{item.unit}</TableCell>
<TableCell className="text-right">
{formatAmount(item.unitPrice)}
{formatAmount(item.unitPrice)}
</TableCell>
<TableCell className="text-right font-medium">
{formatAmount(item.amount)}
{formatAmount(item.amount)}
</TableCell>
<TableCell>
<Button
@@ -838,7 +835,7 @@ export function OrderRegistration({
<div className="flex items-center gap-4 text-sm">
<span className="text-muted-foreground">:</span>
<span className="w-32 text-right">
{formatAmount(form.subtotal)}
{formatAmount(form.subtotal)}
</span>
</div>
<div className="flex items-center gap-4 text-sm">
@@ -860,7 +857,7 @@ export function OrderRegistration({
<div className="flex items-center gap-4 text-lg font-semibold">
<span>:</span>
<span className="w-32 text-right text-green-600">
{formatAmount(form.totalAmount)}
{formatAmount(form.totalAmount)}
</span>
</div>
</div>