浏览代码

Merge branch 'superman' of http://git.shengws.com/zhangbj/xt_vue into superman

csx 5 年前
父节点
当前提交
e7dc849cb3

+ 23 - 15
src/api/signandweigh.js 查看文件

@@ -1,7 +1,7 @@
1 1
 import request from '@/utils/request'
2 2
 
3 3
 export function fetchSignPatients(params) {
4
-  console.log("bbbbbbbbbbbbbbb号码")
4
+  console.log('bbbbbbbbbbbbbbb号码')
5 5
   console.log(params)
6 6
   return request({
7 7
     url: '/api/sign/patients',
@@ -63,22 +63,30 @@ export function editdata(params) {
63 63
   })
64 64
 }
65 65
 
66
-export function sighdata(params){
67
-  console.log("好还哦")
66
+export function sighdata(params) {
67
+  console.log('好还哦')
68 68
   console.log(params)
69
-   return request({
70
-     url: '/api/sigh/sighdata',
71
-     params: params,   
72
-     method: 'Post'
73
-   })
69
+  return request({
70
+    url: '/api/sigh/sighdata',
71
+    params: params,
72
+    method: 'Post'
73
+  })
74 74
 }
75 75
 
76
-export function updateSignweight(params){
77
- 
78
-  console.log(params)
76
+export function updateSignweight(params) {
77
+  console.log('params是什么', params)
79 78
   return request({
80
-     url:'/api/sign/updateSignweight',
81
-     params:params,
82
-     method:'Post'
79
+    url: '/api/sign/updateSignweight',
80
+    params: params,
81
+    method: 'Post'
83 82
   })
84
-}
83
+}
84
+
85
+export function getForenoonData(params) {
86
+  console.log('呵呵呵呵呵')
87
+  return request({
88
+    url: '/api/sign/getforenoondata',
89
+    params: params,
90
+    method: 'Get'
91
+  })
92
+}

+ 1 - 0
src/styles/index.scss 查看文件

@@ -265,6 +265,7 @@ code {
265 265
       }
266 266
     }
267 267
   }
268
+  //  border: solid 1px red;
268 269
 }
269 270
 
270 271
 .note {

+ 27 - 16
src/xt_pages/dialysis/details/BasicInfor.vue 查看文件

@@ -19,8 +19,8 @@
19 19
           <span>{{ patient.id == 0 ? "" : (patient.gender == 1 ? "男" : "女") }}</span>
20 20
         </li>
21 21
         <li>
22
-          <label>出生 : </label>
23
-          <span>{{ birthday }}</span>
22
+          <label>年龄:</label>
23
+          <span>{{ patient.age }}</span>
24 24
         </li>
25 25
         <li>
26 26
           <label>透析号 : </label>
@@ -38,19 +38,25 @@
38 38
           <label>住院号 : </label>
39 39
           <span>{{ patient.admission_number }}</span>
40 40
         </li>
41
+        <li>
42
+          <label>透析日期:</label>
43
+          <span>{{dialysis_time}}</span>
44
+        </li>
41 45
     </ul>
42 46
     <div class="middleLine"></div>
43 47
   </div>
44 48
 </template>
45 49
 
46 50
 <script>
47
-import { parseTime } from "@/utils"
51
+const moment = require('moment')
52
+import { parseTime } from '@/utils'
48 53
 
49 54
 export default {
50
-  name: "BasicInfor",
55
+  name: 'BasicInfor',
51 56
   data() {
52 57
     return {
53
-      title:'基本信息',
58
+      title: '基本信息',
59
+      dialysis_time: moment(new Date()).format('YYYY-MM-DD')
54 60
       // steps: [
55 61
       //   { title: "透析处方" },
56 62
       //   { title: "接诊评估" },
@@ -63,7 +69,7 @@ export default {
63 69
       //   { title: "透后评估" },
64 70
       //   { title: "治疗小结" }
65 71
       // ]
66
-    };
72
+    }
67 73
   },
68 74
   props: {
69 75
     patient: {
@@ -73,7 +79,7 @@ export default {
73 79
       }
74 80
     },
75 81
     device_number: {
76
-      type: String,
82
+      type: String
77 83
     },
78 84
     steps: {
79 85
       type: Array,
@@ -83,23 +89,26 @@ export default {
83 89
     }
84 90
   },
85 91
   computed: {
86
-    birthday: function() {
92
+    created_time: function() {
87 93
       if (this.patient.id == 0) {
88
-        return ""
94
+        return ''
89 95
       } else {
90
-        return parseTime(this.patient.birthday, "{y}-{m}-{d}")
96
+        return parseTime(this.patient.created_time, '{y}-{m}-{d}')
91 97
       }
92 98
     },
93 99
     source: function() {
94
-      return this.patient.source == 1 ? "门诊" : "住院"
95
-    },
100
+      return this.patient.source == 1 ? '门诊' : '住院'
101
+    }
96 102
   },
97 103
   methods: {
98 104
     stepState: function() {
99
-      return parseInt((Math.random() * 1000) + "") % 2 == 1;
100
-    },
105
+      return parseInt((Math.random() * 1000) + '') % 2 == 1
106
+    }
107
+  },
108
+  created() {
109
+    console.log('patinents是什么ha ', this.patient)
101 110
   }
102
-};
111
+}
103 112
 </script>
104 113
 
105 114
 <style style="stylesheet/scss" lang="scss" scoped>
@@ -200,13 +209,15 @@ export default {
200 209
     padding:20px 40px;  
201 210
     li {
202 211
       float: left;
203
-      width: 25%;
212
+      width: 28%;
204 213
       // margin: 0 1rem 0 0;
205 214
       font-size: 15px;
206 215
       height: 35px;
207 216
       line-height: 35px;
208 217
       color: #34495e;
218
+      margin-left: 60px;
209 219
     }
220
+    // border: solid red 1px;
210 221
   }
211 222
 </style>
212 223
 

+ 134 - 136
src/xt_pages/dialysis/details/DialysisPrescription.vue 查看文件

@@ -4,7 +4,7 @@
4 4
     <div class="plate">
5 5
       <ul>
6 6
         <li v-if="isShow('透析模式')">
7
-          <label>透析模式 : </label>
7
+          <label>透析模式: </label>
8 8
           <span class="content">{{dialysis_mode}}</span>
9 9
         </li>
10 10
         <li v-if="isShow('目标超滤量')">
@@ -115,11 +115,11 @@
115 115
           <span class="content">{{body_fluid}}</span>
116 116
           <span class="unit"></span>
117 117
         </li>
118
-        <li v-if="isShow('体液过多其他症状')">
118
+        <!-- <li v-if="isShow('体液过多其他症状')">
119 119
           <label>体液过多其他症状 : </label>
120 120
           <span class="content">{{body_fluid_other}}</span>
121 121
           <span class="unit"></span>
122
-        </li>
122
+        </li> -->
123 123
         <li v-if="isShow('透析前使用特殊药物')">
124 124
           <label>透析前使用特殊药物: </label>
125 125
           <span class="content">{{special_medicine}}</span>
@@ -135,8 +135,8 @@
135 135
           <span class="content">{{displace_liqui}}</span>
136 136
           <span class="unit"></span>
137 137
         </li>
138
-        <li v-if="isShow('血管通路(内瘘)')">
139
-          <label>血管通路(内瘘): </label>
138
+        <li v-if="isShow('血管通路')">
139
+          <label>血管通路: </label>
140 140
           <span class="content">{{blood_access}}</span>
141 141
           <span class="unit"></span>
142 142
         </li>
@@ -159,262 +159,260 @@
159 159
 </template>
160 160
 
161 161
 <script>
162
-  import {getDataConfig} from '@/utils/data';
163
-  import store from "@/store";
162
+  import { getDataConfig } from '@/utils/data'
163
+import store from '@/store'
164 164
 
165
-  export default {
166
-    name: "DialysisPrescription",
165
+export default {
166
+    name: 'DialysisPrescription',
167 167
     data() {
168 168
       return {
169
-        title: "透析处方",
169
+        title: '透析处方',
170 170
         perfusion_apparatus_map: {},
171
-        dialysateFormulationMap:{},
172
-      };
173
-    },
171
+        dialysateFormulationMap: {}
172
+      }
173
+  },
174 174
     props: {
175 175
       prescription: {
176
-        type: Object,
176
+        type: Object
177 177
       },
178 178
       solution: {
179
-        type: Object,
179
+        type: Object
180 180
       },
181 181
       device_number_map: {
182
-        type: Object,
182
+        type: Object
183 183
       }
184 184
     },
185 185
     computed: {
186
-      target_ultrafiltration:function(){
187
-        var v = this.getValueStr("target_ultrafiltration", "target_ultrafiltration")
188
-        return v.length == 0 ? "0" : v
186
+      target_ultrafiltration: function() {
187
+        var v = this.getValueStr('target_ultrafiltration', 'target_ultrafiltration')
188
+        return v.length == 0 ? '0' : v
189 189
       },
190 190
       dialysis_mode: function() {
191
-        var mode = this.getValueStr("mode_id", "mode_id")
191
+        var mode = this.getValueStr('mode_id', 'mode_id')
192 192
         if (mode.length == 0) {
193
-          return ""
193
+          return ''
194 194
         }
195 195
         if (this.$store.getters.treatment_mode[mode] != undefined) {
196 196
           return this.$store.getters.treatment_mode[mode].name
197 197
         }
198
-        return ""
198
+        return ''
199 199
       },
200 200
       perfusion_apparatus: function() {
201
-        var v = this.getValueStr("perfusion_apparatus", "perfusion_apparatus")
201
+        var v = this.getValueStr('perfusion_apparatus', 'perfusion_apparatus')
202 202
         if (v.length == 0) {
203
-          return ""
203
+          return ''
204 204
         }
205 205
         if (this.perfusion_apparatus_map[v] != undefined) {
206 206
           return this.perfusion_apparatus_map[v].name
207 207
         }
208
-        return ""
208
+        return ''
209 209
       },
210 210
       displace_liqui: function() {
211
-        var v = this.getValueStr("displace_liqui", "displace_liqui")
212
-        return v.length == 0 ? "0" : v
211
+        var v = this.getValueStr('displace_liqui', 'displace_liqui')
212
+        return v.length == 0 ? '0' : v
213 213
       },
214 214
       anticoagulant_shouji: function() {
215
-        var v = this.getValueStr("anticoagulant_shouji", "anticoagulant_shouji")
216
-        return v.length == 0 ? "0" : v
215
+        var v = this.getValueStr('anticoagulant_shouji', 'anticoagulant_shouji')
216
+        return v.length == 0 ? '0' : v
217 217
       },
218 218
       kalium: function() {
219
-        var v = this.getValueStr("kalium", "kalium")
220
-        return v.length == 0 ? "0" : v
219
+        var v = this.getValueStr('kalium', 'kalium')
220
+        return v.length == 0 ? '0' : v
221 221
       },
222
-      replacement_total:function(){
223
-        var v = this.getValueStr("replacement_total", "replacement_total")
224
-        return v.length == 0 ? "0" : v
222
+      replacement_total: function() {
223
+        var v = this.getValueStr('replacement_total', 'replacement_total')
224
+        return v.length == 0 ? '0' : v
225 225
       },
226 226
       bicarbonate: function() {
227
-        var v = this.getValueStr("bicarbonate", "bicarbonate")
228
-        return v.length == 0 ? "0" : v
227
+        var v = this.getValueStr('bicarbonate', 'bicarbonate')
228
+        return v.length == 0 ? '0' : v
229 229
       },
230 230
       dialysate_flow: function() {
231
-        var v = this.getValueStr("dialysate_flow", "dialysate_flow")
232
-        return v.length == 0 ? "0" : v
231
+        var v = this.getValueStr('dialysate_flow', 'dialysate_flow')
232
+        return v.length == 0 ? '0' : v
233 233
       },
234 234
       dialysis_duration: function() {
235
-        var dialysis_duration_hour = (this.getValueStr("dialysis_duration_hour", "dialysis_duration_hour"))
236
-        var dialysis_duration_minute = (this.getValueStr("dialysis_duration_minute", "dialysis_duration_minute"))
237
-        if(dialysis_duration_hour.length == 0 && dialysis_duration_minute.length == 0){
238
-          return  "0"
239
-        }else{
240
-          var time = dialysis_duration_hour+"h"+dialysis_duration_minute+"min"
241
-          return time.length == 0 ? "0" : time
235
+        var dialysis_duration_hour = (this.getValueStr('dialysis_duration_hour', 'dialysis_duration_hour'))
236
+        var dialysis_duration_minute = (this.getValueStr('dialysis_duration_minute', 'dialysis_duration_minute'))
237
+        if (dialysis_duration_hour.length == 0 && dialysis_duration_minute.length == 0) {
238
+          return '0'
239
+        } else {
240
+          var time = dialysis_duration_hour + 'h' + dialysis_duration_minute + 'min'
241
+          return time.length == 0 ? '0' : time
242 242
         }
243
-
244 243
       },
245 244
       blood_flow_volume: function() {
246
-        var v = this.getValueStr("blood_flow_volume", "blood_flow_volume")
247
-        return v.length == 0 ? "0" : v
245
+        var v = this.getValueStr('blood_flow_volume', 'blood_flow_volume')
246
+        return v.length == 0 ? '0' : v
248 247
       },
249 248
       replacement_way: function() {
250
-        return this.getValueStr("replacement_way", "replacement_way")
249
+        return this.getValueStr('replacement_way', 'replacement_way')
251 250
       },
252 251
       anticoagulant_weichi: function() {
253
-        var v = this.getValueStr("anticoagulant_weichi", "anticoagulant_weichi")
254
-        return v.length == 0 ? "0" : v
252
+        var v = this.getValueStr('anticoagulant_weichi', 'anticoagulant_weichi')
253
+        return v.length == 0 ? '0' : v
255 254
       },
256 255
       sodium: function() {
257
-        var v = this.getValueStr("sodium", "sodium")
258
-        return v.length == 0 ? "0" : v
256
+        var v = this.getValueStr('sodium', 'sodium')
257
+        return v.length == 0 ? '0' : v
259 258
       },
260 259
       glucose: function() {
261
-        var v = this.getValueStr("glucose", "glucose")
262
-        return v.length == 0 ? "0" : v
260
+        var v = this.getValueStr('glucose', 'glucose')
261
+        return v.length == 0 ? '0' : v
263 262
       },
264 263
       dialysate_temperature: function() {
265
-        var v = this.getValueStr("dialysate_temperature", "dialysate_temperature")
266
-        return v.length == 0 ? "0" : v
264
+        var v = this.getValueStr('dialysate_temperature', 'dialysate_temperature')
265
+        return v.length == 0 ? '0' : v
267 266
       },
268 267
       dialyzer: function() {
269
-        var v = this.getValueStr("dialyzer", "hemodialysis_machine")
268
+        var v = this.getValueStr('dialyzer', 'hemodialysis_machine')
270 269
         if (v.length == 0) {
271
-          return ""
270
+          return ''
272 271
         }
273 272
         if (this.device_number_map[v] != undefined) {
274 273
           return this.device_number_map[v].name
275 274
         }
276
-        return ""
275
+        return ''
277 276
       },
278
-      dialysate_formulation: function(){
279
-        var v = this.getValueStr("dialysate_formulation", "dialysate_formulation")
277
+      dialysate_formulation: function() {
278
+        var v = this.getValueStr('dialysate_formulation', 'dialysate_formulation')
280 279
         if (v.length == 0) {
281
-          return ""
280
+          return ''
282 281
         }
283
-        if(v in this.dialysateFormulationMap) {
284
-          return  this.dialysateFormulationMap[v].name;
282
+        if (v in this.dialysateFormulationMap) {
283
+          return this.dialysateFormulationMap[v].name
285 284
         }
286
-        return ""
285
+        return ''
287 286
       },
288 287
       prescription_dewatering: function() {
289
-        var v = this.getValueStr("prescription_dewatering", "dewater")
290
-        return v.length == 0 ? "0" : v
288
+        var v = this.getValueStr('prescription_dewatering', 'dewater')
289
+        return v.length == 0 ? '0' : v
291 290
       },
292 291
       anticoagulant: function() {
293
-        var v = this.getValueStr("anticoagulant", "anticoagulant")
292
+        var v = this.getValueStr('anticoagulant', 'anticoagulant')
294 293
         if (v.length == 0) {
295
-          return ""
294
+          return ''
296 295
         }
297 296
         if (this.$store.getters.anticoagulants_confit[v] != undefined) {
298 297
           return this.$store.getters.anticoagulants_confit[v].name
299 298
         }
300
-        return ""
299
+        return ''
301 300
       },
302 301
       anticoagulant_zongliang: function() {
303
-        var v = this.getValueStr("anticoagulant_zongliang", "anticoagulant_zongliang")
304
-        return v.length == 0 ? "0" : v
302
+        var v = this.getValueStr('anticoagulant_zongliang', 'anticoagulant_zongliang')
303
+        return v.length == 0 ? '0' : v
305 304
       },
306 305
       calcium: function() {
307
-        var v = this.getValueStr("calcium", "calcium")
308
-        return v.length == 0 ? "0" : v
306
+        var v = this.getValueStr('calcium', 'calcium')
307
+        return v.length == 0 ? '0' : v
309 308
       },
310 309
 
311 310
       conductivity: function() {
312
-        var v = this.getValueStr("conductivity", "conductivity")
313
-        return v.length == 0 ? "0" : v
311
+        var v = this.getValueStr('conductivity', 'conductivity')
312
+        return v.length == 0 ? '0' : v
314 313
       },
315 314
       dialyzer_perfusion_apparatus: function() {
316
-        return this.getValueStr("dialyzer_perfusion_apparatus", "dialyzer_perfusion_apparatus")
315
+        return this.getValueStr('dialyzer_perfusion_apparatus', 'dialyzer_perfusion_apparatus')
317 316
       },
318 317
       note: function() {
319
-        return this.getValueStr("remark", "remark")
320
-      },body_fluid:function () {
321
-        var id =  this.getValueStr("body_fluid", "body_fluid")
322
-        if(id == 0){
323
-          return ""
318
+        return this.getValueStr('remark', 'remark')
319
+      }, body_fluid: function() {
320
+        var id = this.getValueStr('body_fluid', 'body_fluid')
321
+        if (id == 0) {
322
+          return ''
324 323
         }
325
-        var bodyFluidOptions = this.$store.getters.body_fluid;
326
-        for (let i = 0; i <bodyFluidOptions.length; i++){
327
-          if(bodyFluidOptions[i].id == id){
324
+        var bodyFluidOptions = this.$store.getters.body_fluid
325
+        for (let i = 0; i < bodyFluidOptions.length; i++) {
326
+          if (bodyFluidOptions[i].id == id) {
328 327
             return bodyFluidOptions[i].name
329 328
           }
330 329
         }
331
-      },special_medicine:function () {
332
-        var id =  this.getValueStr("special_medicine", "special_medicine")
333
-        if(id == 0){
334
-          return ""
330
+      }, special_medicine: function() {
331
+        var id = this.getValueStr('special_medicine', 'special_medicine')
332
+        if (id == 0) {
333
+          return ''
335 334
         }
336
-        var special_medicine = this.$store.getters.special_medicine;
337
-        for (let i = 0; i <special_medicine.length; i++){
338
-          if(special_medicine[i].id == id){
335
+        var special_medicine = this.$store.getters.special_medicine
336
+        for (let i = 0; i < special_medicine.length; i++) {
337
+          if (special_medicine[i].id == id) {
339 338
             return special_medicine[i].name
340 339
           }
341 340
         }
342
-      },special_medicine_other:function () {
343
-        return this.getValueStr("special_medicine_other", "special_medicine_other")
344
-      },blood_access:function () {
345
-        var id =  this.getValueStr("blood_access", "blood_access")
346
-        if(id == 0){
347
-          return ""
341
+      }, special_medicine_other: function() {
342
+        return this.getValueStr('special_medicine_other', 'special_medicine_other')
343
+      }, blood_access: function() {
344
+        var id = this.getValueStr('blood_access', 'blood_access')
345
+        if (id == 0) {
346
+          return ''
348 347
         }
349
-        var blood_access = this.$store.getters.blood_access_internal_fistula;
350
-        for (let i = 0; i <blood_access.length; i++){
351
-          if(blood_access[i].id == id){
348
+        var blood_access = this.$store.getters.blood_access_internal_fistula
349
+        for (let i = 0; i < blood_access.length; i++) {
350
+          if (blood_access[i].id == id) {
352 351
             return blood_access[i].name
353 352
           }
354 353
         }
355
-      },displace_liqui:function () {
356
-        var id =  this.getValueStr("displace_liqui_part", "displace_liqui_part")
357
-        var displace_liqui_value =  this.getValueStr("displace_liqui_value", "displace_liqui_value")
358
-        var displace_liqui_part = ""
359
-        var displace_liqui = this.$store.getters.displace_liqui;
360
-        for (let i = 0; i <displace_liqui.length; i++){
361
-          if(displace_liqui[i].id == id){
354
+      }, displace_liqui: function() {
355
+        var id = this.getValueStr('displace_liqui_part', 'displace_liqui_part')
356
+        var displace_liqui_value = this.getValueStr('displace_liqui_value', 'displace_liqui_value')
357
+        var displace_liqui_part = ''
358
+        var displace_liqui = this.$store.getters.displace_liqui
359
+        for (let i = 0; i < displace_liqui.length; i++) {
360
+          if (displace_liqui[i].id == id) {
362 361
             displace_liqui_part = displace_liqui[i].name
363 362
           }
364 363
         }
365
-        return displace_liqui_part + displace_liqui_value+"L"
366
-
367
-      },ultrafiltration:function () {
368
-        var v = this.getValueStr("ultrafiltration", "ultrafiltration")
369
-        return v.length == 0 ? "0" : v
370
-      },body_fluid_other:function() {
371
-        return this.getValueStr("body_fluid_other", "body_fluid_others")
372
-
373
-      },target_ktv:function () {
374
-        var v = this.getValueStr("target_ktv", "target_ktv")
375
-        return v.length == 0 ? "0" : v
364
+        return displace_liqui_part + displace_liqui_value + 'L'
365
+      }, ultrafiltration: function() {
366
+        var v = this.getValueStr('ultrafiltration', 'ultrafiltration')
367
+        return v.length == 0 ? '0' : v
368
+      }, body_fluid_other: function() {
369
+        return this.getValueStr('body_fluid_other', 'body_fluid_others')
370
+      }, target_ktv: function() {
371
+        var v = this.getValueStr('target_ktv', 'target_ktv')
372
+        return v.length == 0 ? '0' : v
376 373
       }
377 374
     },
378 375
     created() {
379 376
       var perfusion_apparatus = this.$store.getters.perfusion_apparatus
380 377
       var map = {}
381 378
       for (let index = 0; index < perfusion_apparatus.length; index++) {
382
-        const p = perfusion_apparatus[index];
379
+        const p = perfusion_apparatus[index]
383 380
         map[p.id] = p
384 381
       }
385 382
       this.perfusion_apparatus_map = map
386 383
 
387
-      var dialysateFormulationOptions = getDataConfig('hemodialysis','dialysate_formulation');
388
-      for(var index in dialysateFormulationOptions){
389
-        this.dialysateFormulationMap[dialysateFormulationOptions[index].id] = dialysateFormulationOptions[index];
384
+      var dialysateFormulationOptions = getDataConfig('hemodialysis', 'dialysate_formulation')
385
+      for (var index in dialysateFormulationOptions) {
386
+        this.dialysateFormulationMap[dialysateFormulationOptions[index].id] = dialysateFormulationOptions[index]
390 387
       }
388
+      console.log('透析处方', this.prescription)
391 389
     },
392 390
     methods: {
393 391
       getValueStr(pkey, skey) {
394
-        if ((this.prescription == null || this.prescription.id == "") && (this.solution == null || this.solution.id == "")) {
395
-          return ""
396
-        } else if (this.prescription != null && this.prescription.id != "") {
392
+        if ((this.prescription == null || this.prescription.id == '') && (this.solution == null || this.solution.id == '')) {
393
+          return ''
394
+        } else if (this.prescription != null && this.prescription.id != '') {
397 395
           if (this.prescription[pkey] == null || this.prescription[pkey] == undefined) {
398
-            return ""
396
+            return ''
399 397
           }
400
-          return this.prescription[pkey] + ""
398
+          return this.prescription[pkey] + ''
401 399
         } else {
402 400
           if (this.solution[skey] == null || this.solution[skey] == undefined) {
403
-            return ""
401
+            return ''
404 402
           }
405
-          return this.solution[skey] + ""
403
+          return this.solution[skey] + ''
406 404
         }
407
-      },isShow(name){
405
+      }, isShow(name) {
408 406
         var filedList = store.getters.xt_user.fileds
409
-        for (let i = 0; i < filedList.length; i++){
410
-          if(filedList[i].module == 1 && filedList[i].filed_name_cn == name&&filedList[i].is_show == 1){
407
+        for (let i = 0; i < filedList.length; i++) {
408
+          if (filedList[i].module == 1 && filedList[i].filed_name_cn == name && filedList[i].is_show == 1) {
411 409
             return true
412 410
           }
413 411
         }
414 412
         return false
415
-      },
413
+      }
416 414
     }
417
-  };
415
+  }
418 416
 </script>
419 417
 
420 418
 <style rel="stylesheet/scss" lang="scss" scoped>

+ 245 - 252
src/xt_pages/dialysis/details/NavIgation.vue 查看文件

@@ -87,273 +87,266 @@ import doubleCheckDialog from './dialog/doubleCheckDialog'
87 87
 import AssessmentAfterDislysis from './dialog/AssessmentAfterDislysis'
88 88
 import acceptsTreatmentDialog from './dialog/acceptsTreatmentDialog'
89 89
 import assessmentBeforeDislysisDialog from './dialog/assessmentBeforeDislysisDialog'
90
-import MonitorDialog from "./dialog/monitor_dialog"
91
-import DoctorAdviceDialog from "./dialog/DoctorAdviceDialog"
92
-import treatmentSummaryDialog from "./dialog/treatmentSummaryDialog"
93
-import ComputerDialog from "./dialog/computer_dialog"
94
-import FinishDialog from "./dialog/finish_dialog"
90
+import MonitorDialog from './dialog/monitor_dialog'
91
+import DoctorAdviceDialog from './dialog/DoctorAdviceDialog'
92
+import treatmentSummaryDialog from './dialog/treatmentSummaryDialog'
93
+import ComputerDialog from './dialog/computer_dialog'
94
+import FinishDialog from './dialog/finish_dialog'
95 95
 
96 96
 export default {
97
-    name: 'NavIgation',
98
-    components: {
99
-        dialysisPrescriptionDialog,
100
-        doubleCheckDialog,
101
-        AssessmentAfterDislysis,
102
-        acceptsTreatmentDialog,
103
-        assessmentBeforeDislysisDialog,
104
-        treatmentSummaryDialog,
105
-        MonitorDialog,
106
-        DoctorAdviceDialog,
107
-        ComputerDialog,
108
-        FinishDialog
109
-    },
110
-    data() {
111
-      return {
97
+  name: 'NavIgation',
98
+  components: {
99
+    dialysisPrescriptionDialog,
100
+    doubleCheckDialog,
101
+    AssessmentAfterDislysis,
102
+    acceptsTreatmentDialog,
103
+    assessmentBeforeDislysisDialog,
104
+    treatmentSummaryDialog,
105
+    MonitorDialog,
106
+    DoctorAdviceDialog,
107
+    ComputerDialog,
108
+    FinishDialog
109
+  },
110
+  data() {
111
+    return {
112 112
 
113
+    }
114
+  },
115
+  props: {
116
+    patient: { // 患者信息
117
+      type: Object,
118
+      default: () => {
119
+        return { id: 0 }
120
+      }
121
+    },
122
+    schedual: { // 患者排班信息
123
+      type: Object,
124
+      default: () => {
125
+        return { id: 0 }
126
+      }
127
+    },
128
+    prescription: { // 透析处方
129
+      type: Object,
130
+      default: () => {
131
+        return { id: 0 }
132
+      }
133
+    },
134
+    solution: { // 透析方案
135
+      type: Object,
136
+      default: () => {
137
+        return { id: 0 }
138
+      }
139
+    },
140
+    receiver_treatment_access: { // 接诊评估
141
+      type: Object,
142
+      default: () => {
143
+        return { id: 0 }
144
+      }
145
+    },
146
+    predialysis_evaluation: { // 透前评估
147
+      type: Object,
148
+      default: () => {
149
+        return { id: 0 }
150
+      }
151
+    },
152
+    doctor_advices: { // 临时医嘱
153
+      type: Array,
154
+      default: () => {
155
+        return []
156
+      }
157
+    },
158
+    double_check: { // 双人核对
159
+      type: Object,
160
+      default: () => {
161
+        return { id: 0 }
162
+      }
163
+    },
164
+    assessment_after_dislysis: { // 透后评估
165
+      type: Object,
166
+      default: () => {
167
+        return { id: 0 }
168
+      }
169
+    },
170
+    treatment_summary: { // 治疗小结
171
+      type: Object,
172
+      default: () => {
173
+        return { id: 0 }
174
+      }
175
+    },
176
+    monitor_records: { // 透析监测
177
+      type: Array,
178
+      default: () => {
179
+        return []
180
+      }
181
+    },
182
+    dialysis_order: { // 透析记录
183
+      type: Object,
184
+      default: () => {
185
+        return { id: 0 }
186
+      }
187
+    },
188
+    admin_users: { // 系统用户列表
189
+      type: Array,
190
+      default: () => {
191
+        return []
192
+      }
193
+    },
194
+    devices: { // 设备
195
+      type: Array,
196
+      default: () => {
197
+        return []
198
+      }
199
+    },
200
+    device_numbers: { // 床位
201
+      type: Array,
202
+      default: () => {
203
+        return []
113 204
       }
114 205
     },
115
-    props: {
116
-      patient: { // 患者信息
117
-        type: Object,
118
-        default: () => {
119
-          return {id: 0}
120
-        }
121
-      },
122
-      schedual: { // 患者排班信息
123
-        type: Object,
124
-        default: () => {
125
-          return {id: 0}
126
-        }
127
-      },
128
-      prescription: { // 透析处方
129
-        type: Object,
130
-        default: () => {
131
-          return {id: 0}
132
-        }
133
-      },
134
-      solution: { // 透析方案
135
-        type: Object,
136
-        default: () => {
137
-          return {id: 0}
138
-        }
139
-      },
140
-      receiver_treatment_access: { // 接诊评估
141
-        type: Object,
142
-        default: () => {
143
-          return {id: 0}
144
-        }
145
-      },
146
-      predialysis_evaluation: { // 透前评估
147
-        type: Object,
148
-        default: () => {
149
-          return {id: 0}
150
-        }
151
-      },
152
-      doctor_advices: { // 临时医嘱
153
-        type: Array,
154
-        default: () => {
155
-          return []
156
-        }
157
-      },
158
-      double_check: { // 双人核对
159
-        type: Object,
160
-        default: () => {
161
-          return {id: 0}
162
-        }
163
-      },
164
-      assessment_after_dislysis: { // 透后评估
165
-        type: Object,
166
-        default: () => {
167
-          return {id: 0}
168
-        }
169
-      },
170
-      treatment_summary: { // 治疗小结
171
-        type: Object,
172
-        default: () => {
173
-          return {id: 0}
174
-        }
175
-      },
176
-      monitor_records: { // 透析监测
177
-        type: Array,
178
-        default: () => {
179
-          return []
180
-        }
181
-      },
182
-      dialysis_order: { // 透析记录
183
-        type: Object,
184
-        default: () => {
185
-          return {id: 0}
186
-        }
187
-      },
188
-      admin_users: { //系统用户列表
189
-        type: Array,
190
-        default: () => {
191
-          return []
192
-        }
193
-      },
194
-      devices: { // 设备
195
-        type: Array,
196
-        default: () => {
197
-          return []
198
-        }
199
-      },
200
-      device_numbers: { // 床位
201
-        type: Array,
202
-        default: () => {
203
-          return []
204
-        }
205
-      },
206
-
207
-
208
-      niprocart_info: {
209
-        type: Array,
210
-        default: () => {
211
-          return []
212
-        }
213
-      },
214
-
215
-      jms_info: {
216
-        type: Array,
217
-        default: () => {
218
-          return []
219
-        }
220
-      },
221
-
222
-
223
-      fistula_needle_set_info: {
224
-        type: Array,
225
-        default: () => {
226
-          return []
227
-        }
228
-      },
229
-
230
-
231
-      fistula_needle_set_16_info: {
232
-        type: Array,
233
-        default: () => {
234
-          return []
235
-        }
236
-      },
237 206
 
207
+    niprocart_info: {
208
+      type: Array,
209
+      default: () => {
210
+        return []
211
+      }
212
+    },
238 213
 
239
-      hemoperfusion_info: {
240
-        type: Array,
241
-        default: () => {
242
-          return []
243
-        }
244
-      },
214
+    jms_info: {
215
+      type: Array,
216
+      default: () => {
217
+        return []
218
+      }
219
+    },
245 220
 
246
-      dialyser_sterilised_info: {
247
-        type: Array,
248
-        default: () => {
249
-          return []
250
-        }
251
-      },
221
+    fistula_needle_set_info: {
222
+      type: Array,
223
+      default: () => {
224
+        return []
225
+      }
226
+    },
252 227
 
253
-      filtryzer_info: {
254
-        type: Array,
255
-        default: () => {
256
-          return []
257
-        }
258
-      },
228
+    fistula_needle_set_16_info: {
229
+      type: Array,
230
+      default: () => {
231
+        return []
232
+      }
233
+    },
259 234
 
260
-      dialyzers_info: {
261
-        type: Array,
262
-        default: () => {
263
-          return []
264
-        }
265
-      },
266
-      injector_info: {
267
-        type: Array,
268
-        default: () => {
269
-          return []
270
-        }
271
-      },
272
-      bloodlines_info: {
273
-        type: Array,
274
-        default: () => {
275
-          return []
276
-        }
277
-      },
278
-      tubingHemodialysis_info: {
279
-        type: Array,
280
-        default: () => {
281
-          return []
282
-        }
283
-      },
284
-      safe_package_info: {
285
-        type: Array,
286
-        default: () => {
287
-          return []
288
-        }
289
-      },
290
-      aliquid_info: {
291
-        type: Array,
292
-        default: () => {
293
-          return []
294
-        }
295
-      },
296
-      config: {
297
-        type: Object,
298
-        default: () => {
299
-          return {id: 0}
300
-        }
301
-      },
235
+    hemoperfusion_info: {
236
+      type: Array,
237
+      default: () => {
238
+        return []
239
+      }
240
+    },
302 241
 
242
+    dialyser_sterilised_info: {
243
+      type: Array,
244
+      default: () => {
245
+        return []
246
+      }
247
+    },
303 248
 
249
+    filtryzer_info: {
250
+      type: Array,
251
+      default: () => {
252
+        return []
253
+      }
254
+    },
304 255
 
256
+    dialyzers_info: {
257
+      type: Array,
258
+      default: () => {
259
+        return []
260
+      }
261
+    },
262
+    injector_info: {
263
+      type: Array,
264
+      default: () => {
265
+        return []
266
+      }
267
+    },
268
+    bloodlines_info: {
269
+      type: Array,
270
+      default: () => {
271
+        return []
272
+      }
273
+    },
274
+    tubingHemodialysis_info: {
275
+      type: Array,
276
+      default: () => {
277
+        return []
278
+      }
279
+    },
280
+    safe_package_info: {
281
+      type: Array,
282
+      default: () => {
283
+        return []
284
+      }
285
+    },
286
+    aliquid_info: {
287
+      type: Array,
288
+      default: () => {
289
+        return []
290
+      }
291
+    },
292
+    config: {
293
+      type: Object,
294
+      default: () => {
295
+        return { id: 0 }
296
+      }
297
+    },
305 298
 
306
-      admin_user_map: { // {user_id: admin_user object}
307
-        type: Object,
308
-        default: () => {
309
-          return {}
310
-        }
311
-      },
312
-      device_map: { // {device_id: device object}
313
-        type: Object,
314
-        default: () => {
315
-          return {}
316
-        }
317
-      },
318
-      device_number_map: { // {device_number_id: device_number object}
319
-        type: Object,
320
-        default: () => {
321
-          return {}
322
-        }
323
-      },
324
-    },
325
-    methods:{
326
-        showMonitorDialog: function() {
327
-            this.$refs.monitor_dialog.show()
328
-        },
329
-        showAssessmentAfterDialog:function(){
330
-            this.$refs.assessment_after_dislysis.show()
331
-        },
332
-        showDoctorAdviceDialog:function(){
333
-            this.$refs.doctor_advice.show();
334
-        },
335
-        showComputerDialog: function() {
336
-            this.$refs.computer_dialog.show()
337
-        },
338
-        showFinishDialog: function() {
339
-            this.$refs.finish_dialog.show()
340
-        },
341
-        showPrescription: function () {
342
-            this.$refs.prescription.show();
343
-        },
344
-        showAccepts:function () {
345
-            this.$refs.accepts.show();
346
-        },
347
-        showAssessmentBefore:function () {
348
-            this.$refs.assessmentBefore.show();
349
-        },
350
-        showDoubleCheck:function () {
351
-            this.$refs.doubleCheck.show();
352
-        },
353
-        showrTeatmentSummary:function () {
354
-            this.$refs.treatmentSummary.show();
355
-        }
299
+    admin_user_map: { // {user_id: admin_user object}
300
+      type: Object,
301
+      default: () => {
302
+        return {}
303
+      }
304
+    },
305
+    device_map: { // {device_id: device object}
306
+      type: Object,
307
+      default: () => {
308
+        return {}
309
+      }
310
+    },
311
+    device_number_map: { // {device_number_id: device_number object}
312
+      type: Object,
313
+      default: () => {
314
+        return {}
315
+      }
316
+    }
317
+  },
318
+  methods: {
319
+    showMonitorDialog: function() {
320
+      this.$refs.monitor_dialog.show()
321
+    },
322
+    showAssessmentAfterDialog: function() {
323
+      this.$refs.assessment_after_dislysis.show()
324
+    },
325
+    showDoctorAdviceDialog: function() {
326
+      this.$refs.doctor_advice.show()
327
+    },
328
+    showComputerDialog: function() {
329
+      this.$refs.computer_dialog.show()
330
+    },
331
+    showFinishDialog: function() {
332
+      this.$refs.finish_dialog.show()
333
+    },
334
+    showPrescription: function() {
335
+      this.$refs.prescription.show()
336
+    },
337
+    showAccepts: function() {
338
+      this.$refs.accepts.show()
339
+    },
340
+    showAssessmentBefore: function() {
341
+      this.$refs.assessmentBefore.show()
342
+    },
343
+    showDoubleCheck: function() {
344
+      this.$refs.doubleCheck.show()
345
+    },
346
+    showrTeatmentSummary: function() {
347
+      this.$refs.treatmentSummary.show()
356 348
     }
349
+  }
357 350
 }
358 351
 </script>
359 352
 <style style="stylesheet/scss" lang="scss" scoped>

+ 278 - 214
src/xt_pages/dialysis/details/assessmentAfter.vue 查看文件

@@ -19,7 +19,7 @@
19 19
           <span class="unit" v-if="actual_ultrafiltration!='0'">ml</span>
20 20
         </li>
21 21
         <li v-if="isShow('凝血')">
22
-          <label>凝血 : </label>
22
+          <label>透析器凝血 : </label>
23 23
           <span class="content">{{ cruor }}</span>
24 24
         </li>
25 25
         <li v-if="isShow('内瘘')">
@@ -187,179 +187,250 @@
187 187
 </template>
188 188
 
189 189
 <script>
190
-  import store from "@/store";
190
+  import store from '@/store'
191 191
 
192
-  export default {
192
+export default {
193 193
   name: 'DialysisPrescription',
194 194
   data() {
195
-    return {
196
-      title: '透后评估 '
197
-    }
195
+      return {
196
+        title: '透后评估 '
197
+      }
198 198
   },
199 199
   props: {
200
-    record: {
201
-      type: Object
202
-    }
200
+      record: {
201
+        type: Object
202
+      }
203 203
   },
204 204
   computed: {
205
-    weight_after: function() {
206
-      if (this.record.id == 0) {
207
-        return '-'
208
-      }
209
-      return this.record.weight_after
210
-    },
211
-    systolic_blood_pressure: function() {
212
-      if (this.record.id == 0) {
213
-        return '-'
205
+      weight_after: function() {
206
+        if (this.record.id == 0) {
207
+          return '-'
208
+        }
209
+        return this.record.weight_after
210
+      },
211
+      systolic_blood_pressure: function() {
212
+        if (this.record.id == 0) {
213
+          return '-'
214
+        }
215
+        return this.record.systolic_blood_pressure
216
+      },
217
+      actual_ultrafiltration: function() {
218
+        if (this.record.id == 0) {
219
+          return '-'
220
+        }
221
+        return this.record.actual_ultrafiltration
222
+      },
223
+      cruor: function() {
224
+        if (this.record.id == 0) {
225
+          return '-'
226
+        }
227
+        return this.record.cruor
228
+      },
229
+      internal_fistula: function() {
230
+        if (this.record == null || this.record.id == '') {
231
+          return '-'
232
+        }
233
+        return this.record.internal_fistula
234
+      },
235
+      weight_loss: function() {
236
+        if (this.record.id == 0) {
237
+          return '-'
238
+        }
239
+        return this.record.weight_loss
240
+      },
241
+      inpatient_department: function() {
242
+        if (this.record.id == 0) {
243
+          return '-'
244
+        }
245
+        return this.record.inpatient_department
246
+      },
247
+      patient_gose: function() {
248
+        if (this.record.id == 0) {
249
+          return 0
250
+        }
251
+        return this.record.patient_gose
252
+      },
253
+      diastolic_blood_pressure: function() {
254
+        if (this.record.id == 0) {
255
+          return '-'
256
+        }
257
+        return this.record.diastolic_blood_pressure
258
+      },
259
+      actual_displacement: function() {
260
+        if (this.record.id == 0) {
261
+          return '-'
262
+        }
263
+        return this.record.actual_displacement
264
+      },
265
+      symptom_after_dialysis: function() {
266
+        if (this.record.id == 0) {
267
+          return '-'
268
+        }
269
+        return this.record.symptom_after_dialysis
270
+      },
271
+      blood_access_part: function() {
272
+        if (this.record.id == 0) {
273
+          return '-'
274
+        }
275
+        const vascular_access = this.$store.getters.vascular_access
276
+        const valen = vascular_access.length
277
+        let name = '-'
278
+
279
+        for (var index in vascular_access) {
280
+          if (vascular_access[index].id == this.record.blood_access_part_id) {
281
+            name = vascular_access[index].name
282
+            break
283
+          }
284
+        }
285
+        return name
286
+      },
287
+      puncture_point_oozing_blood_name: function() {
288
+        if (this.record.id == 0) {
289
+          return '-'
290
+        }
291
+        switch (this.record.puncture_point_oozing_blood) {
292
+          case 1:
293
+            return '有'
294
+            break
295
+          case 2:
296
+            return '无'
297
+            break
298
+
299
+          default:
300
+            return '-'
301
+            break
302
+        }
303
+      }, eat_name: function() {
304
+        if (this.record == null || this.record.id == '') {
305
+          return '-'
306
+        }
307
+        switch (this.record.is_eat) {
308
+          case 1:
309
+            return '有'
310
+            break
311
+          case 2:
312
+            return '无'
313
+            break
314
+
315
+          default:
316
+            return '-'
317
+            break
318
+        }
319
+      },
320
+      patient_gose_name: function() {
321
+        if (this.record.id == 0) {
322
+          return '-'
323
+        }
324
+        switch (this.record.patient_gose) {
325
+          case 1:
326
+            return '离院'
327
+            break
328
+          case 2:
329
+            return '留观'
330
+            break
331
+          case 3:
332
+            return '住院'
333
+            break
334
+
335
+          default:
336
+            return '-'
337
+            break
338
+        }
339
+      },
340
+      blood_access_opera: function() {
341
+        if (this.record.id == 0) {
342
+          return '-'
343
+        }
344
+        const vascular_access = this.$store.getters.vascular_access_desc
345
+        let name = '-'
346
+        for (var index in vascular_access) {
347
+          if (vascular_access[index].id == this.record.blood_access_part_opera_id) {
348
+            name = vascular_access[index].name
349
+            break
350
+          }
351
+        }
352
+        return name
353
+      },
354
+      catheter: function() {
355
+        if (this.record.id == 0) {
356
+          return '-'
357
+        }
358
+        return this.record.catheter
359
+      },
360
+      puncture_point_haematoma_name: function() {
361
+        if (this.record.id == 0)
362
+          {return}
214 363
       }
215
-      return this.record.systolic_blood_pressure
216
-    },
217
-    actual_ultrafiltration: function() {
364
+    }, breathing_rate: function() {
218 365
       if (this.record.id == 0) {
219 366
         return '-'
220 367
       }
221
-      return this.record.actual_ultrafiltration
368
+      return this.record.breathing_rate
222 369
     },
223
-    cruor: function() {
370
+    temperature: function() {
224 371
       if (this.record.id == 0) {
225 372
         return '-'
226 373
       }
227
-      return this.record.cruor
228
-    },
229
-    internal_fistula: function() {
230
-      if (this.record == null || this.record.id == '') {
231
-        return '-'
232
-      }
233
-      return this.record.internal_fistula
374
+      return this.record.temperature
234 375
     },
235
-    weight_loss: function() {
376
+    pulse_frequency: function() {
236 377
       if (this.record.id == 0) {
237 378
         return '-'
238 379
       }
239
-      return this.record.weight_loss
380
+      return this.record.pulse_frequency
240 381
     },
241
-    inpatient_department: function() {
382
+    actual_treatment_hour: function() {
242 383
       if (this.record.id == 0) {
243 384
         return '-'
244 385
       }
245
-      return this.record.inpatient_department
246
-    },
247
-    patient_gose: function() {
248
-      if (this.record.id == 0) {
249
-        return 0
250
-      }
251
-      return this.record.patient_gose
386
+      return this.record.actual_treatment_hour
252 387
     },
253
-    diastolic_blood_pressure: function() {
388
+    actual_treatment_minute: function() {
254 389
       if (this.record.id == 0) {
255 390
         return '-'
256 391
       }
257
-      return this.record.diastolic_blood_pressure
392
+      return this.record.actual_treatment_minute
258 393
     },
259
-    actual_displacement: function() {
394
+    dialysis_intakes_feed: function() {
260 395
       if (this.record.id == 0) {
261 396
         return '-'
262 397
       }
263
-      return this.record.actual_displacement
398
+      return this.record.dialysis_intakes
264 399
     },
265
-    symptom_after_dialysis: function() {
400
+    observation_content_other: function() {
266 401
       if (this.record.id == 0) {
267 402
         return '-'
268 403
       }
269
-      return this.record.symptom_after_dialysis
404
+      return this.record.observation_content_other
270 405
     },
271
-    blood_access_part: function() {
406
+    observation_content: function() {
272 407
       if (this.record.id == 0) {
273 408
         return '-'
274 409
       }
275
-      const vascular_access = this.$store.getters.vascular_access
276
-      const valen = vascular_access.length
277
-      let name = '-'
278
-
279
-      for (var index in vascular_access) {
280
-        if (vascular_access[index].id == this.record.blood_access_part_id) {
281
-          name = vascular_access[index].name
282
-          break
283
-        }
284
-      }
285
-      return name
410
+      return this.record.observation_content
286 411
     },
287
-    puncture_point_oozing_blood_name: function() {
412
+    complication: function() {
288 413
       if (this.record.id == 0) {
289 414
         return '-'
290 415
       }
291
-      switch (this.record.puncture_point_oozing_blood) {
292
-        case 1:
293
-          return '有'
294
-          break
295
-        case 2:
296
-          return '无'
297
-          break
298
-
299
-        default:
300
-          return '-'
301
-          break
302
-      }
303
-    },eat_name:function(){
304
-      if (this.record == null || this.record.id == "") {
305
-        return "-"
306
-      }
307
-      switch (this.record.is_eat) {
308
-        case 1:
309
-          return '有'
310
-          break;
311
-        case 2:
312
-          return '无'
313
-          break
314
-
315
-        default:
316
-          return '-'
317
-          break;
318
-      }
416
+      return this.record.complication
319 417
     },
320
-    patient_gose_name: function() {
418
+    internal_fistula_tremor_ac_name: function() {
321 419
       if (this.record.id == 0) {
322 420
         return '-'
323 421
       }
324
-      switch (this.record.patient_gose) {
422
+      switch (this.record.internal_fistula_tremor_ac) {
325 423
         case 1:
326
-          return '离院'
424
+          return '存在'
327 425
           break
328 426
         case 2:
329
-          return '留观'
427
+          return '减弱'
330 428
           break
331 429
         case 3:
332
-          return '住院'
430
+          return '无'
333 431
           break
334
-
335 432
         default:
336 433
           return '-'
337
-          break
338
-      }
339
-    },
340
-    blood_access_opera: function() {
341
-      if (this.record.id == 0) {
342
-        return '-'
343
-      }
344
-      const vascular_access = this.$store.getters.vascular_access_desc
345
-      let name = '-'
346
-      for (var index in vascular_access) {
347
-        if (vascular_access[index].id == this.record.blood_access_part_opera_id) {
348
-          name = vascular_access[index].name
349
-          break
350
-        }
351
-      }
352
-      return name
353
-    },
354
-    catheter: function() {
355
-      if (this.record.id == 0) {
356
-        return '-'
357
-      }
358
-      return this.record.catheter
359
-    },
360
-    puncture_point_haematoma_name: function() {
361
-      if (this.record.id == 0) {
362
-        return '-'
363 434
       }
364 435
       switch (this.record.puncture_point_haematoma) {
365 436
         case 1:
@@ -372,12 +443,6 @@
372 443
           return '-'
373 444
           break
374 445
       }
375
-    },breathing_rate:function(){
376
-      if (this.record.id == 0) {
377
-        return '-'
378
-      }
379
-      return this.record.breathing_rate
380
-
381 446
     },
382 447
     temperature: function() {
383 448
       if (this.record.id == 0) {
@@ -452,106 +517,105 @@
452 517
         return ''
453 518
       }
454 519
       return this.record.remark
455
-    },in_advance_minute:function () {
456
-    if (this.record == null || this.record.id == "") {
457
-      return ""
458
-    }
459
-    return this.record.in_advance_minute
460
-  },in_advance_reason:function () {
461
-    if (this.record == null || this.record.id == "") {
462
-      return ""
463
-    }
464
-    return this.record.in_advance_reason + ","+this.record.in_advance_reason_other
465
-  },hemostasis_minute:function () {
466
-    if (this.record == null || this.record.id == "") {
467
-      return ""
468
-    }
520
+    },
521
+    in_advance_minute: function() {
522
+      if (this.record == null || this.record.id == '') {
523
+        return ''
524
+      }
525
+      return this.record.in_advance_minute
526
+    },
527
+    in_advance_reason: function() {
528
+      if (this.record == null || this.record.id == '') {
529
+        return ''
530
+      }
531
+      return this.record.in_advance_reason + ',' + this.record.in_advance_reason_other
532
+    },
533
+    hemostasis_minute: function() {
534
+      if (this.record == null || this.record.id == '') {
535
+        return ''
536
+      }
469 537
 
470
-    return this.record.hemostasis_minute
471
-  },in_advance_reason_other:function () {
472
-    if (this.record == null || this.record.id == "") {
473
-      return ""
474
-    }
475
-    return this.record.in_advance_reason_other
476
-  }
477
-  },
538
+      return this.record.hemostasis_minute
539
+    },
540
+    in_advance_reason_other: function() {
541
+      if (this.record == null || this.record.id == '') {
542
+        return ''
543
+      }
544
+      return this.record.in_advance_reason_other
545
+    },
478 546
   methods: {
479
-    getOpera:function (id) {
480
-      var hemostasis_opera = this.$store.getters.hemostasis_opera;
481
-      var hemostasisOperaName = "";
482
-      for (let i = 0; i < hemostasis_opera.length; i++){
483
-        if(hemostasis_opera[i].id == id){
484
-          hemostasisOperaName =    hemostasis_opera[i].name
547
+      getOpera: function(id) {
548
+        var hemostasis_opera = this.$store.getters.hemostasis_opera
549
+        var hemostasisOperaName = ''
550
+        for (let i = 0; i < hemostasis_opera.length; i++) {
551
+          if (hemostasis_opera[i].id == id) {
552
+            hemostasisOperaName = hemostasis_opera[i].name
553
+          }
485 554
         }
486
-      }
487
-      return hemostasisOperaName
488
-
489
-    },getTremorNoise:function (id) {
490
-      var tremor_noise = this.$store.getters.tremor_noise;
491
-      var tremorNoiseName = "";
492
-      for (let i = 0; i < tremor_noise.length; i++){
493
-        if(tremor_noise[i].id == id){
494
-          tremorNoiseName =    tremor_noise[i].name
555
+        return hemostasisOperaName
556
+      }, getTremorNoise: function(id) {
557
+        var tremor_noise = this.$store.getters.tremor_noise
558
+        var tremorNoiseName = ''
559
+        for (let i = 0; i < tremor_noise.length; i++) {
560
+          if (tremor_noise[i].id == id) {
561
+            tremorNoiseName = tremor_noise[i].name
562
+          }
495 563
         }
496
-      }
497
-      return tremorNoiseName
498
-    },getDisequilibriumSyndrome:function (id) {
499
-      var disequilibrium_syndrome = this.$store.getters.disequilibrium_syndrome;
500
-      var disequilibriumSyndromeName = "";
501
-      for (let i = 0; i < disequilibrium_syndrome.length; i++){
502
-        if(disequilibrium_syndrome[i].id == id){
503
-          disequilibriumSyndromeName =    disequilibrium_syndrome[i].name
564
+        return tremorNoiseName
565
+      }, getDisequilibriumSyndrome: function(id) {
566
+        var disequilibrium_syndrome = this.$store.getters.disequilibrium_syndrome
567
+        var disequilibriumSyndromeName = ''
568
+        for (let i = 0; i < disequilibrium_syndrome.length; i++) {
569
+          if (disequilibrium_syndrome[i].id == id) {
570
+            disequilibriumSyndromeName = disequilibrium_syndrome[i].name
571
+          }
504 572
         }
505
-      }
506
-      return disequilibriumSyndromeName
507
-
508
-    },getDisequilibriumSyndromeOptionName:function (id) {
509
-      var disequilibrium_syndrome_option = this.$store.getters.disequilibrium_syndrome_option;
510
-      var disequilibriumSyndromeOptionName = "";
511
-      for (let i = 0; i < disequilibrium_syndrome_option.length; i++) {
512
-        if (disequilibrium_syndrome_option[i].id == id) {
513
-          disequilibriumSyndromeOptionName = disequilibrium_syndrome_option[i].name
573
+        return disequilibriumSyndromeName
574
+      }, getDisequilibriumSyndromeOptionName: function(id) {
575
+        var disequilibrium_syndrome_option = this.$store.getters.disequilibrium_syndrome_option
576
+        var disequilibriumSyndromeOptionName = ''
577
+        for (let i = 0; i < disequilibrium_syndrome_option.length; i++) {
578
+          if (disequilibrium_syndrome_option[i].id == id) {
579
+            disequilibriumSyndromeOptionName = disequilibrium_syndrome_option[i].name
580
+          }
514 581
         }
515
-      }
516
-      return disequilibriumSyndromeOptionName
517
-    },getArterialTubeName:function (id) {
518
-      var arterial_tube = this.$store.getters.arterial_tube;
519
-      var arterialTubeName = "";
520
-      for (let i = 0; i < arterial_tube.length; i++) {
521
-        if (arterial_tube[i].id == id) {
522
-          arterialTubeName = arterial_tube[i].name
582
+        return disequilibriumSyndromeOptionName
583
+      }, getArterialTubeName: function(id) {
584
+        var arterial_tube = this.$store.getters.arterial_tube
585
+        var arterialTubeName = ''
586
+        for (let i = 0; i < arterial_tube.length; i++) {
587
+          if (arterial_tube[i].id == id) {
588
+            arterialTubeName = arterial_tube[i].name
589
+          }
523 590
         }
524
-      }
525
-      return arterialTubeName
526
-
527
-    },getIntravenousTubeName:function (id) {
528
-      var intravenous_tube = this.$store.getters.intravenous_tube;
529
-      var intravenousTubeName = "";
530
-      for (let i = 0; i < intravenous_tube.length; i++) {
531
-        if (intravenous_tube[i].id == id) {
532
-          intravenousTubeName = intravenous_tube[i].name
591
+        return arterialTubeName
592
+      }, getIntravenousTubeName: function(id) {
593
+        var intravenous_tube = this.$store.getters.intravenous_tube
594
+        var intravenousTubeName = ''
595
+        for (let i = 0; i < intravenous_tube.length; i++) {
596
+          if (intravenous_tube[i].id == id) {
597
+            intravenousTubeName = intravenous_tube[i].name
598
+          }
533 599
         }
534
-      }
535
-      return intravenousTubeName
536
-
537
-    },getDialyzer:function (id) {
538
-      var dialyzer = this.$store.getters.dialyzer;
539
-      var dialyzerName = "";
540
-      for (let i = 0; i < dialyzer.length; i++) {
541
-        if (dialyzer[i].id == id) {
542
-          dialyzerName = dialyzer[i].name
600
+        return intravenousTubeName
601
+      }, getDialyzer: function(id) {
602
+        var dialyzer = this.$store.getters.dialyzer
603
+        var dialyzerName = ''
604
+        for (let i = 0; i < dialyzer.length; i++) {
605
+          if (dialyzer[i].id == id) {
606
+            dialyzerName = dialyzer[i].name
607
+          }
543 608
         }
544
-      }
545
-      return dialyzerName
546
-    },isShow(name){
547
-      var filedList = store.getters.xt_user.fileds
548
-      for (let i = 0; i < filedList.length; i++){
549
-        if(filedList[i].module == 5 && filedList[i].filed_name_cn == name&&filedList[i].is_show == 1){
550
-          return true
609
+        return dialyzerName
610
+      }, isShow(name) {
611
+        var filedList = store.getters.xt_user.fileds
612
+        for (let i = 0; i < filedList.length; i++) {
613
+          if (filedList[i].module == 5 && filedList[i].filed_name_cn == name && filedList[i].is_show == 1) {
614
+            return true
615
+          }
551 616
         }
617
+        return false
552 618
       }
553
-      return false
554
-    },
555 619
   }
556 620
 }
557 621
 </script>

+ 10 - 16
src/xt_pages/dialysis/details/dialog/AssessmentAfterDislysis.vue 查看文件

@@ -382,9 +382,9 @@
382 382
   import MultiSelectBox from './MultiSelectBox'
383 383
   import { postAssessmentAfterDislysis } from '@/api/dialysis'
384 384
   import { uParseTime } from '@/utils/tools'
385
-  import store from "@/store";
385
+  import store from '@/store'
386 386
 
387
-  export default {
387
+export default {
388 388
     name: 'AssessmentAfterDislysis',
389 389
     props: {
390 390
       assessment_after_dislysis: { // 透后评估
@@ -464,7 +464,7 @@
464 464
           observation_content_other: '',
465 465
           remark: '',
466 466
           dialysis_order_id: 0,
467
-          is_eat:2,
467
+          is_eat: 2,
468 468
           dialysis_process: '',
469 469
           in_advance_minute: '',
470 470
           in_advance_reason: '',
@@ -477,7 +477,7 @@
477 477
           arterial_tube: '',
478 478
           intravenous_tube: '',
479 479
           dialyzer: '',
480
-          breathing_rate:'',
480
+          breathing_rate: ''
481 481
 
482 482
         }
483 483
       }
@@ -592,10 +592,6 @@
592 592
         data['observation_content_other'] = this.form.observation_content_other
593 593
         data['remark'] = this.form.remark
594 594
         data['dialysis_order_id'] = this.form.dialysis_order_id ? parseFloat(this.form.dialysis_order_id) : 0
595
-
596
-        data['breathing_rate'] = this.form.breathing_rate ? parseFloat(this.form.breathing_rate) : 0
597
-
598
-
599 595
         data['dialysis_process'] = this.form.dialysis_process ? parseFloat(this.form.dialysis_process) : 0
600 596
         data['in_advance_minute'] = this.form.in_advance_minute ? parseFloat(this.form.in_advance_minute) : 0
601 597
         data['in_advance_reason_other'] = this.form.in_advance_reason_other
@@ -611,7 +607,6 @@
611 607
 
612 608
         data['is_eat'] = this.form.is_eat ? parseFloat(this.form.is_eat) : 0
613 609
 
614
-
615 610
         postAssessmentAfterDislysis(ParamsQuery, data).then(response => {
616 611
           this.loading = false
617 612
           if (response.data.state == 0) {
@@ -747,20 +742,19 @@
747 742
 
748 743
       hide() {
749 744
         this.isVisibility = false
750
-      }, isShow(name){
745
+      }, isShow(name) {
751 746
         var filedList = store.getters.xt_user.fileds
752 747
 
753
-
754
-        for (let i = 0; i < filedList.length; i++){
755
-
756
-          if(filedList[i].module == 5 && filedList[i].filed_name_cn == name&&filedList[i].is_show == 1){
748
+        for (let i = 0; i < filedList.length; i++) {
749
+          if (filedList[i].module == 5 && filedList[i].filed_name_cn == name && filedList[i].is_show == 1) {
757 750
             return true
758 751
           }
759 752
         }
760 753
         return false
761
-      },
754
+      }
762 755
     },
763 756
     created() {
757
+      console.log('this.form', this.form)
764 758
       this.cruorOptions = getDataConfig('hemodialysis', 'cruor')
765 759
       this.symptomsOptions = getDataConfig('hemodialysis', 'symptoms')
766 760
       this.internalFistulaOptions = getDataConfig('hemodialysis', 'internal_fistula')
@@ -771,7 +765,7 @@
771 765
       this.internalFistulaTremorAcOptions = this.$store.getters.internal_fistula_tremor_ac
772 766
       this.patientGoseOptions = this.$store.getters.patient_gose
773 767
       this.observationContentOptions = this.$store.getters.observation_content
774
-
768
+  
775 769
       console.log(this.patient)
776 770
 
777 771
       var date = this.$route.query && this.$route.query.date

+ 22 - 29
src/xt_pages/dialysis/details/dialog/assessmentBeforeDislysisDialog.vue 查看文件

@@ -408,9 +408,9 @@
408 408
   import multiSelectBox from './MultiSelectBox'
409 409
   import { getDataConfig } from '@/utils/data'
410 410
   import { postAssessmentBeforeDislysis } from '@/api/dialysis'
411
-  import store from "@/store";
411
+  import store from '@/store'
412 412
 
413
-  import { uParseTime } from '@/utils/tools'
413
+import { uParseTime } from '@/utils/tools'
414 414
 
415 415
 export default {
416 416
     components: {
@@ -426,7 +426,7 @@ export default {
426 426
         last_dialysis_after: [],
427 427
         dialysis_interphase: [],
428 428
         symptom_before_dialysis: [],
429
-        blood_access_noise:[],
429
+        blood_access_noise: [],
430 430
         catheter: [],
431 431
         complication: [],
432 432
         hemorrhage: [],
@@ -434,10 +434,10 @@ export default {
434 434
         blood_access_part_opera: [],
435 435
         internal_fistula: [],
436 436
         internal_fistula_skin: [],
437
-        puncture_method:[],
437
+        puncture_method: [],
438 438
         isVisibiltyForCruorDialog: false,
439 439
         assessmentBeforeDislysis: {
440
-          puncture_needle:'',
440
+          puncture_needle: '',
441 441
           catheter_bend: '',
442 442
           internal_fistula_skin: '',
443 443
           weight_before: '',
@@ -459,12 +459,12 @@ export default {
459 459
           is_hemorrhage: '',
460 460
           hemorrhage: '',
461 461
           hemorrhage_other: '',
462
-          puncture_method:'',
463
-          breathing_rate:'',
462
+          puncture_method: '',
463
+          breathing_rate: '',
464 464
           dialysis_count: '',
465 465
           emergency_treatment: '',
466 466
           emergency_treatment_other: '',
467
-          ductus_arantii_other:'',
467
+          ductus_arantii_other: '',
468 468
           ductus_arantii: '',
469 469
           venous_catheterization_part_other: '',
470 470
           venous_catheterization_part: '',
@@ -473,11 +473,11 @@ export default {
473 473
           blood_access_noise: '',
474 474
           internal_fistula_other: '',
475 475
           blood_access_internal_fistula: '',
476
-          is_infect:'',
477
-          exposed:'',
478
-          skin:'',
479
-          skin_other:'',
480
-          infect_other:'',
476
+          is_infect: '',
477
+          exposed: '',
478
+          skin: '',
479
+          skin_other: '',
480
+          infect_other: ''
481 481
         },
482 482
         // InnerDialogProps: {
483 483
         //   checkedCities: [],
@@ -516,11 +516,11 @@ export default {
516 516
       }
517 517
     },
518 518
     methods: {
519
-      isShow(name){
519
+      isShow(name) {
520 520
         var filedList = store.getters.xt_user.fileds
521
-        for (let i = 0; i < filedList.length; i++){
522
-          if(filedList[i].module == 3 &&filedList[i].filed_name_cn == name && filedList[i].is_show == 1){
523
-              return true
521
+        for (let i = 0; i < filedList.length; i++) {
522
+          if (filedList[i].module == 3 && filedList[i].filed_name_cn == name && filedList[i].is_show == 1) {
523
+            return true
524 524
           }
525 525
         }
526 526
         return false
@@ -618,7 +618,7 @@ export default {
618 618
 
619 619
             break
620 620
           case '10': //
621
-            this.InnerDialogProps.values =  this.$store.getters.ductus_arantii
621
+            this.InnerDialogProps.values = this.$store.getters.ductus_arantii
622 622
             this.InnerDialogProps.titles = '中心静脉导管'
623 623
             this.InnerDialogProps.type = 'ductus_arantii'
624 624
             this.InnerDialogProps.selected = this.assessmentBeforeDislysis.ductus_arantii
@@ -626,7 +626,7 @@ export default {
626 626
 
627 627
             break
628 628
           case '11': //
629
-            this.InnerDialogProps.values =  this.$store.getters.puncture_needle
629
+            this.InnerDialogProps.values = this.$store.getters.puncture_needle
630 630
             this.InnerDialogProps.titles = '穿刺针'
631 631
             this.InnerDialogProps.type = 'puncture_needle'
632 632
             this.InnerDialogProps.selected = this.assessmentBeforeDislysis.puncture_needle
@@ -674,14 +674,12 @@ export default {
674 674
           case 'puncture_needle':
675 675
             this.assessmentBeforeDislysis.puncture_needle = val.value.join(',')
676 676
             break
677
-
678
-
679
-
680 677
         }
681 678
       }, innerDialogCancle: function() {
682 679
         this.InnerDialogProps.visibility = false
683 680
       }, handleComfirm: function() {
684 681
         const ParamsQuery = this.assessmentBeforeDislysis
682
+        console.log('paramsquery是什么', ParamsQuery)
685 683
         ParamsQuery['patient'] = this.patient.id
686 684
         ParamsQuery['record_date'] = this.record_date
687 685
         postAssessmentBeforeDislysis(ParamsQuery).then(response => {
@@ -697,8 +695,10 @@ export default {
697 695
             })
698 696
 
699 697
             const assessment_before_dislysis_resp = response.data.data.assessmentBeforeDislysis
698
+
700 699
             // prop
701 700
             var predialysis_evaluation = this.predialysis_evaluation
701
+            console.log('predialysis_evalution是什么', predialysis_evaluation)
702 702
             for (var index in assessment_before_dislysis_resp) {
703 703
               // predialysis_evaluation[index] = assessment_before_dislysis_resp[index];
704 704
               this.$set(predialysis_evaluation, index, assessment_before_dislysis_resp[index])
@@ -726,10 +726,6 @@ export default {
726 726
       this.blood_access_noise = this.$store.getters.blood_access_noise
727 727
       var date = this.$route.query && this.$route.query.date
728 728
       this.record_date = uParseTime(date, '{y}-{m}-{d}')
729
-
730
-
731
-
732
-
733 729
     }, watch: {
734 730
       isVisibility(val) {
735 731
 
@@ -753,8 +749,6 @@ export default {
753 749
             this.assessmentBeforeDislysis['is_hemorrhage'] = this.predialysis_evaluation['is_hemorrhage'] + ''
754 750
           }
755 751
 
756
-
757
-
758 752
           if (this.predialysis_evaluation['is_infect'] == 0) {
759 753
             this.assessmentBeforeDislysis['is_infect'] = ''
760 754
           } else {
@@ -790,7 +784,6 @@ export default {
790 784
           //   this.assessmentBeforeDislysis['emergency_treatment'] = this.predialysis_evaluation['emergency_treatment'] + ''
791 785
           // }
792 786
 
793
-
794 787
           if (this.predialysis_evaluation['blood_access_part_id'] == 0) {
795 788
             this.assessmentBeforeDislysis['blood_access_part_id'] = ''
796 789
           }

+ 17 - 21
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue 查看文件

@@ -245,8 +245,8 @@
245 245
         </el-col>
246 246
 
247 247
 
248
-        <el-col :span="8" v-if="isShows('血管通路(内瘘)')">
249
-          <el-form-item label="血管通路(内瘘):">
248
+        <el-col :span="8" v-if="isShows('血管通路')">
249
+          <el-form-item label="血管通路:">
250 250
             <el-select v-model="dialysisPrescription.blood_access" placeholder="请选择">
251 251
               <el-option :key="0" label="请选择" :value="0"></el-option>
252 252
 
@@ -480,7 +480,6 @@
480 480
         }
481 481
       },
482 482
 
483
-
484 483
       fistula_needle_set_info: {
485 484
         type: Array,
486 485
         default: () => {
@@ -488,7 +487,6 @@
488 487
         }
489 488
       },
490 489
 
491
-
492 490
       fistula_needle_set_16_info: {
493 491
         type: Array,
494 492
         default: () => {
@@ -496,7 +494,6 @@
496 494
         }
497 495
       },
498 496
 
499
-
500 497
       hemoperfusion_info: {
501 498
         type: Array,
502 499
         default: () => {
@@ -557,7 +554,7 @@
557 554
       config: {
558 555
         type: Object,
559 556
         default: () => {
560
-          return {id: 0}
557
+          return { id: 0 }
561 558
         }
562 559
       },
563 560
 
@@ -658,20 +655,20 @@
658 655
           ultrafiltration: '',
659 656
           blood_access: '',
660 657
 
661
-          niprocart:'',
662
-          jms:'',
663
-          fistula_needle_set:'',
664
-          fistula_needle_set_16:'',
665
-          hemoperfusion:'',
666
-          dialyser_sterilised:'',
667
-          filtryzer:'',
668
-          target_ktv:'',
669
-          dialyzers:'',
670
-          injector:'',
671
-          bloodlines:'',
672
-          tubing_hemodialysis:'',
673
-          package:'',
674
-          a_liquid:'',
658
+          niprocart: '',
659
+          jms: '',
660
+          fistula_needle_set: '',
661
+          fistula_needle_set_16: '',
662
+          hemoperfusion: '',
663
+          dialyser_sterilised: '',
664
+          filtryzer: '',
665
+          target_ktv: '',
666
+          dialyzers: '',
667
+          injector: '',
668
+          bloodlines: '',
669
+          tubing_hemodialysis: '',
670
+          package: '',
671
+          a_liquid: ''
675 672
         },
676 673
 
677 674
         anticoagulant: {
@@ -969,7 +966,6 @@
969 966
             if (this.prescription['target_ktv'] == 0) {
970 967
               this.dialysisPrescription['target_ktv'] = ''
971 968
             }
972
-
973 969
           } else if (this.solution != null && typeof this.solution.id !== 'undefined' && this.solution.id) {
974 970
             for (const key in this.solution) {
975 971
               this.dialysisPrescription[key] = this.solution[key]

+ 8 - 8
src/xt_pages/dialysis/details/dialog/monitor_dialog.vue 查看文件

@@ -304,9 +304,9 @@
304 304
   import { parseTime } from '@/utils'
305 305
   import { getDataConfig } from '@/utils/data'
306 306
   import { editMonitor, postDelMonitorInfo } from '@/api/dialysis_record'
307
-  import store from "@/store";
307
+  import store from '@/store'
308 308
 
309
-  export default {
309
+export default {
310 310
     name: 'MonitorDialog',
311 311
     data() {
312 312
       return {
@@ -340,8 +340,8 @@
340 340
           dialysate_temperature: '', // 透析液温度
341 341
           replacement_rate: '', // 置换率
342 342
           displacement_quantity: '', // 置换量
343
-          conductivity:'', //电导度
344
-          displacement_flow_quantity:'',//置换液流量
343
+          conductivity: '', // 电导度
344
+          displacement_flow_quantity: '', // 置换液流量
345 345
           ktv: '', // KT/V
346 346
           symptom: '', // 病情变化
347 347
           dispose: '', // 处理
@@ -379,10 +379,10 @@
379 379
       this.form.operate_time = (new Date()).getTime()
380 380
     },
381 381
     methods: {
382
-      isShow(name){
382
+      isShow(name) {
383 383
         var filedList = store.getters.xt_user.fileds
384
-        for (let i = 0; i < filedList.length; i++){
385
-          if(filedList[i].module == 4 && filedList[i].filed_name_cn == name && filedList[i].is_show == 1){
384
+        for (let i = 0; i < filedList.length; i++) {
385
+          if (filedList[i].module == 4 && filedList[i].filed_name_cn == name && filedList[i].is_show == 1) {
386 386
             return true
387 387
           }
388 388
         }
@@ -447,7 +447,7 @@
447 447
           this.form.displacement_quantity = ''
448 448
           this.form.conductivity = ''
449 449
           this.form.displacement_flow_quantity = ''
450
-            this.form.ktv = ''
450
+          this.form.ktv = ''
451 451
           this.form.symptom = ''
452 452
           this.form.dispose = ''
453 453
           this.form.result = ''

+ 63 - 75
src/xt_pages/dialysis/details/dialog/treatmentSummaryDialog.vue 查看文件

@@ -39,139 +39,127 @@
39 39
 </template>
40 40
 
41 41
 <script>
42
-  import {getDataConfig} from "@/utils/data";
43
-  import {postTreatmentsummary} from "@/api/dialysis";
44
-  import {uParseTime} from "@/utils/tools";
42
+  import { getDataConfig } from '@/utils/data'
43
+import { postTreatmentsummary } from '@/api/dialysis'
44
+import { uParseTime } from '@/utils/tools'
45 45
 
46
-
47
-
48
-  export default {
49
-    name: "treatmentSummaryDialog",
46
+export default {
47
+    name: 'treatmentSummaryDialog',
50 48
 
51 49
     props: {
52
-      treatment_summary : { // 治疗小结
50
+      treatment_summary: { // 治疗小结
53 51
         type: Object,
54 52
         default: () => {
55
-          return {id: 0}
53
+          return { id: 0 }
56 54
         }
57 55
       }, patient: { // 患者信息
58 56
         type: Object,
59 57
         default: () => {
60
-          return {id: 0}
58
+          return { id: 0 }
61 59
         }
62
-      },
60
+      }
63 61
 
64 62
     },
65 63
     data() {
66 64
       return {
67
-        value:'',
68
-        value2:'',
69
-
70
-        isVisibility:false,
71
-        record_date:'',
72
-        education:[],
73
-        summary:[],
74
-        treatmentSummary:{
75
-          mission: "",
76
-          dialysis_summary: "",
77
-          sj_nurse: "",
78
-          zl_nurse: "",
79
-          hd_nurse: "",
80
-          xj_nurse: "",
81
-          zl_doctor: ""
82
-        },
83
-      };
84
-    },
85
-    methods:{
65
+        value: '',
66
+        value2: '',
67
+
68
+        isVisibility: false,
69
+        record_date: '',
70
+        education: [],
71
+        summary: [],
72
+        treatmentSummary: {
73
+          mission: '',
74
+          dialysis_summary: '',
75
+          sj_nurse: '',
76
+          zl_nurse: '',
77
+          hd_nurse: '',
78
+          xj_nurse: '',
79
+          zl_doctor: ''
80
+        }
81
+      }
82
+  },
83
+    methods: {
86 84
       show() {
87
-        this.isVisibility = true;
85
+        this.isVisibility = true
88 86
       },
89 87
       hide() {
90
-        this.isVisibility = false;
88
+        this.isVisibility = false
91 89
       },
92
-      dialysisAfterTeachSelectChange: function (values) {
93
-
94
-        if (this.treatmentSummary.mission == "") {
90
+      dialysisAfterTeachSelectChange: function(values) {
91
+        if (this.treatmentSummary.mission == '') {
95 92
           this.treatmentSummary.mission = values
96 93
         } else {
97 94
           if (this.treatmentSummary.mission.indexOf(values) == -1) {
98 95
             if (this.treatmentSummary.mission.charAt(this.treatmentSummary.mission.length - 1).indexOf('。') == -1) {
99
-              this.treatmentSummary.mission = this.treatmentSummary.mission + "," + values
100
-
96
+              this.treatmentSummary.mission = this.treatmentSummary.mission + ',' + values
101 97
             } else {
102 98
               this.treatmentSummary.mission = this.treatmentSummary.mission + values
103
-
104 99
             }
105 100
           }
106 101
         }
107
-      },  dialysisSummarySelectChange: function (values) {
108
-        if (this.treatmentSummary.dialysis_summary == "") {
102
+      }, dialysisSummarySelectChange: function(values) {
103
+        if (this.treatmentSummary.dialysis_summary == '') {
109 104
           this.treatmentSummary.dialysis_summary = values
110 105
         } else {
111 106
           if (this.treatmentSummary.dialysis_summary.indexOf(values) == -1) {
112 107
             if (this.treatmentSummary.dialysis_summary.charAt(this.treatmentSummary.dialysis_summary.length - 1).indexOf('。') == -1) {
113
-              this.treatmentSummary.dialysis_summary = this.treatmentSummary.dialysis_summary + "," + values
114
-
108
+              this.treatmentSummary.dialysis_summary = this.treatmentSummary.dialysis_summary + ',' + values
115 109
             } else {
116
-              this.treatmentSummary.dialysis_summary = this.treatmentSummary.dialysis_summary + "," + values
110
+              this.treatmentSummary.dialysis_summary = this.treatmentSummary.dialysis_summary + ',' + values
117 111
               this.treatmentSummary.dialysis_summary = this.treatmentSummary.dialysis_summary + values
118
-
119 112
             }
120 113
           }
121 114
         }
122
-
123
-      },handleCancle:function () {
124
-        this.isVisibility = false;
125
-
126
-      },handleComfirm:function () {
127
-        let ParamsQuery = this.treatmentSummary;
128
-        ParamsQuery["patient"] = this.patient.id;
129
-        ParamsQuery["record_date"] = this.record_date;
115
+      }, handleCancle: function() {
116
+        this.isVisibility = false
117
+      }, handleComfirm: function() {
118
+        const ParamsQuery = this.treatmentSummary
119
+        ParamsQuery['patient'] = this.patient.id
120
+        ParamsQuery['record_date'] = this.record_date
130 121
         postTreatmentsummary(ParamsQuery).then(response => {
131 122
           if (response.data.state == 0) {
132
-            this.$message.error(response.data.msg);
133
-            return false;
123
+            this.$message.error(response.data.msg)
124
+            return false
134 125
           } else {
135 126
             this.$notify({
136
-              title: "成功",
137
-              message: "提交成功",
138
-              type: "success",
127
+              title: '成功',
128
+              message: '提交成功',
129
+              type: 'success',
139 130
               duration: 2000
140
-            });
131
+            })
141 132
 
142
-            let summary_resp = response.data.data.summary;
143
-            //prop
144
-            var treatment_summary = this.treatment_summary;
145
-            for( var index in summary_resp) {
133
+            const summary_resp = response.data.data.summary
134
+            // prop
135
+            var treatment_summary = this.treatment_summary
136
+            for (var index in summary_resp) {
146 137
               // treatment_summary[index] = summary_resp[index];
147 138
               this.$set(treatment_summary, index, summary_resp[index])
148 139
             }
149 140
 
150 141
             this.hide()
151 142
           }
152
-        });
153
-
154
-
143
+        })
155 144
       }
156
-    },watch: {
145
+    }, watch: {
157 146
       isVisibility(val) {
158 147
 
159 148
       },
160
-      "treatment_summary.id": function () {
149
+      'treatment_summary.id': function() {
161 150
         if (this.treatment_summary.id > 0) {
162 151
           for (var index in this.treatmentSummary) {
163
-            this.treatmentSummary[index] = this.treatment_summary[index];
152
+            this.treatmentSummary[index] = this.treatment_summary[index]
164 153
           }
165 154
         }
166
-      },
155
+      }
167 156
     }, created() {
168
-      this.education  = getDataConfig('education','education')
169
-      this.summary  = getDataConfig('summary','summary')
170
-
157
+      this.education = getDataConfig('education', 'education')
158
+      this.summary = getDataConfig('summary', 'summary')
171 159
 
172
-      var date = this.$route.query && this.$route.query.date;
173
-      this.record_date = uParseTime(date, '{y}-{m}-{d}');
174
-    },
160
+      var date = this.$route.query && this.$route.query.date
161
+      this.record_date = uParseTime(date, '{y}-{m}-{d}')
162
+  }
175 163
   }
176 164
 </script>
177 165
 

+ 17 - 17
src/xt_pages/dialysis/details/dialysisMonitoring.vue 查看文件

@@ -50,34 +50,34 @@
50 50
 </template>
51 51
 
52 52
 <script>
53
-  import store from "@/store";
53
+  import store from '@/store'
54 54
 
55
-  import { parseTime } from '@/utils'
55
+import { parseTime } from '@/utils'
56 56
 
57 57
 export default {
58 58
   name: 'statOrder',
59 59
   data() {
60
-    return {
61
-      title: '透析监测 '
62
-    }
60
+      return {
61
+        title: '透析监测 '
62
+      }
63 63
   },
64 64
   props: {
65
-    monitores: {
66
-      type: Array
67
-    }
65
+      monitores: {
66
+        type: Array
67
+      }
68 68
   },
69 69
   methods: {
70
-    parseTime(time, layout) {
71
-      return parseTime(time, layout)
72
-    },isShow(name){
73
-      var filedList = store.getters.xt_user.fileds
74
-      for (let i = 0; i < filedList.length; i++){
75
-        if(filedList[i].module == 4 && filedList[i].filed_name_cn == name&&filedList[i].is_show == 1){
76
-          return true
70
+      parseTime(time, layout) {
71
+        return parseTime(time, layout)
72
+      }, isShow(name) {
73
+        var filedList = store.getters.xt_user.fileds
74
+        for (let i = 0; i < filedList.length; i++) {
75
+          if (filedList[i].module == 4 && filedList[i].filed_name_cn == name && filedList[i].is_show == 1) {
76
+            return true
77
+          }
77 78
         }
79
+        return false
78 80
       }
79
-      return false
80
-    },
81 81
   }
82 82
 }
83 83
 </script>

+ 17 - 21
src/xt_pages/dialysis/details/index.vue 查看文件

@@ -305,20 +305,20 @@
305 305
         device_map: {}, // {device_id: device}
306 306
         device_number_map: {}, // {device_number_id: device_number}
307 307
 
308
-        niprocart_info:[],
309
-        jms_info:[],
310
-        fistula_needle_set_info:[],
311
-        fistula_needle_set_16_info:[],
312
-        hemoperfusion_info:[],
313
-        dialyser_sterilised_info:[],
314
-        filtryzer_info:[],
315
-        dialyzers_info:[],
316
-        injector_info:[],
317
-        bloodlines_info:[],
318
-        tubingHemodialysis_info:[],
319
-        safe_package_info:[],
320
-        aliquid_info:[],
321
-        config:{},
308
+        niprocart_info: [],
309
+        jms_info: [],
310
+        fistula_needle_set_info: [],
311
+        fistula_needle_set_16_info: [],
312
+        hemoperfusion_info: [],
313
+        dialyser_sterilised_info: [],
314
+        filtryzer_info: [],
315
+        dialyzers_info: [],
316
+        injector_info: [],
317
+        bloodlines_info: [],
318
+        tubingHemodialysis_info: [],
319
+        safe_package_info: [],
320
+        aliquid_info: [],
321
+        config: {}
322 322
       }
323 323
     },
324 324
     created() {
@@ -364,7 +364,6 @@
364 364
         var mrl = this.monitor_records.length
365 365
         for (let index = 0; index < mrl; index++) {
366 366
           if (this.monitor_records[index].id == record_id) {
367
-
368 367
             this.monitor_records.splice(index, 1)
369 368
             break
370 369
           }
@@ -377,11 +376,14 @@
377 376
           var resp = rs.data
378 377
           if (resp.state == 1) {
379 378
             var patient = resp.data.patient // 患者信息
379
+            console.log('patient是史森明', patient)
380 380
             var schedual = resp.data.schedual // 患者排班信息
381 381
             var prescription = resp.data.prescription // 透析处方
382
+            console.log('prescription', prescription)
382 383
             var solution = resp.data.solution // 透析方案
383 384
             var receiver_treatment_access = resp.data.receiver_treatment_access // 接诊评估
384 385
             var predialysis_evaluation = resp.data.predialysis_evaluation // 透前评估
386
+            console.log('predialysis_evaluation', predialysis_evaluation)
385 387
             var doctor_advices = resp.data.doctor_advices // 临时医嘱
386 388
             var double_check = resp.data.double_check // 双人核对
387 389
             var assessment_after_dislysis = resp.data.assessment_after_dislysis // 透后评估
@@ -389,7 +391,6 @@
389 391
             var monitor_records = resp.data.monitor_records // 透析监测
390 392
             var dialysis_order = resp.data.dialysis_order // 透析记录
391 393
 
392
-
393 394
             var niprocart_info = resp.data.niprocart_info
394 395
             var jms_info = resp.data.jms_info
395 396
             var fistula_needle_set_info = resp.data.fistula_needle_set_info
@@ -406,8 +407,6 @@
406 407
 
407 408
             var config = resp.data.config
408 409
 
409
-
410
-
411 410
             this.niprocart_info = niprocart_info
412 411
             this.jms_info = jms_info
413 412
             this.fistula_needle_set_info = fistula_needle_set_info
@@ -423,8 +422,6 @@
423 422
             this.aliquid_info = aliquid_info
424 423
             this.config = config
425 424
 
426
-
427
-
428 425
             this.patient = patient
429 426
             this.schedual = schedual == null ? { id: 0 } : schedual
430 427
             this.prescription = prescription == null ? { id: 0 } : prescription
@@ -447,7 +444,6 @@
447 444
             this.dialysis_order =
448 445
               dialysis_order == null ? { id: 0 } : dialysis_order
449 446
 
450
-
451 447
             // this.$refs.stat_order.setAdvices(this.doctor_advices)
452 448
             // this.$refs.monitoring.setRecords(this.monitor_records)
453 449
 

文件差异内容过多而无法显示
+ 1061 - 1239
src/xt_pages/dialysis/dialysisPage.vue


+ 72 - 18
src/xt_pages/sign/index.vue 查看文件

@@ -27,9 +27,10 @@
27 27
                     <el-table-column prop="state" label="状态" min-width="30" align="center">
28 28
                         <template slot-scope="scope">
29 29
                             <span v-if="scope.row.dialysis_order && scope.row.dialysis_order.stage==2">已下机</span>
30
-                            <span v-else-if="scope.row.dialysis_order && scope.row.dialysis_order.id>0 ">透析中</span>
31
-                            <span v-else-if="scope.row.signin.id ==0">未签到</span>
30
+                            <span v-else-if="scope.row.dialysis_order && scope.row.dialysis_order.id>0 ">已上机</span>
31
+                            <span v-else-if="scope.row.predialysisevaluation.id ==0">未签到</span>
32 32
                             <span v-else>已签到</span>
33
+
33 34
                         </template>
34 35
                     </el-table-column>
35 36
                 </el-table>
@@ -81,7 +82,7 @@
81 82
                     <el-row :gutter="20">
82 83
                         <el-col :span="23" align="right" class="button">
83 84
                             <el-button  @click="hide()">取消</el-button>
84
-                            <el-button @click="updateSignweight();sighdata();" type="primary">保存</el-button>
85
+                            <el-button @click="updateSignweight();" type="primary">保存</el-button>
85 86
                         </el-col>
86 87
                     </el-row>
87 88
                    </div>
@@ -93,7 +94,7 @@
93 94
 </template>
94 95
 
95 96
 <script>
96
-import { fetchSignPatients, getPatientSign, getDialysisInforInfomation, getDialysisAfterInfomation, updateSignweight, sighdata } from '@/api/signandweigh'
97
+import { fetchSignPatients, getPatientSign, getDialysisInforInfomation, getDialysisAfterInfomation, updateSignweight, sighdata, getForenoonData } from '@/api/signandweigh'
97 98
 import BreadCrumb from '../components/bread-crumb'
98 99
 export default {
99 100
   name: 'sign',
@@ -212,27 +213,61 @@ export default {
212 213
           this.querySignParams.date_time = response.data.data.today
213 214
           if (this.queryParams.need_schedule_type === 1) {
214 215
             var sl = this.schedules.length
215
-            console.log('s1是什么东西')
216
+            var panel = response.data.data.panel
217
+            console.log('panel是什么', panel)
218
+            console.log('s1是什么东西', sl)
216 219
             console.log(sl)
217 220
             for (let index = 0; index < sl; index++) {
218 221
               if (this.schedules[index].type in response.data.data.panel) {
219 222
                 console.log(this.schedules[index].type)
220 223
                 console.log(response.data.data.panel[this.schedules[index].type].schedule)
221 224
                 this.schedules[index].arrange = response.data.data.panel[this.schedules[index].type].schedule
222
-                this.schedules[index].sign = response.data.data.panel[this.schedules[index].type].sign
223
-                this.schedules[index].before = response.data.data.panel[this.schedules[index].type].before
224
-                this.schedules[index].after = response.data.data.panel[this.schedules[index].type].after
225
+                // this.schedules[index].sign = response.data.data.panel[this.schedules[index].type].sign
226
+                // console.log('sign是什么', this.schedules[index].sign)
227
+                // this.schedules[index].before = response.data.data.panel[this.schedules[index].type].before
228
+                // this.schedules[index].after = response.data.data.panel[this.schedules[index].type].after
225 229
               }
226 230
             }
231
+
232
+            for (let index = 0; index < this.patients.length; index++) {
233
+              var sl = this.schedules.length
234
+              for (let j = 0; j < sl; j++) {
235
+                console.log('这个是是呢是什么', this.schedules[j].type)
236
+                console.log('这个是什么', this.patients[index].schedule.schedule_type)
237
+                if (this.schedules[j].type === this.patients[index].schedule.schedule_type) {
238
+                  if (this.patients[index].predialysisevaluation.id !== 0) {
239
+                    this.schedules[j].sign++
240
+                  }
241
+                }
242
+              }
243
+            }
244
+
245
+            // if (this.patients[index].schedule.id > 0 && (this.patients[index].schedule.schedule_type >= 1 || this.patients[index].schedule.schedule_type <= 3)) {
246
+            //   var sl = this.schedules.length
247
+            //   for (let j = 0; j < sl; j++) {
248
+            //     if (this.schedules[j].type === this.patients[index].schedule.schedule_type) {
249
+            //       if ((signin.weigh_before_time === 0 && response.data.data.signs.weigh_before_time > 0) || (signin.weigh_time === 0 && response.data.data.signs.weigh_time > 0)) {
250
+            //         this.schedules[j].sign++
251
+            //       }
252
+            //       if (signin.weigh_before_time === 0 && response.data.data.signs.weigh_before_time > 0) {
253
+            //         this.schedules[j].before++
254
+            //       }
255
+            //       if (signin.weigh_time === 0 && response.data.data.signs.weigh_time > 0) {
256
+            //         this.schedules[j].after++
257
+            //       }
258
+            //     }
259
+            //   }
260
+            // }
227 261
           }
228 262
         }
229 263
       })
230 264
     },
231 265
     getPatientSign() {
232 266
       getPatientSign(this.querySignParams).then(response => {
233
-        if (response.data.state == 1) {
267
+        if (response.data.state === 1) {
234 268
           if (response.data.data.sign != null) {
235 269
             var sign = response.data.data.sign
270
+            console.log('sign是什么', sign)
236 271
             this.weigh_form.dry_weight = sign.dry_weight
237 272
             this.weigh_form.clothes_weight = sign.clothes_weight
238 273
             // 透前
@@ -323,7 +358,7 @@ export default {
323 358
       getDialysisAfterInfomation(id).then(response => {
324 359
         if (response.data.data.patientinfor != null) {
325 360
           var patientinfor = response.data.data.patientinfor
326
-          console.log(patientinfor)
361
+          console.log('patientInfor', patientinfor)
327 362
           this.weigh_infor.dry_weight = patientinfor.dry_weight
328 363
           if (this.weigh_infor.dry_weight === 0) {
329 364
             this.weigh_infor.dry_weight = ''
@@ -364,6 +399,7 @@ export default {
364 399
     },
365 400
 
366 401
     updateSignweight() {
402
+      // eslint-disable-next-line no-new-object
367 403
       var params = new Object()
368 404
       var data_time = this.querySignParams.date_time
369 405
       params.date_time = data_time
@@ -384,10 +420,13 @@ export default {
384 420
 
385 421
       updateSignweight(params).then(response => {
386 422
         if (response.data.state === 1) {
387
-          this.$message({
388
-            type: 'success',
389
-            message: '成功!'
390
-          })
423
+          var signs = response.data.data.signs
424
+          console.log('signs是什么', signs)
425
+          this.$message.success('成功')
426
+          // this.$message({
427
+          //   type: 'success',
428
+          //   message: '成功!'
429
+          // })
391 430
         }
392 431
       })
393 432
       console.log('params数据', params)
@@ -400,6 +439,7 @@ export default {
400 439
       // 透前数据
401 440
       var params = new Object()
402 441
       var data_time = this.querySignParams.date_time
442
+      console.log('data_time', data_time)
403 443
       params.date_time = data_time
404 444
       params.patient_id = this.weigh_form.patient_id
405 445
       params.dry_weight = this.weigh_list.dry_weight
@@ -421,15 +461,19 @@ export default {
421 461
         var signs = response.data.data.signs
422 462
         console.log('signs是什么?', signs)
423 463
         if (response.data.state === 1) {
424
-          this.$message({
425
-            type: 'success',
426
-            message: '成功!'
427
-          })
464
+          // this.$message({
465
+          //   type: 'success',
466
+          //   message: '成功!'
467
+          // })
428 468
           var tlen = this.patients.length
429 469
 
430 470
           for (let index = 0; index < tlen; index++) {
431 471
             if (this.patients[index].id === params.patient_id) {
432 472
               var signin = this.patients[index].signin
473
+              console.log('signin是什么', signin)
474
+              var sings = response.data.data.signs
475
+              console.log('signs', signs)
476
+
433 477
               this.patients[index].signin = response.data.data.signs
434 478
 
435 479
               if (this.patients[index].schedule.id > 0 && (this.patients[index].schedule.schedule_type >= 1 || this.patients[index].schedule.schedule_type <= 3)) {
@@ -457,7 +501,16 @@ export default {
457 501
           return false
458 502
         }
459 503
       })
504
+    },
505
+    getForenoonData() {
506
+      getForenoonData().then(response => {
507
+        if (response.data.state === 1) {
508
+          var total = response.data.data.total
509
+          console.log('total', total)
510
+        }
511
+      })
460 512
     }
513
+
461 514
   },
462 515
   watch: {
463 516
     'weigh_form.weigh_before': function() {
@@ -514,6 +567,7 @@ export default {
514 567
     this.queryParams.schedule_type = -1
515 568
     this.queryParams.need_schedule_type = 1
516 569
     this.fetchSignPatients()
570
+    this.getForenoonData()
517 571
   }
518 572
 }
519 573
 </script>

+ 0 - 1
src/xt_pages/user/doctorAdvice.vue 查看文件

@@ -3073,7 +3073,6 @@
3073 3073
                   }
3074 3074
                 }
3075 3075
               } else {
3076
-                console.log('111111')
3077 3076
                 for (let index = 0; index < ale; index++) {
3078 3077
                   if (
3079 3078
                     _this.groupSelectRow.row_key ==