From 58dd81f6208199791e7451a1cb239f23bcd0a20f Mon Sep 17 00:00:00 2001
From: joonhoekim <26rote@gmail.com>
Date: Tue, 12 Aug 2025 09:50:35 +0000
Subject: (김준회) 결재 템플릿 및 결재선 관리 revalidate 처리, 결재선 관리
 카테고리 처리
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 lib/approval-line/table/create-approval-line-sheet.tsx | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

(limited to 'lib/approval-line/table/create-approval-line-sheet.tsx')

diff --git a/lib/approval-line/table/create-approval-line-sheet.tsx b/lib/approval-line/table/create-approval-line-sheet.tsx
index fdc8cc64..c19d11ab 100644
--- a/lib/approval-line/table/create-approval-line-sheet.tsx
+++ b/lib/approval-line/table/create-approval-line-sheet.tsx
@@ -20,6 +20,7 @@ import {
   FormMessage,
 } from "@/components/ui/form"
 import { Input } from "@/components/ui/input"
+import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "@/components/ui/select"
 import { Textarea } from "@/components/ui/textarea"
 import { Separator } from "@/components/ui/separator"
 import { toast } from "sonner"
@@ -46,6 +47,7 @@ export function CreateApprovalLineSheet({ open, onOpenChange }: CreateApprovalLi
     resolver: zodResolver(ApprovalLineSchema),
     defaultValues: {
       name: "",
+      category: "",
       description: "",
       aplns: [
         // 기안자는 항상 첫 번째로 고정 (플레이스홀더)
@@ -104,6 +106,7 @@ export function CreateApprovalLineSheet({ open, onOpenChange }: CreateApprovalLi
 
       await createApprovalLine({
         name: data.name,
+        category: data.category || undefined,
         description: data.description,
         aplns: data.aplns,
         createdBy: Number(session.user.id),
@@ -148,6 +151,20 @@ export function CreateApprovalLineSheet({ open, onOpenChange }: CreateApprovalLi
                   )}
                 />
 
+                <FormField
+                  control={form.control}
+                  name="category"
+                  render={({ field }) => (
+                    <FormItem>
+                      <FormLabel>카테고리</FormLabel>
+                      <FormControl>
+                        <Input placeholder="카테고리를 입력하세요" {...field} />
+                      </FormControl>
+                      <FormMessage />
+                    </FormItem>
+                  )}
+                />
+
                 <FormField
                   control={form.control}
                   name="description"
-- 
cgit v1.2.3

