Przeglądaj źródła

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

28169 6 miesięcy temu
rodzic
commit
6cef0cb1b0

+ 9 - 0
src/api/qcd.js Wyświetl plik

@@ -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 Wyświetl plik

@@ -360,7 +360,7 @@ import html2canvas from "html2canvas"
360 360
                   this.weight_value = this.weight_gain[i].value
361 361
                 }
362 362
               }
363
-              this.Getdialyzerdetail(this.weight_value)
363
+              this.Getdialyzerdetail(this.weight_value,2)
364 364
             })
365 365
           }
366 366
 
@@ -404,7 +404,7 @@ import html2canvas from "html2canvas"
404 404
       // 详情查询
405 405
       deil_click(){
406 406
         this.currentPage = 1
407
-        this.Getdialyzerdetail(this.weight_value)
407
+        this.Getdialyzerdetail(this.weight_value,2)
408 408
       },
409 409
        // 下载
410 410
       Download_click(){
@@ -498,7 +498,7 @@ import html2canvas from "html2canvas"
498 498
         console.log('eve',eve);
499 499
       },
500 500
       // 详情数据源
501
-      Getdialyzerdetail(add){
501
+      Getdialyzerdetail(add,type){
502 502
         const params ={
503 503
           start_time:this.start_date,
504 504
           end_time:this.end_date,
@@ -508,6 +508,7 @@ import html2canvas from "html2canvas"
508 508
           keyword:this.Patient_name,
509 509
           page:this.currentPage,
510 510
           limit:this.limit,
511
+          item_type:type,
511 512
         }
512 513
         this.loading = true
513 514
         Getweightdetail(params).then(response =>{
@@ -526,7 +527,7 @@ import html2canvas from "html2canvas"
526 527
                   dry_weight:item.dry_weight,
527 528
                   last_weight_after:item.last_weight_after,
528 529
                   weight_before:item.weight_before,
529
-                  weight_add:(item.weight_add*1).toFixed(2),
530
+                  weight_add:((item.weight_before - item.dry_weight) / item.dry_weight).toFixed(3)  ,
530 531
                   weight_after:item.weight_after
531 532
                 }
532 533
                 table.push(obj)
@@ -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,2)
645 646
       },
646 647
       handleSizeChange(val){
647 648
         this.limit = val
648
-        this.Getdialyzerdetail(this.weight_value)
649
+        this.Getdialyzerdetail(this.weight_value,2)
649 650
       },
650 651
       // 性别
651 652
       getgender(ids){

+ 5 - 5
src/xt_pages/Dialysisanalysis/weightblood/components/dry_weight.vue Wyświetl plik

@@ -181,7 +181,7 @@
181 181
 import * as echarts from 'echarts';
182 182
 import XLSX from 'xlsx';
183 183
 import { uParseTime } from "@/utils/tools";
184
-import {Getpatinetweight,Getweightdetail} from '../../../../api/qcd'
184
+import {Getpatinetweight,Getdryweightdetail} from '../../../../api/qcd'
185 185
 import {getAllNurseList} from '@/api/fallassement'
186 186
 import { getAllDoctorList} from "@/api/device"
187 187
 import html2canvas from "html2canvas"
@@ -340,15 +340,15 @@ import html2canvas from "html2canvas"
340 340
       },
341 341
       // 查询
342 342
       sete_click(){
343
-        
343
+
344 344
         this.getecharts()
345 345
       },
346 346
       // 详情查询
347 347
       detil_click(){
348
-        
348
+
349 349
         this.currentPage =1
350 350
         this.getdetail(this.status_value)
351
-        
351
+
352 352
       },
353 353
        // 下载
354 354
       Download_click(){
@@ -411,7 +411,7 @@ import html2canvas from "html2canvas"
411 411
           limit:this.limit,
412 412
         }
413 413
         this.loading = true
414
-        Getweightdetail(params).then(response =>{
414
+        Getdryweightdetail(params).then(response =>{
415 415
           if(response.data.state ==1){
416 416
             const list = response.data.data.list
417 417
             // const xAxis = []

+ 8 - 7
src/xt_pages/Dialysisanalysis/weightblood/components/list_denominator.vue Wyświetl plik

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