summaryrefslogtreecommitdiff
path: root/lib/general-contracts/main
diff options
context:
space:
mode:
authordujinkim <dujin.kim@dtsolution.co.kr>2025-11-11 10:18:06 +0000
committerdujinkim <dujin.kim@dtsolution.co.kr>2025-11-11 10:18:06 +0000
commit4098a22b43c6ebc51688d03db59fd510e72dee10 (patch)
treeded7c8defce7031ae8d7933b2cd0d4e11115b9e4 /lib/general-contracts/main
parent535de26b9cf3242c04543d6891d78352b9593a60 (diff)
(최겸) 구매 일반계약 수정중
Diffstat (limited to 'lib/general-contracts/main')
-rw-r--r--lib/general-contracts/main/general-contract-update-sheet.tsx35
-rw-r--r--lib/general-contracts/main/general-contracts-table.tsx2
2 files changed, 33 insertions, 4 deletions
diff --git a/lib/general-contracts/main/general-contract-update-sheet.tsx b/lib/general-contracts/main/general-contract-update-sheet.tsx
index 074558ec..ac49faca 100644
--- a/lib/general-contracts/main/general-contract-update-sheet.tsx
+++ b/lib/general-contracts/main/general-contract-update-sheet.tsx
@@ -254,10 +254,28 @@ export function GeneralContractUpdateSheet({
</SelectContent>
</Select>
<FormMessage />
+ {field.value === 'SC' && (
+ <p className="text-sm text-blue-600 mt-1">
+ 납품예정 품목 및 수량을 명기하세요. 납품 품목 또는 작업 내용은 구체적으로 작성하되, 수량(물량)이 정확하지 않을 경우, 상호협의하에 변경 가능하며, 수량(물량) 등은 개별계약(PO)시 명기하세요
+ </p>
+ )}
</FormItem>
)}
/>
+ {/* 계약번호 */}
+ <div className="space-y-2">
+ <label className="text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70">
+ 계약번호
+ </label>
+ <Input
+ placeholder="계약번호"
+ value={contract?.contractNumber || ""}
+ readOnly
+ className="bg-gray-50"
+ />
+ </div>
+
{/* 체결방식 */}
<FormField
control={form.control}
@@ -304,6 +322,19 @@ export function GeneralContractUpdateSheet({
)}
/>
+ {/* 협력업체명 + 코드 */}
+ <div className="space-y-2">
+ <label className="text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70">
+ 협력업체
+ </label>
+ <Input
+ placeholder="협력업체명 + 코드"
+ value={contract?.vendorName ? `${contract.vendorName}${contract.vendorCode ? ` (${contract.vendorCode})` : ''}` : ""}
+ readOnly
+ className="bg-gray-50"
+ />
+ </div>
+
{/* 계약시작일 */}
<FormField
control={form.control}
@@ -356,7 +387,7 @@ export function GeneralContractUpdateSheet({
/>
{/* 계약확정범위 */}
- <FormField
+ {/* <FormField
control={form.control}
name="contractScope"
render={({ field }) => (
@@ -380,7 +411,7 @@ export function GeneralContractUpdateSheet({
</p>
</FormItem>
)}
- />
+ /> */}
{/* 비고 */}
<FormField
diff --git a/lib/general-contracts/main/general-contracts-table.tsx b/lib/general-contracts/main/general-contracts-table.tsx
index 503527b3..813c1798 100644
--- a/lib/general-contracts/main/general-contracts-table.tsx
+++ b/lib/general-contracts/main/general-contracts-table.tsx
@@ -75,8 +75,6 @@ export function GeneralContractsTable({ promises }: GeneralContractsTableProps)
const [updateSheetOpen, setUpdateSheetOpen] = React.useState(false)
const [selectedContract, setSelectedContract] = React.useState<GeneralContractListItem | null>(null)
- console.log(data, "data")
-
const router = useRouter()
const columns = React.useMemo(