XMLWAN пре 4 година
родитељ
комит
159ea2b37a

+ 2 - 2
src/xt_pages/dialysis/components/allSummary.vue Прегледај датотеку

@@ -260,8 +260,8 @@ export default {
260 260
                this.tableData = schedule
261 261
                var total = response.data.data.total
262 262
                this.total = total
263
-               var consumables = response.data.data.consumables
264
-               this.consuMables = consumables
263
+              //  var consumables = response.data.data.consumables
264
+              //  this.consuMables = consumables
265 265
                var prescription =  response.data.data.prescription
266 266
                this.prescriptionList = prescription
267 267
                var reducelist =  response.data.data.reducelist

+ 137 - 9
src/xt_pages/dialysis/components/dialysisParameters.vue Прегледај датотеку

@@ -56,17 +56,19 @@
56 56
             </el-table-column>
57 57
             <el-table-column align="center" fixed  label="姓名" width="80">
58 58
                <template slot-scope="scope">
59
-                   {{scope.row.patient.name?scope.row.patient.name:""}}
59
+                   <!-- {{scope.row.patient.name?scope.row.patient.name:""}} -->
60
+                   {{scope.row.name?scope.row.name:""}}
60 61
                </template>
61 62
             </el-table-column>
62 63
             <el-table-column align="center"  label="透析模式" width="90">
63 64
                 <template slot-scope="scope">
64
-                   {{scope.row.treatment_mode.name?scope.row.treatment_mode.name:""}}
65
+                   <!-- {{scope.row.treatment_mode.name?scope.row.treatment_mode.name:""}} -->
66
+                   {{scope.row.mode_id}}
65 67
                 </template>
66 68
             </el-table-column>
67 69
             <el-table-column align="center" :label="'上次透后体重\n(kg)'" width="110">
68 70
                 <template slot-scope="scope">
69
-                  {{getLastWeight(scope.row.patient.id)?getLastWeight(scope.row.patient.id):""}}
71
+                  {{getLastWeight(scope.row.patient_id)?getLastWeight(scope.row.patient_id):""}}
70 72
                 </template>
71 73
             </el-table-column>
72 74
             <el-table-column align="center" :label="'透前体重\n(kg)'" width="100">
@@ -256,11 +258,72 @@ export default {
256 258
           getDialysisParameters(params).then(response=>{
257 259
              if(response.data.state == 1){
258 260
                 var schedule = response.data.data.schedule
259
-                console.log("schedule==============",schedule)
261
+            
260 262
                 this.tableData = schedule
261 263
                 var total = response.data.data.total
262
-
263 264
                 this.total = total
265
+                var patient = response.data.data.patient
266
+                 for(let i=0;i<patient.length;i++){
267
+                  if(patient[i].mode_id == 1){
268
+                    patient[i].mode_id = "HD"
269
+                  }
270
+                  if(patient[i].mode_id == 2){
271
+                     patient[i].mode_id = "HDF"
272
+                  }
273
+                  if(patient[i].mode_id == 3){
274
+                     patient[i].mode_id = "HD+HP"
275
+                  }
276
+                  if(patient[i].mode_id == 4){
277
+                     patient[i].mode_id = "HP"
278
+                  }
279
+                  if(patient[i].mode_id == 5){
280
+                     patient[i].mode_id = "HF"
281
+                  }
282
+                  if(patient[i].mode_id == 6){
283
+                     patient[i].mode_id = "SCUF"
284
+                  }
285
+                  if(patient[i].mode_id == 7){
286
+                     patient[i].mode_id = "IUF"
287
+                  }
288
+                  if(patient[i].mode_id == 8){
289
+                     patient[i].mode_id = "HFHD"
290
+                  }
291
+                  if(patient[i].mode_id == 9){
292
+                     patient[i].mode_id = "HFHD+HP"
293
+                  }
294
+                  if(patient[i].mode_id == 10){
295
+                     patient[i].mode_id = "PHF"
296
+                  }
297
+                  if(patient[i].mode_id == 11){
298
+                    patient[i].mode_id = "HFR"
299
+                  }
300
+                  if(patient[i].mode_id == 12){
301
+                     patient[i].mode_id = "HDF+HP"
302
+                  }
303
+                  if(patient[i].mode_id == 13){
304
+                     patient[i].mode_id = "CRRT"
305
+                  }
306
+                  if(patient[i].mode_id == 14){
307
+                     patient[i].mode_id = "腹水回输"
308
+                  }
309
+                  if(patient[i].mode_id == 15){
310
+                     patient[i].mode_id = "HD前置换"
311
+                  }
312
+                  if(patient[i].mode_id == 16){
313
+                     patient[i].mode_id = "HD后置换"
314
+                  }
315
+                  if(patient[i].mode_id == 17){
316
+                     patient[i].mode_id = "HDF前置换"
317
+                  }
318
+                  if(patient[i].mode_id == 18){
319
+                     patient[i].mode_id = "HDF后置换"
320
+                  }
321
+                  if(patient[i].mode_id == 19){
322
+                     patient[i].mode_id = "IUF+HD"
323
+                  }
324
+                }
325
+                this.tableData = patient
326
+                console.log("patient2222",patient)
264 327
              }
265 328
           })
266 329
         },
@@ -292,16 +355,78 @@ export default {
292 355
           getDialysisParameters(params).then(response=>{
293 356
              if(response.data.state == 1){
294 357
                 var schedule = response.data.data.schedule
295
-                console.log("schedule==========",schedule)
296
-                this.tableData = schedule
358
+              
359
+                // this.tableData = schedule
297 360
                 var total = response.data.data.total
298 361
                 this.total = total
299 362
                 var prescription =  response.data.data.prescription
300
-                console.log("prescription09999999999",prescription)
363
+            
301 364
                 this.prescriptionList = prescription
302 365
                 var dialysbefor = response.data.data.dialysbefor
303 366
                 this.dialysisBefor = dialysbefor
304
-                console.log("dialysbefor",dialysbefor)
367
+                
368
+                var patient = response.data.data.patient
369
+                 for(let i=0;i<patient.length;i++){
370
+                  if(patient[i].mode_id == 1){
371
+                    patient[i].mode_id = "HD"
372
+                  }
373
+                  if(patient[i].mode_id == 2){
374
+                     patient[i].mode_id = "HDF"
375
+                  }
376
+                  if(patient[i].mode_id == 3){
377
+                     patient[i].mode_id = "HD+HP"
378
+                  }
379
+                  if(patient[i].mode_id == 4){
380
+                     patient[i].mode_id = "HP"
381
+                  }
382
+                  if(patient[i].mode_id == 5){
383
+                     patient[i].mode_id = "HF"
384
+                  }
385
+                  if(patient[i].mode_id == 6){
386
+                     patient[i].mode_id = "SCUF"
387
+                  }
388
+                  if(patient[i].mode_id == 7){
389
+                     patient[i].mode_id = "IUF"
390
+                  }
391
+                  if(patient[i].mode_id == 8){
392
+                     patient[i].mode_id = "HFHD"
393
+                  }
394
+                  if(patient[i].mode_id == 9){
395
+                     patient[i].mode_id = "HFHD+HP"
396
+                  }
397
+                  if(patient[i].mode_id == 10){
398
+                     patient[i].mode_id = "PHF"
399
+                  }
400
+                  if(patient[i].mode_id == 11){
401
+                    patient[i].mode_id = "HFR"
402
+                  }
403
+                  if(patient[i].mode_id == 12){
404
+                     patient[i].mode_id = "HDF+HP"
405
+                  }
406
+                  if(patient[i].mode_id == 13){
407
+                     patient[i].mode_id = "CRRT"
408
+                  }
409
+                  if(patient[i].mode_id == 14){
410
+                     patient[i].mode_id = "腹水回输"
411
+                  }
412
+                  if(patient[i].mode_id == 15){
413
+                     patient[i].mode_id = "HD前置换"
414
+                  }
415
+                  if(patient[i].mode_id == 16){
416
+                     patient[i].mode_id = "HD后置换"
417
+                  }
418
+                  if(patient[i].mode_id == 17){
419
+                     patient[i].mode_id = "HDF前置换"
420
+                  }
421
+                  if(patient[i].mode_id == 18){
422
+                     patient[i].mode_id = "HDF后置换"
423
+                  }
424
+                  if(patient[i].mode_id == 19){
425
+                     patient[i].mode_id = "IUF+HD"
426
+                  }
427
+                }
428
+                console.log("patient",patient)
429
+                this.tableData = patient
305 430
              }
306 431
           })
307 432
         },
@@ -353,6 +478,7 @@ export default {
353 478
              dryWeight = this.dialysisBefor[i].dry_weight
354 479
           }
355 480
         }
481
+        console.log("dryweight=====",dryWeight)
356 482
        return dryWeight
357 483
      },
358 484
      getSysBloodPressure(id){
@@ -362,6 +488,7 @@ export default {
362 488
              sysBloodPressure = this.dialysisBefor[i].systolic_blood_pressure
363 489
           }
364 490
         }
491
+        console.log("sysBloodPressure=====",sysBloodPressure)
365 492
         return sysBloodPressure
366 493
      },
367 494
      getTargetUltrafiltration(id){
@@ -371,6 +498,7 @@ export default {
371 498
              targetUltrafiltration = this.prescriptionList[i].target_ultrafiltration
372 499
           }
373 500
         }
501
+        console.log("targetUltrafiltration",targetUltrafiltration)
374 502
         return targetUltrafiltration
375 503
      },
376 504
      getBloodFlowVolume(id){