diff options
Diffstat (limited to 'lib/rfq-last/vendor-response/editor/quotation-items-table.tsx')
| -rw-r--r-- | lib/rfq-last/vendor-response/editor/quotation-items-table.tsx | 30 |
1 files changed, 16 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> |
