修改报告样式

This commit is contained in:
lxd 2025-03-17 16:43:28 +08:00
parent a2141c9813
commit 0ea0962e12
2 changed files with 646 additions and 543 deletions

File diff suppressed because it is too large Load Diff

View File

@ -132,6 +132,14 @@ const handleIframeLoad = async () => {
title.textContent = `体检检查报告汇总 - ${reportData.pName || ''}`
}
//
const prefaceGreeting = doc.querySelector('.greeting .underline')
if (prefaceGreeting) {
prefaceGreeting.textContent = reportData.pName || '________'
} else {
console.log('未找到前言姓名元素') //
}
//
const generalData = reportData.data.reduce((acc, item) => {
acc[item.itemName] = item;