summaryrefslogtreecommitdiff
path: root/lib/rfq-last/vendor-response/editor/vendor-response-editor.tsx
diff options
context:
space:
mode:
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">