弃检样式调整
This commit is contained in:
parent
704827fd97
commit
d01a554399
@ -1135,9 +1135,9 @@
|
||||
<div class="pdf-image-container" style="display:none;"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="report-summary" id="urine-summary">
|
||||
<div class="report-summary" id="urine-summary-div">
|
||||
<h4>尿常规小结:</h4>
|
||||
<p id="urine-summary" style="white-space: pre-line">--</p>
|
||||
<p id="urine-summary-content" style="white-space: pre-line">--</p>
|
||||
</div>
|
||||
<div class="report-footer">
|
||||
<p class="report-footer-text">定期体检,尊享健康</p>
|
||||
@ -1171,9 +1171,9 @@
|
||||
<div class="pdf-image-container" style="display:none;"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="report-summary" id="biochemistry-summary">
|
||||
<div class="report-summary" id="biochemistry-summary-div">
|
||||
<h4>生化小结:</h4>
|
||||
<p id="biochemistry-summary" style="white-space: pre-line">--</p>
|
||||
<p id="biochemistry-summary-content" style="white-space: pre-line">--</p>
|
||||
</div>
|
||||
<div class="report-footer">
|
||||
<p class="report-footer-text">定期体检,尊享健康</p>
|
||||
@ -1207,9 +1207,9 @@
|
||||
<div class="pdf-image-container" style="display:none;"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="report-summary" id="blood-summary">
|
||||
<div class="report-summary" id="blood-summary-div">
|
||||
<h4>血常规小结:</h4>
|
||||
<p id="blood-summary" style="white-space: pre-line">--</p>
|
||||
<p id="blood-summary-content" style="white-space: pre-line">--</p>
|
||||
</div>
|
||||
<div class="report-footer">
|
||||
<p class="report-footer-text">定期体检,尊享健康</p>
|
||||
|
||||
@ -230,16 +230,27 @@ const handleIframeLoad = async () => {
|
||||
if (urineData.itemStatus === "2") {
|
||||
// 隐藏所有尿常规检查相关ID元素
|
||||
const urineContent = doc.getElementById('urine-exam-content')
|
||||
const urineSummary = doc.getElementById('urine-summary')
|
||||
const urineSummaryDiv = doc.getElementById('urine-summary-div')
|
||||
|
||||
if (urineContent) urineContent.style.display = 'none'
|
||||
if (urineSummary) {
|
||||
urineSummary.innerHTML = '<p class="abandon-notice" style="color:red;font-weight:bold;text-align:center;padding:20px;">该项目已弃检</p>'
|
||||
if (urineSummaryDiv) {
|
||||
urineSummaryDiv.innerHTML = '<p class="abandon-notice" style="color:red;font-weight:bold;text-align:center;padding:20px;">该项目已弃检</p>'
|
||||
}
|
||||
} else {
|
||||
const urineSummary = doc.getElementById('urine-summary')
|
||||
if (urineSummary) {
|
||||
urineSummary.textContent = urineData.analyse || ''
|
||||
// 尝试多种选择器找到小结内容元素
|
||||
let urineSummaryContent = doc.getElementById('urine-summary-content')
|
||||
if (!urineSummaryContent) {
|
||||
// 备用选择器 - 找到尿常规报告中的p元素
|
||||
const urineSummaryDiv = doc.getElementById('urine-summary-div')
|
||||
if (urineSummaryDiv) {
|
||||
urineSummaryContent = urineSummaryDiv.querySelector('p')
|
||||
}
|
||||
}
|
||||
|
||||
if (urineSummaryContent) {
|
||||
urineSummaryContent.textContent = urineData.analyse || ''
|
||||
} else {
|
||||
console.error('找不到尿常规小结元素')
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -251,17 +262,28 @@ const handleIframeLoad = async () => {
|
||||
// 隐藏所有生化检查相关ID元素
|
||||
const biochemContent = doc.getElementById('biochemistry-exam-content')
|
||||
const biochemPdfContainer = doc.getElementById('biochemistry-exam-pdf-container')
|
||||
const biochemSummary = doc.getElementById('biochemistry-summary')
|
||||
const biochemSummaryDiv = doc.getElementById('biochemistry-summary-div')
|
||||
|
||||
if (biochemContent) biochemContent.style.display = 'none'
|
||||
if (biochemPdfContainer) biochemPdfContainer.style.display = 'none'
|
||||
if (biochemSummary) {
|
||||
biochemSummary.innerHTML = '<p class="abandon-notice" style="color:red;font-weight:bold;text-align:center;padding:20px;">该项目已弃检</p>'
|
||||
if (biochemSummaryDiv) {
|
||||
biochemSummaryDiv.innerHTML = '<p class="abandon-notice" style="color:red;font-weight:bold;text-align:center;padding:20px;">该项目已弃检</p>'
|
||||
}
|
||||
} else {
|
||||
const biochemSummary = doc.getElementById('biochemistry-summary')
|
||||
if (biochemSummary) {
|
||||
biochemSummary.textContent = biochemData.analyse || ''
|
||||
// 尝试多种选择器找到小结内容元素
|
||||
let biochemSummaryContent = doc.getElementById('biochemistry-summary-content')
|
||||
if (!biochemSummaryContent) {
|
||||
// 备用选择器 - 找到生化报告中的p元素
|
||||
const biochemSummaryDiv = doc.getElementById('biochemistry-summary-div')
|
||||
if (biochemSummaryDiv) {
|
||||
biochemSummaryContent = biochemSummaryDiv.querySelector('p')
|
||||
}
|
||||
}
|
||||
|
||||
if (biochemSummaryContent) {
|
||||
biochemSummaryContent.textContent = biochemData.analyse || ''
|
||||
} else {
|
||||
console.error('找不到生化小结元素')
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -273,17 +295,28 @@ const handleIframeLoad = async () => {
|
||||
// 隐藏所有血常规检查相关ID元素
|
||||
const bloodContent = doc.getElementById('blood-exam-content')
|
||||
const bloodPdfContainer = doc.getElementById('blood-exam-pdf-container')
|
||||
const bloodSummary = doc.getElementById('blood-summary')
|
||||
const bloodSummaryDiv = doc.getElementById('blood-summary-div')
|
||||
|
||||
if (bloodContent) bloodContent.style.display = 'none'
|
||||
if (bloodPdfContainer) bloodPdfContainer.style.display = 'none'
|
||||
if (bloodSummary) {
|
||||
bloodSummary.innerHTML = '<p class="abandon-notice" style="color:red;font-weight:bold;text-align:center;padding:20px;">该项目已弃检</p>'
|
||||
if (bloodSummaryDiv) {
|
||||
bloodSummaryDiv.innerHTML = '<p class="abandon-notice" style="color:red;font-weight:bold;text-align:center;padding:20px;">该项目已弃检</p>'
|
||||
}
|
||||
} else {
|
||||
const bloodSummary = doc.getElementById('blood-summary')
|
||||
if (bloodSummary) {
|
||||
bloodSummary.textContent = bloodData.analyse || ''
|
||||
// 尝试多种选择器找到小结内容元素
|
||||
let bloodSummaryContent = doc.getElementById('blood-summary-content')
|
||||
if (!bloodSummaryContent) {
|
||||
// 备用选择器 - 找到血常规报告中的p元素
|
||||
const bloodSummaryDiv = doc.getElementById('blood-summary-div')
|
||||
if (bloodSummaryDiv) {
|
||||
bloodSummaryContent = bloodSummaryDiv.querySelector('p')
|
||||
}
|
||||
}
|
||||
|
||||
if (bloodSummaryContent) {
|
||||
bloodSummaryContent.textContent = bloodData.analyse || ''
|
||||
} else {
|
||||
console.error('找不到血常规小结元素')
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user