ソースを参照

电子病历问题

DESKTOP-MINPJAU\Administrator 2 年 前
コミット
dc85ef8bc5

+ 15 - 1
src/components/zhu-yuan-yi-sheng/emr/EmrMain.vue

@@ -29,16 +29,30 @@ onMounted(() => {
       patNo: huanZheXinXi.value.inpatientNo,
       times: huanZheXinXi.value.admissTimes
     })
-
     getCurrentPersonnelInformation(patientData)
     patientId = huanZheXinXi.value.inpatientNo
     currentEmr.value = new EMRInteractive(patientData, editorEvents);
     emrRef.value.parentElement.emr = currentEmr.value
     window.addEventListener('beforeunload', monitorPageRefresh)
+
+
   })
 })
 
 
+let test = () => {
+
+}
+
+let emrEvent = [
+  {
+    loaded: (evt, view) => {
+      console.log(evt, view)
+    }
+  }
+]
+
+
 const monitorPageRefresh = (event) => {
   if (isEditorChange) {
     event.returnValue = false;

+ 5 - 0
src/views/hospitalization/zhu-yuan-yi-sheng/electronic-medical-record/emr-init.js

@@ -17,12 +17,17 @@ export function EMRInteractive(data, endiorEvent) {
             endiorEvent(event)
         })
 
+        editor.on('入院诊断', (evt, view) => {
+            console.log(evt, view)
+        })
+
     };
 
     this.callMethod = (name, ...value) => {
         return this.editor[name](...value)
     }
 
+
     this.insertSnippet = (content, styles) => {
         //病历片段相关参数
         let insertContent = {

+ 6 - 2
src/views/hospitalization/zhu-yuan-yi-sheng/yi-zhu-lu-ru/YiZhuLuRu.vue

@@ -412,8 +412,12 @@ let chargeDetails = $ref({
 })
 const clickToViewTheDoctorSOrderFee = (val) => {
   chargeDetails.data = doctorSOrderFee.data[val.actOrderNoStr]
-  chargeDetails.sum = doctorSOrderFee.totalCost[val.actOrderNoStr]
-  chargeDetails.dialog = true
+  if (chargeDetails.data) {
+    chargeDetails.sum = doctorSOrderFee.totalCost[val.actOrderNoStr]
+    chargeDetails.dialog = true
+  } else {
+    BizException(ExceptionEnum.MESSAGE_ERROR, '该医嘱还没有产生费用')
+  }
 }
 const getFeeInfor = (actOrderNo) => {
   try {

+ 1 - 1
vite.config.js

@@ -47,7 +47,7 @@ export default defineConfig({
         host: '0.0.0.0',
         proxy: {
             '/emr/runtime': {
-                target: 'http://172.16.32.122:8001', //这里配置运行时服务地址
+                target: 'http://172.16.32.122:8001', //这里配置运行时服务地址  这个是新虚拟机地址 http://172.16.32.124:8001
                 secure: false, //如果运行时服务是https,此处配置为true
                 changeOrigin: true //支持跨域调用,这里配置为true
             },