diff --git a/src/components/estimate/Estimate.jsx b/src/components/estimate/Estimate.jsx index 3b5f72d7..fb1e17b5 100644 --- a/src/components/estimate/Estimate.jsx +++ b/src/components/estimate/Estimate.jsx @@ -146,6 +146,7 @@ export default function Estimate({ params }) { } }) + console.log('최초::::::::', res) setSpecialNoteList(res) setSpecialNoteFirstFlg(true) @@ -175,6 +176,7 @@ export default function Estimate({ params }) { useEffect(() => { //선택된 견적특이사항 setEstimateContextState if (isNotEmptyArray(specialNoteList)) { + console.log('specialNoteList::', specialNoteList) const liveCheckedData = specialNoteList.filter((row) => row.check === true) const data = [] @@ -738,6 +740,27 @@ export default function Estimate({ params }) { }) } + //새로 추가한 아이템 견적 특이사항 체크.. + console.log('specialNoteList::', specialNoteList) + // specialNoteList.map((row) => { + // let spnAttrCds = res?.spnAttrCds?.split('、') + // let estimateOption = estimateContextState?.estimateOption?.split('、') + // let combineArray = Array.from(new Set([...spnAttrCds, ...estimateOption])).sort() + // row.check = false + // combineArray.map((row2) => { + // if (row.pkgYn === '0') { + // if (row2 === row.code) { + // row.check = true + // } + // } else { + // if (row.code.includes(row2)) { + // row.check = true + // return + // } + // } + // }) + // }) + setItemChangeYn(false) } }, [itemChangeYn, estimateContextState.itemList]) @@ -1077,7 +1100,7 @@ export default function Estimate({ params }) { key={uuidv4()} className="special-note-check-item" onClick={(event) => { - settingShowContent(row.code, event) + // settingShowContent(row.code, event) }} >