Merge pull request '[1136]하제비치값 변경 안되는 현상 수정' (#165) from dev into prd-deploy
Reviewed-on: #165
This commit is contained in:
commit
a8e0eaadbd
@ -176,6 +176,13 @@ const Trestle = forwardRef((props, ref) => {
|
||||
|
||||
const onChangeHajebichi = (e) => {
|
||||
setHajebichi(e)
|
||||
|
||||
// roofs 배열에서 selectedRoof.index와 같은 인덱스의 지붕 객체 업데이트
|
||||
if (selectedRoof && selectedRoof.index !== undefined) {
|
||||
const updatedRoofs = roofs.map((roof, index) => (index === selectedRoof.index ? { ...roof, hajebichi: Number(e) } : roof))
|
||||
setRoofs(updatedRoofs)
|
||||
}
|
||||
|
||||
dispatch({
|
||||
type: 'SET_HAJEBICHI',
|
||||
roof: {
|
||||
|
||||
@ -2544,7 +2544,7 @@ export const useTrestle = () => {
|
||||
mixMatlNo: module.mixMatlNo,
|
||||
raftBaseCd: addRoof.raft ?? addRoof.raftBaseCd,
|
||||
inclCd: addRoof.pitch,
|
||||
roofPitch: !addRoof.roofPchBase ? addRoof.roofPchBase : Number(addRoof.roofPchBase),
|
||||
roofPitch: !!addRoof.hajebichi ? addRoof.hajebichi : Number(addRoof.roofPchBase),
|
||||
exposedLowerBottomTotCnt: result.exposedBottom, // 노출 최하면 갯수
|
||||
exposedHalfBottomTotCnt: result.exposedHalfBottom, // 노출 반하면 갯수
|
||||
exposedTopTotCnt: result.exposedTop, // 노출 상면 총 수
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user