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
 }
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
           <el-switch v-model="is_open_xt_his" @change="changeFuncOne"></el-switch>
25
           <el-switch v-model="is_open_xt_his" @change="changeFuncOne"></el-switch>
26
           </p>
26
           </p>
27
         </div>
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
         <!--<div class="configBox">-->
44
         <!--<div class="configBox">-->
29
             <!--<p>药品,耗材出库</p>-->
45
             <!--<p>药品,耗材出库</p>-->
30
             <!--<p style="font-size:14px;margin-top:5px;">开启药品,耗材出库自动扣减则医生开完医嘱或处方可直接出库,不开启则由发药动作或出库按钮手动出库</p>-->
46
             <!--<p style="font-size:14px;margin-top:5px;">开启药品,耗材出库自动扣减则医生开完医嘱或处方可直接出库,不开启则由发药动作或出库按钮手动出库</p>-->
62
 
78
 
63
 <script>
79
 <script>
64
 import BreadCrumb from "@/xt_pages/components/bread-crumb";
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
 export default {
83
 export default {
68
   name: "printTemplate",
84
   name: "printTemplate",
76
       ],
92
       ],
77
       value:false,
93
       value:false,
78
       is_open_xt_his:false,
94
       is_open_xt_his:false,
95
+      is_open_monitor:false,
96
+      is_open_order:false,
79
     };
97
     };
80
   },
98
   },
81
   methods: {
99
   methods: {
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
         </el-button>
134
         </el-button>
135
       </div>
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
     </div>
139
     </div>
140
     <div class="app-container">
140
     <div class="app-container">