[1136]하제비치값 변경 안되는 현상 수정 #165
@ -176,6 +176,13 @@ const Trestle = forwardRef((props, ref) => {
|
|||||||
|
|
||||||
const onChangeHajebichi = (e) => {
|
const onChangeHajebichi = (e) => {
|
||||||
setHajebichi(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({
|
dispatch({
|
||||||
type: 'SET_HAJEBICHI',
|
type: 'SET_HAJEBICHI',
|
||||||
roof: {
|
roof: {
|
||||||
|
|||||||
@ -2544,7 +2544,7 @@ export const useTrestle = () => {
|
|||||||
mixMatlNo: module.mixMatlNo,
|
mixMatlNo: module.mixMatlNo,
|
||||||
raftBaseCd: addRoof.raft ?? addRoof.raftBaseCd,
|
raftBaseCd: addRoof.raft ?? addRoof.raftBaseCd,
|
||||||
inclCd: addRoof.pitch,
|
inclCd: addRoof.pitch,
|
||||||
roofPitch: !addRoof.roofPchBase ? addRoof.roofPchBase : Number(addRoof.roofPchBase),
|
roofPitch: !!addRoof.hajebichi ? addRoof.hajebichi : Number(addRoof.roofPchBase),
|
||||||
exposedLowerBottomTotCnt: result.exposedBottom, // 노출 최하면 갯수
|
exposedLowerBottomTotCnt: result.exposedBottom, // 노출 최하면 갯수
|
||||||
exposedHalfBottomTotCnt: result.exposedHalfBottom, // 노출 반하면 갯수
|
exposedHalfBottomTotCnt: result.exposedHalfBottom, // 노출 반하면 갯수
|
||||||
exposedTopTotCnt: result.exposedTop, // 노출 상면 총 수
|
exposedTopTotCnt: result.exposedTop, // 노출 상면 총 수
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user