xiaoming_global пре 5 година
родитељ
комит
9554b1cdbd

+ 1 - 1
config/dev.env.js Прегледај датотеку

@@ -7,7 +7,7 @@ module.exports = {
7 7
   NODE_ENV: '"development"',
8 8
   ENV_CONFIG: '"dev"',
9 9
   BASE_API:  '"http://api.xt.test.sgjyun.com"',// //http://api.xt.test.sgjyun.com http://112.74.16.180:9527,////'"http://localhost:9529"',
10
-
10
+  // BASE_API:'"http://localhost:9529"',
11 11
   SSO_HOST: '"http://testsso.sgjyun.com"',
12 12
   SRCM_HOST: '"http://test1.sgjyun.com"',
13 13
   XT_HOST: '"http://xt.test.sgjyun.com"',

+ 2 - 2
config/index.js Прегледај датотеку

@@ -17,9 +17,9 @@ module.exports = {
17 17
     // can be overwritten by process.env.HOST
18 18
     // if you want dev by ip, please set host: '0.0.0.0'
19 19
 
20
-    host: 'xt.test.sgjyun.com',
21
-    // host: 'xt.kuyicloud.com',
22 20
     // host: 'xt.test.sgjyun.com',
21
+    // host: 'xt.kuyicloud.com',
22
+     host: 'xt.test.sgjyun.com',
23 23
     // host:'localhost',
24 24
     port:9528, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
25 25
     autoOpenBrowser: true,

+ 14 - 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,21 @@ 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
+}

+ 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 {

+ 15 - 13
src/xt_pages/dialysis/details/BasicInfor.vue Прегледај датотеку

@@ -44,13 +44,13 @@
44 44
 </template>
45 45
 
46 46
 <script>
47
-import { parseTime } from "@/utils"
47
+import { parseTime } from '@/utils'
48 48
 
49 49
 export default {
50
-  name: "BasicInfor",
50
+  name: 'BasicInfor',
51 51
   data() {
52 52
     return {
53
-      title:'基本信息',
53
+      title: '基本信息'
54 54
       // steps: [
55 55
       //   { title: "透析处方" },
56 56
       //   { title: "接诊评估" },
@@ -63,7 +63,7 @@ export default {
63 63
       //   { title: "透后评估" },
64 64
       //   { title: "治疗小结" }
65 65
       // ]
66
-    };
66
+    }
67 67
   },
68 68
   props: {
69 69
     patient: {
@@ -73,7 +73,7 @@ export default {
73 73
       }
74 74
     },
75 75
     device_number: {
76
-      type: String,
76
+      type: String
77 77
     },
78 78
     steps: {
79 79
       type: Array,
@@ -85,21 +85,21 @@ export default {
85 85
   computed: {
86 86
     birthday: function() {
87 87
       if (this.patient.id == 0) {
88
-        return ""
88
+        return ''
89 89
       } else {
90
-        return parseTime(this.patient.birthday, "{y}-{m}-{d}")
90
+        return parseTime(this.patient.birthday, '{y}-{m}-{d}')
91 91
       }
92 92
     },
93 93
     source: function() {
94
-      return this.patient.source == 1 ? "门诊" : "住院"
95
-    },
94
+      return this.patient.source == 1 ? '门诊' : '住院'
95
+    }
96 96
   },
97 97
   methods: {
98 98
     stepState: function() {
99
-      return parseInt((Math.random() * 1000) + "") % 2 == 1;
100
-    },
99
+      return parseInt((Math.random() * 1000) + '') % 2 == 1
100
+    }
101 101
   }
102
-};
102
+}
103 103
 </script>
104 104
 
105 105
 <style style="stylesheet/scss" lang="scss" scoped>
@@ -200,13 +200,15 @@ export default {
200 200
     padding:20px 40px;  
201 201
     li {
202 202
       float: left;
203
-      width: 25%;
203
+      width: 28%;
204 204
       // margin: 0 1rem 0 0;
205 205
       font-size: 15px;
206 206
       height: 35px;
207 207
       line-height: 35px;
208 208
       color: #34495e;
209
+      margin-left: 60px;
209 210
     }
211
+    // border: solid red 1px;
210 212
   }
211 213
 </style>
212 214
 

+ 129 - 132
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('目标超滤量')">
@@ -159,262 +159,259 @@
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
       }
391 388
     },
392 389
     methods: {
393 390
       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 != "") {
391
+        if ((this.prescription == null || this.prescription.id == '') && (this.solution == null || this.solution.id == '')) {
392
+          return ''
393
+        } else if (this.prescription != null && this.prescription.id != '') {
397 394
           if (this.prescription[pkey] == null || this.prescription[pkey] == undefined) {
398
-            return ""
395
+            return ''
399 396
           }
400
-          return this.prescription[pkey] + ""
397
+          return this.prescription[pkey] + ''
401 398
         } else {
402 399
           if (this.solution[skey] == null || this.solution[skey] == undefined) {
403
-            return ""
400
+            return ''
404 401
           }
405
-          return this.solution[skey] + ""
402
+          return this.solution[skey] + ''
406 403
         }
407
-      },isShow(name){
404
+      }, isShow(name) {
408 405
         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){
406
+        for (let i = 0; i < filedList.length; i++) {
407
+          if (filedList[i].module == 1 && filedList[i].filed_name_cn == name && filedList[i].is_show == 1) {
411 408
             return true
412 409
           }
413 410
         }
414 411
         return false
415
-      },
412
+      }
416 413
     }
417
-  };
414
+  }
418 415
 </script>
419 416
 
420 417
 <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>

+ 320 - 324
src/xt_pages/dialysis/details/assessmentAfter.vue Прегледај датотеку

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

+ 9 - 12
src/xt_pages/dialysis/details/dialog/AssessmentAfterDislysis.vue Прегледај датотеку

@@ -376,9 +376,9 @@
376 376
   import MultiSelectBox from './MultiSelectBox'
377 377
   import { postAssessmentAfterDislysis } from '@/api/dialysis'
378 378
   import { uParseTime } from '@/utils/tools'
379
-  import store from "@/store";
379
+  import store from '@/store'
380 380
 
381
-  export default {
381
+export default {
382 382
     name: 'AssessmentAfterDislysis',
383 383
     props: {
384 384
       assessment_after_dislysis: { // 透后评估
@@ -458,7 +458,7 @@
458 458
           observation_content_other: '',
459 459
           remark: '',
460 460
           dialysis_order_id: 0,
461
-          is_eat:2,
461
+          is_eat: 2,
462 462
           dialysis_process: '',
463 463
           in_advance_minute: '',
464 464
           in_advance_reason: '',
@@ -583,7 +583,6 @@
583 583
         data['remark'] = this.form.remark
584 584
         data['dialysis_order_id'] = this.form.dialysis_order_id ? parseFloat(this.form.dialysis_order_id) : 0
585 585
 
586
-
587 586
         data['dialysis_process'] = this.form.dialysis_process ? parseFloat(this.form.dialysis_process) : 0
588 587
         data['in_advance_minute'] = this.form.in_advance_minute ? parseFloat(this.form.in_advance_minute) : 0
589 588
         data['in_advance_reason_other'] = this.form.in_advance_reason_other
@@ -599,7 +598,6 @@
599 598
 
600 599
         data['is_eat'] = this.form.is_eat ? parseFloat(this.form.is_eat) : 0
601 600
 
602
-
603 601
         postAssessmentAfterDislysis(ParamsQuery, data).then(response => {
604 602
           this.loading = false
605 603
           if (response.data.state == 0) {
@@ -735,20 +733,19 @@
735 733
 
736 734
       hide() {
737 735
         this.isVisibility = false
738
-      }, isShow(name){
736
+      }, isShow(name) {
739 737
         var filedList = store.getters.xt_user.fileds
740 738
 
741
-
742
-        for (let i = 0; i < filedList.length; i++){
743
-
744
-          if(filedList[i].module == 5 && filedList[i].filed_name_cn == name&&filedList[i].is_show == 1){
739
+        for (let i = 0; i < filedList.length; i++) {
740
+          if (filedList[i].module == 5 && filedList[i].filed_name_cn == name && filedList[i].is_show == 1) {
745 741
             return true
746 742
           }
747 743
         }
748 744
         return false
749
-      },
745
+      }
750 746
     },
751 747
     created() {
748
+      console.log('this.form', this.form)
752 749
       this.cruorOptions = getDataConfig('hemodialysis', 'cruor')
753 750
       this.symptomsOptions = getDataConfig('hemodialysis', 'symptoms')
754 751
       this.internalFistulaOptions = getDataConfig('hemodialysis', 'internal_fistula')
@@ -759,7 +756,7 @@
759 756
       this.internalFistulaTremorAcOptions = this.$store.getters.internal_fistula_tremor_ac
760 757
       this.patientGoseOptions = this.$store.getters.patient_gose
761 758
       this.observationContentOptions = this.$store.getters.observation_content
762
-
759
+  
763 760
       console.log(this.patient)
764 761
 
765 762
       var date = this.$route.query && this.$route.query.date

+ 20 - 27
src/xt_pages/dialysis/details/dialog/assessmentBeforeDislysisDialog.vue Прегледај датотеку

@@ -402,9 +402,9 @@
402 402
   import multiSelectBox from './MultiSelectBox'
403 403
   import { getDataConfig } from '@/utils/data'
404 404
   import { postAssessmentBeforeDislysis } from '@/api/dialysis'
405
-  import store from "@/store";
405
+  import store from '@/store'
406 406
 
407
-  import { uParseTime } from '@/utils/tools'
407
+import { uParseTime } from '@/utils/tools'
408 408
 
409 409
 export default {
410 410
     components: {
@@ -420,7 +420,7 @@ export default {
420 420
         last_dialysis_after: [],
421 421
         dialysis_interphase: [],
422 422
         symptom_before_dialysis: [],
423
-        blood_access_noise:[],
423
+        blood_access_noise: [],
424 424
         catheter: [],
425 425
         complication: [],
426 426
         hemorrhage: [],
@@ -428,7 +428,7 @@ export default {
428 428
         blood_access_part_opera: [],
429 429
         internal_fistula: [],
430 430
         internal_fistula_skin: [],
431
-        puncture_method:[],
431
+        puncture_method: [],
432 432
         isVisibiltyForCruorDialog: false,
433 433
         assessmentBeforeDislysis: {
434 434
           catheter_bend: '',
@@ -452,12 +452,12 @@ export default {
452 452
           is_hemorrhage: '',
453 453
           hemorrhage: '',
454 454
           hemorrhage_other: '',
455
-          puncture_method:'',
456
-          breathing_rate:'',
455
+          puncture_method: '',
456
+          breathing_rate: '',
457 457
           dialysis_count: '',
458 458
           emergency_treatment: '',
459 459
           emergency_treatment_other: '',
460
-          ductus_arantii_other:'',
460
+          ductus_arantii_other: '',
461 461
           ductus_arantii: '',
462 462
           venous_catheterization_part_other: '',
463 463
           venous_catheterization_part: '',
@@ -466,11 +466,11 @@ export default {
466 466
           blood_access_noise: '',
467 467
           internal_fistula_other: '',
468 468
           blood_access_internal_fistula: '',
469
-          is_infect:'',
470
-          exposed:'',
471
-          skin:'',
472
-          skin_other:'',
473
-          infect_other:'',
469
+          is_infect: '',
470
+          exposed: '',
471
+          skin: '',
472
+          skin_other: '',
473
+          infect_other: ''
474 474
         },
475 475
         // InnerDialogProps: {
476 476
         //   checkedCities: [],
@@ -509,11 +509,11 @@ export default {
509 509
       }
510 510
     },
511 511
     methods: {
512
-      isShow(name){
512
+      isShow(name) {
513 513
         var filedList = store.getters.xt_user.fileds
514
-        for (let i = 0; i < filedList.length; i++){
515
-          if(filedList[i].module == 3 &&filedList[i].filed_name_cn == name && filedList[i].is_show == 1){
516
-              return true
514
+        for (let i = 0; i < filedList.length; i++) {
515
+          if (filedList[i].module == 3 && filedList[i].filed_name_cn == name && filedList[i].is_show == 1) {
516
+            return true
517 517
           }
518 518
         }
519 519
         return false
@@ -611,7 +611,7 @@ export default {
611 611
 
612 612
             break
613 613
           case '10': //
614
-            this.InnerDialogProps.values =  this.$store.getters.ductus_arantii
614
+            this.InnerDialogProps.values = this.$store.getters.ductus_arantii
615 615
             this.InnerDialogProps.titles = '中心静脉导管'
616 616
             this.InnerDialogProps.type = 'ductus_arantii'
617 617
             this.InnerDialogProps.selected = this.assessmentBeforeDislysis.ductus_arantii
@@ -656,14 +656,12 @@ export default {
656 656
           case 'ductus_arantii':
657 657
             this.assessmentBeforeDislysis.ductus_arantii = val.value.join(',')
658 658
             break
659
-
660
-
661
-
662 659
         }
663 660
       }, innerDialogCancle: function() {
664 661
         this.InnerDialogProps.visibility = false
665 662
       }, handleComfirm: function() {
666 663
         const ParamsQuery = this.assessmentBeforeDislysis
664
+        console.log('paramsquery是什么', ParamsQuery)
667 665
         ParamsQuery['patient'] = this.patient.id
668 666
         ParamsQuery['record_date'] = this.record_date
669 667
         postAssessmentBeforeDislysis(ParamsQuery).then(response => {
@@ -679,8 +677,10 @@ export default {
679 677
             })
680 678
 
681 679
             const assessment_before_dislysis_resp = response.data.data.assessmentBeforeDislysis
680
+
682 681
             // prop
683 682
             var predialysis_evaluation = this.predialysis_evaluation
683
+            console.log('predialysis_evalution是什么', predialysis_evaluation)
684 684
             for (var index in assessment_before_dislysis_resp) {
685 685
               // predialysis_evaluation[index] = assessment_before_dislysis_resp[index];
686 686
               this.$set(predialysis_evaluation, index, assessment_before_dislysis_resp[index])
@@ -708,10 +708,6 @@ export default {
708 708
       this.blood_access_noise = this.$store.getters.blood_access_noise
709 709
       var date = this.$route.query && this.$route.query.date
710 710
       this.record_date = uParseTime(date, '{y}-{m}-{d}')
711
-
712
-
713
-
714
-
715 711
     }, watch: {
716 712
       isVisibility(val) {
717 713
 
@@ -735,8 +731,6 @@ export default {
735 731
             this.assessmentBeforeDislysis['is_hemorrhage'] = this.predialysis_evaluation['is_hemorrhage'] + ''
736 732
           }
737 733
 
738
-
739
-
740 734
           if (this.predialysis_evaluation['is_infect'] == 0) {
741 735
             this.assessmentBeforeDislysis['is_infect'] = ''
742 736
           } else {
@@ -772,7 +766,6 @@ export default {
772 766
           //   this.assessmentBeforeDislysis['emergency_treatment'] = this.predialysis_evaluation['emergency_treatment'] + ''
773 767
           // }
774 768
 
775
-
776 769
           if (this.predialysis_evaluation['blood_access_part_id'] == 0) {
777 770
             this.assessmentBeforeDislysis['blood_access_part_id'] = ''
778 771
           }

+ 15 - 19
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue Прегледај датотеку

@@ -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]

+ 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
 

+ 15 - 20
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
           }
@@ -382,6 +381,7 @@
382 381
             var solution = resp.data.solution // 透析方案
383 382
             var receiver_treatment_access = resp.data.receiver_treatment_access // 接诊评估
384 383
             var predialysis_evaluation = resp.data.predialysis_evaluation // 透前评估
384
+            console.log('predialysis_evaluation', predialysis_evaluation)
385 385
             var doctor_advices = resp.data.doctor_advices // 临时医嘱
386 386
             var double_check = resp.data.double_check // 双人核对
387 387
             var assessment_after_dislysis = resp.data.assessment_after_dislysis // 透后评估
@@ -389,7 +389,6 @@
389 389
             var monitor_records = resp.data.monitor_records // 透析监测
390 390
             var dialysis_order = resp.data.dialysis_order // 透析记录
391 391
 
392
-
393 392
             var niprocart_info = resp.data.niprocart_info
394 393
             var jms_info = resp.data.jms_info
395 394
             var fistula_needle_set_info = resp.data.fistula_needle_set_info
@@ -406,8 +405,6 @@
406 405
 
407 406
             var config = resp.data.config
408 407
 
409
-
410
-
411 408
             this.niprocart_info = niprocart_info
412 409
             this.jms_info = jms_info
413 410
             this.fistula_needle_set_info = fistula_needle_set_info
@@ -423,8 +420,6 @@
423 420
             this.aliquid_info = aliquid_info
424 421
             this.config = config
425 422
 
426
-
427
-
428 423
             this.patient = patient
429 424
             this.schedual = schedual == null ? { id: 0 } : schedual
430 425
             this.prescription = prescription == null ? { id: 0 } : prescription

Разлика између датотеке није приказан због своје велике величине
+ 1061 - 1239
src/xt_pages/dialysis/dialysisPage.vue


+ 12 - 7
src/xt_pages/sign/index.vue Прегледај датотеку

@@ -27,7 +27,7 @@
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>
30
+                            <span v-else-if="scope.row.dialysis_order && scope.row.dialysis_order.id>0 ">已上机</span>
31 31
                             <span v-else-if="scope.row.signin.id ==0">未签到</span>
32 32
                             <span v-else>已签到</span>
33 33
                         </template>
@@ -81,7 +81,7 @@
81 81
                     <el-row :gutter="20">
82 82
                         <el-col :span="23" align="right" class="button">
83 83
                             <el-button  @click="hide()">取消</el-button>
84
-                            <el-button @click="updateSignweight();sighdata();" type="primary">保存</el-button>
84
+                            <el-button @click="updateSignweight()" type="primary">保存</el-button>
85 85
                         </el-col>
86 86
                     </el-row>
87 87
                    </div>
@@ -233,6 +233,7 @@ export default {
233 233
         if (response.data.state == 1) {
234 234
           if (response.data.data.sign != null) {
235 235
             var sign = response.data.data.sign
236
+            console.log('sign是什么', sign)
236 237
             this.weigh_form.dry_weight = sign.dry_weight
237 238
             this.weigh_form.clothes_weight = sign.clothes_weight
238 239
             // 透前
@@ -323,7 +324,7 @@ export default {
323 324
       getDialysisAfterInfomation(id).then(response => {
324 325
         if (response.data.data.patientinfor != null) {
325 326
           var patientinfor = response.data.data.patientinfor
326
-          console.log(patientinfor)
327
+          console.log('patientInfor', patientinfor)
327 328
           this.weigh_infor.dry_weight = patientinfor.dry_weight
328 329
           if (this.weigh_infor.dry_weight === 0) {
329 330
             this.weigh_infor.dry_weight = ''
@@ -364,6 +365,7 @@ export default {
364 365
     },
365 366
 
366 367
     updateSignweight() {
368
+      // eslint-disable-next-line no-new-object
367 369
       var params = new Object()
368 370
       var data_time = this.querySignParams.date_time
369 371
       params.date_time = data_time
@@ -384,10 +386,13 @@ export default {
384 386
 
385 387
       updateSignweight(params).then(response => {
386 388
         if (response.data.state === 1) {
387
-          this.$message({
388
-            type: 'success',
389
-            message: '成功!'
390
-          })
389
+          var signs = response.data.data.signs
390
+          console.log('signs是什么', signs)
391
+          this.$message.success('成功')
392
+          // this.$message({
393
+          //   type: 'success',
394
+          //   message: '成功!'
395
+          // })
391 396
         }
392 397
       })
393 398
       console.log('params数据', params)