summaryrefslogtreecommitdiff
path: root/lib/rfq-last/vendor-response
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rfq-last/vendor-response')
-rw-r--r--lib/rfq-last/vendor-response/editor/quotation-items-table.tsx30
-rw-r--r--lib/rfq-last/vendor-response/editor/vendor-response-editor.tsx5
2 files changed, 21 insertions, 14 deletions
diff --git a/lib/rfq-last/vendor-response/editor/quotation-items-table.tsx b/lib/rfq-last/vendor-response/editor/quotation-items-table.tsx
index 266ba39b..281316eb 100644
--- a/lib/rfq-last/vendor-response/editor/quotation-items-table.tsx
+++ b/lib/rfq-last/vendor-response/editor/quotation-items-table.tsx
@@ -406,7 +406,7 @@ export default function QuotationItemsTable({ prItems, decimalPlaces = 2 }: Quot
// 저장 버튼 클릭 핸들러
const handleSaveDetail = () => {
- setValue(`quotationItems.${index}.deviationReason`, localDeviationReason)
+ setValue(`quotationItems.${index}.deviationReason`, localTechnicalCompliance ? "" : localDeviationReason)
setValue(`quotationItems.${index}.itemRemark`, localItemRemark)
setValue(`quotationItems.${index}.technicalCompliance`, localTechnicalCompliance)
setValue(`quotationItems.${index}.alternativeProposal`, localAlternativeProposal)
@@ -430,7 +430,7 @@ export default function QuotationItemsTable({ prItems, decimalPlaces = 2 }: Quot
<div className="space-y-4">
{/* PR 아이템 정보 */}
- <Card>
+ {/* <Card>
<CardHeader className="pb-3">
<CardTitle className="text-base">PR 아이템 정보</CardTitle>
</CardHeader>
@@ -466,7 +466,7 @@ export default function QuotationItemsTable({ prItems, decimalPlaces = 2 }: Quot
</div>
)}
</CardContent>
- </Card>
+ </Card> */}
{/* 제조사 정보 */}
{/* <Card>
@@ -534,17 +534,19 @@ export default function QuotationItemsTable({ prItems, decimalPlaces = 2 }: Quot
/>
</div>
)}
-
- <div className="space-y-2">
- <Label htmlFor={`deviationReason-${index}`}>편차 사유</Label>
- <Textarea
- id={`deviationReason-${index}`}
- value={localDeviationReason}
- onChange={(e) => setLocalDeviationReason(e.target.value)}
- placeholder="요구사항과 다른 부분이 있는 경우 사유를 입력하세요"
- className="min-h-[80px]"
- />
- </div>
+
+ {!localTechnicalCompliance && (
+ <div className="space-y-2">
+ <Label htmlFor={`deviationReason-${index}`}>편차 사유</Label>
+ <Textarea
+ id={`deviationReason-${index}`}
+ value={localDeviationReason}
+ onChange={(e) => setLocalDeviationReason(e.target.value)}
+ placeholder="요구사항과 다른 부분이 있는 경우 사유를 입력하세요"
+ className="min-h-[80px]"
+ />
+ </div>
+ )}
</CardContent>
</Card>
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 b7e67881..abd2b516 100644
--- a/lib/rfq-last/vendor-response/editor/vendor-response-editor.tsx
+++ b/lib/rfq-last/vendor-response/editor/vendor-response-editor.tsx
@@ -466,6 +466,11 @@ export default function VendorResponseEditor({
<form onSubmit={(e) => {
e.preventDefault() // 기본 submit 동작 방지
handleFormSubmit(false)
+ }}
+ onKeyDown={(e) => {
+ if (e.key === 'Enter') {
+ e.preventDefault() // 엔터 키로 인한 폼 제출 방지
+ }
}}>
<div className="space-y-6">
{/* 헤더 정보 */}