diff --git a/public/templates/report-template.html b/public/templates/report-template.html
index 0e7f81d..43f7e50 100644
--- a/public/templates/report-template.html
+++ b/public/templates/report-template.html
@@ -772,7 +772,8 @@
年龄--
diff --git a/src/views/summary/reprot-print/components/ReportPreview.vue b/src/views/summary/reprot-print/components/ReportPreview.vue
index d2ba1d5..dcdc475 100644
--- a/src/views/summary/reprot-print/components/ReportPreview.vue
+++ b/src/views/summary/reprot-print/components/ReportPreview.vue
@@ -109,17 +109,16 @@ const handleIframeLoad = async () => {
// 单位
const companyContent = doc.querySelector('.person_detail:nth-child(4) .person_content')
- if (companyContent) companyContent.textContent = reportData.company || '--'
+ if (companyContent) companyContent.textContent = reportData.cardId || '--'
// 联系电话
const phoneContent = doc.querySelector('.person_detail:nth-child(5) .person_content')
- if (phoneContent) phoneContent.textContent = reportData.phone || '--'
- console.log('已更新联系电话:', reportData.phone)
+ if (phoneContent) phoneContent.textContent = reportData.phoneNum|| '--'
// 体检日期
const examDateContent = doc.querySelector('.person_detail:nth-child(6) .person_content')
if (examDateContent) {
- const date = reportData.examDate ? new Date(reportData.examDate) : null
+ const date = reportData.medicalDateTime ? new Date(reportData.medicalDateTime) : null
const formattedDate = date
? `${date.getFullYear()}年${String(date.getMonth() + 1).padStart(2, '0')}月${String(date.getDate()).padStart(2, '0')}日`
: '--'
@@ -317,7 +316,6 @@ const handleIframeLoad = async () => {
if (reportTitle) {
const reportSection = Array.from(doc.querySelectorAll('.report-item')).find((section) => {
const titleElement = section.querySelector('.report-title')
- console.log('titleElement', titleElement)
return titleElement && titleElement.textContent?.trim().includes(reportTitle)
})
if (reportSection) {