처마커버 최대 단수 적용

This commit is contained in:
hyojun.choi 2025-06-10 14:04:19 +09:00
parent 08606adae6
commit 765cc9c43f

View File

@ -2637,6 +2637,7 @@ export const useTrestle = () => {
const construction = moduleSelectionData?.roofConstructions?.find((construction) => construction.roofIndex === roofMaterialIndex).construction const construction = moduleSelectionData?.roofConstructions?.find((construction) => construction.roofIndex === roofMaterialIndex).construction
let isEaveBar = construction.setupCover let isEaveBar = construction.setupCover
let isSnowGuard = construction.setupSnowCover let isSnowGuard = construction.setupSnowCover
let cvrLmtRow = construction.cvrLmtRow
let { rackYn, cvrPlvrYn, moduleIntvlHor, moduleIntvlVer, rackQty, lessSupFitQty } = surface.trestleDetail let { rackYn, cvrPlvrYn, moduleIntvlHor, moduleIntvlVer, rackQty, lessSupFitQty } = surface.trestleDetail
let result = [] let result = []
if (rackYn === 'N') { if (rackYn === 'N') {
@ -2678,6 +2679,7 @@ export const useTrestle = () => {
} }
// 모듈 하면,최하면 등 구해야함 // 모듈 하면,최하면 등 구해야함
modules.forEach((module, index) => { modules.forEach((module, index) => {
const level = module.level
// 해당 모듈 주변에 다른 모듈이 있는지 확인 // 해당 모듈 주변에 다른 모듈이 있는지 확인
let { let {
bottomModule, bottomModule,
@ -2735,10 +2737,12 @@ export const useTrestle = () => {
} }
if (cvrPlvrYn === 'Y') { if (cvrPlvrYn === 'Y') {
moduleRowResultData.eavesHalfCnt++ if (level <= cvrLmtRow) {
if (bottomLeftModule || bottomRightModule || halfBottomLeftModule || halfBottomRightModule) { moduleRowResultData.eavesHalfCnt++
//처마커버 한개 노출 추가 if (bottomLeftModule || bottomRightModule || halfBottomLeftModule || halfBottomRightModule) {
moduleRowResultData.exposedSideEavesCnt++ //처마커버 한개 노출 추가
moduleRowResultData.exposedSideEavesCnt++
}
} }
} }
} else { } else {
@ -2747,13 +2751,15 @@ export const useTrestle = () => {
moduleRowResultData.exposedBottomBracketCnt += rackQty moduleRowResultData.exposedBottomBracketCnt += rackQty
} }
if (isEaveBar) { if (isEaveBar) {
moduleRowResultData.eavesCnt++ if (level <= cvrLmtRow) {
if ((rightModule && !leftModule) || (!rightModule && leftModule)) { moduleRowResultData.eavesCnt++
// 둘중 하나가 없는경우는 처마커버 노출 추가 if ((rightModule && !leftModule) || (!rightModule && leftModule)) {
moduleRowResultData.exposedSideEavesCnt++ // 둘중 하나가 없는경우는 처마커버 노출 추가
} else if (!rightModule && !leftModule) { moduleRowResultData.exposedSideEavesCnt++
// 양쪽 둘다 없는경우는 처마커버 노출 2개 추가 } else if (!rightModule && !leftModule) {
moduleRowResultData.exposedSideEavesCnt += 2 // 양쪽 둘다 없는경우는 처마커버 노출 2개 추가
moduleRowResultData.exposedSideEavesCnt += 2
}
} }
} }
} }