Pārlūkot izejas kodu

Merge branch '20200916_pc_vue_new_branch' of http://git.shengws.com/csx/Vue_New into 20200916_pc_vue_new_branch

See999 4 gadus atpakaļ
vecāks
revīzija
04fffebf13

+ 74 - 51
src/xt_pages/dialysis/components/allSummary.vue Parādīt failu

81
                 <span v-if="scope.row.mode_id == 15">HD前置换</span>
81
                 <span v-if="scope.row.mode_id == 15">HD前置换</span>
82
                 <span v-if="scope.row.mode_id == 16">HD后置换</span>
82
                 <span v-if="scope.row.mode_id == 16">HD后置换</span>
83
                 <span v-if="scope.row.mode_id == 17">HDF前置换</span>
83
                 <span v-if="scope.row.mode_id == 17">HDF前置换</span>
84
-                <span v-if="scope.row.mode_id == 18"> HDF后置换</span> 
84
+                <span v-if="scope.row.mode_id == 18"> HDF后置换</span>
85
               </template>
85
               </template>
86
             </el-table-column>
86
             </el-table-column>
87
             <el-table-column align="center" prop="address" :label="item.type_name" v-for="(item,index) in tableName" :key="index">
87
             <el-table-column align="center" prop="address" :label="item.type_name" v-for="(item,index) in tableName" :key="index">
88
-               <template slot-scope="scope"> 
88
+               <template slot-scope="scope">
89
                    <!-- {{getCount(scope.row.patient.id,item.good_id)?getCount(scope.row.patient.id,item.good_id):""}} -->
89
                    <!-- {{getCount(scope.row.patient.id,item.good_id)?getCount(scope.row.patient.id,item.good_id):""}} -->
90
                      {{scope.row.good_type[index].name}}
90
                      {{scope.row.good_type[index].name}}
91
                </template>
91
                </template>
245
           //   }
245
           //   }
246
           //   if(this.selected_date!=''){
246
           //   if(this.selected_date!=''){
247
           //     this.start_time = parseTime(this.selected_date, '{y}-{m}-{d}')
247
           //     this.start_time = parseTime(this.selected_date, '{y}-{m}-{d}')
248
-          //   } 
248
+          //   }
249
            const params ={
249
            const params ={
250
               start_time:this.start_time,
250
               start_time:this.start_time,
251
               scheduleType: this.scheduleType,
251
               scheduleType: this.scheduleType,
252
               partitionType:this.partitionType,
252
               partitionType:this.partitionType,
253
               limit:this.limit,
253
               limit:this.limit,
254
-              page:this.page, 
254
+              page:this.page,
255
               keyword:this.search_input,
255
               keyword:this.search_input,
256
             }
256
             }
257
           getCollectList(params).then(response=>{
257
           getCollectList(params).then(response=>{
260
                this.tableData = schedule
260
                this.tableData = schedule
261
                var total = response.data.data.total
261
                var total = response.data.data.total
262
                this.total = total
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
                var prescription =  response.data.data.prescription
265
                var prescription =  response.data.data.prescription
266
                this.prescriptionList = prescription
266
                this.prescriptionList = prescription
267
                var reducelist =  response.data.data.reducelist
267
                var reducelist =  response.data.data.reducelist
268
                this.reduceList = reducelist
268
                this.reduceList = reducelist
269
               var good_type = response.data.data.good_type
269
               var good_type = response.data.data.good_type
270
-               console.log("godd_type",good_type)
270
+               // console.log("godd_type",good_type)
271
               this.tableName = good_type
271
               this.tableName = good_type
272
               this.allGoodInfo = response.data.data.dialysis_goods
272
               this.allGoodInfo = response.data.data.dialysis_goods
273
-              console.log("1111111",response.data.data.dialysis_goods)
273
+              // console.log("1111111",response.data.data.dialysis_goods)
274
               this.list = []
274
               this.list = []
275
               this.good_types = []
275
               this.good_types = []
276
               this.allGoodInfo = []
276
               this.allGoodInfo = []
277
               this.good_types.push("姓名")
277
               this.good_types.push("姓名")
278
-           
278
+
279
              for (let a = 0; a <  response.data.data.good_type.length; a++){
279
              for (let a = 0; a <  response.data.data.good_type.length; a++){
280
                 this.good_types.push(response.data.data.good_type[a].type_name)
280
                 this.good_types.push(response.data.data.good_type[a].type_name)
281
               }
281
               }
299
 
299
 
300
 
300
 
301
              console.log("2222222",arr)
301
              console.log("2222222",arr)
302
-            
302
+
303
 
303
 
304
               let newObj = {
304
               let newObj = {
305
                 "patient_id":response.data.data.dialysis_goods[i].patient_id,
305
                 "patient_id":response.data.data.dialysis_goods[i].patient_id,
311
                 "good_user_detail":response.data.data.dialysis_goods[i].good_user_detail,
311
                 "good_user_detail":response.data.data.dialysis_goods[i].good_user_detail,
312
                 "last_good_user_detail":response.data.data.dialysis_goods[i].last_good_user_detail,
312
                 "last_good_user_detail":response.data.data.dialysis_goods[i].last_good_user_detail,
313
               }
313
               }
314
-             
314
+
315
               this.list.push(newObj)
315
               this.list.push(newObj)
316
               }
316
               }
317
-              
317
+
318
             for (let a = 0; a <  this.list.length; a++){
318
             for (let a = 0; a <  this.list.length; a++){
319
               for (let b = 0; b <  this.list[a].good_type.length; b++){
319
               for (let b = 0; b <  this.list[a].good_type.length; b++){
320
                 if(this.list[a].good_type[b].id > 0){
320
                 if(this.list[a].good_type[b].id > 0){
334
           //   }
334
           //   }
335
           //   if(this.selected_date!=''){
335
           //   if(this.selected_date!=''){
336
           //     this.start_time = parseTime(this.selected_date, '{y}-{m}-{d}')
336
           //     this.start_time = parseTime(this.selected_date, '{y}-{m}-{d}')
337
-          //   } 
337
+          //   }
338
            const params = {
338
            const params = {
339
               startime:this.start_time
339
               startime:this.start_time
340
            }
340
            }
360
           //   }
360
           //   }
361
           //   if(this.selected_date!=''){
361
           //   if(this.selected_date!=''){
362
           //     this.start_time = parseTime(this.selected_date, '{y}-{m}-{d}')
362
           //     this.start_time = parseTime(this.selected_date, '{y}-{m}-{d}')
363
-          //   } 
363
+          //   }
364
            const params ={
364
            const params ={
365
               start_time:this.start_time,
365
               start_time:this.start_time,
366
               scheduleType: this.scheduleType,
366
               scheduleType: this.scheduleType,
367
               partitionType:this.partitionType,
367
               partitionType:this.partitionType,
368
               limit:this.limit,
368
               limit:this.limit,
369
-              page:this.page, 
369
+              page:this.page,
370
               keyword:this.search_input,
370
               keyword:this.search_input,
371
             }
371
             }
372
           getCollectList(params).then(response=>{
372
           getCollectList(params).then(response=>{
373
              if(response.data.state == 1){
373
              if(response.data.state == 1){
374
-               var schedule = response.data.data.schedule      
374
+               var schedule = response.data.data.schedule
375
                this.tableData = schedule
375
                this.tableData = schedule
376
-               var total = response.data.data.total      
376
+               var total = response.data.data.total
377
                this.total = total
377
                this.total = total
378
-               var consumables = response.data.data.consumables       
378
+               var consumables = response.data.data.consumables
379
                this.consuMables = consumables
379
                this.consuMables = consumables
380
-               var prescription =  response.data.data.prescription        
380
+               var prescription =  response.data.data.prescription
381
                this.prescriptionList = prescription
381
                this.prescriptionList = prescription
382
-               var reducelist =  response.data.data.reducelist          
382
+               var reducelist =  response.data.data.reducelist
383
                this.reduceList = reducelist
383
                this.reduceList = reducelist
384
                 var good_type = response.data.data.good_type
384
                 var good_type = response.data.data.good_type
385
                console.log("godd_type",good_type)
385
                console.log("godd_type",good_type)
390
               this.good_types = []
390
               this.good_types = []
391
               this.allGoodInfo = []
391
               this.allGoodInfo = []
392
               this.good_types.push("姓名")
392
               this.good_types.push("姓名")
393
-           
393
+
394
              for (let a = 0; a <  response.data.data.good_type.length; a++){
394
              for (let a = 0; a <  response.data.data.good_type.length; a++){
395
                 this.good_types.push(response.data.data.good_type[a].type_name)
395
                 this.good_types.push(response.data.data.good_type[a].type_name)
396
               }
396
               }
414
 
414
 
415
 
415
 
416
              console.log("2222222",arr)
416
              console.log("2222222",arr)
417
-            
417
+
418
 
418
 
419
               let newObj = {
419
               let newObj = {
420
                 "patient_id":response.data.data.dialysis_goods[i].patient_id,
420
                 "patient_id":response.data.data.dialysis_goods[i].patient_id,
426
                 "good_user_detail":response.data.data.dialysis_goods[i].good_user_detail,
426
                 "good_user_detail":response.data.data.dialysis_goods[i].good_user_detail,
427
                 "last_good_user_detail":response.data.data.dialysis_goods[i].last_good_user_detail,
427
                 "last_good_user_detail":response.data.data.dialysis_goods[i].last_good_user_detail,
428
               }
428
               }
429
-             
429
+
430
               this.list.push(newObj)
430
               this.list.push(newObj)
431
               }
431
               }
432
-              
432
+
433
             for (let a = 0; a <  this.list.length; a++){
433
             for (let a = 0; a <  this.list.length; a++){
434
               for (let b = 0; b <  this.list[a].good_type.length; b++){
434
               for (let b = 0; b <  this.list[a].good_type.length; b++){
435
                 if(this.list[a].good_type[b].id > 0){
435
                 if(this.list[a].good_type[b].id > 0){
438
 
438
 
439
               }
439
               }
440
               }
440
               }
441
-              console.log("list22222",this.list) 
441
+              console.log("list22222",this.list)
442
              }
442
              }
443
           })
443
           })
444
         },
444
         },
472
           if(this.prescriptionList[i].patient_id == id){
472
           if(this.prescriptionList[i].patient_id == id){
473
              anticoagulant = this.prescriptionList[i].anticoagulant
473
              anticoagulant = this.prescriptionList[i].anticoagulant
474
           }
474
           }
475
-        } 
475
+        }
476
        return anticoagulant
476
        return anticoagulant
477
      },
477
      },
478
      getAnticoagulantShouji(id){
478
      getAnticoagulantShouji(id){
479
        var shouji = ""
479
        var shouji = ""
480
        for(let i=0;i<this.prescriptionList.length;i++){
480
        for(let i=0;i<this.prescriptionList.length;i++){
481
-         if(this.prescriptionList[i].patient_id == id){
481
+         if(this.prescriptionList[i].patient_id == id && this.prescriptionList[i].anticoagulant_shouji!=0 ){
482
             shouji = "("+this.prescriptionList[i].anticoagulant_shouji
482
             shouji = "("+this.prescriptionList[i].anticoagulant_shouji
483
           }
483
           }
484
-        } 
484
+        }
485
        return shouji
485
        return shouji
486
      },
486
      },
487
      getAnticoagulantWeichi(id){
487
      getAnticoagulantWeichi(id){
488
         var weichi = ""
488
         var weichi = ""
489
         for(let i=0;i<this.prescriptionList.length;i++){
489
         for(let i=0;i<this.prescriptionList.length;i++){
490
-         if(this.prescriptionList[i].patient_id == id){
490
+         if(this.prescriptionList[i].patient_id == id && this.prescriptionList[i].anticoagulant_weichi!=0){
491
             weichi = "("+this.prescriptionList[i].anticoagulant_weichi
491
             weichi = "("+this.prescriptionList[i].anticoagulant_weichi
492
-        } 
492
+        }
493
        return weichi
493
        return weichi
494
       }
494
       }
495
      },
495
      },
496
      getAnticoagulantZongliang(id){
496
      getAnticoagulantZongliang(id){
497
        var zongliang = ""
497
        var zongliang = ""
498
        for(let i=0;i<this.prescriptionList.length;i++){
498
        for(let i=0;i<this.prescriptionList.length;i++){
499
-         if(this.prescriptionList[i].patient_id == id){
499
+         if(this.prescriptionList[i].patient_id == id && this.prescriptionList[i].anticoagulant_zongliang!=0){
500
             zongliang = "("+this.prescriptionList[i].anticoagulant_zongliang
500
             zongliang = "("+this.prescriptionList[i].anticoagulant_zongliang
501
           }
501
           }
502
-        } 
502
+        }
503
        return zongliang
503
        return zongliang
504
      },
504
      },
505
-      getGoodUserInfo(good_type_id,good_user,last_good_user) {
506
-        if (good_user != null && good_user.length > 0) {
507
-          let desc = ""
508
-          for (let b = 0; b < good_user.length; b++){
509
-            if(good_type_id == good_user[b].good_type_id)
510
-              desc = desc + "\n" + good_user[b].info.specification_name +"*" +good_user[b].count
511
-          }
512
-         
505
+      // getGoodUserInfo(good_type_id,good_user,last_good_user) {
506
+      //   if (good_user != null && good_user.length > 0) {
507
+      //     let desc = ""
508
+      //     for (let b = 0; b < good_user.length; b++){
509
+      //       if(good_type_id == good_user[b].good_type_id)
510
+      //         desc = desc + "\n" + good_user[b].info.specification_name +"*" +good_user[b].count
511
+      //     }
513
 
512
 
514
-          return desc
515
-        } else if (good_user != null && good_user.length <= 0) {
516
-          if (last_good_user != null && last_good_user.length > 0) {
517
-            let desc = ""
518
-            for (let b = 0; b < last_good_user.length; b++){
519
-              if(good_type_id == last_good_user[b].good_type_id)
520
-                desc = desc+ "\n" + last_good_user[b].info.specification_name +"*" +last_good_user[b].count
521
-            }
522
-          
523
 
513
 
524
-            return desc
514
+      //     return desc
515
+      //   } else if (good_user != null && good_user.length <= 0) {
516
+      //     if (last_good_user != null && last_good_user.length > 0) {
517
+      //       let desc = ""
518
+      //       for (let b = 0; b < last_good_user.length; b++){
519
+      //         if(good_type_id == last_good_user[b].good_type_id)
520
+      //           desc = desc+ "\n" + last_good_user[b].info.specification_name +"*" +last_good_user[b].count
521
+      //       }
522
+
523
+
524
+      //       return desc
525
+
526
+      //     }
527
+      //     return ""
528
+      //   }
529
+      // },
525
 
530
 
531
+       getGoodUserInfo(good_type_id, good_user, last_good_user, good_user_detail, last_good_user_detail) {
532
+        if (good_user != null && good_user.length > 0) {
533
+          let desc = ""
534
+          for (let b = 0; b < good_user.length; b++) {
535
+            if (good_type_id == good_user[b].good_type_id)
536
+              desc = desc + " " + good_user[b].info.specification_name + "*" + good_user[b].count
526
           }
537
           }
527
-          return ""
538
+          return desc
539
+          // } else if (good_user.length <= 0) {
540
+          //   if (last_good_user != null && last_good_user.length > 0) {
541
+          //     let desc = ""
542
+          //     for (let b = 0; b < last_good_user.length; b++){
543
+          //       if(good_type_id == last_good_user[b].good_type_id)
544
+          //         desc = desc + " " + last_good_user[b].info.specification_name +"*" +last_good_user[b].count
545
+          //     }
546
+          //     return desc
547
+          //
548
+          //   }
549
+          //   return ""
528
         }
550
         }
551
+        return ""
529
       },
552
       },
530
     }
553
     }
531
 }
554
 }

+ 137 - 8
src/xt_pages/dialysis/components/dialysisParameters.vue Parādīt failu

56
             </el-table-column>
56
             </el-table-column>
57
             <el-table-column align="center" fixed  label="姓名" width="80">
57
             <el-table-column align="center" fixed  label="姓名" width="80">
58
                <template slot-scope="scope">
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
                </template>
61
                </template>
61
             </el-table-column>
62
             </el-table-column>
62
             <el-table-column align="center"  label="透析模式" width="90">
63
             <el-table-column align="center"  label="透析模式" width="90">
63
                 <template slot-scope="scope">
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
                 </template>
67
                 </template>
66
             </el-table-column>
68
             </el-table-column>
67
             <el-table-column align="center" :label="'上次透后体重\n(kg)'" width="110">
69
             <el-table-column align="center" :label="'上次透后体重\n(kg)'" width="110">
68
                 <template slot-scope="scope">
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
                 </template>
72
                 </template>
71
             </el-table-column>
73
             </el-table-column>
72
             <el-table-column align="center" :label="'透前体重\n(kg)'" width="100">
74
             <el-table-column align="center" :label="'透前体重\n(kg)'" width="100">
256
           getDialysisParameters(params).then(response=>{
258
           getDialysisParameters(params).then(response=>{
257
              if(response.data.state == 1){
259
              if(response.data.state == 1){
258
                 var schedule = response.data.data.schedule
260
                 var schedule = response.data.data.schedule
259
-                // console.log("schedule",schedule)
261
+            
260
                 this.tableData = schedule
262
                 this.tableData = schedule
261
                 var total = response.data.data.total
263
                 var total = response.data.data.total
262
-
263
                 this.total = total
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
           getDialysisParameters(params).then(response=>{
355
           getDialysisParameters(params).then(response=>{
293
              if(response.data.state == 1){
356
              if(response.data.state == 1){
294
                 var schedule = response.data.data.schedule
357
                 var schedule = response.data.data.schedule
295
-                console.log("schedule",schedule)
296
-                this.tableData = schedule
358
+              
359
+                // this.tableData = schedule
297
                 var total = response.data.data.total
360
                 var total = response.data.data.total
298
                 this.total = total
361
                 this.total = total
299
                 var prescription =  response.data.data.prescription
362
                 var prescription =  response.data.data.prescription
363
+            
300
                 this.prescriptionList = prescription
364
                 this.prescriptionList = prescription
301
                 var dialysbefor = response.data.data.dialysbefor
365
                 var dialysbefor = response.data.data.dialysbefor
302
                 this.dialysisBefor = dialysbefor
366
                 this.dialysisBefor = dialysbefor
303
-                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
304
              }
430
              }
305
           })
431
           })
306
         },
432
         },
352
              dryWeight = this.dialysisBefor[i].dry_weight
478
              dryWeight = this.dialysisBefor[i].dry_weight
353
           }
479
           }
354
         }
480
         }
481
+        console.log("dryweight=====",dryWeight)
355
        return dryWeight
482
        return dryWeight
356
      },
483
      },
357
      getSysBloodPressure(id){
484
      getSysBloodPressure(id){
361
              sysBloodPressure = this.dialysisBefor[i].systolic_blood_pressure
488
              sysBloodPressure = this.dialysisBefor[i].systolic_blood_pressure
362
           }
489
           }
363
         }
490
         }
491
+        console.log("sysBloodPressure=====",sysBloodPressure)
364
         return sysBloodPressure
492
         return sysBloodPressure
365
      },
493
      },
366
      getTargetUltrafiltration(id){
494
      getTargetUltrafiltration(id){
370
              targetUltrafiltration = this.prescriptionList[i].target_ultrafiltration
498
              targetUltrafiltration = this.prescriptionList[i].target_ultrafiltration
371
           }
499
           }
372
         }
500
         }
501
+        console.log("targetUltrafiltration",targetUltrafiltration)
373
         return targetUltrafiltration
502
         return targetUltrafiltration
374
      },
503
      },
375
      getBloodFlowVolume(id){
504
      getBloodFlowVolume(id){

+ 27 - 3
src/xt_pages/dialysis/dialysisPrintOrder.vue Parādīt failu

344
           >打印</el-button
344
           >打印</el-button
345
         >
345
         >
346
       </template>
346
       </template>
347
+       <template v-if="org_template_info.template_id == 25">
348
+        <el-button
349
+          :loading="loading"
350
+          size="small"
351
+          icon="el-icon-printer"
352
+          @click="printThisPage"
353
+          type="primary"
354
+          >打印</el-button
355
+        >
356
+      </template>
347
     </div>
357
     </div>
348
     <div class="app-container" style="min-height:0;">
358
     <div class="app-container" style="min-height:0;">
349
       <!--<div class="order-print-btn"-->
359
       <!--<div class="order-print-btn"-->
544
             v-bind:childResponse="childResponse"
554
             v-bind:childResponse="childResponse"
545
             v-if="org_template_info.template_id == 24"
555
             v-if="org_template_info.template_id == 24"
546
           ></DialysisPrintOrderTwentyFour>
556
           ></DialysisPrintOrderTwentyFour>
557
+          <DialysisPrintOrderTwentyFive
558
+            v-bind:childResponse="childResponse"
559
+            v-if="org_template_info.template_id == 25"
560
+          >
561
+          </DialysisPrintOrderTwentyFive>
547
         </div>
562
         </div>
548
       </el-container>
563
       </el-container>
549
     </div>
564
     </div>
587
 import DialysisPrintOrderTwentyTwo from "./template/DialysisPrintOrderTwentyTwo";
602
 import DialysisPrintOrderTwentyTwo from "./template/DialysisPrintOrderTwentyTwo";
588
 import DialysisPrintOrderTwentyThree from "./template/DialysisPrintOrderTwentyThree";
603
 import DialysisPrintOrderTwentyThree from "./template/DialysisPrintOrderTwentyThree";
589
 import DialysisPrintOrderTwentyFour from "./template/DialysisPrintOrderTwentyFour";
604
 import DialysisPrintOrderTwentyFour from "./template/DialysisPrintOrderTwentyFour";
590
-
605
+import DialysisPrintOrderTwentyFive from "./template/DialysisPrintOrderTwentyFive";
591
 export default {
606
 export default {
592
   name: "dialysisPrintOrder",
607
   name: "dialysisPrintOrder",
593
   components: {
608
   components: {
609
+    DialysisPrintOrderTwentyFive,
594
     DialysisPrintOrderTwentyFour,
610
     DialysisPrintOrderTwentyFour,
595
     DialysisPrintOrderTwentyThree,
611
     DialysisPrintOrderTwentyThree,
596
     DialysisPrintOrderTwentyTwo,
612
     DialysisPrintOrderTwentyTwo,
615
     DialysisPrintOrderSeven,
631
     DialysisPrintOrderSeven,
616
     DialysisPrintOrderEight,
632
     DialysisPrintOrderEight,
617
     DialysisPrintOrderNine,
633
     DialysisPrintOrderNine,
634
+
618
     LabelBox,
635
     LabelBox,
619
     BreadCrumb
636
     BreadCrumb
620
   },
637
   },
851
           style: style,
868
           style: style,
852
           scanStyles: false
869
           scanStyles: false
853
         });
870
         });
854
-      } else if (this.org_template_info.template_id == 9) {
871
+      } else if (this.org_template_info.template_id == 9 ||  this.org_template_info.template_id==25) {
855
         printJS({
872
         printJS({
856
           printable: "dialysis-print-box",
873
           printable: "dialysis-print-box",
857
           type: "html",
874
           type: "html",
949
           style: style,
966
           style: style,
950
           scanStyles: false
967
           scanStyles: false
951
         });
968
         });
952
-      } 
969
+      }else if (this.org_template_info.template_id == 25) {
970
+        printJS({
971
+          printable: "dialysis-print-box",
972
+          type: "html",
973
+          style: style5,
974
+          scanStyles: false
975
+        });
976
+      }
953
     },
977
     },
954
     printThisOnePage() {
978
     printThisOnePage() {
955
       var ptime = Math.round(new Date().getTime() / 1000);
979
       var ptime = Math.round(new Date().getTime() / 1000);

Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 1820 - 0
src/xt_pages/dialysis/template/DialysisPrintOrderTwentyFive.vue