북면 설치 가능 모듈은 단독으로만 가능함

This commit is contained in:
hyojun.choi 2025-12-31 14:17:45 +09:00
parent 1524766b7e
commit 7557f61130

View File

@ -122,6 +122,21 @@ export default function PassivityCircuitAllocation(props) {
return
}
// targetModule Y N .
const targetModuleGroup = [...new Set(canvas
.getObjects()
.filter((obj) => obj.name === POLYGON_TYPE.MODULE && targetModules.includes(obj.id))
.map((obj) => obj.moduleInfo.northModuleYn))]
if (targetModuleGroup.length > 1) {
swalFire({
text: getMessage('module.circuit.fix.not.same.roof.error'),
type: 'alert',
icon: 'warning',
})
return
}
switch (pcsTpCd) {
case 'INDFCS': {
const originHaveThisPcsModules = canvas