瀏覽代碼

点击病历优化

DESKTOP-0GD05B0\Administrator 2 年之前
父節點
當前提交
d7b239f27c

+ 1 - 0
src/components/zhu-yuan-yi-sheng/emr/EmrPatientList.vue

@@ -104,6 +104,7 @@ onMounted(() => {
   top: 0;
   background-color: white;
   left: 0;
+  z-index: 9;
 }
 
 .header {

+ 2 - 2
src/components/zhu-yuan-yi-sheng/emr/auxiliary-tools/EmrTest.vue

@@ -206,11 +206,11 @@ const copyClick = () => {
   let data = ''
 
   temp.forEach(item => {
-    data += `${item.itm_NAME}   ${result(item)}  ${item.itm_UNIT}  ${getItemStr(item.itm_ALERT, item.itm_STR_VALUE, item.itm_VALUE)}   ${item.range}\n`
+    data += `${item.itm_NAME}${result(item)}${item.itm_UNIT}${getItemStr(item.itm_ALERT, item.itm_STR_VALUE, item.itm_VALUE)}`
   })
 
   drugSensitivity.forEach(item => {
-    data += `${item.anti_NAME_CN}    ${item.anti_ABB}    ${item.anti_MIC}    ${item.anti_VALUE}\n`
+    data += `${item.anti_NAME_CN}${item.anti_ABB}${item.anti_MIC}${item.anti_VALUE},`
   })
 
   let copyData = {

+ 1 - 1
src/components/zhu-yuan-yi-sheng/emr/auxiliary-tools/EmrYzTemperature.vue

@@ -4,7 +4,7 @@
       <el-button @click="copyClick">复制</el-button>
       {{ otherInfo }}
     </div>
-    <div style="flex: 1">
+    <div style="flex: 1;color: red">
       注意:体温单位为℃脉搏单位为”次m1n”,血压单位为"mmg”,Sp02
       单位为“%”,体重单位为”kg”,呼吸单位为“次/min”,血糖单位
       ”mo1/1”

+ 6 - 0
src/views/hospitalization/zhu-yuan-yi-sheng/electronic-medical-record/emr-editor/EmrMain.vue

@@ -349,6 +349,7 @@ import EmrPopup from "@/components/zhu-yuan-yi-sheng/emr/EmrPopup.vue";
 import EmrAuxiliaryTools from "@/components/zhu-yuan-yi-sheng/emr/auxiliary-tools/EmrAuxiliaryTools.vue";
 import {isDev} from "@/utils/public";
 import sleep from "@/utils/sleep";
+import {initWebSocket} from "@/views/hospitalization/zhu-yuan-yi-sheng/electronic-medical-record/emr-editor/emr-socket";
 
 const props = defineProps({
   huanZheXinXi: {
@@ -1294,6 +1295,11 @@ const autoSaveFunc = () => {
 }
 
 onMounted(async () => {
+  if (props.huanZheXinXi.inpatientNo) {
+    initWebSocket(props.huanZheXinXi.inpatientNo + '-' + userData.code);
+  }
+
+
   autoSave = store.state.app.emrAutosave;
   autoSaveChange()
   extractData = await getExtractDataElement(props.huanZheXinXi.inpatientNo, props.huanZheXinXi.admissTimes)

+ 1 - 1
src/views/hospitalization/zhu-yuan-yi-sheng/electronic-medical-record/emr-editor/Home.vue

@@ -6,7 +6,7 @@
       <el-input v-model="query.patNo" style="width: 120px"/>
       次数 ({{ query.times }}) :
       <emr-leave-hospital-patient @rowClick="disPatients"/>
-      <el-button @click="allPatientsInTheHospital">全院患者</el-button>
+      <el-button @click="allPatientsInTheHospital" :disabled="query.state === 4">全院患者</el-button>
       <el-button @click="patientListDrawer = !patientListDrawer">患者列表</el-button>
       出院天数:{{ dischargeDays }}
       <span style="color: red">出院七天后就无法编辑患者病历</span>

+ 21 - 0
src/views/hospitalization/zhu-yuan-yi-sheng/electronic-medical-record/emr-editor/emr-socket.js

@@ -0,0 +1,21 @@
+const socketUrl = import.meta.env.VITE_SOCKET_URL
+
+let webSocket = null
+
+export function initWebSocket(sid) {
+    if ('WebSocket' in window) {
+        if (webSocket === null) {
+            const url = socketUrl + sid + '-Emr'
+            webSocket = new WebSocket(url)
+        }
+    } else {
+        alert('该浏览器不支持websocket!')
+        webSocket = 'unsupport'
+    }
+
+    webSocket.onopen = function () {
+        console.log('电子病历连接成功。')
+    }
+
+
+}