견적서 아이템조회 파라미터 내용 수정
This commit is contained in:
parent
87523731c8
commit
923dbf14bb
@ -52,7 +52,7 @@ export const useTrestle = () => {
|
|||||||
let { rackQty, rackIntvlPct, rackYn, cvrPlvrYn } = surface.trestleDetail
|
let { rackQty, rackIntvlPct, rackYn, cvrPlvrYn } = surface.trestleDetail
|
||||||
|
|
||||||
if (!rack) {
|
if (!rack) {
|
||||||
//25/01/16 기준 랙이 없는 경우는 그냥 안그려준다.
|
//25/02/06 가대없음의 경우 랙정보가 없음
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -105,8 +105,6 @@ export const useTrestle = () => {
|
|||||||
leftExposedHalfTopModules.length > 0 ||
|
leftExposedHalfTopModules.length > 0 ||
|
||||||
rightExposedHalfTopPoints.length > 0
|
rightExposedHalfTopPoints.length > 0
|
||||||
|
|
||||||
console.log('isChidory', isChidory)
|
|
||||||
|
|
||||||
if (plvrYn === 'N' && isChidory) {
|
if (plvrYn === 'N' && isChidory) {
|
||||||
alert('치조불가공법입니다.')
|
alert('치조불가공법입니다.')
|
||||||
clear()
|
clear()
|
||||||
@ -619,7 +617,21 @@ export const useTrestle = () => {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
const params = { trestles: surfaces.map((surface) => surface.quotationParam), pcses }
|
|
||||||
|
const allModules = surfaces.map((surface) => surface.modules).flat()
|
||||||
|
// 모듈 파라미터 생성
|
||||||
|
const modules = getModulesParam(allModules)
|
||||||
|
const trestles = []
|
||||||
|
//가대 파라미터 생성
|
||||||
|
surfaces.forEach((surface) => {
|
||||||
|
if (surface.quotationParam) {
|
||||||
|
trestles.push(surface.quotationParam)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
// trestles 배열에서 null인 경우 제거
|
||||||
|
const params = { trestles, pcses, modules }
|
||||||
|
|
||||||
//견적서 itemList 조회
|
//견적서 itemList 조회
|
||||||
const { data: itemList, data2, result } = await getQuotationItem(params)
|
const { data: itemList, data2, result } = await getQuotationItem(params)
|
||||||
|
|
||||||
@ -1883,7 +1895,7 @@ export const useTrestle = () => {
|
|||||||
cvrYn: moduleSelection.construction.setupCover ? 'Y' : 'N',
|
cvrYn: moduleSelection.construction.setupCover ? 'Y' : 'N',
|
||||||
snowGdYn: moduleSelection.construction.setupSnowCover ? 'Y' : 'N',
|
snowGdYn: moduleSelection.construction.setupSnowCover ? 'Y' : 'N',
|
||||||
plvrYn: cvrPlvrYn,
|
plvrYn: cvrPlvrYn,
|
||||||
modules: getModules(surface),
|
// modules: getModules(surface), // 2025-02-06 api 수정
|
||||||
trestleMkrCd,
|
trestleMkrCd,
|
||||||
constMthdCd,
|
constMthdCd,
|
||||||
roofBaseCd,
|
roofBaseCd,
|
||||||
@ -1895,10 +1907,9 @@ export const useTrestle = () => {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const getModules = (surface) => {
|
// 전체 모듈 파라미터 생성
|
||||||
const { modules } = surface
|
const getModulesParam = (allModules) => {
|
||||||
|
const params = allModules.map((module, index) => {
|
||||||
const params = modules.map((module, index) => {
|
|
||||||
return {
|
return {
|
||||||
moduleTpCd: module.moduleInfo.itemTp,
|
moduleTpCd: module.moduleInfo.itemTp,
|
||||||
moduleItemId: module.moduleInfo.itemId,
|
moduleItemId: module.moduleInfo.itemId,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user