summaryrefslogtreecommitdiff
path: root/lib/pq/pq-review-table-new/site-visit-dialog.tsx
diff options
context:
space:
mode:
authordujinkim <dujin.kim@dtsolution.co.kr>2025-08-11 09:00:38 +0000
committerdujinkim <dujin.kim@dtsolution.co.kr>2025-08-11 09:00:38 +0000
commiteb654f88214095f71be142b989e620fd28db3f69 (patch)
treeaaad3074de4a6422a880b35f9e577d489b0a6c91 /lib/pq/pq-review-table-new/site-visit-dialog.tsx
parenta383fd2a30f60360ebc0c1b897b3d43cbae178fa (diff)
(최겸) 기술영업 변경사항 반영, PQ/실사 변경사항 반영
Diffstat (limited to 'lib/pq/pq-review-table-new/site-visit-dialog.tsx')
-rw-r--r--lib/pq/pq-review-table-new/site-visit-dialog.tsx21
1 files changed, 2 insertions, 19 deletions
diff --git a/lib/pq/pq-review-table-new/site-visit-dialog.tsx b/lib/pq/pq-review-table-new/site-visit-dialog.tsx
index 63390cb1..b6bd3624 100644
--- a/lib/pq/pq-review-table-new/site-visit-dialog.tsx
+++ b/lib/pq/pq-review-table-new/site-visit-dialog.tsx
@@ -131,8 +131,7 @@ interface SiteVisitDialogProps {
onSubmit: (data: SiteVisitRequestFormValues, attachments?: File[]) => Promise<void>
investigation: {
id: number
- evaluationType: "PRODUCT_INSPECTION" | "SITE_VISIT_EVAL"
- investigationMethod?: string
+ investigationMethod?: "PURCHASE_SELF_EVAL" | "DOCUMENT_EVAL" | "PRODUCT_INSPECTION" | "SITE_VISIT_EVAL"
investigationAddress?: string
vendorName: string
vendorCode: string
@@ -275,17 +274,6 @@ export function SiteVisitDialog({
setSelectedFiles(prev => prev.filter((_, i) => i !== index))
}
- const getEvaluationTypeLabel = (type: string) => {
- switch (type) {
- case "PRODUCT_INSPECTION":
- return "제품검사평가"
- case "SITE_VISIT_EVAL":
- return "방문실사평가"
- default:
- return type
- }
- }
-
const getInvestigationMethodLabel = (method: string) => {
switch (method) {
case "PURCHASE_SELF_EVAL":
@@ -338,13 +326,8 @@ export function SiteVisitDialog({
<FormLabel className="text-sm font-medium">실사방법</FormLabel>
<div className="mt-1 p-3 bg-muted rounded-md">
<Badge variant="outline">
- {getEvaluationTypeLabel(investigation.evaluationType)}
+ {getInvestigationMethodLabel(investigation.investigationMethod || "")}
</Badge>
- {investigation.investigationMethod && (
- <div className="mt-2 text-sm text-muted-foreground">
- {getInvestigationMethodLabel(investigation.investigationMethod)}
- </div>
- )}
</div>
</div>