견적서 파라미터 작업중
This commit is contained in:
parent
d4241c3c16
commit
2159046e8f
@ -446,7 +446,7 @@ export const useTrestle = () => {
|
||||
|
||||
const getQuoationItems = () => {
|
||||
const surfaces = canvas.getObjects().filter((obj) => obj.name === POLYGON_TYPE.MODULE_SETUP_SURFACE)
|
||||
const params = { trestles: surfaces.map((surface) => surface.quotationParam) }
|
||||
const params = { trestles: surfaces.map((surface) => surface.quotationParam), pcses: [] }
|
||||
getQuotationItem(params).then((res) => {
|
||||
console.log(res)
|
||||
})
|
||||
@ -1514,7 +1514,7 @@ export const useTrestle = () => {
|
||||
let rackParams = rackList.map((rack, index) => {
|
||||
return {
|
||||
seq: index,
|
||||
rackId: rack.rackId,
|
||||
itemId: rack.rackId,
|
||||
rackFittingCnt: rack.supFitQty,
|
||||
rackRows: rack.rackRowsCd,
|
||||
}
|
||||
@ -1525,7 +1525,7 @@ export const useTrestle = () => {
|
||||
const { common, module } = moduleSelectionData
|
||||
|
||||
// const { constTp } = construction
|
||||
let { cvrPlvrYn } = surface.trestleDetail
|
||||
let { cvrPlvrYn, rackYn } = surface.trestleDetail
|
||||
const { trestleMkrCd, constMthdCd, roofBaseCd } = moduleSelection.trestle
|
||||
const { illuminationTp, instHt, stdSnowLd, stdWindSpeed } = common
|
||||
const { constTp } = moduleSelection.construction
|
||||
@ -1536,6 +1536,7 @@ export const useTrestle = () => {
|
||||
roofMatlCd: parent.roofMaterial.roofMatlCd,
|
||||
mixMatlNo: module.mixMatlNo,
|
||||
raftBaseCd: addRoof.raft,
|
||||
inclCd: addRoof.pitch,
|
||||
roofPitch: addRoof.roofPchBase,
|
||||
exposedLowerBottomTotCnt: result.exposedBottom, // 노출 최하면 갯수
|
||||
exposedHalfBottomTotCnt: result.exposedHalfBottom, // 노출 반하면 갯수
|
||||
@ -1544,18 +1545,19 @@ export const useTrestle = () => {
|
||||
exposedBottomTotCnt: result.exposedBottomPoints.length, // 노출 하면 수
|
||||
touchedSurfaceTotCnt: result.touchDimension, // 접면 총 수
|
||||
touchedHalfSurfaceTotCnt: result.halfTouchDimension, // 반접면 총 수
|
||||
moduleTotCnt: surface.modules.length, // 모듈 총 수
|
||||
moduleRowsTotCnt: surface.moduleRowsTotCnt, // 모듈 총 단 수
|
||||
eavesTotCnt: eaveBar.length,
|
||||
eavesHalfTotCnt: halfEaveBar.length,
|
||||
rackYn,
|
||||
racks: rackParams,
|
||||
rackTotCnt: rackList.length ?? 0 + smartRackGroup.length ?? 0,
|
||||
rackFittingCnt: bracketList.length,
|
||||
moduleRows: getMostLeftModules(surface),
|
||||
cvrYn: moduleSelection.construction.setupCover ? 'Y' : 'N',
|
||||
snowGuardYn: moduleSelection.construction.setupSnowCover ? 'Y' : 'N',
|
||||
snowGdYn: moduleSelection.construction.setupSnowCover ? 'Y' : 'N',
|
||||
plvrYn: cvrPlvrYn,
|
||||
modules: getModules(surface),
|
||||
pcses: surface.pcses ?? [],
|
||||
trestleMkrCd,
|
||||
constMthdCd,
|
||||
roofBaseCd,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user