Merge branch 'dev' of https://git.jetbrains.space/nalpari/q-cast-iii/qcast-front into dev
This commit is contained in:
commit
102a78fc4c
@ -347,8 +347,6 @@ export default function StepUp(props) {
|
|||||||
// console.log('🚀 ~ handleRowClick ~ tempStepUpListData:', tempStepUpListData)
|
// console.log('🚀 ~ handleRowClick ~ tempStepUpListData:', tempStepUpListData)
|
||||||
// console.log('🚀 ~ handleRowClick ~ selectedData:', selectedData)
|
// console.log('🚀 ~ handleRowClick ~ selectedData:', selectedData)
|
||||||
|
|
||||||
console.log('mainIdx, subIdx', mainIdx, subIdx)
|
|
||||||
|
|
||||||
// PCS 2개 이상 또는 첫번째 PCS 선택 시에만 실행
|
// PCS 2개 이상 또는 첫번째 PCS 선택 시에만 실행
|
||||||
if (stepUpListData[0].pcsItemList.length > 1 && mainIdx === 0) {
|
if (stepUpListData[0].pcsItemList.length > 1 && mainIdx === 0) {
|
||||||
// 파워컨디셔너 옵션 조회 요청 파라미터
|
// 파워컨디셔너 옵션 조회 요청 파라미터
|
||||||
@ -372,23 +370,26 @@ export default function StepUp(props) {
|
|||||||
}),
|
}),
|
||||||
}
|
}
|
||||||
|
|
||||||
// PCS 승압설정 정보 조회
|
// PCS가 1개 이고 2번째 또는 3번째 PCS serQty가 0인 경우는 추천 API 실행하지 않음
|
||||||
//const res = await getPcsVoltageStepUpList(params)
|
if (params.pcsItemList.length !== 1 && (params.pcsItemList[1]?.applySerQty !== 0 || params.pcsItemList[2]?.applySerQty) !== 0) {
|
||||||
//getPcsManualConfChk(params).then((res) => {
|
// PCS 승압설정 정보 조회
|
||||||
getPcsVoltageStepUpList(params).then((res) => {
|
//const res = await getPcsVoltageStepUpList(params)
|
||||||
if (res?.result.code === 200 && res?.data) {
|
//getPcsManualConfChk(params).then((res) => {
|
||||||
const dataArray = Array.isArray(res.data) ? res.data : [res.data]
|
getPcsVoltageStepUpList(params).then((res) => {
|
||||||
const stepUpListData = formatStepUpListData(dataArray)
|
if (res?.result.code === 200 && res?.data) {
|
||||||
|
const dataArray = Array.isArray(res.data) ? res.data : [res.data]
|
||||||
|
const stepUpListData = formatStepUpListData(dataArray)
|
||||||
|
|
||||||
// PCS 승압설정 정보 SET
|
// PCS 승압설정 정보 SET
|
||||||
setStepUpListData(stepUpListData)
|
setStepUpListData(stepUpListData)
|
||||||
|
|
||||||
// PCS 옵션 조회
|
// PCS 옵션 조회
|
||||||
const formattedOptCodes = formatOptionCodes(res.data.optionList)
|
const formattedOptCodes = formatOptionCodes(res.data.optionList)
|
||||||
setOptCodes(formattedOptCodes)
|
setOptCodes(formattedOptCodes)
|
||||||
setSeletedOption(formattedOptCodes[0])
|
setSeletedOption(formattedOptCodes[0])
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
selectedData.roofSurfaceList.forEach((roofSurface) => {
|
selectedData.roofSurfaceList.forEach((roofSurface) => {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user