diff --git a/public/templates/report-template.html b/public/templates/report-template.html
index 05e0a42..0c94f5e 100644
--- a/public/templates/report-template.html
+++ b/public/templates/report-template.html
@@ -1061,8 +1061,6 @@
兴和县卫生健康委员会
-
-
第1页
@@ -1099,7 +1097,7 @@
- 第2页
+ 第1页
@@ -1133,7 +1131,7 @@
- 第3页
+ 第2页
@@ -1167,7 +1165,7 @@
- 第4页
+ 第3页
@@ -1234,7 +1232,7 @@
- 第5页
+ 第4页
@@ -1275,7 +1273,7 @@
- 第6页
+ 第5页
@@ -1310,7 +1308,7 @@
- 第7页
+ 第6页
@@ -1332,7 +1330,7 @@
- 第8页
+ 第7页
@@ -1427,7 +1425,7 @@
- 第9页
+ 第10页
@@ -1450,7 +1448,7 @@
- 第10页
+ 第11页
@@ -1480,7 +1478,7 @@
- 第10页
+ 第11页
@@ -1507,7 +1505,7 @@
- 第11页
+ 第12页
@@ -2043,14 +2041,14 @@
const biochemistryPage2Visible = document.getElementById('biochemistry-page-2').style.display !== 'none';
const bloodPage2Visible = document.getElementById('blood-page-2').style.display !== 'none';
- // 计算实际总页数
- let totalPages = document.querySelectorAll('.report-item').length;
+ // 计算实际总页数(从前言页开始计算)
+ let totalPages = document.querySelectorAll('.report-item').length - 1; // 减去首页
if (!summaryPage2Visible) totalPages--;
if (!urinePage2Visible) totalPages--;
if (!biochemistryPage2Visible) totalPages--;
if (!bloodPage2Visible) totalPages--;
- // 从第1页开始计数
+ // 从第1页开始计数(前言页作为第1页)
let pageIndex = 1;
pageNumbers.forEach((element) => {
diff --git a/src/components/IDCardReader.vue b/src/components/IDCardReader.vue
index f2c4c9c..6782771 100644
--- a/src/components/IDCardReader.vue
+++ b/src/components/IDCardReader.vue
@@ -94,8 +94,6 @@ export default defineComponent({
ElMessage.success('读卡器连接成功');
}
- // 通知用户正在读取身份证
-
// 读取身份证信息
const result = await sdk.read_card();
@@ -103,7 +101,10 @@ export default defineComponent({
// 添加调试信息
console.log('组件接收到的身份证信息:', result);
- // 发送成功事件,触发查询,并传递身份证号
+ // 将身份证号更新到表单
+ emit('update:cardId', result.idNumber);
+
+ // 发送成功事件,触发查询,并传递身份证信息
emit('success', result);
// 读取成功后断开连接
diff --git a/src/views/Department-entry/Medical-examination-vehicle.vue b/src/views/Department-entry/Medical-examination-vehicle.vue
index fbb5b0c..64019f9 100644
--- a/src/views/Department-entry/Medical-examination-vehicle.vue
+++ b/src/views/Department-entry/Medical-examination-vehicle.vue
@@ -110,7 +110,7 @@