Pārlūkot izejas kodu

Merge remote-tracking branch 'origin/20230223_pc_vue_new_branch' into 20230223_pc_vue_new_branch

yq1 1 mēnesi atpakaļ
vecāks
revīzija
1ea8af009b

+ 28 - 0
src/api/fallassement.js Parādīt failu

@@ -115,3 +115,31 @@ export function getAllNurseList(params){
115 115
       data:data,
116 116
     })
117 117
   }
118
+
119
+
120
+  export function getPatientBedlist(params){
121
+
122
+    return request({
123
+      url:"/api/patient/getpatientbedlist",
124
+      method:"get",
125
+      params:params,
126
+    })
127
+  }
128
+
129
+  export function getPatientBedById(id,params){
130
+
131
+    return request({
132
+      url:"/api/patient/getpatientbedbyid?id="+id,
133
+      method:"get",
134
+      params:params,
135
+    })
136
+  }
137
+
138
+  export function updateBedPatientList(data){
139
+
140
+    return request({
141
+      url:"/api/patient/updatebedpatientlist",
142
+      method:"post",
143
+      data:data
144
+    })
145
+  }

+ 20 - 17
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue Parādīt failu

@@ -3806,15 +3806,15 @@ export default {
3806 3806
                     obj.single_dose = 1
3807 3807
                   }
3808 3808
                   // 针对灵山圣康
3809
-                  if (this.org_id == 0 || this.org_id == 10375) {
3810
-                    if (this.prescriptions[i] != null) {
3811
-                      if (this.prescriptions[i].project.length >= 5) {
3812
-                        this.$message.error('添加条数已经大于5条,添加失败!')
3813
-                        return false
3814
-                      }
3815
-
3816
-                    }
3817
-                  }
3809
+                  // if (this.org_id == 0 || this.org_id == 10375) {
3810
+                  //   if (this.prescriptions[i] != null) {
3811
+                  //     if (this.prescriptions[i].project.length >= 5) {
3812
+                  //       this.$message.error('添加条数已经大于5条,添加失败!')
3813
+                  //       return false
3814
+                  //     }
3815
+
3816
+                  //   }
3817
+                  // }
3818 3818
                   this.prescriptions[i].project.push(obj)
3819 3819
                 }
3820 3820
                 this.curStatus = 2
@@ -3932,6 +3932,7 @@ export default {
3932 3932
                 }
3933 3933
                 // 针对灵山圣康
3934 3934
                 if (this.org_id == 0 || this.org_id == 10375) {
3935
+             
3935 3936
                   if (this.prescriptions[i] != null) {
3936 3937
                     console.log('禅古this.prescriptions[i].advices.length', this.prescriptions[i].advices.length)
3937 3938
                     if (this.prescriptions[i].advices.length >= 5) {
@@ -3989,15 +3990,17 @@ export default {
3989 3990
                   obj.single_dose = 1
3990 3991
                 }
3991 3992
                 // 针对灵山圣康
3992
-                if (this.org_id == 0 || this.org_id == 10375) {
3993
-                  if (this.prescriptions[i] != null) {
3994
-                    if (this.prescriptions[i].project.length >= 5) {
3995
-                      this.$message.error('添加条数已经大于5条,添加失败!')
3996
-                      return false
3997
-                    }
3993
+                // if (this.org_id == 0 || this.org_id == 10375) {
3994
+                  
3995
+                //   if (this.prescriptions[i] != null) {
3996
+                    
3997
+                //     if (this.prescriptions[i].project.length >= 5) {
3998
+                //       this.$message.error('添加条数已经大于5条,添加失败!')
3999
+                //       return false
4000
+                //     }
3998 4001
 
3999
-                  }
4000
-                }
4002
+                //   }
4003
+                // }
4001 4004
                 this.prescriptions[i].project.push(obj)
4002 4005
               }
4003 4006
               this.curStatus = 2

+ 2 - 2
src/xt_pages/user/Informed/Informedconsent.vue Parādīt failu

@@ -679,7 +679,7 @@ export default {
679 679
           this.show14=false,
680 680
           this.show15=true,
681 681
           this.show16=false
682
-          this.getPatientCriticalList()
682
+          // this.getPatientCriticalList()
683 683
         }
684 684
         if(row.value==16){
685 685
           this.filter_show=false
@@ -698,7 +698,7 @@ export default {
698 698
           this.show14=false,
699 699
           this.show15=false,
700 700
           this.show16=true
701
-          this.getPatientCriticalOneList()
701
+          // this.getPatientCriticalOneList()
702 702
         }
703 703
     },
704 704
    

+ 84 - 35
src/xt_pages/user/evaluationtool/OHpressuresore.vue Parādīt failu

@@ -278,7 +278,7 @@
278 278
 import PatientSidebar from '../components/PatientSidebar.vue'
279 279
 import print from 'print-js'
280 280
 import { uParseTime } from '@/utils/tools'
281
-import {getAllNurseList,savePatientHpressuresore} from '@/api/fallassement'
281
+import {getAllNurseList,savePatientHpressuresore,getPatientBedlist,getPedPatientFallAssessmentById,deletePedPatientFallassment,updateBedPatientList} from '@/api/fallassement'
282 282
 export default {
283 283
   components:{
284 284
     PatientSidebar
@@ -322,6 +322,10 @@ export default {
322 322
       dayintime:this.getTime(new Date()),//打印
323 323
       // oh_pinggr:[],
324 324
       nurseList:[],
325
+      limit:10,
326
+      page:1,
327
+      total:0,
328
+      id:0,
325 329
     }
326 330
   },
327 331
   methods:{
@@ -420,41 +424,32 @@ export default {
420 424
         this.add_show=true
421 425
         this.zsgy_open=1
422 426
         this.cancel_num=1
427
+        const data = {}
428
+        var list =[]
429
+        data['patient_id'] =  this.patientID
430
+        data['tiwei'] = this.tiwei_num
431
+        data['bingli'] = this.bingli_num
432
+        data['edema'] = this.edema_num
433
+        data['guanjie'] = this.gaunjie_num
434
+        data['oh_huli'] = this.oh_huli
435
+        data['record_date'] = this.oh_date
436
+        data['oh_appraiser'] = this.oh_appraiser
437
+        data['total'] = this.Totalpoints
438
+        list.push(data)
423 439
         var params={
424
-          patientID:this.patientID,
425
-          tiwei:this.tiwei_num,
426
-          bingli:this.bingli_num,
427
-          edema:this.edema_num,
428
-          guanjie:this.gaunjie_num,
429
-          oh_huli:this.oh_huli,
430
-          oh_date:this.oh_date,
431
-          oh_appraiser:this.oh_appraiser,
432
-          Totalpoints:this.Totalpoints
440
+          patient_id:this.patientID,
441
+          record_date:this.oh_date,
442
+          is_type:2,
443
+          list:list,
433 444
         }
434
-        console.log('params-----',params);
435
-      // savePatientHpressuresore(params).then(response=>{
445
+     
446
+      // console.log("data",data)
447
+      savePatientHpressuresore(params).then(response=>{
448
+         if(response.data.state ==1){
436 449
 
437
-      // })
438
-        // const arr={
439
-        //   id:'002',
440
-        //   date:this.oh_date,
441
-        //   mark:this.Totalpoints,
442
-        //   evaluate:this.oh_appraiser
443
-        // }
444
-        // console.log('rrrrr',arr,params);
445
-        // this.history_OH.push(arr)
446
-        // const lenOH= this.history_OH
447
-        // var nameoh=''
448
-        // for(let i=0;i<lenOH.length;i++){
449
-        //   lenOH[i].mark= this.Totalpoints
450
-        //   for(let y=0;y<this.oh_pinggr.length;y++){
451
-        //     if(this.oh_appraiser==this.oh_pinggr[y].id){
452
-        //       nameoh=this.oh_pinggr[y].label
453
-        //     }
454
-        //   }
455
-        //   lenOH[i].evaluate= nameoh
456
-        // }
457
-        // return this.cancel_num
450
+         }
451
+      })
452
+        // console.log('params-----',params);
458 453
       }
459 454
     },
460 455
     //编辑
@@ -463,10 +458,19 @@ export default {
463 458
       this.zsgy_open=0
464 459
       this.baocun_open=1
465 460
       this.cancel_num=1
461
+      getPedPatientFallAssessmentById(this.id).then(response=>{
462
+        if(response.data.state ==1){
463
+
464
+        }
465
+      })
466 466
     },
467 467
     // 选择需要删除的记录
468 468
     dele_click(row, column, event){
469 469
       this.dele_id=row.id
470
+      //row.id 为 选中当前行的id
471
+      deletePedPatientFallassment(row.id).then(response=>{
472
+
473
+      })
470 474
     },
471 475
     //删除
472 476
     dele_OH(){
@@ -556,14 +560,59 @@ export default {
556 560
           this.nurseList =nurseList
557 561
         }
558 562
     })
559
-  },
563
+   },
564
+   getlist(){
565
+      var params = {
566
+        patient_id:this.patientID,
567
+        limit:this.limit,
568
+        page:this.page,
569
+      }
570
+    getPatientBedlist(params).then(response=>{
571
+       if(response.data.state ==1){
572
+         var list = response.data.data.list
573
+         var total = response.data.data.total
574
+       }
575
+    })
576
+   },
577
+   updateBedPatientList(){
578
+    const data = {}
579
+    var list =[]
580
+    data['patient_id'] =  this.patientID
581
+    data['tiwei'] = this.tiwei_num
582
+    data['bingli'] = this.bingli_num
583
+    data['edema'] = this.edema_num
584
+    data['guanjie'] = this.gaunjie_num
585
+    data['oh_huli'] = this.oh_huli
586
+    data['record_date'] = this.oh_date
587
+    data['oh_appraiser'] = this.oh_appraiser
588
+    data['total'] = this.Totalpoints
589
+    list.push(data)
590
+    var params={
591
+      patient_id:this.patientID,
592
+      record_date:this.oh_date,
593
+      is_type:2,
594
+      list:list,
595
+      id:this.id,//选中当前行的id
596
+    }
597
+    updateBedPatientList(params).then(response=>{
598
+      if(response.data.state ==1){
599
+        var pedFallssessment =  response.data.data.pedFallssessment
600
+        this.$message.success("保存成功")
601
+      }
602
+    })
603
+   }
604
+
560 605
   },
561 606
   computed:{
562 607
     Totalpoints(){
563 608
       return this.gaunjie_num*1 + this.edema_num*1 + this.bingli_num*1 + this.tiwei_num*1
564 609
     }
565 610
   },
566
- 
611
+ created(){
612
+  const id = this.$route.params && this.$route.params.id
613
+  this.patientID = parseInt(id)
614
+  this.getlist()
615
+ }
567 616
 }
568 617
 </script>
569 618
 <style lang="scss" scoped>