isComplete 컬럼 추가
This commit is contained in:
parent
831bac6f1b
commit
5e50f16f88
@ -181,6 +181,7 @@ export const SAVE_KEY = [
|
|||||||
'quotationParam',
|
'quotationParam',
|
||||||
'pcses',
|
'pcses',
|
||||||
'roofMaterial',
|
'roofMaterial',
|
||||||
|
'isComplete',
|
||||||
]
|
]
|
||||||
|
|
||||||
export const OBJECT_PROTOTYPE = [fabric.Line.prototype, fabric.Polygon.prototype, fabric.Triangle.prototype]
|
export const OBJECT_PROTOTYPE = [fabric.Line.prototype, fabric.Polygon.prototype, fabric.Triangle.prototype]
|
||||||
|
|||||||
@ -586,7 +586,7 @@ export const useTrestle = () => {
|
|||||||
|
|
||||||
const quotationParam = getTrestleParams(surface)
|
const quotationParam = getTrestleParams(surface)
|
||||||
|
|
||||||
surface.set({ quotationParam })
|
surface.set({ quotationParam, isComplete: true })
|
||||||
})
|
})
|
||||||
|
|
||||||
return setEstimateData()
|
return setEstimateData()
|
||||||
@ -2228,6 +2228,13 @@ export const useTrestle = () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const clear = () => {
|
const clear = () => {
|
||||||
|
canvas
|
||||||
|
.getObjects()
|
||||||
|
.filter((obj) => obj.name === POLYGON_TYPE.MODULE_SETUP_SURFACE)
|
||||||
|
.forEach((obj) => {
|
||||||
|
obj.isComplete = false
|
||||||
|
})
|
||||||
|
|
||||||
canvas.getObjects().forEach((obj) => {
|
canvas.getObjects().forEach((obj) => {
|
||||||
if (obj.name === 'eaveBar' || obj.name === 'rack' || obj.name === 'halfEaveBar' || obj.name === 'smartRack' || obj.name === 'bracket') {
|
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