Kaynağa Gözat

Merge branch 'new_pad_branch' of http://git.shengws.com/zhangbj/xt_pad into new_pad_branch

张保健 4 yıl önce
ebeveyn
işleme
e20d2c2112
2 değiştirilmiş dosya ile 84 ekleme ve 80 silme
  1. 60 73
      src/api/dialysis.js
  2. 24 7
      src/pages/main/dialog/MonitDialog.vue

+ 60 - 73
src/api/dialysis.js Dosyayı Görüntüle

@@ -1,113 +1,114 @@
1 1
 import request from '@/utils/request'
2 2
 
3
-export function getDialysisScheduals (params) {
3
+export function getDialysisScheduals(params) {
4 4
   return request({
5 5
     url: '/m/api/scheduals',
6 6
     method: 'get',
7
-    params: params,
7
+    params: params
8 8
   })
9 9
 }
10 10
 
11
-export function getWaitingScheduals (params) {
11
+export function getWaitingScheduals(params) {
12 12
   return request({
13 13
     url: '/m/api/waiting_scheduals',
14 14
     method: 'get',
15
-    params: params,
15
+    params: params
16 16
   })
17 17
 }
18 18
 
19
-export function getDialysisRecord (params) {
19
+export function getDialysisRecord(params) {
20 20
   return request({
21 21
     url: '/m/api/dialysis/record',
22 22
     method: 'get',
23
-    params: params,
23
+    params: params
24 24
   })
25 25
 }
26 26
 
27
-export function dialysisGlobalConfig () {
27
+export function dialysisGlobalConfig() {
28 28
   return request({
29 29
     url: '/m/api/dialysisglobalconfig',
30
-    method: 'get',
30
+    method: 'get'
31 31
   })
32 32
 }
33 33
 
34
-export function commitTreatmentSummary (params) {
34
+export function commitTreatmentSummary(params) {
35 35
   return request({
36 36
     url: '/m/api/dialysis/treatmentSummary',
37 37
     method: 'post',
38
-    params: params,
38
+    params: params
39 39
 
40 40
   })
41 41
 }
42 42
 
43
-export function commitDoubleCheck (params) {
43
+export function commitDoubleCheck(params) {
44 44
   return request({
45 45
     url: '/m/api/dialysis/doublecheck',
46 46
     method: 'post',
47
-    params: params,
47
+    params: params
48 48
 
49 49
   })
50 50
 }
51 51
 
52
-export function commitAcceptsAssessment (params) {
52
+export function commitAcceptsAssessment(params) {
53 53
   return request({
54 54
     url: '/m/api/dialysis/acceptsAssessment',
55 55
     method: 'post',
56
-    params: params,
56
+    params: params
57 57
 
58 58
   })
59 59
 }
60 60
 
61
-export function finish (params) {
61
+export function finish(params) {
62 62
   return request({
63 63
     url: '/m/api/dialysis/finish',
64 64
     method: 'post',
65
-    params: params,
65
+    params: params
66 66
   })
67 67
 }
68 68
 
69
-export function commitDialysisPrescription (params) {
69
+export function commitDialysisPrescription(params) {
70 70
   console.log(params)
71 71
   return request({
72 72
     url: '/m/api/dialysis/dialysisPrescription',
73 73
     method: 'post',
74
-    params: params,
74
+    params: params
75 75
   })
76 76
 }
77 77
 
78
-export function commitAssessmentAfterDislysis (params) {
78
+export function commitAssessmentAfterDislysis(params) {
79 79
   return request({
80 80
     url: '/m/api/dialysis/assessmentAfterDislysis',
81 81
     method: 'post',
82
-    params: params,
82
+    params: params
83 83
   })
84 84
 }
85 85
 
86
-export function addMonitorRecord (params) {
86
+export function addMonitorRecord(params) {
87 87
   return request({
88 88
     url: '/m/api/monitor/add',
89 89
     method: 'post',
90
-    params: params,
90
+    params: params
91 91
   })
92 92
 }
93 93
 
94
-export function editMonitorRecord (params) {
94
+export function editMonitorRecord(params) {
95
+  console.log('params', params)
95 96
   return request({
96 97
     url: '/m/api/monitor/edit',
97 98
     method: 'post',
98
-    params: params,
99
+    params: params
99 100
   })
100 101
 }
101 102
 
102
-export function deleteMonitorRecord (params) {
103
+export function deleteMonitorRecord(params) {
103 104
   return request({
104 105
     url: '/m/api/monitor/delete',
105 106
     method: 'post',
106
-    params: params,
107
+    params: params
107 108
   })
108 109
 }
109 110
 
110
-export function GetAllZone (params) {
111
+export function GetAllZone(params) {
111 112
   return request({
112 113
     url: '/m/api/dialysis/allzone',
113 114
     method: 'get',
@@ -115,7 +116,7 @@ export function GetAllZone (params) {
115 116
   })
116 117
 }
117 118
 
118
-export function getSchedualPatient (params) {
119
+export function getSchedualPatient(params) {
119 120
   return request({
120 121
     url: '/m/api/dialysis/patients',
121 122
     method: 'get',
@@ -123,7 +124,7 @@ export function getSchedualPatient (params) {
123 124
   })
124 125
 }
125 126
 
126
-export function postSolution (params) {
127
+export function postSolution(params) {
127 128
   return request({
128 129
     url: '/m/api/solution',
129 130
     method: 'post',
@@ -131,7 +132,7 @@ export function postSolution (params) {
131 132
   })
132 133
 }
133 134
 
134
-export function startDialysis (params) {
135
+export function startDialysis(params) {
135 136
   return request({
136 137
     url: '/m/api/dialysis/start',
137 138
     method: 'post',
@@ -139,7 +140,7 @@ export function startDialysis (params) {
139 140
   })
140 141
 }
141 142
 
142
-export function getLastAccepts (params) {
143
+export function getLastAccepts(params) {
143 144
   return request({
144 145
     url: '/m/api/accepts/get',
145 146
     method: 'get',
@@ -147,7 +148,7 @@ export function getLastAccepts (params) {
147 148
   })
148 149
 }
149 150
 
150
-export function getPrintDialysisRecord (params) {
151
+export function getPrintDialysisRecord(params) {
151 152
   return request({
152 153
     url: '/m/api/print/dialysisorder',
153 154
     method: 'Get',
@@ -155,7 +156,7 @@ export function getPrintDialysisRecord (params) {
155 156
   })
156 157
 }
157 158
 
158
-export function getUrgentScheduleInitData (params) {
159
+export function getUrgentScheduleInitData(params) {
159 160
   return request({
160 161
     url: '/m/api/schedule/urgentinit',
161 162
     method: 'Get',
@@ -163,15 +164,15 @@ export function getUrgentScheduleInitData (params) {
163 164
   })
164 165
 }
165 166
 
166
-export function postUrgentSchedule (params) {
167
+export function postUrgentSchedule(params) {
167 168
   return request({
168 169
     url: '/m/api/schedule/urgentadd',
169 170
     method: 'post',
170
-    params: params,
171
+    params: params
171 172
   })
172 173
 }
173 174
 
174
-export function postSign (params) {
175
+export function postSign(params) {
175 176
   return request({
176 177
     url: '/m/api/dialysis/sign',
177 178
     method: 'Post',
@@ -180,7 +181,7 @@ export function postSign (params) {
180 181
   })
181 182
 }
182 183
 
183
-export function GetMonitor (params) {
184
+export function GetMonitor(params) {
184 185
   return request({
185 186
     url: '/m/api/monitor/get',
186 187
     method: 'get',
@@ -188,7 +189,7 @@ export function GetMonitor (params) {
188 189
   })
189 190
 }
190 191
 
191
-export function GetMonitorToday (params) {
192
+export function GetMonitorToday(params) {
192 193
   return request({
193 194
     url: '/m/api/monitor/gettodaylast',
194 195
     method: 'get',
@@ -196,7 +197,7 @@ export function GetMonitorToday (params) {
196 197
   })
197 198
 }
198 199
 
199
-export function PostSearch (keyword) {
200
+export function PostSearch(keyword) {
200 201
   return request({
201 202
     url: '/m/api/patients/search?keyword=' + keyword,
202 203
     method: 'post'
@@ -204,64 +205,50 @@ export function PostSearch (keyword) {
204 205
   })
205 206
 }
206 207
 
207
-export function PostModifyStartDialysis (params) {
208
+export function PostModifyStartDialysis(params) {
208 209
   return request({
209 210
     url: '/m/api/startOrder/edit',
210 211
     method: 'post',
211
-    params: params,
212
+    params: params
212 213
   })
213 214
 }
214 215
 
215
-export function PostModifyEndDialysis (params) {
216
+export function PostModifyEndDialysis(params) {
216 217
   return request({
217 218
     url: '/m/api/finishOrder/edit',
218 219
     method: 'post',
219
-    params: params,
220
+    params: params
220 221
   })
221 222
 }
222 223
 
223
-
224
-
225
-
226
-export function CreateGroupAdvice(id, groupno, advices){
224
+export function CreateGroupAdvice(id, groupno, advices) {
227 225
   return request({
228
-    url:'/m/api/advice_remind/create?id='+id + '&groupno=' + groupno,
229
-    method:'post',
230
-    data:advices,
226
+    url: '/m/api/advice_remind/create?id=' + id + '&groupno=' + groupno,
227
+    method: 'post',
228
+    data: advices
231 229
   })
232
-
233 230
 }
234 231
 
235
-
236
-export function CreateDryWeight(params){
232
+export function CreateDryWeight(params) {
237 233
   return request({
238
-    url:"/m/api/dryweight/commit",
239
-    method:'post',
240
-    params:params,
234
+    url: '/m/api/dryweight/commit',
235
+    method: 'post',
236
+    params: params
241 237
   })
242
-
243 238
 }
244 239
 
245
-
246
-export function GetSolution(params){
240
+export function GetSolution(params) {
247 241
   return request({
248
-    url:"/m/api/solution/get",
249
-    method:'get',
250
-    params:params,
242
+    url: '/m/api/solution/get',
243
+    method: 'get',
244
+    params: params
251 245
   })
252
-
253 246
 }
254 247
 
255
-
256
-
257
-
258
-
259
-
260
-export function GetSchedualNumber(params){
248
+export function GetSchedualNumber(params) {
261 249
   return request({
262
-    url:"/m/api/schedule/get",
263
-    method:'get',
264
-    params:params,
250
+    url: '/m/api/schedule/get',
251
+    method: 'get',
252
+    params: params
265 253
   })
266
-
267 254
 }

+ 24 - 7
src/pages/main/dialog/MonitDialog.vue Dosyayı Görüntüle

@@ -34,6 +34,7 @@
34 34
                 <th v-if="isShow('置换率') && template_id !=6" width="92px">置换率(L/h)</th>
35 35
                 <th v-if="isShow('置换量') && template_id ==6" width="50px">置换量(ml)</th>
36 36
                 <th v-if="isShow('置换量') && template_id !=6" width="50px">置换量(L)</th>
37
+                <th v-if="isShow('SpO₂')  && template_id !=6" width="50px">SpO₂(%)</th>
37 38
                 <th v-if="isShow('电导度')" width="50px">电导度(mS/m)</th>
38 39
                 <th v-if="isShow('置换液流量')" width="50px">置换液流量(ml/h)</th>
39 40
 
@@ -71,6 +72,9 @@
71 72
                 <td
72 73
                   v-if="isShow('置换量')"
73 74
                 >{{item.displacement_quantity?item.displacement_quantity:''}}</td>
75
+                 <td
76
+                  v-if="isShow('SpO₂')"
77
+                >{{item.blood_oxygen_saturation?item.blood_oxygen_saturation:''}}</td>
74 78
                 <td v-if="isShow('电导度')">{{item.conductivity?item.conductivity:''}}</td>
75 79
                 <td
76 80
                   v-if="isShow('置换液流量')"
@@ -278,6 +282,17 @@
278 282
                 v-model="form.displacement_quantity"
279 283
               />
280 284
             </div>
285
+            <div class="cell" v-if="isShow('SpO₂')">
286
+              <label v-if="template_id == 6">SpO₂(%)</label>
287
+              <label v-else>SpO₂(L)</label>
288
+              <input
289
+                type="number"
290
+                @focus="inputFocus"
291
+                onclick="this.select();"
292
+                class="inputBox"
293
+                v-model="form.blood_oxygen_saturation"
294
+              />
295
+            </div>
281 296
             <div class="cell" v-if="isShow('电导度')">
282 297
               <label>电导度(mS/m)</label>
283 298
               <input
@@ -474,7 +489,8 @@ export default {
474 489
         ktv: '', // KT/V(在线)
475 490
         symptom: '', // 症状
476 491
         dispose: '', // 处理
477
-        result: '', // 结果
492
+        result: '', // 结果,
493
+        blood_oxygen_saturation: '',
478 494
         monitoring_nurse: this.$store.getters.user.user.id // 监测人
479 495
       },
480 496
       doctor: this.$store.getters.user.user.user_name
@@ -553,7 +569,7 @@ export default {
553 569
         this.today_last_monitor_record = resp.monitor
554 570
 
555 571
         // this.form.operate_time = Date.parse(new Date())
556
-        this.form.operate_time = resp.monitor.operate_time  ? (resp.monitor.operate_time + 3600) * 1000 : Date.parse(new Date())
572
+        this.form.operate_time = resp.monitor.operate_time ? (resp.monitor.operate_time + 3600) * 1000 : Date.parse(new Date())
557 573
         this.form.pulse_frequency = '' // this.last_monitor_record.pulse_frequency;
558 574
         this.form.breathing_rated = resp.monitor.breathing_rate ? resp.monitor.breathing_rate : ''
559 575
         this.form.systolic_bp = '' // this.last_monitor_record.systolic_blood_pressure;
@@ -565,7 +581,7 @@ export default {
565 581
         this.form.ultrafiltration_rate = resp.monitor.ultrafiltration_rate ? resp.monitor.ultrafiltration_rate : ''
566 582
         this.form.ultrafiltration_volume = resp.monitor.ultrafiltration_volume ? resp.monitor.ultrafiltration_volume : ''
567 583
         this.form.sodium_concentration = resp.monitor.sodium_concentration ? resp.monitor.sodium_concentration : ''
568
-        this.form.dialysate_temperature = resp.monitor.dialysate_temperature  ? resp.monitor.dialysate_temperature : ''
584
+        this.form.dialysate_temperature = resp.monitor.dialysate_temperature ? resp.monitor.dialysate_temperature : ''
569 585
         this.form.temperature = resp.monitor.temperature ? resp.monitor.temperature : ''
570 586
         this.form.replacement_rate = resp.monitor.replacement_rate ? resp.monitor.replacement_rate : ''
571 587
         this.form.displacement_quantity = '' // this.last_monitor_record.displacement_quantity;
@@ -930,7 +946,7 @@ export default {
930 946
       } else {
931 947
         this.form.ktv = this.currentRow.ktv
932 948
       }
933
-
949
+      this.form.blood_oxygen_saturation = this.currentRow.blood_oxygen_saturation
934 950
       this.form.symptom = this.currentRow.symptom
935 951
       this.form.dispose = this.currentRow.dispose
936 952
       this.form.result = this.currentRow.result
@@ -998,7 +1014,7 @@ export default {
998 1014
       params.result = this.form.result
999 1015
       params.monitoring_nurse = this.form.monitoring_nurse
1000 1016
       params.displacement_flow_quantity = this.form.displacement_flow_quantity
1001
-
1017
+      params.blood_oxygen_saturation = this.form.blood_oxygen_saturation
1002 1018
       params.id = this.form.id
1003 1019
       editMonitorRecord(params).then(rs => {
1004 1020
         var resp = rs.data
@@ -1026,6 +1042,7 @@ export default {
1026 1042
           this.form.replacement_rate = ''
1027 1043
           this.form.displacement_quantity = ''
1028 1044
           this.form.ktv = ''
1045
+          this.form.blood_oxygen_saturation = ''
1029 1046
           this.form.symptom = ''
1030 1047
           this.form.dispose = ''
1031 1048
           this.form.result = ''
@@ -1041,7 +1058,7 @@ export default {
1041 1058
           Toast.fail(resp.msg)
1042 1059
         }
1043 1060
       }).catch(error => {
1044
-        Toast.fail("请求失败")
1061
+        Toast.fail('请求失败')
1045 1062
       })
1046 1063
     },
1047 1064
     submitAction: function () {
@@ -1069,7 +1086,7 @@ export default {
1069 1086
       params.displacement_quantity = this.form.displacement_quantity
1070 1087
       params.conductivity = this.form.conductivity
1071 1088
       params.displacement_flow_quantity = this.form.displacement_flow_quantity
1072
-
1089
+      params.blood_oxygen_saturation = this.form.blood_oxygen_saturation
1073 1090
       params.ktv = this.form.ktv
1074 1091
       params.symptom = this.form.symptom
1075 1092
       params.dispose = this.form.dispose