Browse Source

新增医技预约

xiaochan 1 year ago
parent
commit
76debf01d4

+ 2 - 1
.env.production

@@ -3,8 +3,9 @@ ENV = 'production'
 VITE_BASE_URL = 'http://172.16.32.167:8077'
 VITE_SOCKET_URL = 'ws://172.16.32.160:8707/websocket/'
 VITE_EMR_CONTROL_URL = '172.16.32.160:9227'
+
+
 VITE_DATA_BASE = 'http://172.16.32.167:9205'
-VITE_EMR_SOCKET = 'http://172.16.32.160:8707/socketApi'
 VITE_MAGIC_API_IFRAME = 'http://172.16.32.167:9206'
 
 VITE_HOSPITAL_NAME = '长沙泰和'

+ 37 - 0
public/test.html

@@ -0,0 +1,37 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+    <meta charset="UTF-8">
+    <title>Title</title>
+    <style>
+        html, body {
+            height: 100%;
+            width: 100%;
+            margin: 0;
+            padding: 0;
+        }
+
+        iframe {
+            width: 100%;
+            height: 100%;
+            border-style: unset;
+            display: block;
+            padding: 0;
+            margin: 0;
+        }
+
+    </style>
+</head>
+<script>
+    function test() {
+        console.log(123)
+    }
+</script>
+<body>
+<iframe
+        id="iframe"
+        class="layout_full_iframe"
+        src="http://172.16.30.66:5173/#/hospitalEmr?patNo=0425985&times=1"
+/>
+</body>
+</html>

+ 2 - 4
src/utils/database/magic-api-request.ts

@@ -2,10 +2,8 @@ import axios, {AxiosRequestConfig} from "axios";
 import {xcMessage} from "../xiaochan-element-plus";
 import {CyMessageBox} from "@/components/cy/message-box";
 
-// @ts-ignore
-// export const MAGIC_API = import.meta.env.VITE_DATA_BASE
-export const MAGIC_API = 'http://172.16.32.167:9205'
-export const MAGIC_API_IFRAME = "http://172.16.32.167:9206"
+export const MAGIC_API = import.meta.env.VITE_DATA_BASE
+export const MAGIC_API_IFRAME = import.meta.env.VITE_MAGIC_API_IFRAME
 
 const service = axios.create({
     baseURL: MAGIC_API,

+ 0 - 0
src/utils/emr/useEmrModel.ts


+ 7 - 1
src/views/hospitalization/zhu-yuan-yi-sheng/electronic-medical-record/emr-editor/components/emr-audit/useEmrAudit.ts

@@ -32,7 +32,13 @@ export function useEmrAuditV2() {
             state.currentAudit = res
             if (res.length > 0) {
                 tabsName.value = AuditType.记录
-                emrMitt.emit('setShowIframe', IframeTabs.审核)
+                for (let i = 0; i < res.length; i++) {
+                    const item = res[i]
+                    if (item.remediationStatus == null) {
+                        emrMitt.emit('setShowIframe', IframeTabs.审核)
+                        return
+                    }
+                }
             }
         })
     }

+ 6 - 0
src/views/hospitalization/zhu-yuan-yi-sheng/jian-cha-jian-yan-shen-qing/JianChaShenQing.vue

@@ -21,6 +21,7 @@
                  :disabled="jcProxy.isEmpty()">
         存为模板
       </el-button>
+      <el-button @click="medicalTechnologyAppointment">医技预约</el-button>
     </template>
 
     <div style="display: flex;height: 100% ; width: 100%">
@@ -191,6 +192,11 @@ function imageClick() {
 
 onChangePatient(dianJiChaXunHuanZheJianCha)
 
+
+function medicalTechnologyAppointment() {
+  window.open(`http://172.16.32.208:8010/Third/Clinical/IClinicalRegister.html?ZYH=${huanZheXinXi.value.inpatientNo}`, '_blank')
+}
+
 </script>
 
 <style scoped lang="scss">

+ 14 - 0
src/vite-env.d.ts

@@ -0,0 +1,14 @@
+/// <reference types="vite/client" />
+interface ImportMetaEnv {
+    readonly VITE_BASE_URL: string
+    readonly VITE_SOCKET_URL: string
+    readonly VITE_EMR_CONTROL_URL: string
+
+
+    readonly VITE_DATA_BASE: string
+    readonly VITE_MAGIC_API_IFRAME: string
+    readonly VITE_HOSPITAL_NAME: string
+    readonly VITE_SYSTEM_NAME: string
+    readonly VITE_HOSPITAL_CODE: string
+    readonly VITE_UPLOAD_TEMPLATE_THUMB: string
+}