From 2159046e8fc0daf37199a576e9535bafb37676d9 Mon Sep 17 00:00:00 2001 From: "hyojun.choi" Date: Mon, 3 Feb 2025 18:12:21 +0900 Subject: [PATCH] =?UTF-8?q?=EA=B2=AC=EC=A0=81=EC=84=9C=20=ED=8C=8C?= =?UTF-8?q?=EB=9D=BC=EB=AF=B8=ED=84=B0=20=EC=9E=91=EC=97=85=EC=A4=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/hooks/module/useTrestle.js | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/hooks/module/useTrestle.js b/src/hooks/module/useTrestle.js index 5fc4f9af..2fd95ba2 100644 --- a/src/hooks/module/useTrestle.js +++ b/src/hooks/module/useTrestle.js @@ -446,7 +446,7 @@ export const useTrestle = () => { const getQuoationItems = () => { const surfaces = canvas.getObjects().filter((obj) => obj.name === POLYGON_TYPE.MODULE_SETUP_SURFACE) - const params = { trestles: surfaces.map((surface) => surface.quotationParam) } + const params = { trestles: surfaces.map((surface) => surface.quotationParam), pcses: [] } getQuotationItem(params).then((res) => { console.log(res) }) @@ -1514,7 +1514,7 @@ export const useTrestle = () => { let rackParams = rackList.map((rack, index) => { return { seq: index, - rackId: rack.rackId, + itemId: rack.rackId, rackFittingCnt: rack.supFitQty, rackRows: rack.rackRowsCd, } @@ -1525,7 +1525,7 @@ export const useTrestle = () => { const { common, module } = moduleSelectionData // const { constTp } = construction - let { cvrPlvrYn } = surface.trestleDetail + let { cvrPlvrYn, rackYn } = surface.trestleDetail const { trestleMkrCd, constMthdCd, roofBaseCd } = moduleSelection.trestle const { illuminationTp, instHt, stdSnowLd, stdWindSpeed } = common const { constTp } = moduleSelection.construction @@ -1536,6 +1536,7 @@ export const useTrestle = () => { roofMatlCd: parent.roofMaterial.roofMatlCd, mixMatlNo: module.mixMatlNo, raftBaseCd: addRoof.raft, + inclCd: addRoof.pitch, roofPitch: addRoof.roofPchBase, exposedLowerBottomTotCnt: result.exposedBottom, // 노출 최하면 갯수 exposedHalfBottomTotCnt: result.exposedHalfBottom, // 노출 반하면 갯수 @@ -1544,18 +1545,19 @@ export const useTrestle = () => { exposedBottomTotCnt: result.exposedBottomPoints.length, // 노출 하면 수 touchedSurfaceTotCnt: result.touchDimension, // 접면 총 수 touchedHalfSurfaceTotCnt: result.halfTouchDimension, // 반접면 총 수 + moduleTotCnt: surface.modules.length, // 모듈 총 수 moduleRowsTotCnt: surface.moduleRowsTotCnt, // 모듈 총 단 수 eavesTotCnt: eaveBar.length, eavesHalfTotCnt: halfEaveBar.length, + rackYn, racks: rackParams, rackTotCnt: rackList.length ?? 0 + smartRackGroup.length ?? 0, rackFittingCnt: bracketList.length, moduleRows: getMostLeftModules(surface), cvrYn: moduleSelection.construction.setupCover ? 'Y' : 'N', - snowGuardYn: moduleSelection.construction.setupSnowCover ? 'Y' : 'N', + snowGdYn: moduleSelection.construction.setupSnowCover ? 'Y' : 'N', plvrYn: cvrPlvrYn, modules: getModules(surface), - pcses: surface.pcses ?? [], trestleMkrCd, constMthdCd, roofBaseCd,