견적서 아이템 목록 조회 작업중
This commit is contained in:
parent
ad320708cf
commit
3b8234b5a2
@ -366,6 +366,7 @@ export default function CircuitTrestleSetting({ id }) {
|
|||||||
})
|
})
|
||||||
|
|
||||||
console.log(canvas.getObjects().filter((obj) => obj.name === POLYGON_TYPE.MODULE_SETUP_SURFACE))
|
console.log(canvas.getObjects().filter((obj) => obj.name === POLYGON_TYPE.MODULE_SETUP_SURFACE))
|
||||||
|
apply()
|
||||||
}
|
}
|
||||||
|
|
||||||
const onClickPrev = () => {
|
const onClickPrev = () => {
|
||||||
@ -443,11 +444,14 @@ export default function CircuitTrestleSetting({ id }) {
|
|||||||
pcsMkrCd: item.pcsMkrCd,
|
pcsMkrCd: item.pcsMkrCd,
|
||||||
pcsSerCd: item.pcsSerCd,
|
pcsSerCd: item.pcsSerCd,
|
||||||
pcsItemId: item.itemId,
|
pcsItemId: item.itemId,
|
||||||
pcsOptCd: seletedOption.code,
|
pscOptCd: seletedOption.code,
|
||||||
|
// pcsOptCd: 'CLC_RMC',
|
||||||
paralQty: serQty.paralQty,
|
paralQty: serQty.paralQty,
|
||||||
connections: {
|
connections: [
|
||||||
connItemId: item.connList[0].itemId,
|
{
|
||||||
},
|
connItemId: item.connList[0].itemId,
|
||||||
|
},
|
||||||
|
],
|
||||||
}
|
}
|
||||||
})[0]
|
})[0]
|
||||||
})
|
})
|
||||||
|
|||||||
@ -65,7 +65,7 @@ export default function StepUp(props) {
|
|||||||
// PCS 옵션 조회
|
// PCS 옵션 조회
|
||||||
const formattedOptCodes = formatOptionCodes(res.data.optionList)
|
const formattedOptCodes = formatOptionCodes(res.data.optionList)
|
||||||
setOptCodes(formattedOptCodes)
|
setOptCodes(formattedOptCodes)
|
||||||
setSeletedOption(formattedOptCodes[0].code)
|
setSeletedOption(formattedOptCodes[0])
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error('Error fetching step up data:', error)
|
console.error('Error fetching step up data:', error)
|
||||||
|
|||||||
@ -194,7 +194,6 @@ export const useTrestle = () => {
|
|||||||
height = Math.floor(height)
|
height = Math.floor(height)
|
||||||
let { x: startX, y: startY } = { ...module.getCenterPoint() }
|
let { x: startX, y: startY } = { ...module.getCenterPoint() }
|
||||||
let { x, y } = { ...module.getCenterPoint() }
|
let { x, y } = { ...module.getCenterPoint() }
|
||||||
//TODO : 방향별로 가대 설치해야함
|
|
||||||
|
|
||||||
let leftRows = 1
|
let leftRows = 1
|
||||||
let rightRows = 1
|
let rightRows = 1
|
||||||
@ -446,9 +445,9 @@ 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), pcses: [] }
|
const params = { trestles: surfaces.map((surface) => surface.quotationParam), pcses: surfaces[0].pcses ?? [] }
|
||||||
getQuotationItem(params).then((res) => {
|
getQuotationItem(params).then((res) => {
|
||||||
console.log(res)
|
console.log('res', res)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1884,7 +1883,7 @@ export const useTrestle = () => {
|
|||||||
|
|
||||||
const clear = () => {
|
const clear = () => {
|
||||||
canvas.getObjects().forEach((obj) => {
|
canvas.getObjects().forEach((obj) => {
|
||||||
if (obj.name === 'eaveBar' || obj.name === 'rack' || obj.name === 'halfEaveBar' || obj.name === 'smartRack') {
|
if (obj.name === 'eaveBar' || obj.name === 'rack' || obj.name === 'halfEaveBar' || obj.name === 'smartRack' || obj.name === 'bracket') {
|
||||||
canvas.remove(obj)
|
canvas.remove(obj)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user