diff --git a/src/components/doctorCheck/CheckItemList.vue b/src/components/doctorCheck/CheckItemList.vue
index 523a421..8299011 100644
--- a/src/components/doctorCheck/CheckItemList.vue
+++ b/src/components/doctorCheck/CheckItemList.vue
@@ -306,9 +306,19 @@ export default {
},
hisResultDetailDialogVisible: false, // 历史结果显示页面
+
// 避免双击与单击冲突
clickTime1: 0, //第一次点时间
- clickTime2: 0 //第二次点时间
+ clickTime2: 0, //第二次点时间
+
+ //身高体重血压仪项目
+ comData: {
+ height_item_id: '', //身高明细项目编号
+ weight_item_id: '', //体重明细项目编号
+ hb_item_id: '', //收缩压(高压)明细项目编号
+ lb_item_id: '', //舒张压(低压)明细项目编号
+ },
+
};
},
@@ -330,6 +340,19 @@ export default {
//挂载完成
mounted() {
+ // 监听来自 Electron 的调用
+ if (this.$peisAPI) {
+ // 右击
+ this.$peisAPI.onContextMenuAction((data) => {
+ this.onContextMenuDIY(data)
+ });
+
+ // 身高体重仪、血压仪
+ this.$peisAPI.onSerialData((data) => {
+ this.onSerialData(data)
+ });
+ }
+
this.checkItemList(this.dataTransOpts.tableS.register_check.id);
this.userInfo.operatorType = window.sessionStorage.getItem("operatorType") || '0';
this.userInfo.userId = window.sessionStorage.getItem("userId") || null;
@@ -364,6 +387,38 @@ 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 || ""
+ }
+ })
+
+ // 获取系统参数(体重明细项目ID)
+ postapi('/api/app/SysParmValue/GetSysParmValueBySysParmId', { sysParmId: 'weight_item_id' })
+ .then(res => {
+ if (res.code > -1) {
+ this.comData.weight_item_id = res.data || ""
+ }
+ })
+
+ // 获取系统参数(收缩压(高压)明细项目ID)
+ postapi('/api/app/SysParmValue/GetSysParmValueBySysParmId', { sysParmId: 'hb_item_id' })
+ .then(res => {
+ if (res.code > -1) {
+ this.comData.hb_item_id = res.data || ""
+ }
+ })
+
+ // 获取系统参数(舒张压(低压)明细项目ID)
+ postapi('/api/app/SysParmValue/GetSysParmValueBySysParmId', { sysParmId: 'lb_item_id' })
+ .then(res => {
+ if (res.code > -1) {
+ this.comData.lb_item_id = res.data || ""
+ }
})
//获取结果状态提示数据
@@ -1091,8 +1146,8 @@ export default {
});
},
- // 录入结果区域 右击事件
- onContextmenu(event) {
+ // 录入结果区域 右击事件(无壳)
+ onContextmenuNoShell(event) {
//菜单项
let items = [];
@@ -1135,6 +1190,53 @@ export default {
return false;
},
+ // 右击菜单
+ onContextmenu(event) {
+ if (!this.$peisAPI) {
+ this.onContextmenuNoShell(event)
+ } else {
+ let menus = [
+ { type: 'separator' },
+ { label: '显示明细历次结果', itemId: '显示明细历次结果', enabled: true },
+ { label: '预览影像报告', itemId: '预览影像报告', enabled: true }
+ // { label: '测试菜单', itemId: '测试菜单', enabled: true },
+ // {
+ // label: '更多操作',
+ // submenu: [
+ // { label: '子菜单', itemId: '子菜单', enabled: true }
+ // ]
+ // }
+ ]
+
+ this.$peisAPI.showContextMenu(menus)
+ .then(res => {
+ console.log('res', res)
+ })
+ .catch(err => {
+ console.log('err', err)
+ })
+ .finally(() => {
+ console.log('finally')
+ })
+ }
+
+ },
+
+ // 自定义右击事件
+ onContextMenuDIY(data) {
+ //this.$message({showClose:true,message:data})
+ switch (data) {
+ case '显示明细历次结果':
+ this.hisResultDetailDialogVisible = true
+ break;
+ case '预览影像报告':
+ this.pacsReportView();
+ break;
+ default:
+ break;
+ }
+ },
+
// 预览影像报告
pacsReportView() {
@@ -1181,6 +1283,40 @@ export default {
},
+ // 身高体重、血压仪
+ onSerialData(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'])
+ }
+ },
+
+ // 接收仪器的数据设置到体检
+ setSerialData(deviceType, value) {
+ try {
+ let itemIds = this.comData[deviceType].split(',')
+ let lfind = -1
+
+ for (let index = 0; index < itemIds.length; index++) {
+ lfind = arrayExistObj(this.doctorCheck.checkItemList, 'itemId', itemIds[index])
+ if (lfind > -1) break
+ }
+ if (lfind > -1) {
+ this.doctorCheck.checkItemList[lfind]['result'] = String(value)
+ this.madeTooltips(lfind);
+ this.computeFun(lfind);
+ }
+
+ } catch (err) {
+ console.error('身高体重仪数据设置体检出错:', err)
+ this.$message.error({ showClose: true, message: err.message })
+ }
+
+ },
+
+
+
},
//监听事件
diff --git a/src/components/doctorCheck/CheckSumSug.vue b/src/components/doctorCheck/CheckSumSug.vue
index 772cc7e..415fc51 100644
--- a/src/components/doctorCheck/CheckSumSug.vue
+++ b/src/components/doctorCheck/CheckSumSug.vue
@@ -451,7 +451,7 @@ export default {
// 自定义右击事件
onContextMenuDIY(data){
- this.$message({showClose:true,message:data})
+ //this.$message({showClose:true,message:data})
}
},
diff --git a/src/components/doctorCheck/PatientRegisterBase.vue b/src/components/doctorCheck/PatientRegisterBase.vue
index 63fc615..09eda25 100644
--- a/src/components/doctorCheck/PatientRegisterBase.vue
+++ b/src/components/doctorCheck/PatientRegisterBase.vue
@@ -196,7 +196,7 @@ export default {
//触发总检医生诊台相关刷新
// console.log('afterFind',rd)
- this.dataTransOpts.refresh.sumDoctor.M++
+ this.dataTransOpts.refresh.sumDoctor.M++
// this.dataTransOpts.refresh.sum_diagnosis.M++
//显示照片
@@ -516,7 +516,7 @@ export default {
// 自定义右击事件
onContextMenuDIY(data){
- this.$message({showClose:true,message:data})
+ //this.$message({showClose:true,message:data})
}
},
diff --git a/src/components/patientRegister/PatientRegisterList.vue b/src/components/patientRegister/PatientRegisterList.vue
index b5c9913..bd42ceb 100644
--- a/src/components/patientRegister/PatientRegisterList.vue
+++ b/src/components/patientRegister/PatientRegisterList.vue
@@ -1785,7 +1785,7 @@ export default {
this.dataTransOpts.plus.queue++;
},
- //右击菜单
+ //表右击菜单
onCellRightClick(row, column) {
// console.log(row)
this.rClickRow = { ...row }; //右击的行记录
diff --git a/src/components/sumDoctorCheck/AsbitemCriticalValue.vue b/src/components/sumDoctorCheck/AsbitemCriticalValue.vue
new file mode 100644
index 0000000..d1439a6
--- /dev/null
+++ b/src/components/sumDoctorCheck/AsbitemCriticalValue.vue
@@ -0,0 +1,245 @@
+
+