Bladeren bron

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

28169 6 maanden geleden
bovenliggende
commit
6cef0cb1b0

+ 9 - 0
src/api/qcd.js Bestand weergeven

293
     params: params
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 Bestand weergeven

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

+ 5 - 5
src/xt_pages/Dialysisanalysis/weightblood/components/dry_weight.vue Bestand weergeven

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

+ 8 - 7
src/xt_pages/Dialysisanalysis/weightblood/components/list_denominator.vue Bestand weergeven

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