견적서 특이사항
This commit is contained in:
parent
b728be3786
commit
0ed7efb3af
@ -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) {
|
||||||
return (
|
let showcontent = popShowSpecialNoteList.find((item) => {
|
||||||
<dl key={uuidv4()}>
|
return item.code === showContentCode
|
||||||
<dt>{row.codeNm}</dt>
|
})
|
||||||
{/* <dd dangerouslySetInnerHTML={{ __html: row.remarks }}></dd> */}
|
|
||||||
<dd dangerouslySetInnerHTML={{ __html: row.remarks }} style={{ whiteSpace: 'pre-wrap' }}></dd>
|
if (isObjectNotEmpty(showcontent)) {
|
||||||
</dl>
|
return (
|
||||||
)
|
<dl key={uuidv4()}>
|
||||||
|
<dt>{showcontent.codeNm}</dt>
|
||||||
|
<dd dangerouslySetInnerHTML={{ __html: showcontent.remarks }} style={{ whiteSpace: 'pre-wrap' }}></dd>
|
||||||
|
</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>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user