From c8beed57d9fb10c02b8951cd4267017984ca5beb Mon Sep 17 00:00:00 2001
From: dujinkim <dujin.kim@dtsolution.co.kr>
Date: Wed, 17 Sep 2025 10:41:29 +0000
Subject: (최겸) 구매 일반계약 프로젝트id추가, 선적지, 하역지 연동, numbering
 수정
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../main/general-contract-update-sheet.tsx         | 98 +++++++++-------------
 1 file changed, 38 insertions(+), 60 deletions(-)

(limited to 'lib/general-contracts/main/general-contract-update-sheet.tsx')

diff --git a/lib/general-contracts/main/general-contract-update-sheet.tsx b/lib/general-contracts/main/general-contract-update-sheet.tsx
index 064fded3..54f4ae4e 100644
--- a/lib/general-contracts/main/general-contract-update-sheet.tsx
+++ b/lib/general-contracts/main/general-contract-update-sheet.tsx
@@ -83,8 +83,6 @@ export function GeneralContractUpdateSheet({
       endDate: "",
       validityEndDate: "",
       contractScope: "",
-      specificationType: "",
-      specificationManualText: "",
       notes: "",
       linkedRfqOrItb: "",
       linkedPoNumber: "",
@@ -109,8 +107,6 @@ export function GeneralContractUpdateSheet({
         endDate: contract.endDate || "",
         validityEndDate: contract.validityEndDate || "",
         contractScope: contract.contractScope || "",
-        specificationType: contract.specificationType || "",
-        specificationManualText: contract.specificationManualText || "",
         notes: contract.notes || "",
         linkedRfqOrItb: contract.linkedRfqOrItb || "",
         linkedPoNumber: contract.linkedPoNumber || "",
@@ -136,8 +132,6 @@ export function GeneralContractUpdateSheet({
         endDate: data.endDate,
         validityEndDate: data.validityEndDate,
         contractScope: data.contractScope,
-        specificationType: data.specificationType,
-        specificationManualText: data.specificationManualText,
         notes: data.notes,
         linkedRfqOrItb: data.linkedRfqOrItb,
         linkedPoNumber: data.linkedPoNumber,
@@ -185,11 +179,17 @@ export function GeneralContractUpdateSheet({
                         </SelectTrigger>
                       </FormControl>
                       <SelectContent>
-                        {GENERAL_CONTRACT_CATEGORIES.map((category) => (
+                        {GENERAL_CONTRACT_CATEGORIES.map((category) => {
+                          const categoryLabels = {
+                            'unit_price': '단가계약',
+                            'general': '일반계약',
+                            'sale': '매각계약'
+                          }
+                          return (
                           <SelectItem key={category} value={category}>
-                            {category}
+                            {category} - {categoryLabels[category as keyof typeof categoryLabels]}
                           </SelectItem>
-                        ))}
+                        )})}
                       </SelectContent>
                     </Select>
                     <FormMessage />
@@ -211,11 +211,29 @@ export function GeneralContractUpdateSheet({
                         </SelectTrigger>
                       </FormControl>
                       <SelectContent>
-                        {GENERAL_CONTRACT_TYPES.map((type) => (
+                        {GENERAL_CONTRACT_TYPES.map((type) => {
+                          const typeLabels = {
+                            'UP': '자재단가계약',
+                            'LE': '임대차계약',
+                            'IL': '개별운송계약',
+                            'AL': '연간운송계약',
+                            'OS': '외주용역계약',
+                            'OW': '도급계약',
+                            'IS': '검사계약',
+                            'LO': 'LOI',
+                            'FA': 'FA',
+                            'SC': '납품합의계약',
+                            'OF': '클레임상계계약',
+                            'AW': '사전작업합의',
+                            'AD': '사전납품합의',
+                            'AM': '설계계약',
+                            'SC_SELL': '폐기물매각계약'
+                          }
+                          return (
                           <SelectItem key={type} value={type}>
-                            {type}
+                            {type} - {typeLabels[type as keyof typeof typeLabels]}
                           </SelectItem>
-                        ))}
+                        )})}
                       </SelectContent>
                     </Select>
                     <FormMessage />
@@ -237,11 +255,16 @@ export function GeneralContractUpdateSheet({
                         </SelectTrigger>
                       </FormControl>
                       <SelectContent>
-                        {GENERAL_EXECUTION_METHODS.map((method) => (
+                        {GENERAL_EXECUTION_METHODS.map((method) => {
+                          const methodLabels = {
+                            '전자계약': '전자계약',
+                            '오프라인계약': '오프라인계약'
+                          }
+                          return (
                           <SelectItem key={method} value={method}>
-                            {method}
+                            {method} - {methodLabels[method as keyof typeof methodLabels]}
                           </SelectItem>
-                        ))}
+                        )})}
                       </SelectContent>
                     </Select>
                     <FormMessage />
@@ -336,51 +359,6 @@ export function GeneralContractUpdateSheet({
                 )}
               />
 
-              {/* 연계 견적/입찰번호 */}
-              <FormField
-                control={form.control}
-                name="linkedRfqOrItb"
-                render={({ field }) => (
-                  <FormItem>
-                    <FormLabel>연계 견적/입찰번호</FormLabel>
-                    <FormControl>
-                      <Input placeholder="연계 견적/입찰번호를 입력하세요" {...field} />
-                    </FormControl>
-                    <FormMessage />
-                  </FormItem>
-                )}
-              />
-
-              {/* 연계 PO번호 */}
-              <FormField
-                control={form.control}
-                name="linkedPoNumber"
-                render={({ field }) => (
-                  <FormItem>
-                    <FormLabel>연계 PO번호</FormLabel>
-                    <FormControl>
-                      <Input placeholder="연계 PO번호를 입력하세요" {...field} />
-                    </FormControl>
-                    <FormMessage />
-                  </FormItem>
-                )}
-              />
-
-              {/* 연계 BID번호 */}
-              <FormField
-                control={form.control}
-                name="linkedBidNumber"
-                render={({ field }) => (
-                  <FormItem>
-                    <FormLabel>연계 BID번호</FormLabel>
-                    <FormControl>
-                      <Input placeholder="연계 BID번호를 입력하세요" {...field} />
-                    </FormControl>
-                    <FormMessage />
-                  </FormItem>
-                )}
-              />
-
               {/* 비고 */}
               <FormField
                 control={form.control}
-- 
cgit v1.2.3

