diff options
| author | dujinkim <dujin.kim@dtsolution.co.kr> | 2025-11-17 07:06:52 +0000 |
|---|---|---|
| committer | dujinkim <dujin.kim@dtsolution.co.kr> | 2025-11-17 07:06:52 +0000 |
| commit | 1532c1bf4a3236ce9056f33e51ddfebeff79ed5a (patch) | |
| tree | c3f3c43d0f73c4b7df4e34e9b1aa308604c562c9 /lib/rfq-last/vendor-response | |
| parent | a5be73b70e7d8e6be1724252e6923c664c3771f4 (diff) | |
(최겸) 구매 피드백 처리
Diffstat (limited to 'lib/rfq-last/vendor-response')
| -rw-r--r-- | lib/rfq-last/vendor-response/editor/quotation-items-table.tsx | 30 | ||||
| -rw-r--r-- | lib/rfq-last/vendor-response/editor/vendor-response-editor.tsx | 5 |
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"> {/* 헤더 정보 */} |
