처마커버 최대 단수 적용
This commit is contained in:
parent
08606adae6
commit
765cc9c43f
@ -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,18 +2737,21 @@ export const useTrestle = () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (cvrPlvrYn === 'Y') {
|
if (cvrPlvrYn === 'Y') {
|
||||||
|
if (level <= cvrLmtRow) {
|
||||||
moduleRowResultData.eavesHalfCnt++
|
moduleRowResultData.eavesHalfCnt++
|
||||||
if (bottomLeftModule || bottomRightModule || halfBottomLeftModule || halfBottomRightModule) {
|
if (bottomLeftModule || bottomRightModule || halfBottomLeftModule || halfBottomRightModule) {
|
||||||
//처마커버 한개 노출 추가
|
//처마커버 한개 노출 추가
|
||||||
moduleRowResultData.exposedSideEavesCnt++
|
moduleRowResultData.exposedSideEavesCnt++
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
moduleRowResultData.exposedBottomCnt++
|
moduleRowResultData.exposedBottomCnt++
|
||||||
if (rackYn === 'N') {
|
if (rackYn === 'N') {
|
||||||
moduleRowResultData.exposedBottomBracketCnt += rackQty
|
moduleRowResultData.exposedBottomBracketCnt += rackQty
|
||||||
}
|
}
|
||||||
if (isEaveBar) {
|
if (isEaveBar) {
|
||||||
|
if (level <= cvrLmtRow) {
|
||||||
moduleRowResultData.eavesCnt++
|
moduleRowResultData.eavesCnt++
|
||||||
if ((rightModule && !leftModule) || (!rightModule && leftModule)) {
|
if ((rightModule && !leftModule) || (!rightModule && leftModule)) {
|
||||||
// 둘중 하나가 없는경우는 처마커버 노출 추가
|
// 둘중 하나가 없는경우는 처마커버 노출 추가
|
||||||
@ -2758,6 +2763,7 @@ export const useTrestle = () => {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if (!topModule) {
|
if (!topModule) {
|
||||||
if ((halfTopLeftModule && !halfTopRightModule) || (!halfTopLeftModule && halfTopRightModule)) {
|
if ((halfTopLeftModule && !halfTopRightModule) || (!halfTopLeftModule && halfTopRightModule)) {
|
||||||
moduleRowResultData.exposedHalfTopCnt++
|
moduleRowResultData.exposedHalfTopCnt++
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user