From 8dafc239b3ff4411e3e13ecd077f128d22d20fcf Mon Sep 17 00:00:00 2001 From: yjnoh Date: Mon, 2 Jun 2025 13:48:53 +0900 Subject: [PATCH] =?UTF-8?q?[1076]=20:=20[=E9=87=91=E5=B1=9E=E7=B8=A6?= =?UTF-8?q?=E8=91=BA=E3=83=BB=E3=83=8F=E3=82=BC=E5=BC=8F=E6=8A=98=E6=9D=BF?= =?UTF-8?q?=E3=83=BB=E9=87=8D=E3=81=AD=E5=BC=8F=E6=8A=98=E6=9D=BF=E3=83=BB?= =?UTF-8?q?=E7=93=A6=E6=A3=92=E8=91=BA(=E8=8A=AF=E6=9C=A8=E3=81=AA?= =?UTF-8?q?=E3=81=97)=E3=81=AE=E5=B1=8B=E6=A0=B9=E3=81=A8=E3=83=A9?= =?UTF-8?q?=E3=83=83=E3=82=AF=E3=83=AC=E3=82=B9=E5=B7=A5=E6=B3=95=E3=81=AE?= =?UTF-8?q?=E7=B5=84=E3=81=BF=E5=90=88=E3=82=8F=E3=81=9B=E3=81=AE=E6=99=82?= =?UTF-8?q?]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [작업내용] : 버그 수정 --- src/components/floor-plan/modal/basic/step/Trestle.jsx | 3 ++- src/hooks/module/useModuleTrestle.js | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/components/floor-plan/modal/basic/step/Trestle.jsx b/src/components/floor-plan/modal/basic/step/Trestle.jsx index f350ff5a..070ce979 100644 --- a/src/components/floor-plan/modal/basic/step/Trestle.jsx +++ b/src/components/floor-plan/modal/basic/step/Trestle.jsx @@ -236,7 +236,7 @@ const Trestle = forwardRef((props, ref) => { illuminationTp: managementState?.surfaceTypeValue ?? '', instHt: managementState?.installHeight ?? '', stdWindSpeed: managementState?.standardWindSpeedId ?? '', - stdSnowLd: +managementState?.verticalSnowCover ?? '', + stdSnowLd: managementState?.verticalSnowCover ?? '', inclCd: selectedRoof?.pitch ?? 0, roofPitch: Math.round(hajebichi ?? 0), constTp: constructionList[index].constTp, @@ -304,6 +304,7 @@ const Trestle = forwardRef((props, ref) => { kerabaMargin, roofIndex: roof.index, raft: selectedRaftBase?.clCode, + hajebichi: hajebichi, trestle: { length: lengthBase, hajebichi: hajebichi, diff --git a/src/hooks/module/useModuleTrestle.js b/src/hooks/module/useModuleTrestle.js index 0143e92e..a39c8c1d 100644 --- a/src/hooks/module/useModuleTrestle.js +++ b/src/hooks/module/useModuleTrestle.js @@ -209,7 +209,7 @@ export function useModuleTrestle(props) { stdSnowLd: trestleState.stdSnowLd ?? '', inclCd: trestleState.inclCd ?? '', raftBaseCd: trestleState.raft ?? '', - roofPitch: Math.round(trestleState.roofPitch) ?? '', + roofPitch: trestleState.hajebichi ? trestleState.hajebichi : (trestleState.roofPitch ?? ''), }) .then((res) => { if (res?.data) setConstructionList(res.data) @@ -236,7 +236,7 @@ export function useModuleTrestle(props) { inclCd: trestleState.inclCd ?? '', constTp: trestleState.constTp ?? '', mixMatlNo: trestleState.mixMatlNo ?? '', - roofPitch: trestleState.roofPitch ?? '', + roofPitch: trestleState.hajebichi ? trestleState.hajebichi : (trestleState.roofPitch ?? ''), // workingWidth: trestleState.length ?? '', workingWidth: lengthBase ?? '', },