Browse Source

添加字段

XMLWAN 4 years ago
parent
commit
80e0515465
2 changed files with 84 additions and 80 deletions
  1. 60 73
      src/api/dialysis.js
  2. 24 7
      src/pages/main/dialog/MonitDialog.vue

+ 60 - 73
src/api/dialysis.js View File

1
 import request from '@/utils/request'
1
 import request from '@/utils/request'
2
 
2
 
3
-export function getDialysisScheduals (params) {
3
+export function getDialysisScheduals(params) {
4
   return request({
4
   return request({
5
     url: '/m/api/scheduals',
5
     url: '/m/api/scheduals',
6
     method: 'get',
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
   return request({
12
   return request({
13
     url: '/m/api/waiting_scheduals',
13
     url: '/m/api/waiting_scheduals',
14
     method: 'get',
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
   return request({
20
   return request({
21
     url: '/m/api/dialysis/record',
21
     url: '/m/api/dialysis/record',
22
     method: 'get',
22
     method: 'get',
23
-    params: params,
23
+    params: params
24
   })
24
   })
25
 }
25
 }
26
 
26
 
27
-export function dialysisGlobalConfig () {
27
+export function dialysisGlobalConfig() {
28
   return request({
28
   return request({
29
     url: '/m/api/dialysisglobalconfig',
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
   return request({
35
   return request({
36
     url: '/m/api/dialysis/treatmentSummary',
36
     url: '/m/api/dialysis/treatmentSummary',
37
     method: 'post',
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
   return request({
44
   return request({
45
     url: '/m/api/dialysis/doublecheck',
45
     url: '/m/api/dialysis/doublecheck',
46
     method: 'post',
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
   return request({
53
   return request({
54
     url: '/m/api/dialysis/acceptsAssessment',
54
     url: '/m/api/dialysis/acceptsAssessment',
55
     method: 'post',
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
   return request({
62
   return request({
63
     url: '/m/api/dialysis/finish',
63
     url: '/m/api/dialysis/finish',
64
     method: 'post',
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
   console.log(params)
70
   console.log(params)
71
   return request({
71
   return request({
72
     url: '/m/api/dialysis/dialysisPrescription',
72
     url: '/m/api/dialysis/dialysisPrescription',
73
     method: 'post',
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
   return request({
79
   return request({
80
     url: '/m/api/dialysis/assessmentAfterDislysis',
80
     url: '/m/api/dialysis/assessmentAfterDislysis',
81
     method: 'post',
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
   return request({
87
   return request({
88
     url: '/m/api/monitor/add',
88
     url: '/m/api/monitor/add',
89
     method: 'post',
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
   return request({
96
   return request({
96
     url: '/m/api/monitor/edit',
97
     url: '/m/api/monitor/edit',
97
     method: 'post',
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
   return request({
104
   return request({
104
     url: '/m/api/monitor/delete',
105
     url: '/m/api/monitor/delete',
105
     method: 'post',
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
   return request({
112
   return request({
112
     url: '/m/api/dialysis/allzone',
113
     url: '/m/api/dialysis/allzone',
113
     method: 'get',
114
     method: 'get',
115
   })
116
   })
116
 }
117
 }
117
 
118
 
118
-export function getSchedualPatient (params) {
119
+export function getSchedualPatient(params) {
119
   return request({
120
   return request({
120
     url: '/m/api/dialysis/patients',
121
     url: '/m/api/dialysis/patients',
121
     method: 'get',
122
     method: 'get',
123
   })
124
   })
124
 }
125
 }
125
 
126
 
126
-export function postSolution (params) {
127
+export function postSolution(params) {
127
   return request({
128
   return request({
128
     url: '/m/api/solution',
129
     url: '/m/api/solution',
129
     method: 'post',
130
     method: 'post',
131
   })
132
   })
132
 }
133
 }
133
 
134
 
134
-export function startDialysis (params) {
135
+export function startDialysis(params) {
135
   return request({
136
   return request({
136
     url: '/m/api/dialysis/start',
137
     url: '/m/api/dialysis/start',
137
     method: 'post',
138
     method: 'post',
139
   })
140
   })
140
 }
141
 }
141
 
142
 
142
-export function getLastAccepts (params) {
143
+export function getLastAccepts(params) {
143
   return request({
144
   return request({
144
     url: '/m/api/accepts/get',
145
     url: '/m/api/accepts/get',
145
     method: 'get',
146
     method: 'get',
147
   })
148
   })
148
 }
149
 }
149
 
150
 
150
-export function getPrintDialysisRecord (params) {
151
+export function getPrintDialysisRecord(params) {
151
   return request({
152
   return request({
152
     url: '/m/api/print/dialysisorder',
153
     url: '/m/api/print/dialysisorder',
153
     method: 'Get',
154
     method: 'Get',
155
   })
156
   })
156
 }
157
 }
157
 
158
 
158
-export function getUrgentScheduleInitData (params) {
159
+export function getUrgentScheduleInitData(params) {
159
   return request({
160
   return request({
160
     url: '/m/api/schedule/urgentinit',
161
     url: '/m/api/schedule/urgentinit',
161
     method: 'Get',
162
     method: 'Get',
163
   })
164
   })
164
 }
165
 }
165
 
166
 
166
-export function postUrgentSchedule (params) {
167
+export function postUrgentSchedule(params) {
167
   return request({
168
   return request({
168
     url: '/m/api/schedule/urgentadd',
169
     url: '/m/api/schedule/urgentadd',
169
     method: 'post',
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
   return request({
176
   return request({
176
     url: '/m/api/dialysis/sign',
177
     url: '/m/api/dialysis/sign',
177
     method: 'Post',
178
     method: 'Post',
180
   })
181
   })
181
 }
182
 }
182
 
183
 
183
-export function GetMonitor (params) {
184
+export function GetMonitor(params) {
184
   return request({
185
   return request({
185
     url: '/m/api/monitor/get',
186
     url: '/m/api/monitor/get',
186
     method: 'get',
187
     method: 'get',
188
   })
189
   })
189
 }
190
 }
190
 
191
 
191
-export function GetMonitorToday (params) {
192
+export function GetMonitorToday(params) {
192
   return request({
193
   return request({
193
     url: '/m/api/monitor/gettodaylast',
194
     url: '/m/api/monitor/gettodaylast',
194
     method: 'get',
195
     method: 'get',
196
   })
197
   })
197
 }
198
 }
198
 
199
 
199
-export function PostSearch (keyword) {
200
+export function PostSearch(keyword) {
200
   return request({
201
   return request({
201
     url: '/m/api/patients/search?keyword=' + keyword,
202
     url: '/m/api/patients/search?keyword=' + keyword,
202
     method: 'post'
203
     method: 'post'
204
   })
205
   })
205
 }
206
 }
206
 
207
 
207
-export function PostModifyStartDialysis (params) {
208
+export function PostModifyStartDialysis(params) {
208
   return request({
209
   return request({
209
     url: '/m/api/startOrder/edit',
210
     url: '/m/api/startOrder/edit',
210
     method: 'post',
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
   return request({
217
   return request({
217
     url: '/m/api/finishOrder/edit',
218
     url: '/m/api/finishOrder/edit',
218
     method: 'post',
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
   return request({
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
   return request({
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
   return request({
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
   return request({
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 View File

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