diff options
Diffstat (limited to 'lib/vendor-regular-registrations/table')
3 files changed, 3 insertions, 22 deletions
diff --git a/lib/vendor-regular-registrations/table/vendor-regular-registrations-table-columns.tsx b/lib/vendor-regular-registrations/table/vendor-regular-registrations-table-columns.tsx index c823bc9d..b6f9289f 100644 --- a/lib/vendor-regular-registrations/table/vendor-regular-registrations-table-columns.tsx +++ b/lib/vendor-regular-registrations/table/vendor-regular-registrations-table-columns.tsx @@ -6,7 +6,7 @@ import { Badge } from "@/components/ui/badge" import { format } from "date-fns"
import { DataTableColumnHeaderSimple } from "@/components/data-table/data-table-column-simple-header"
-import type { VendorRegularRegistration } from "@/config/vendorRegularRegistrationsColumnsConfig"
+import { VendorRegularRegistration, statusLabels, statusColors } from "@/config/vendorRegularRegistrationsColumnsConfig"
import { DocumentStatusDialog } from "@/components/vendor-regular-registrations/document-status-dialog"
import { Button } from "@/components/ui/button"
import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuTrigger } from "@/components/ui/dropdown-menu"
@@ -16,23 +16,6 @@ import { useState } from "react" import { SafetyQualificationUpdateDialog } from "./safety-qualification-update-dialog"
import { MajorItemsUpdateDialog } from "./major-items-update-dialog"
-
-const statusLabels = {
- under_review: "검토중",
- approval_ready: "조건충족",
- in_review: "정규등록검토",
- completed: "등록완료",
- pending_approval: "장기미등록",
-}
-
-const statusColors = {
- under_review: "bg-blue-100 text-blue-800",
- approval_ready: "bg-emerald-100 text-emerald-800",
- in_review: "bg-orange-100 text-orange-800",
- completed: "bg-green-100 text-green-800",
- pending_approval: "bg-red-100 text-red-800",
-}
-
export function getColumns(): ColumnDef<VendorRegularRegistration>[] {
return [
diff --git a/lib/vendor-regular-registrations/table/vendor-regular-registrations-table-toolbar-actions.tsx b/lib/vendor-regular-registrations/table/vendor-regular-registrations-table-toolbar-actions.tsx index d88cd7b7..f40a41f7 100644 --- a/lib/vendor-regular-registrations/table/vendor-regular-registrations-table-toolbar-actions.tsx +++ b/lib/vendor-regular-registrations/table/vendor-regular-registrations-table-toolbar-actions.tsx @@ -6,11 +6,10 @@ import { toast } from "sonner" import { Button } from "@/components/ui/button"
import { Mail, FileWarning, Scale, FileText } from "lucide-react"
import type { VendorRegularRegistration } from "@/config/vendorRegularRegistrationsColumnsConfig"
-import {
+import {
sendMissingContractRequestEmails,
sendAdditionalInfoRequestEmails,
- skipLegalReview,
- submitRegistrationRequest
+ skipLegalReview
} from "../service"
import { useState } from "react"
import { SkipReasonDialog } from "@/components/vendor-regular-registrations/skip-reason-dialog"
diff --git a/lib/vendor-regular-registrations/table/vendor-regular-registrations-table.tsx b/lib/vendor-regular-registrations/table/vendor-regular-registrations-table.tsx index 8b477dba..c1229b42 100644 --- a/lib/vendor-regular-registrations/table/vendor-regular-registrations-table.tsx +++ b/lib/vendor-regular-registrations/table/vendor-regular-registrations-table.tsx @@ -61,7 +61,6 @@ export function VendorRegularRegistrationsTable({ promises }: VendorRegularRegis { label: "CP검토", value: "cp_review" },
{ label: "CP완료", value: "cp_finished" },
{ label: "조건충족", value: "approval_ready" },
- { label: "정규등록검토", value: "in_review" },
{ label: "장기미등록", value: "pending_approval" },
]
},
|
