견적서 탭에서 탭 이동시
This commit is contained in:
parent
9213edb9dd
commit
3ed4325775
@ -88,8 +88,6 @@ export default function Estimate({}) {
|
||||
|
||||
const { getMessage } = useMessage()
|
||||
|
||||
const { setMenuNumber } = useCanvasMenu()
|
||||
|
||||
const { closeAll } = usePopup()
|
||||
|
||||
//새로 추가한 첨부파일 props
|
||||
@ -101,8 +99,6 @@ export default function Estimate({}) {
|
||||
const initEstimate = (currPid = currentPid) => {
|
||||
console.log('🚀 ~ initEstimate ~ currPid:', currPid)
|
||||
closeAll()
|
||||
setMenuNumber(5)
|
||||
|
||||
setObjectNo(objectRecoil.floorPlanObjectNo)
|
||||
|
||||
setPlanNo(currPid)
|
||||
@ -120,11 +116,13 @@ export default function Estimate({}) {
|
||||
const apiUrl = `/api/display-item/item-list?${queryStringFormatter(param)}`
|
||||
post({ url: apiUrl, data: param }).then((res) => {
|
||||
if (res.length > 0) {
|
||||
let tempList
|
||||
let tempList = []
|
||||
let updatedRes = []
|
||||
if (estimateContextState?.itemList.length > 0) {
|
||||
tempList = estimateContextState.itemList.filter((item) => !res.some((resItem) => resItem.itemId === item.itemId))
|
||||
updatedRes = [...res, ...tempList]
|
||||
// console.log('tempList::::::::', tempList)
|
||||
// console.log('updatedRes::::::::', updatedRes)
|
||||
} else {
|
||||
updatedRes = [...res]
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user