From 94082bfe915d3b0337f8929a2bb27828abb5d3c7 Mon Sep 17 00:00:00 2001 From: dujinkim Date: Thu, 21 Aug 2025 09:10:06 +0000 Subject: (최겸) 협력업체 기본정보 기능 개발 및 수정 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/vendors/service.ts | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'lib/vendors') diff --git a/lib/vendors/service.ts b/lib/vendors/service.ts index 9cb653ea..4cca3b12 100644 --- a/lib/vendors/service.ts +++ b/lib/vendors/service.ts @@ -2537,6 +2537,8 @@ export async function getVendorBasicInfo(vendorId: number) { vendorCode: vendor.vendorCode, taxId: vendor.taxId, address: vendor.address, + addressDetail: vendor.addressDetail || "", + postalCode: vendor.postalCode || "", businessSize: vendor.businessSize || "", // vendorsWithTypesView에 businessSize 필드가 없을 경우 대비 country: vendor.country, phone: vendor.phone, @@ -2606,6 +2608,20 @@ export async function getVendorBasicInfo(vendorId: number) { capacityInfo: null, + // 누락된 필수 필드들 추가 + processInfo: { + processCount: 0, + processPIC: "", + processApprovalDate: "", + implementationApproval: "" + }, + + contractInfo: { + contractRegistrationNumber: "", + contractPeriod: "", + lastEquipmentInspection: "" + }, + calculatedMetrics: null, // 구현 시 { "20231231": { debtRatio: 0, ... }, "20221231": { ... } } 형태로 YYYYMMDD 키 사용 }; }); -- cgit v1.2.3