Files
sam-react-prod/src/components/accounting/BillManagement/sections/BuybackSection.tsx
권혁성 a4f99ae339 feat: [출하/배차/회계] 배차 다중행 + 어음 리팩토링 + 출고관리
- 배차차량관리 목업→API 연동, 배차정보 다중 행
- ShipmentManagement 출고관리 API 매핑
- BillManagement 리팩토링 (섹션 분리, hooks, constants)
- 상품권 actions/types 확장
- 출하관리 캘린더 기본 뷰 week-time
2026-03-07 03:03:27 +09:00

36 lines
1.7 KiB
TypeScript

'use client';
import { Input } from '@/components/ui/input';
import { DatePicker } from '@/components/ui/date-picker';
import { Label } from '@/components/ui/label';
import { CurrencyInput } from '@/components/ui/currency-input';
import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/card';
import type { SectionProps } from './types';
export function BuybackSection({ formData, updateField, isViewMode }: SectionProps) {
return (
<Card className="mb-6 border-orange-200 bg-orange-50/30">
<CardHeader>
<CardTitle className="text-lg text-orange-700"> </CardTitle>
</CardHeader>
<CardContent>
<p className="text-xs text-muted-foreground mb-4"> () </p>
<div className="grid grid-cols-1 md:grid-cols-3 gap-6">
<div className="space-y-2">
<Label> <span className="text-red-500">*</span></Label>
<DatePicker value={formData.buybackDate} onChange={(d) => updateField('buybackDate', d)} disabled={isViewMode} />
</div>
<div className="space-y-2">
<Label> <span className="text-red-500">*</span></Label>
<CurrencyInput value={formData.buybackAmount} onChange={(v) => updateField('buybackAmount', v ?? 0)} disabled={isViewMode} />
</div>
<div className="space-y-2">
<Label> </Label>
<Input value={formData.buybackBank} onChange={(e) => updateField('buybackBank', e.target.value)} placeholder="환매 청구 금융기관" disabled={isViewMode} />
</div>
</div>
</CardContent>
</Card>
);
}