견적서 제품특이사항 팝업
This commit is contained in:
parent
d61d67db91
commit
1527ab35da
@ -1,12 +1,23 @@
|
|||||||
'use client'
|
'use client'
|
||||||
import { useState } from 'react'
|
import { useEffect, useState } from 'react'
|
||||||
import { useMessage } from '@/hooks/useMessage'
|
import { useMessage } from '@/hooks/useMessage'
|
||||||
export default function ProductFeaturesPop({ specialNoteList, showProductFeatureData, setProductFeaturesPopupOpen }) {
|
export default function ProductFeaturesPop({ specialNoteList, showProductFeatureData, setProductFeaturesPopupOpen }) {
|
||||||
console.log('위에서 넘어온거::', specialNoteList)
|
const [showSpecialNoteList, setShowSpecialNoteList] = useState([])
|
||||||
console.log('위에서 넘어온거::', showProductFeatureData)
|
|
||||||
//split('、')
|
|
||||||
|
|
||||||
const { getMessage } = useMessage()
|
const { getMessage } = useMessage()
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
let pushData = []
|
||||||
|
specialNoteList.map((row) => {
|
||||||
|
let option = showProductFeatureData.split('、')
|
||||||
|
option.map((row2) => {
|
||||||
|
if (row.code === row2) {
|
||||||
|
pushData.push(row)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
})
|
||||||
|
setShowSpecialNoteList(pushData)
|
||||||
|
}, [specialNoteList])
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="modal-popup">
|
<div className="modal-popup">
|
||||||
<div className="modal-dialog">
|
<div className="modal-dialog">
|
||||||
@ -26,10 +37,15 @@ export default function ProductFeaturesPop({ specialNoteList, showProductFeature
|
|||||||
<div className="modal-body">
|
<div className="modal-body">
|
||||||
<div className="modal-body-inner border">
|
<div className="modal-body-inner border">
|
||||||
<div className="calculation-estimate usemodal">
|
<div className="calculation-estimate usemodal">
|
||||||
<dl>
|
{showSpecialNoteList.length > 0 &&
|
||||||
<dt>제목</dt>
|
showSpecialNoteList.map((row) => {
|
||||||
<dd>내용</dd>
|
return (
|
||||||
</dl>
|
<dl>
|
||||||
|
<dt>{row.codeNm}</dt>
|
||||||
|
<dd dangerouslySetInnerHTML={{ __html: row.remarks }}></dd>
|
||||||
|
</dl>
|
||||||
|
)
|
||||||
|
})}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div className="footer-btn-wrap">
|
<div className="footer-btn-wrap">
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user