Merge branch 'main' of http://114.55.171.231:3000/lxd/inspect-front
This commit is contained in:
commit
67fdbc0554
@ -650,6 +650,79 @@
|
||||
.hospital-name {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
/* 新增汇总部分样式 */
|
||||
.summary-section {
|
||||
padding: 15px 30px !important;
|
||||
}
|
||||
|
||||
.summary-title {
|
||||
text-align: center !important;
|
||||
margin-bottom: 30px !important;
|
||||
font-size: 24px !important;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
.summary-notice {
|
||||
margin: 20px 0 0 !important;
|
||||
}
|
||||
|
||||
.notice-text {
|
||||
text-align: left !important;
|
||||
margin: 0 0 5px 0 !important;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.notice-line {
|
||||
border-bottom: 1px solid #000;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.summary-content {
|
||||
white-space: pre-wrap !important;
|
||||
text-align: left !important;
|
||||
margin: 15px 40px !important;
|
||||
font-size: 16px;
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
.summary-tip {
|
||||
margin-top: 20px !important;
|
||||
padding: 15px !important;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
.summary-tip p {
|
||||
font-size: 14px !important;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
/* 打印样式调整 */
|
||||
@media print {
|
||||
.summary-title {
|
||||
font-size: 20px !important;
|
||||
margin-bottom: 20px !important;
|
||||
}
|
||||
|
||||
.notice-text {
|
||||
font-size: 14px !important;
|
||||
}
|
||||
|
||||
.summary-content {
|
||||
font-size: 16px !important;
|
||||
margin: 10px 30px !important;
|
||||
}
|
||||
|
||||
.summary-tip {
|
||||
margin-top: 17px !important;
|
||||
padding: 10px !important;
|
||||
background-color: transparent !important;
|
||||
}
|
||||
|
||||
.summary-tip p {
|
||||
font-size: 14px !important;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
@ -756,46 +829,24 @@
|
||||
<div class="report-item" style="width: 800px;height: 1123px;margin:0 auto;position: relative;">
|
||||
<div class="report-title">
|
||||
<div style="display: flex; justify-content: space-between; align-items: center;">
|
||||
<span>汇总</span>
|
||||
<span>检查结果汇总</span>
|
||||
<span>填充值</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="report-content">
|
||||
<h2 style="text-align: center; margin-bottom: 30px;">检查结果汇总</h2>
|
||||
<table class="exam-table">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td width="20%" style="font-weight: bold;">【一般检查】</td>
|
||||
<td id="general-exam-summary">--</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="font-weight: bold;">【超声】</td>
|
||||
<td id="ultrasound-summary">
|
||||
<div>检查所见:<span>--</span></div>
|
||||
<div>检查结果:<span>--</span></div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="font-weight: bold;">【心电图】</td>
|
||||
<td id="ecg-summary">
|
||||
<div>检查所见:<span>--</span></div>
|
||||
<div>检查结果:<span>--</span></div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="font-weight: bold;">【血常规】</td>
|
||||
<td id="blood-summary">--</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="font-weight: bold;">【尿常规】</td>
|
||||
<td id="urine-summary">--</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="font-weight: bold;">【生化】</td>
|
||||
<td id="biochem-summary">--</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<div class=" summary-section">
|
||||
<h2 class="summary-title">检查结果汇总</h2>
|
||||
<div class="summary-notice">
|
||||
<p class="notice-text">在本次体检的项目中,您有以下几方面的情况敬请注意:</p>
|
||||
<div class="notice-line"></div>
|
||||
</div>
|
||||
<div class="paragraph-group">
|
||||
<p id="summary-year" class="summary-content">
|
||||
<span class="year-value">
|
||||
</p>
|
||||
</div>
|
||||
<div class="summary-tip">
|
||||
<p>温馨提示:本次体检未发现异常的部分,不代表完全没有潜在性疾病,如有疾病或身体不适,要立即就医。</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="report-footer">
|
||||
<p class="report-footer-text">定期体检,尊享健康</p>
|
||||
|
@ -291,60 +291,6 @@ const handleIframeLoad = async () => {
|
||||
summaryElement.textContent = reportData.summaryResult || '--'
|
||||
}
|
||||
|
||||
// 更新汇总页面的表格数据
|
||||
|
||||
// 更新汇总表格中的一般检查小结
|
||||
const generalExamSummary = doc.getElementById('general-exam-summary')
|
||||
if (generalExamSummary) {
|
||||
// 获取一般检查数据中的第一个项目
|
||||
const firstGeneralItem = reportData.data.find(
|
||||
(item) => item.itemName === '身高' || item.itemName === '体温' || item.itemName === '体重'
|
||||
)
|
||||
generalExamSummary.textContent = firstGeneralItem?.analyse || '--'
|
||||
}
|
||||
|
||||
// 更新汇总表格中的超声检查小结
|
||||
const ultrasoundSummary = doc.getElementById('ultrasound-summary')
|
||||
if (ultrasoundSummary && ultrasoundData) {
|
||||
const findings = ultrasoundData.analyse?.split('\n')[0]?.replace('检查所见:', '') || '--'
|
||||
const conclusion = ultrasoundData.analyse?.split('\n')[1]?.replace('检查结果:', '') || '--'
|
||||
|
||||
ultrasoundSummary.innerHTML = `
|
||||
<div>检查所见:<span>${findings}</span></div>
|
||||
<div>检查结果:<span>${conclusion}</span></div>
|
||||
`
|
||||
}
|
||||
|
||||
// 更新汇总表格中的心电图检查小结
|
||||
const ecgSummary = doc.getElementById('ecg-summary')
|
||||
if (ecgSummary && ecgData) {
|
||||
const findings = ecgData.analyse?.split('\n')[0]?.replace('检查所见:', '') || '--'
|
||||
const conclusion = ecgData.analyse?.split('\n')[1]?.replace('检查结果:', '') || '--'
|
||||
|
||||
ecgSummary.innerHTML = `
|
||||
<div>检查所见:<span>${findings}</span></div>
|
||||
<div>检查结果:<span>${conclusion}</span></div>
|
||||
`
|
||||
}
|
||||
|
||||
// 更新汇总表格中的血常规检查小结
|
||||
const bloodSummary = doc.getElementById('blood-summary')
|
||||
if (bloodSummary) {
|
||||
bloodSummary.textContent = bloodData?.analyse || '--'
|
||||
}
|
||||
|
||||
// 更新汇总表格中的尿常规检查小结
|
||||
const urineSummary = doc.getElementById('urine-summary')
|
||||
if (urineSummary) {
|
||||
urineSummary.textContent = urineData?.analyse || '--'
|
||||
}
|
||||
|
||||
// 更新汇总表格中的生化检查小结
|
||||
const biochemSummary = doc.getElementById('biochem-summary')
|
||||
if (biochemSummary) {
|
||||
biochemSummary.textContent = biochemData?.analyse || '--'
|
||||
}
|
||||
|
||||
// 更新图片和 PDF 链接
|
||||
reportData.data.forEach((item) => {
|
||||
if (item.data) {
|
||||
|
Loading…
Reference in New Issue
Block a user