dev #195

Merged
ysCha merged 96 commits from dev into dev-deploy 2025-07-09 17:32:10 +09:00
2 changed files with 8 additions and 1 deletions
Showing only changes of commit a8e0eaadbd - Show all commits

View File

@ -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: {

View File

@ -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, // 노출 상면 총 수