Compare commits
No commits in common. "fed402439f8d17f3771121ba40772e4f28d6e717" and "25e2b4a37d030b759f2e48eab3210a84f4191d24" have entirely different histories.
fed402439f
...
25e2b4a37d
@ -2601,16 +2601,8 @@ export const useTrestle = () => {
|
||||
const { constTp } = moduleSelection.construction
|
||||
const { addRoof } = moduleSelection
|
||||
|
||||
// 서브모듈 코드 판별: 서로 다른 계열 혼합(예: DC3=D+C3)일 때만 서브모듈 코드 세팅
|
||||
// 단일(C3) 또는 같은 계열 혼합(C1C2C3)은 빈 문자열
|
||||
const subCodes = module.itemTp?.match(/[A-Z]\d*/g) || []
|
||||
const uniquePrefixes = new Set(subCodes.map((code) => code.charAt(0)))
|
||||
const isDifferentSeriesMix = subCodes.length > 1 && uniquePrefixes.size > 1
|
||||
const subModuleTpCd = isDifferentSeriesMix ? surface.modules?.[0]?.moduleInfo?.moduleTpCd || '' : ''
|
||||
|
||||
return {
|
||||
moduleTpCd: module.itemTp,
|
||||
subModuleTpCd,
|
||||
roofMatlCd: parent.roofMaterial.roofMatlCd,
|
||||
mixMatlNo: module.mixMatlNo,
|
||||
raftBaseCd: addRoof.raft ?? addRoof.raftBaseCd,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user