陈少旭 6 months ago
parent
commit
10518034aa

+ 9 - 0
src/api/qcd.js View File

@@ -293,3 +293,12 @@ export function Getbpdetail(params) {
293 293
     params: params
294 294
   })
295 295
 }
296
+
297
+//干体重详情
298
+export function Getdryweightdetail(params) {
299
+  return request({
300
+    url: '/api/commonqc/dryweight/detail',
301
+    method: 'get',
302
+    params: params
303
+  })
304
+}

+ 7 - 6
src/xt_pages/Dialysisanalysis/weightblood/components/dry_denominator.vue View File

@@ -358,7 +358,7 @@ import html2canvas from "html2canvas"
358 358
                   this.weight_value = this.weight_gain[i].value
359 359
                 }
360 360
               }
361
-              this.Getdialyzerdetail(this.weight_value)
361
+              this.Getdialyzerdetail(this.weight_value,2)
362 362
             })
363 363
           }
364 364
 
@@ -402,7 +402,7 @@ import html2canvas from "html2canvas"
402 402
       // 详情查询
403 403
       deil_click(){
404 404
         this.currentPage = 1
405
-        this.Getdialyzerdetail(this.weight_value)
405
+        this.Getdialyzerdetail(this.weight_value,2)
406 406
       },
407 407
        // 下载
408 408
       Download_click(){
@@ -496,7 +496,7 @@ import html2canvas from "html2canvas"
496 496
         console.log('eve',eve);
497 497
       },
498 498
       // 详情数据源
499
-      Getdialyzerdetail(add){
499
+      Getdialyzerdetail(add,type){
500 500
         const params ={
501 501
           start_time:this.start_date,
502 502
           end_time:this.end_date,
@@ -506,6 +506,7 @@ import html2canvas from "html2canvas"
506 506
           keyword:this.Patient_name,
507 507
           page:this.currentPage,
508 508
           limit:this.limit,
509
+          item_type:type,
509 510
         }
510 511
         Getweightdetail(params).then(response =>{
511 512
           if(response.data.state == 1){
@@ -523,7 +524,7 @@ import html2canvas from "html2canvas"
523 524
                   dry_weight:item.dry_weight,
524 525
                   last_weight_after:item.last_weight_after,
525 526
                   weight_before:item.weight_before,
526
-                  weight_add:item.weight_add,
527
+                  weight_add:((item.weight_before - item.dry_weight) / item.dry_weight).toFixed(3)  ,
527 528
                   weight_after:item.weight_after
528 529
                 }
529 530
                 table.push(obj)
@@ -637,11 +638,11 @@ import html2canvas from "html2canvas"
637 638
       },
638 639
       handleCurrentChange(val){
639 640
         this.currentPage = val
640
-        this.Getdialyzerdetail(this.weight_value)
641
+        this.Getdialyzerdetail(this.weight_value,2)
641 642
       },
642 643
       handleSizeChange(val){
643 644
         this.limit = val
644
-        this.Getdialyzerdetail(this.weight_value)
645
+        this.Getdialyzerdetail(this.weight_value,2)
645 646
       },
646 647
       // 性别
647 648
       getgender(ids){

+ 2 - 2
src/xt_pages/Dialysisanalysis/weightblood/components/dry_weight.vue View File

@@ -180,7 +180,7 @@
180 180
 import * as echarts from 'echarts';
181 181
 import XLSX from 'xlsx';
182 182
 import { uParseTime } from "@/utils/tools";
183
-import {Getpatinetweight,Getweightdetail} from '../../../../api/qcd'
183
+import {Getpatinetweight,Getdryweightdetail} from '../../../../api/qcd'
184 184
 import {getAllNurseList} from '@/api/fallassement'
185 185
 import { getAllDoctorList} from "@/api/device"
186 186
 import html2canvas from "html2canvas"
@@ -405,7 +405,7 @@ import html2canvas from "html2canvas"
405 405
           page:this.currentPage,
406 406
           limit:this.limit,
407 407
         }
408
-        Getweightdetail(params).then(response =>{
408
+        Getdryweightdetail(params).then(response =>{
409 409
           if(response.data.state ==1){
410 410
             const list = response.data.data.list
411 411
             // const xAxis = []

+ 8 - 7
src/xt_pages/Dialysisanalysis/weightblood/components/list_denominator.vue View File

@@ -356,12 +356,12 @@ import html2canvas from "html2canvas"
356 356
               for(let i in this.weight_gain){
357 357
                 if(params.name == this.weight_gain[i].label){
358 358
                   this.weight_value = this.weight_gain[i].value
359
-                  
359
+
360 360
                 }
361 361
               }
362
-              // this.Getdialyzerdetail(params.name)              
362
+              // this.Getdialyzerdetail(params.name)
363 363
               // console.log('this.weight_value',this.weight_value);
364
-              this.Getdialyzerdetail(this.weight_value)
364
+              this.Getdialyzerdetail(this.weight_value,1)
365 365
             })
366 366
           }
367 367
 
@@ -405,7 +405,7 @@ import html2canvas from "html2canvas"
405 405
       // 详情查询
406 406
       deil_click(){
407 407
         this.currentPage = 1
408
-        this.Getdialyzerdetail(this.weight_value)
408
+        this.Getdialyzerdetail(this.weight_value,1)
409 409
       },
410 410
        // 下载
411 411
       Download_click(){
@@ -499,7 +499,7 @@ import html2canvas from "html2canvas"
499 499
         console.log('eve',eve);
500 500
       },
501 501
       // 详情数据源
502
-      Getdialyzerdetail(add){
502
+      Getdialyzerdetail(add,type){
503 503
         const params ={
504 504
           start_time:this.start_date,
505 505
           end_time:this.end_date,
@@ -509,6 +509,7 @@ import html2canvas from "html2canvas"
509 509
           keyword:this.Patient_name,
510 510
           page:this.currentPage,
511 511
           limit:this.limit,
512
+          item_type:type
512 513
         }
513 514
         Getweightdetail(params).then(response =>{
514 515
           console.log('77777',response);
@@ -641,11 +642,11 @@ import html2canvas from "html2canvas"
641 642
       },
642 643
       handleCurrentChange(val){
643 644
         this.currentPage = val
644
-        this.Getdialyzerdetail(this.weight_value)
645
+        this.Getdialyzerdetail(this.weight_value,1)
645 646
       },
646 647
       handleSizeChange(val){
647 648
         this.limit = val
648
-        this.Getdialyzerdetail(this.weight_value)
649
+        this.Getdialyzerdetail(this.weight_value,1)
649 650
       },
650 651
       // 性别
651 652
       getgender(ids){