Browse Source

耗材参数

XMLWAN 4 years ago
parent
commit
186d875097
1 changed files with 30 additions and 30 deletions
  1. 30 30
      src/xt_pages/dialysis/components/allSummary.vue

+ 30 - 30
src/xt_pages/dialysis/components/allSummary.vue View File

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=>{
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) {
505
       // getGoodUserInfo(good_type_id,good_user,last_good_user) {
509
       //       if(good_type_id == good_user[b].good_type_id)
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
510
       //         desc = desc + "\n" + good_user[b].info.specification_name +"*" +good_user[b].count
511
       //     }
511
       //     }
512
-         
512
+
513
 
513
 
514
       //     return desc
514
       //     return desc
515
       //   } else if (good_user != null && good_user.length <= 0) {
515
       //   } else if (good_user != null && good_user.length <= 0) {
519
       //         if(good_type_id == last_good_user[b].good_type_id)
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
520
       //           desc = desc+ "\n" + last_good_user[b].info.specification_name +"*" +last_good_user[b].count
521
       //       }
521
       //       }
522
-          
522
+
523
 
523
 
524
       //       return desc
524
       //       return desc
525
 
525