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