summaryrefslogtreecommitdiff
path: root/lib/vendor-investigation/table
diff options
context:
space:
mode:
Diffstat (limited to 'lib/vendor-investigation/table')
-rw-r--r--lib/vendor-investigation/table/investigation-table-columns.tsx12
-rw-r--r--lib/vendor-investigation/table/investigation-table.tsx6
-rw-r--r--lib/vendor-investigation/table/update-investigation-sheet.tsx10
3 files changed, 18 insertions, 10 deletions
diff --git a/lib/vendor-investigation/table/investigation-table-columns.tsx b/lib/vendor-investigation/table/investigation-table-columns.tsx
index 6146d940..88b6644f 100644
--- a/lib/vendor-investigation/table/investigation-table-columns.tsx
+++ b/lib/vendor-investigation/table/investigation-table-columns.tsx
@@ -295,10 +295,14 @@ function formatStatus(status: string): string {
function formatEnumValue(value: string): string {
switch (value) {
// Evaluation types
- case "SITE_AUDIT":
- return "실사의뢰평가"
- case "QM_SELF_AUDIT":
- return "QM자체평가"
+ case "PURCHASE_SELF_EVAL":
+ return "구매자체평가"
+ case "DOCUMENT_EVAL":
+ return "서류평가"
+ case "PRODUCT_INSPECTION":
+ return "제품검사평가"
+ case "SITE_VISIT_EVAL":
+ return "방문실사평가"
// Evaluation results
case "APPROVED":
diff --git a/lib/vendor-investigation/table/investigation-table.tsx b/lib/vendor-investigation/table/investigation-table.tsx
index d5dc05ac..660a8507 100644
--- a/lib/vendor-investigation/table/investigation-table.tsx
+++ b/lib/vendor-investigation/table/investigation-table.tsx
@@ -102,8 +102,10 @@ export function VendorsInvestigationTable({ promises }: VendorsTableProps) {
label: "평가 유형",
type: "select",
options: [
- { label: "실사의뢰평가", value: "SITE_AUDIT" },
- { label: "QM자체평가", value: "QM_SELF_AUDIT" },
+ { label: "구매자체평가", value: "PURCHASE_SELF_EVAL" },
+ { label: "서류평가", value: "DOCUMENT_EVAL" },
+ { label: "제품검사평가", value: "PRODUCT_INSPECTION" },
+ { label: "방문실사평가", value: "SITE_VISIT_EVAL" },
]
},
{
diff --git a/lib/vendor-investigation/table/update-investigation-sheet.tsx b/lib/vendor-investigation/table/update-investigation-sheet.tsx
index 29f0fa92..fbaf000e 100644
--- a/lib/vendor-investigation/table/update-investigation-sheet.tsx
+++ b/lib/vendor-investigation/table/update-investigation-sheet.tsx
@@ -125,7 +125,7 @@ export function UpdateVendorInvestigationSheet({
investigationStatus: investigation?.investigationStatus ?? "PLANNED",
evaluationType: investigation?.evaluationType ?? undefined,
investigationAddress: investigation?.investigationAddress ?? "",
- investigationMethod: investigation?.investigationMethod ?? "",
+ investigationMethod: investigation?.investigationMethod ?? undefined,
forecastedAt: investigation?.forecastedAt ?? undefined,
requestedAt: investigation?.requestedAt ?? undefined,
confirmedAt: investigation?.confirmedAt ?? undefined,
@@ -145,7 +145,7 @@ export function UpdateVendorInvestigationSheet({
investigationStatus: investigation.investigationStatus || "PLANNED",
evaluationType: investigation.evaluationType ?? undefined,
investigationAddress: investigation.investigationAddress ?? "",
- investigationMethod: investigation.investigationMethod ?? "",
+ investigationMethod: investigation.investigationMethod ?? undefined,
forecastedAt: investigation.forecastedAt ?? undefined,
requestedAt: investigation.requestedAt ?? undefined,
confirmedAt: investigation.confirmedAt ?? undefined,
@@ -573,8 +573,10 @@ export function UpdateVendorInvestigationSheet({
</SelectTrigger>
<SelectContent>
<SelectGroup>
- <SelectItem value="SITE_AUDIT">실사의뢰평가</SelectItem>
- <SelectItem value="QM_SELF_AUDIT">QM자체평가</SelectItem>
+ <SelectItem value="PURCHASE_SELF_EVAL">구매자체평가</SelectItem>
+ <SelectItem value="DOCUMENT_EVAL">서류평가</SelectItem>
+ <SelectItem value="PRODUCT_INSPECTION">제품검사평가</SelectItem>
+ <SelectItem value="SITE_VISIT_EVAL">방문실사평가</SelectItem>
</SelectGroup>
</SelectContent>
</Select>