diff options
Diffstat (limited to 'lib/techsales-rfq/vendor-response/detail/quotation-response-tab.tsx')
| -rw-r--r-- | lib/techsales-rfq/vendor-response/detail/quotation-response-tab.tsx | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/lib/techsales-rfq/vendor-response/detail/quotation-response-tab.tsx b/lib/techsales-rfq/vendor-response/detail/quotation-response-tab.tsx index 9411ed02..087e2a4d 100644 --- a/lib/techsales-rfq/vendor-response/detail/quotation-response-tab.tsx +++ b/lib/techsales-rfq/vendor-response/detail/quotation-response-tab.tsx @@ -96,10 +96,9 @@ export function QuotationResponseTab({ quotation }: QuotationResponseTabProps) { const rfq = quotation.rfq
const isDueDatePassed = rfq?.dueDate ? new Date(rfq.dueDate) < new Date() : false
- // const canSubmit = !["Accepted", "Rejected"].includes(quotation.status) && !isDueDatePassed
- // const canEdit = !["Accepted", "Rejected"].includes(quotation.status) && !isDueDatePassed
const canSubmit = !["Accepted", "Rejected"].includes(quotation.status)
const canEdit = !["Accepted", "Rejected"].includes(quotation.status)
+
// 파일 업로드 핸들러
const handleFileSelect = (event: React.ChangeEvent<HTMLInputElement>) => {
const files = event.target.files
@@ -264,13 +263,13 @@ export function QuotationResponseTab({ quotation }: QuotationResponseTabProps) { <div className="text-sm font-medium text-muted-foreground">견적서 상태</div>
<div className="text-sm">{getStatusLabel(quotation.status)}</div>
</div>
- <div className="space-y-2">
+ {/* <div className="space-y-2">
<div className="text-sm font-medium text-muted-foreground">RFQ 마감일</div>
<div className="text-sm">
{rfq?.dueDate ? formatDate(rfq.dueDate) : "N/A"}
</div>
- </div>
- <div className="space-y-2">
+ </div> */}
+ {/* <div className="space-y-2">
<div className="text-sm font-medium text-muted-foreground">남은 시간</div>
<div className="text-sm">
{isDueDatePassed ? (
@@ -283,19 +282,19 @@ export function QuotationResponseTab({ quotation }: QuotationResponseTabProps) { "N/A"
)}
</div>
- </div>
+ </div> */}
</div>
- {isDueDatePassed && (
+ {/* {isDueDatePassed && (
<Alert>
<AlertCircle className="h-4 w-4" />
<AlertDescription>
RFQ 마감일이 지났습니다. 견적서를 수정하거나 제출할 수 없습니다.
</AlertDescription>
</Alert>
- )}
+ )} */}
- {!canEdit && !isDueDatePassed && (
+ {!canEdit && (
<Alert>
<AlertCircle className="h-4 w-4" />
<AlertDescription>
|
