From 89274bffa596ffdfc4275fb8d11cdb02ff9a2d02 Mon Sep 17 00:00:00 2001
From: dujinkim <dujin.kim@dtsolution.co.kr>
Date: Mon, 13 Oct 2025 00:22:54 +0000
Subject: (최겸) 기술영업 import 수정 2
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 lib/techsales-rfq/table/create-rfq-ship-dialog.tsx | 27 +++++++++++++++++++---
 1 file changed, 24 insertions(+), 3 deletions(-)

(limited to 'lib/techsales-rfq/table/create-rfq-ship-dialog.tsx')

diff --git a/lib/techsales-rfq/table/create-rfq-ship-dialog.tsx b/lib/techsales-rfq/table/create-rfq-ship-dialog.tsx
index 114bd04d..b851f7e8 100644
--- a/lib/techsales-rfq/table/create-rfq-ship-dialog.tsx
+++ b/lib/techsales-rfq/table/create-rfq-ship-dialog.tsx
@@ -66,6 +66,7 @@ const createShipRfqSchema = z.object({
     required_error: "마감일을 선택해주세요.",
   }),
   description: z.string().optional(),
+  remark: z.string().optional(),
 })
 
 // 폼 데이터 타입
@@ -197,6 +198,7 @@ export function CreateShipRfqDialog({ onCreated }: CreateShipRfqDialogProps) {
       itemIds: [],
       dueDate: undefined,
       description: "",
+      remark: "",
     }
   })
 
@@ -226,9 +228,9 @@ export function CreateShipRfqDialog({ onCreated }: CreateShipRfqDialogProps) {
     return filtered
   }, [allItems, itemSearchQuery, selectedWorkType, selectedShipType])
 
-  // 사용 가능한 선종 목록 가져오기
+  // 사용 가능한 선종 목록 가져오기 (OPTION 제외)
   const availableShipTypes = React.useMemo(() => {
-    return shipTypes
+    return shipTypes.filter(shipType => shipType !== "OPTION")
   }, [shipTypes])
 
   // 프로젝트 선택 처리
@@ -274,6 +276,7 @@ export function CreateShipRfqDialog({ onCreated }: CreateShipRfqDialogProps) {
         itemIds: data.itemIds,
         dueDate: data.dueDate,
         description: data.description,
+        remark: data.remark,
         createdBy: Number(session.user.id),
       })
       
@@ -396,7 +399,25 @@ export function CreateShipRfqDialog({ onCreated }: CreateShipRfqDialogProps) {
                     </FormItem>
                   )}
                 />
-                
+
+                {/* 비고 */}
+                <FormField
+                  control={form.control}
+                  name="remark"
+                  render={({ field }) => (
+                    <FormItem>
+                      <FormLabel>RFQ Context</FormLabel>
+                      <FormControl>
+                        <Input
+                          placeholder="RFQ Context를 입력하세요 (선택사항)"
+                          {...field}
+                        />
+                      </FormControl>
+                      <FormMessage />
+                    </FormItem>
+                  )}
+                />
+
                 <Separator className="my-4" />
                 
                 {/* 선종 선택 */}
-- 
cgit v1.2.3

