summaryrefslogtreecommitdiff
path: root/lib/general-contracts/main/general-contract-update-sheet.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'lib/general-contracts/main/general-contract-update-sheet.tsx')
-rw-r--r--lib/general-contracts/main/general-contract-update-sheet.tsx98
1 files changed, 38 insertions, 60 deletions
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}