From fe70959734fcd360f16d32983f92f83c06e20532 Mon Sep 17 00:00:00 2001 From: pengjun <158915633@qq.com> Date: Mon, 1 Dec 2025 11:42:43 +0800 Subject: [PATCH] seo --- src/components/doctorCheck/CheckItemList.vue | 34 +++++---- src/components/doctorCheck/CheckPicture.vue | 60 ++++++++------- src/components/doctorCheck/CheckSumSug.vue | 74 ++++++++++--------- .../doctorCheck/PatientRegisterBase.vue | 57 +++++++------- src/components/sumDoctorCheck/SumSug.vue | 13 +++- 5 files changed, 130 insertions(+), 108 deletions(-) diff --git a/src/components/doctorCheck/CheckItemList.vue b/src/components/doctorCheck/CheckItemList.vue index 8299011..6ccc350 100644 --- a/src/components/doctorCheck/CheckItemList.vue +++ b/src/components/doctorCheck/CheckItemList.vue @@ -342,15 +342,19 @@ export default { mounted() { // 监听来自 Electron 的调用 if (this.$peisAPI) { - // 右击 - this.$peisAPI.onContextMenuAction((data) => { - this.onContextMenuDIY(data) - }); + try { + // 右击 + this.$peisAPI.onContextMenuAction((data) => { + this.onContextMenuDIY(data) + }); - // 身高体重仪、血压仪 - this.$peisAPI.onSerialData((data) => { - this.onSerialData(data) - }); + // 身高体重仪、血压仪 + this.$peisAPI.onSerialData((data) => { + this.onSerialData(data) + }); + } catch (error) { + console.error(error) + } } this.checkItemList(this.dataTransOpts.tableS.register_check.id); @@ -387,13 +391,13 @@ export default { this.hisResultDetailDialogVisible = true } } - }) + }) // 获取系统参数(身高明细项目ID) postapi('/api/app/SysParmValue/GetSysParmValueBySysParmId', { sysParmId: 'height_item_id' }) .then(res => { if (res.code > -1) { - this.comData.height_item_id = res.data || "" + this.comData.height_item_id = res.data || "" } }) @@ -401,7 +405,7 @@ export default { postapi('/api/app/SysParmValue/GetSysParmValueBySysParmId', { sysParmId: 'weight_item_id' }) .then(res => { if (res.code > -1) { - this.comData.weight_item_id = res.data || "" + this.comData.weight_item_id = res.data || "" } }) @@ -409,7 +413,7 @@ export default { postapi('/api/app/SysParmValue/GetSysParmValueBySysParmId', { sysParmId: 'hb_item_id' }) .then(res => { if (res.code > -1) { - this.comData.hb_item_id = res.data || "" + this.comData.hb_item_id = res.data || "" } }) @@ -417,7 +421,7 @@ export default { postapi('/api/app/SysParmValue/GetSysParmValueBySysParmId', { sysParmId: 'lb_item_id' }) .then(res => { if (res.code > -1) { - this.comData.lb_item_id = res.data || "" + this.comData.lb_item_id = res.data || "" } }) @@ -1285,10 +1289,10 @@ export default { // 身高体重、血压仪 onSerialData(data) { - console.log('onSerialData.data',data) + console.log('onSerialData.data', data) let array = data.data for (let index = 0; index < array.length; index++) { - this.setSerialData(array[index]['deviceType'],array[index]['value']) + this.setSerialData(array[index]['deviceType'], array[index]['value']) } }, diff --git a/src/components/doctorCheck/CheckPicture.vue b/src/components/doctorCheck/CheckPicture.vue index 540040a..98d9f1a 100644 --- a/src/components/doctorCheck/CheckPicture.vue +++ b/src/components/doctorCheck/CheckPicture.vue @@ -277,30 +277,34 @@ export default { mounted() { // 监听来自 Electron 的调用 if (this.$peisAPI) { - //热键--采集图像 - this.$peisAPI.onEventFromPictureHotKeyMain((data) => { - this.acceptHotKeyData('add', data) - }); + try { + //热键--采集图像 + this.$peisAPI.onEventFromPictureHotKeyMain((data) => { + this.acceptHotKeyData('add', data) + }); - //热键--采集图像设为打印 - this.$peisAPI.onEventFromPictureAndPrintHotKeyMain((data) => { - this.acceptHotKeyData('addPrint', data) - }); + //热键--采集图像设为打印 + this.$peisAPI.onEventFromPictureAndPrintHotKeyMain((data) => { + this.acceptHotKeyData('addPrint', data) + }); - //热键--设为打印 - this.$peisAPI.onEventFromPicturePrintHotKeyMain(() => { - this.acceptHotKeyData('print') - }); + //热键--设为打印 + this.$peisAPI.onEventFromPicturePrintHotKeyMain(() => { + this.acceptHotKeyData('print') + }); - //热键--取消打印 - this.$peisAPI.onEventFromPictureCancelPrintHotKeyMain(() => { - this.acceptHotKeyData('unPrint') - }); + //热键--取消打印 + this.$peisAPI.onEventFromPictureCancelPrintHotKeyMain(() => { + this.acceptHotKeyData('unPrint') + }); - //删除图像 - this.$peisAPI.onEventFromPictureDeleteHotKeyMain(() => { - this.acceptHotKeyData('delete') - }); + //删除图像 + this.$peisAPI.onEventFromPictureDeleteHotKeyMain(() => { + this.acceptHotKeyData('delete') + }); + } catch (error) { + console.error(error) + } } @@ -420,7 +424,7 @@ export default { patientName: this.dataTransOpts.tableS.patient_register.patientName, sexName: this.dataTransOpts.tableS.patient_register.sexName, age: (this.dataTransOpts.tableS.patient_register.age || '') + '', - asbitemName: this.doctorCheck.checkRequestNo||'temp' + asbitemName: this.doctorCheck.checkRequestNo || 'temp' } // console.log('this.$peisAPI.imageAcquisition', JSON.stringify(toOutShell)) @@ -464,7 +468,7 @@ export default { fileName, localPathName: item.FilePath, pictureBaseStr: baseHead + item.Image, - isPrint:'N' + isPrint: 'N' }], pictureFileType: '0' //采图暂定图0,上传暂定报告1 this.pictureFileType } @@ -528,7 +532,7 @@ export default { .then((res) => { if (res.code < 0) { console.log('热键更新图片打印标识失败:', res.message) - }else{ + } else { this.getCheckPictures(this.dataTransOpts.tableS.register_check.id) } }) @@ -569,16 +573,16 @@ export default { break; } let isPrintTrans = false - if(oprType == 'addPrint'){ + if (oprType == 'addPrint') { item.isPrint = 'Y' isPrintTrans = true - }else{ + } else { item.isPrint = 'N' } // item.isPrintTrans 是否打印 - this.checkPictures.push({ pictureFilename: baseHead + item.Image ,isPrintTrans}) - + this.checkPictures.push({ pictureFilename: baseHead + item.Image, isPrintTrans }) + let fileName = item.FilePath let dotIndex = fileName.lastIndexOf('\\'); if (dotIndex > -1) fileName = fileName.substring(dotIndex, fileName.length); @@ -589,7 +593,7 @@ export default { fileName, localPathName: item.FilePath, pictureBaseStr: baseHead + item.Image, - isPrint:item.isPrint + isPrint: item.isPrint }], pictureFileType: '0' //采图暂定图0,上传暂定报告1 this.pictureFileType } diff --git a/src/components/doctorCheck/CheckSumSug.vue b/src/components/doctorCheck/CheckSumSug.vue index 415fc51..cffa80b 100644 --- a/src/components/doctorCheck/CheckSumSug.vue +++ b/src/components/doctorCheck/CheckSumSug.vue @@ -18,10 +18,10 @@
- -