견적서 특이사항

This commit is contained in:
basssy 2024-11-27 12:44:44 +09:00
parent b728be3786
commit 0ed7efb3af

View File

@ -1105,13 +1105,34 @@ export default function Estimate({ params }) {
<div className="calculation-estimate"> <div className="calculation-estimate">
{specialNoteList.map((row) => { {specialNoteList.map((row) => {
if (row.code === showContentCode) { if (row.code === showContentCode) {
let showcontent = popShowSpecialNoteList.find((item) => {
return item.code === showContentCode
})
if (isObjectNotEmpty(showcontent)) {
return ( return (
<dl key={uuidv4()}> <dl key={uuidv4()}>
<dt>{row.codeNm}</dt> <dt>{showcontent.codeNm}</dt>
{/* <dd dangerouslySetInnerHTML={{ __html: row.remarks }}></dd> */} <dd dangerouslySetInnerHTML={{ __html: showcontent.remarks }} style={{ whiteSpace: 'pre-wrap' }}></dd>
<dd dangerouslySetInnerHTML={{ __html: row.remarks }} style={{ whiteSpace: 'pre-wrap' }}></dd>
</dl> </dl>
) )
} else {
let pushData = []
popShowSpecialNoteList.map((item) => {
let option = showContentCode.split(',')
option.map((item2) => {
if (item.code === item2) {
pushData.push(item)
}
})
})
return pushData.map((item) => (
<dl key={uuidv4()}>
<dt>{item.codeNm}</dt>
<dd dangerouslySetInnerHTML={{ __html: item.remarks }} style={{ whiteSpace: 'pre-wrap' }}></dd>
</dl>
))
}
} }
})} })}
</div> </div>