diff options
Diffstat (limited to 'lib/vendor-document-list/plant/shi-buyer-system-api.ts')
| -rw-r--r-- | lib/vendor-document-list/plant/shi-buyer-system-api.ts | 38 |
1 files changed, 20 insertions, 18 deletions
diff --git a/lib/vendor-document-list/plant/shi-buyer-system-api.ts b/lib/vendor-document-list/plant/shi-buyer-system-api.ts index e919d95f..b0462af8 100644 --- a/lib/vendor-document-list/plant/shi-buyer-system-api.ts +++ b/lib/vendor-document-list/plant/shi-buyer-system-api.ts @@ -283,29 +283,31 @@ export class ShiBuyerSystemAPI { } private async sendDocumentInfo(documents: any[]) { - const shiDocuments: ShiDocumentInfo[] = documents.map(doc => ({ + const shiDocuments: ShiDocumentInfo[] = documents.map((doc) => ({ PROJ_NO: doc.projectCode, SHI_DOC_NO: doc.docNumber, - CATEGORY: "SHIP", - RESPONSIBLE_CD: "EVCP", - RESPONSIBLE: "eVCP System", - VNDR_CD: doc.vendorCode || "", - VNDR_NM: doc.vendorName || "", - DSN_SKL: "B3", - MIFP_CD: "", - MIFP_NM: "", - CG_EMPNO1: "", - CG_EMPNM1: "", + CATEGORY: 'SHIP', + // 김준식 프로 요청으로 RESPONSIBLE_CD / RESPONSIBLE 값 변경 (251002,김준회) + RESPONSIBLE_CD: 'C00001', + RESPONSIBLE: 'SHI', + VNDR_CD: doc.vendorCode || '', + VNDR_NM: doc.vendorName || '', + DSN_SKL: 'B3', + MIFP_CD: '', + MIFP_NM: '', + CG_EMPNO1: '', + CG_EMPNM1: '', OWN_DOC_NO: doc.vendorDocNumber || doc.docNumber, DSC: doc.title, - DOC_CLASS: "B3", - COMMENT: "", - STATUS: "ACTIVE", - CRTER: "EVCP_SYSTEM", + DOC_CLASS: 'B3', + COMMENT: '', + // 조민정 프로 요청으로 'ACTIVE' --> '생성요청' 값으로 변경 (251002,김준회) + STATUS: '생성요청', + CRTER: 'EVCP_SYSTEM', CRTE_DTM: new Date().toISOString(), - CHGR: "EVCP_SYSTEM", - CHG_DTM: new Date().toISOString() - })) + CHGR: 'EVCP_SYSTEM', + CHG_DTM: new Date().toISOString(), + })); const response = await fetch(`${this.baseUrl}/SetDwgInfo`, { method: 'POST', |
