XMLWAN 4 years ago
parent
commit
c0f7fa5893
3 changed files with 38 additions and 3 deletions
  1. 8 0
      src/api/config.js
  2. 29 2
      src/xt_pages/data/basicConfig.vue
  3. 1 1
      src/xt_pages/user/patients.vue

+ 8 - 0
src/api/config.js View File

@@ -137,6 +137,14 @@ export function postXtHisIsOpen(params) {
137 137
 }
138 138
 
139 139
 
140
+export function postMonitorIsOpen(params){
141
+  
142
+  return request({
143
+    url:"./api/monitor/open",
144
+    method:"get",
145
+    params:params
146
+  })
147
+}
140 148
 
141 149
 
142 150
 

+ 29 - 2
src/xt_pages/data/basicConfig.vue View File

@@ -25,6 +25,22 @@
25 25
           <el-switch v-model="is_open_xt_his" @change="changeFuncOne"></el-switch>
26 26
           </p>
27 27
         </div>
28
+
29
+        <div class="configBox">
30
+          <p style="font-size:18px;font-weight:bold">血压数据自动获取</p>
31
+          <p style="font-size:14px;margin-top:5px;color:#333;">在联机的状态下,开启透析监测-血压数据自动获取功能后,则不需要手动输入,数据会自动上传到监测中</p>
32
+          <p style="margin-top:20px;">透析监测-血压数据自动获取:
33
+          <el-switch v-model="is_open_monitor" @change="changeFuncTwo"></el-switch>
34
+          </p>
35
+        </div>
36
+
37
+        <div class="configBox">
38
+          <p style="font-size:18px;font-weight:bold">透析机数据自动获取</p>
39
+          <p style="font-size:14px;margin-top:5px;color:#333;">在联机的状态下,开启透析监测-透析机数据自动获取功能后,则不需要手动输入,数据会自动上传到监测中</p>
40
+          <p style="margin-top:20px;">透析监测-血压数据自动获取:
41
+          <el-switch v-model="is_open_order" @change="changeFuncThree"></el-switch>
42
+          </p>
43
+        </div>
28 44
         <!--<div class="configBox">-->
29 45
             <!--<p>药品,耗材出库</p>-->
30 46
             <!--<p style="font-size:14px;margin-top:5px;">开启药品,耗材出库自动扣减则医生开完医嘱或处方可直接出库,不开启则由发药动作或出库按钮手动出库</p>-->
@@ -62,7 +78,7 @@
62 78
 
63 79
 <script>
64 80
 import BreadCrumb from "@/xt_pages/components/bread-crumb";
65
-import { getAllIsOpenInit,postXtHisIsOpen } from '@/api/config'
81
+import { getAllIsOpenInit,postXtHisIsOpen,postMonitorIsOpen } from '@/api/config'
66 82
 
67 83
 export default {
68 84
   name: "printTemplate",
@@ -76,6 +92,8 @@ export default {
76 92
       ],
77 93
       value:false,
78 94
       is_open_xt_his:false,
95
+      is_open_monitor:false,
96
+      is_open_order:false,
79 97
     };
80 98
   },
81 99
   methods: {
@@ -126,9 +144,18 @@ export default {
126 144
           }
127 145
         )
128 146
       }
147
+    },
129 148
 
149
+    changeFuncTwo(){
150
+       
151
+      let params = {
152
+         is_open:this.is_open_monitor
153
+       }
154
+      postMonitorIsOpen(params).then(response=>{
155
+         if(response.data.state == 1){
130 156
 
131
-
157
+         }
158
+      })
132 159
     }
133 160
 
134 161
   },

+ 1 - 1
src/xt_pages/user/patients.vue View File

@@ -134,7 +134,7 @@
134 134
         </el-button>
135 135
       </div>
136 136
 
137
-      <el-button  type="primary" plain style="float:right;" icon="el-icon-download" @click="putOnRecord(2,{})" >备案</el-button>
137
+      <!-- <el-button  type="primary" plain style="float:right;" icon="el-icon-download" @click="putOnRecord(2,{})" >备案</el-button> -->
138 138
 
139 139
     </div>
140 140
     <div class="app-container">