summaryrefslogtreecommitdiff
path: root/lib/rfq-last/vendor-response/editor/vendor-response-editor.tsx
diff options
context:
space:
mode:
authorjoonhoekim <26rote@gmail.com>2025-11-13 20:18:45 +0900
committerjoonhoekim <26rote@gmail.com>2025-11-13 20:18:45 +0900
commitc882df5fa1a181d5bfd133d5980993ac43079b72 (patch)
tree2ed9a4c8787b52d589681b3a5ece5e940d3a5e74 /lib/rfq-last/vendor-response/editor/vendor-response-editor.tsx
parent7517ec0b016265a6c1d35f22ba6292c498669d43 (diff)
(김준회) 벤더 견적 응답: 통화 선택기 적용, 통화 가져오는 쿼리 명시적 JOIN으로 변경
Diffstat (limited to 'lib/rfq-last/vendor-response/editor/vendor-response-editor.tsx')
-rw-r--r--lib/rfq-last/vendor-response/editor/vendor-response-editor.tsx16
1 files changed, 12 insertions, 4 deletions
diff --git a/lib/rfq-last/vendor-response/editor/vendor-response-editor.tsx b/lib/rfq-last/vendor-response/editor/vendor-response-editor.tsx
index 4c14a7f3..b7e67881 100644
--- a/lib/rfq-last/vendor-response/editor/vendor-response-editor.tsx
+++ b/lib/rfq-last/vendor-response/editor/vendor-response-editor.tsx
@@ -20,7 +20,7 @@ interface FileWithType extends File {
description?: string
}
import { formatDate, formatCurrency } from "@/lib/utils"
-import { Shield, FileText, CheckCircle, XCircle, Clock, Download, Eye, Save, Send, AlertCircle, Upload, } from "lucide-react"
+import { Shield, FileText, CheckCircle, Clock, Save, Send, AlertCircle, Upload, } from "lucide-react"
import { Progress } from "@/components/ui/progress"
import { Alert, AlertDescription } from "@/components/ui/alert"
@@ -129,6 +129,7 @@ export default function VendorResponseEditor({
const [existingAttachments, setExistingAttachments] = useState<any[]>([])
const [deletedAttachments, setDeletedAttachments] = useState<any[]>([])
const [uploadProgress, setUploadProgress] = useState(0) // 추가
+ const [currencyDecimalPlaces, setCurrencyDecimalPlaces] = useState<number>(2) // 통화별 소수점 자리수
console.log(existingResponse,"existingResponse")
@@ -520,7 +521,7 @@ export default function VendorResponseEditor({
{contract.templateName}
</h4>
<Badge
- variant={contract.signedAt ? "success" : "warning"}
+ variant={contract.signedAt ? "success" : "secondary"}
className="text-xs mt-1.5"
>
{contract.signedAt ? (
@@ -592,11 +593,18 @@ export default function VendorResponseEditor({
</TabsContent>
<TabsContent value="terms" className="mt-6">
- <CommercialTermsForm rfqDetail={rfqDetail} rfq={rfq} />
+ <CommercialTermsForm
+ rfqDetail={rfqDetail}
+ rfq={rfq}
+ onCurrencyDecimalPlacesChange={setCurrencyDecimalPlaces}
+ />
</TabsContent>
<TabsContent value="items" className="mt-6">
- <QuotationItemsTable prItems={prItems} />
+ <QuotationItemsTable
+ prItems={prItems}
+ decimalPlaces={currencyDecimalPlaces}
+ />
</TabsContent>
<TabsContent value="attachments" className="mt-6">