Quellcode durchsuchen

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

yq1 vor 1 Jahr
Ursprung
Commit
ef6190c059

+ 36 - 0
src/api/fallassement.js Datei anzeigen

@@ -16,4 +16,40 @@ export function getAllNurseList(params){
16 16
       method:"post",
17 17
       data:data,
18 18
     })
19
+  }
20
+
21
+  export function getPatientFallsessmentList(params){
22
+   
23
+    return request({
24
+      url:"/api/patient/getpatientfallsessmentlist",
25
+      method:"Get",
26
+      params:params,
27
+    })
28
+  }
29
+
30
+  export function getPatientFallssessmentById(id,params){
31
+    
32
+    return request({
33
+      url:"/api/patient/getpatientfallssessmentById?id="+id,
34
+      method:"Get",
35
+      params:params
36
+    })
37
+  }
38
+
39
+  export function DeletePatientFallassessment(id,params){
40
+   
41
+    return request({
42
+      url:"/api/patient/deletepatientfallassessment?id="+id,
43
+      method:"get",
44
+      params:params
45
+    })
46
+  }
47
+
48
+  export function updatePatientFallassment(data){
49
+
50
+    return request({
51
+      url:"/api/patient/updatepatientfallassment",
52
+      method:"post",
53
+      data:data
54
+    })
19 55
   }

+ 9 - 0
src/api/patient.js Datei anzeigen

@@ -1048,4 +1048,13 @@ export function getPatientMeDicalList(params){
1048 1048
     method:"get",
1049 1049
     params:params,
1050 1050
   })
1051
+}
1052
+
1053
+export function updatePatientFallassment(params){
1054
+  
1055
+  return request({
1056
+    url:"/api/patient/updatepatientfallassment",
1057
+    method:"get",
1058
+    params:params,
1059
+  })
1051 1060
 }

+ 66 - 55
src/router/modules/Dialysisanalysis.js Datei anzeigen

@@ -3,6 +3,8 @@ import Layout from '@/views/layout/Layout'
3 3
 export default {
4 4
   path: '/Dialysisanalysis',
5 5
   component: Layout,
6
+  // component: () => import('@/xt_pages/Dialysisanalysis/otherIndicators/index'),
7
+
6 8
   redirect: '/Dialysisanalysis/qualitycontrol/thyroidGland',
7 9
   name: 'Dialysisanalysis',
8 10
   alwaysShow: true,
@@ -16,10 +18,11 @@ export default {
16 18
       component: () => import('@/xt_pages/Dialysisanalysis/otherIndicators/index'),
17 19
       name: 'otherIndicators',
18 20
       meta: {
19
-        title: '其他指标',
21
+        title: '专业质控',
20 22
         noCache: true
21 23
       }
22
-    }, {
24
+    },
25
+    {
23 26
       path: '/Dialysisanalysis/qualitycontrol/Indicatorsdetail',
24 27
       component: () => import('@/xt_pages/Dialysisanalysis/otherIndicators/otherIndicators'),
25 28
       name: 'otherIndicators_two',
@@ -30,74 +33,82 @@ export default {
30 33
         noCache: true
31 34
       }
32 35
     },
36
+    // {
37
+    //   path: '/Dialysisanalysis/qualitycontrol/thyroidGland',
38
+    //   component: () => import('@/xt_pages/Dialysisanalysis/qualitycontrol/thyroidGland'),
39
+    //   name: 'thyroidGland',
40
+    //   meta: {
41
+    //     title: '甲状旁腺激素分析',
42
+    //     noCache: true
43
+    //   }
44
+    // },
45
+    // {
46
+    //   path: '/Dialysisanalysis/qualitycontrol/hemoglobin',
47
+    //   component: () => import('@/xt_pages/Dialysisanalysis/hemoglobin/index'),
48
+    //   name: 'thyroidGland',
49
+    //   meta: {
50
+    //     title: '血红蛋白',
51
+    //     noCache: true
52
+    //   }
53
+    // },
54
+    // {
55
+    //   path: '/Dialysisanalysis/qualitycontrol/bloodPotassium',
56
+    //   component: () => import('@/xt_pages/Dialysisanalysis/bloodPotassium/index'),
57
+    //   name: 'thyroidGland',
58
+    //   meta: {
59
+    //     title: '血钾',
60
+    //     noCache: true
61
+    //   }
62
+    // },
63
+    // {
64
+    //   path: '/Dialysisanalysis/qualitycontrol/albumin',
65
+    //   component: () => import('@/xt_pages/Dialysisanalysis/albumin/index'),
66
+    //   name: 'thyroidGland',
67
+    //   meta: {
68
+    //     title: '白蛋白',
69
+    //     noCache: true
70
+    //   }
71
+    // },
72
+    // {
73
+    //   path: '/Dialysisanalysis/qualitycontrol/bloodPhosphorus',
74
+    //   component: () => import('@/xt_pages/Dialysisanalysis/bloodPhosphorus/index'),
75
+    //   name: 'thyroidGland',
76
+    //   meta: {
77
+    //     title: '血磷',
78
+    //     noCache: true
79
+    //   }
80
+    // },
81
+    // {
82
+    //   path: '/Dialysisanalysis/qualitycontrol/calcium',
83
+    //   component: () => import('@/xt_pages/Dialysisanalysis/calcium/index'),
84
+    //   name: 'thyroidGland',
85
+    //   meta: {
86
+    //     title: '钙',
87
+    //     noCache: true
88
+    //   }},
33 89
     {
34
-      path: '/Dialysisanalysis/qualitycontrol/thyroidGland',
35
-      component: () => import('@/xt_pages/Dialysisanalysis/qualitycontrol/thyroidGland'),
36
-      name: 'thyroidGland',
37
-      meta: {
38
-        title: '甲状旁腺激素分析',
39
-        noCache: true
40
-      }
41
-    },
42
-    {
43
-      path: '/Dialysisanalysis/qualitycontrol/hemoglobin',
44
-      component: () => import('@/xt_pages/Dialysisanalysis/hemoglobin/index'),
45
-      name: 'thyroidGland',
46
-      meta: {
47
-        title: '血红蛋白',
48
-        noCache: true
49
-      }
50
-    },
51
-    {
52
-      path: '/Dialysisanalysis/qualitycontrol/bloodPotassium',
53
-      component: () => import('@/xt_pages/Dialysisanalysis/bloodPotassium/index'),
54
-      name: 'thyroidGland',
55
-      meta: {
56
-        title: '血钾',
57
-        noCache: true
58
-      }
59
-    },
60
-    {
61
-      path: '/Dialysisanalysis/qualitycontrol/albumin',
62
-      component: () => import('@/xt_pages/Dialysisanalysis/albumin/index'),
63
-      name: 'thyroidGland',
64
-      meta: {
65
-        title: '白蛋白',
66
-        noCache: true
67
-      }
68
-    },
69
-    {
70
-      path: '/Dialysisanalysis/qualitycontrol/bloodPhosphorus',
71
-      component: () => import('@/xt_pages/Dialysisanalysis/bloodPhosphorus/index'),
72
-      name: 'thyroidGland',
73
-      meta: {
74
-        title: '血磷',
75
-        noCache: true
76
-      }
77
-    }, {
78
-      path: '/Dialysisanalysis/qualitycontrol/calcium',
79
-      component: () => import('@/xt_pages/Dialysisanalysis/calcium/index'),
80
-      name: 'thyroidGland',
81
-      meta: {
82
-        title: '钙',
83
-        noCache: true
84
-      }},{
85 90
       path: '/Dialysisanalysis/qualitycontrol/platelets',
86 91
       component: () => import('@/xt_pages/Dialysisanalysis/platelets/index'),
87 92
       name: 'thyroidGland',
93
+      hidden: true,
94
+      is_menu: false,
88 95
       meta: {
89 96
         title: 'KTV/URR',
90 97
         noCache: true
91 98
       }
92
-    },{
99
+    },
100
+    {
93 101
       path: '/Dialysisanalysis/qualitycontrol/summary',
94 102
       component: () => import('@/xt_pages/Dialysisanalysis/summary/index'),
95 103
       name: 'index_summary',
104
+      hidden: true,
105
+      is_menu: false,
96 106
       meta: {
97 107
         title: '指标汇总',
98 108
         noCache: true
99 109
       }
100
-    },{
110
+    },
111
+    {
101 112
       path: '/Dialysisanalysis/qualitycontrol/print',
102 113
       component: () => import('@/xt_pages/Dialysisanalysis/print/print'),
103 114
       name: 'print',

+ 4 - 7
src/xt_pages/Dialysisanalysis/otherIndicators/otherIndicatorsall.vue Datei anzeigen

@@ -78,7 +78,7 @@
78 78
         <el-table-column
79 79
           prop="name"
80 80
           align="center"
81
-          label="血红蛋白"
81
+          :label="item_name"
82 82
 
83 83
 
84 84
         >
@@ -321,6 +321,7 @@ export default {
321 321
       keyword:"",
322 322
       patientTableData:[],
323 323
       indicators:[],
324
+      item_name:"",
324 325
     }
325 326
   },
326 327
   mounted() {
@@ -507,12 +508,8 @@ export default {
507 508
         if (response.data.state == 1) {
508 509
           this.reference = response.data.data.reference
509 510
           this.config = response.data.data.config
510
-
511
-          for(var i = 0; i < this.indicators.length;i++){
512
-            if(this.indicators[i].id == this.project_type){
513
-              this.input = this.config.min_range + "<=" +  this.indicators[i].label + "<=" +this.config.large_range
514
-            }
515
-          }
511
+          this.input = this.config.min_range + "<=" +  this.reference.item_name + "<=" +this.config.large_range
512
+          this.item_name = this.reference.item_name
516 513
           let objone = {
517 514
             value:  response.data.data.unusual_total ,
518 515
             name: '不达标值患者',

+ 17 - 24
src/xt_pages/user/courseOfDisease.vue Datei anzeigen

@@ -838,30 +838,23 @@
838 838
         this.$router.push('/patients/patients')
839 839
         return
840 840
       }
841
-      var now = new Date()
842
-      this.date = [now.getTime() - (7 * 24 * 60 * 60 * 1000), now.getTime()]
843
-
844
-      var nowDate = new Date()
845
-      var nowYear = nowDate.getFullYear()
846
-      var nowMonth = nowDate.getMonth() + 1
847
-      var nowDay = nowDate.getDate()
848
-      this.end_time =
849
-        nowYear +
850
-        '-' +
851
-        (nowMonth < 10 ? '0' + nowMonth : nowMonth) +
852
-        '-' +
853
-        (nowDay < 10 ? '0' + nowDay : nowDay)
854
-      nowDate.setMonth(nowDate.getMonth() - 1)
855
-      nowYear = nowDate.getFullYear() -1
856
-      nowMonth = nowDate.getMonth() + 1
857
-      nowDay = nowDate.getDate()
858
-      this.start_time =
859
-        nowYear +
860
-        '-' +
861
-        (nowMonth < 10 ? '0' + nowMonth : nowMonth) +
862
-        '-' +
863
-        (nowDay < 10 ? '0' + nowDay : nowDay)
864
-
841
+      // var now = new Date()
842
+      // this.date = [now.getTime() - (7 * 24 * 60 * 60 * 1000), now.getTime()]
843
+
844
+      // var nowDate = new Date()
845
+      // var nowYear = nowDate.getFullYear()
846
+      // var nowMonth = nowDate.getMonth() + 1
847
+      // var nowDay = nowDate.getDate()
848
+      // this.end_time =nowYear +'-' +(nowMonth < 10 ? '0' + nowMonth : nowMonth) +'-' +(nowDay < 10 ? '0' + nowDay : nowDay)
849
+      // nowDate.setMonth(nowDate.getMonth() - 1)
850
+      // nowYear = nowDate.getFullYear() -1
851
+      // nowMonth = nowDate.getMonth() + 1
852
+      // nowDay = nowDate.getDate()
853
+      // this.start_time = nowYear +'-' +(nowMonth < 10 ? '0' + nowMonth : nowMonth) +'-' +(nowDay < 10 ? '0' + nowDay : nowDay)
854
+      this.start_time = moment().month(moment().month() - 1).startOf('month').format('YYYY-MM-DD');
855
+      console.log("start_time",this.start_time)
856
+      this.end_time = moment().endOf('month').format('YYYY-MM-DD');
857
+      console.log("end_time",this.end_time)
865 858
       this.requestCourseRecords()
866 859
 
867 860
     },

+ 159 - 8
src/xt_pages/user/evaluationtool/Fallassessment.vue Datei anzeigen

@@ -533,7 +533,7 @@
533 533
         paixie:[{paixie_check:false,content:"便秘(2分)",is_status:2},{paixie_check:false,content:"腹泻(1分)",is_status:2},{paixie_check:false,content:"尿频(1分)",is_status:2}],
534 534
         zilinl:[{zilinl_check:false,content:"无(4分)",is_status:2},{zilinl_check:false,content:"部分(3分)",is_status:2}],
535 535
         xiaoguo:[{xiaoguo_check:false,content:"未发生跌倒",is_status:2},{xiaoguo_check:false,content:"发生跌倒",is_status:2},{xiaoguo_check:false,content:"发生坠床",is_status:2}],
536
-        touxidiedao:[{touxidiedao_check:false,content:"发生跌倒",is_status:2},{touxidiedao_check:false,content:"发生坠床"}],
536
+        touxidiedao:[{touxidiedao_check:false,content:"发生跌倒",is_status:2},{touxidiedao_check:false,content:"发生坠床",is_status:2}],
537 537
         centerDialogVisibleOne:false,
538 538
         centerDialogVisible:false,
539 539
         dialogVisible:false,
@@ -570,6 +570,8 @@
570 570
 
571 571
     },
572 572
     created() {
573
+      const id = this.$route.params && this.$route.params.id
574
+      this.patient_id = parseInt(id)
573 575
       this.getAllNurseList()
574 576
     },
575 577
     methods: {
@@ -591,10 +593,10 @@
591 593
         }
592 594
       },
593 595
       Historicalscore(){
594
-        this.$router.push({path: '/patients/tumble_history'})
596
+        this.$router.push({path: '/patients/tumble_history?patient_id='+this.patient_id})
595 597
       },
596 598
       saveCenterDialogVisible(){
597
-        var obj = {is_content_check:false,content:""}
599
+        var obj = {is_content_check:false,content:"",is_status:2}
598 600
         obj.content = this.content
599 601
         this.list.push(obj)
600 602
         this.centerDialogVisible =false
@@ -604,8 +606,8 @@
604 606
         this.centerDialogVisibleOne = true
605 607
       },
606 608
       saveCenterDialogVisibleOne(){
607
-        var obj = {is_content_check_one:false,contentOne:""}
608
-        obj.contentOne = this.contentOne
609
+        var obj = {is_content_check_one:false,content:"",is_status:2}
610
+        obj.content = this.contentOne
609 611
         this.listOne.push(obj)
610 612
         this.centerDialogVisibleOne= false
611 613
       },
@@ -783,6 +785,149 @@
783 785
 
784 786
          var record_date = this.record_date
785 787
          var ping_date = this.ping_date
788
+
789
+         if(this.nianlin!=null && this.nianlin.length >0){
790
+            for(let i=0;i<this.nianlin.length;i++){
791
+              if(this.nianlin[i].age_check == true){
792
+                 this.nianlin[i].is_status =1
793
+              }
794
+              if(this.nianlin[i].age_check == false){
795
+                 this.nianlin[i].is_status =2
796
+              }
797
+            }
798
+         }
799
+
800
+         if(this.jiwang!=null && this.jiwang.length >0){
801
+            for(let i=0;i<this.jiwang.length;i++){
802
+              if(this.jiwang[i].jiwang_check == true){
803
+                 this.jiwang[i].is_status =1
804
+              }
805
+              if(this.jiwang[i].jiwang_check == false){
806
+                 this.jiwang[i].is_status =2
807
+              }
808
+            }
809
+         }
810
+
811
+         if(this.yishizt!=null && this.yishizt.length >0){
812
+            for(let i=0;i<this.yishizt.length;i++){
813
+              if(this.yishizt[i].yishizt_check == true){
814
+                 this.yishizt[i].is_status =1
815
+              }
816
+              if(this.yishizt[i].yishizt_check == false){
817
+                 this.yishizt[i].is_status =2
818
+              }
819
+            }
820
+         }
821
+
822
+         if(this.yishizt!=null && this.yishizt.length >0){
823
+            for(let i=0;i<this.yishizt.length;i++){
824
+              if(this.yishizt[i].yishizt_check == true){
825
+                 this.yishizt[i].is_status =1
826
+              }
827
+              if(this.yishizt[i].yishizt_check == false){
828
+                 this.yishizt[i].is_status =2
829
+              }
830
+            }
831
+         }
832
+
833
+         if(this.ganguan!=null && this.ganguan.length >0){
834
+            for(let i=0;i<this.ganguan.length;i++){
835
+              if(this.ganguan[i].ganguan_check == true){
836
+                 this.ganguan[i].is_status =1
837
+              }
838
+              if(this.ganguan[i].ganguan_check == false){
839
+                 this.ganguan[i].is_status =2
840
+              }
841
+            }
842
+         }
843
+
844
+         if(this.shentizk!=null && this.shentizk.length >0){
845
+            for(let i=0;i<this.shentizk.length;i++){
846
+              if(this.shentizk[i].shentizk_check == true){
847
+                 this.shentizk[i].is_status =1
848
+              }
849
+              if(this.shentizk[i].shentizk_check == false){
850
+                 this.shentizk[i].is_status =2
851
+              }
852
+            }
853
+         }
854
+
855
+         if(this.syyaowu!=null && this.syyaowu.length >0){
856
+            for(let i=0;i<this.syyaowu.length;i++){
857
+              if(this.syyaowu[i].syyaowu_check == true){
858
+                 this.syyaowu[i].is_status =1
859
+              }
860
+              if(this.syyaowu[i].syyaowu_check == false){
861
+                 this.syyaowu[i].is_status =2
862
+              }
863
+            }
864
+         }
865
+
866
+         if(this.paixie!=null && this.paixie.length >0){
867
+            for(let i=0;i<this.paixie.length;i++){
868
+              if(this.paixie[i].paixie_check == true){
869
+                 this.paixie[i].is_status =1
870
+              }
871
+              if(this.paixie[i].paixie_check == false){
872
+                 this.paixie[i].is_status =2
873
+              }
874
+            }
875
+         }
876
+
877
+         if(this.zilinl!=null && this.zilinl.length >0){
878
+            for(let i=0;i<this.zilinl.length;i++){
879
+              if(this.zilinl[i].zilinl_check == true){
880
+                 this.zilinl[i].is_status =1
881
+              }
882
+              if(this.zilinl[i].zilinl_check == false){
883
+                 this.zilinl[i].is_status =2
884
+              }
885
+            }
886
+         }
887
+
888
+         if(this.xiaoguo!=null && this.xiaoguo.length >0){
889
+            for(let i=0;i<this.xiaoguo.length;i++){
890
+              if(this.xiaoguo[i].xiaoguo_check == true){
891
+                 this.xiaoguo[i].is_status =1
892
+              }
893
+              if(this.xiaoguo[i].xiaoguo_check == false){
894
+                 this.xiaoguo[i].is_status =2
895
+              }
896
+            }
897
+         }
898
+
899
+         if(this.touxidiedao!=null && this.touxidiedao.length >0){
900
+            for(let i=0;i<this.touxidiedao.length;i++){
901
+              if(this.touxidiedao[i].touxidiedao_check == true){
902
+                 this.touxidiedao[i].is_status =1
903
+              }
904
+              if(this.touxidiedao[i].touxidiedao_check == false){
905
+                 this.touxidiedao[i].is_status =2
906
+              }
907
+            }
908
+         }
909
+
910
+         if(this.list!=null && this.list.length >0){
911
+            for(let i=0;i<this.list.length;i++){
912
+              if(this.list[i].is_content_check == true){
913
+                 this.list[i].is_status =1
914
+              }
915
+              if(this.list[i].is_content_check == false){
916
+                 this.list[i].is_status =2
917
+              }
918
+            }
919
+         }
920
+
921
+         if(this.listOne!=null && this.listOne.length >0){
922
+            for(let i=0;i<this.listOne.length;i++){
923
+              if(this.listOne[i].is_content_check_one == true){
924
+                 this.listOne[i].is_status =1
925
+              }
926
+              if(this.listOne[i].is_content_check_one == false){
927
+                 this.listOne[i].is_status =2
928
+              }
929
+            }
930
+         }
786 931
          var params = {
787 932
           is_age:this.nianlin,//年龄
788 933
           is_jiwang:this.jiwang,//既往史
@@ -794,6 +939,8 @@
794 939
           is_zilin:this.zilinl, //自理能力
795 940
           is_xiaoguo:this.xiaoguo,//预防效果
796 941
           is_touxidiedao:this.touxidiedao,//透析跌倒
942
+          list:this.list,
943
+          listOne:this.listOne,
797 944
           record_date:record_date,
798 945
           ping_date:ping_date,
799 946
           admin_user_id:this.admin_user_id,
@@ -817,13 +964,17 @@
817 964
           is_check_seventeen:is_check_seventeen,
818 965
           is_check_eighteen:is_check_eighteen,
819 966
           is_check_nineteen:is_check_nineteen,
820
-          patient_id:parseInt(this.$route.query.id),
967
+          patient_id:this.patient_id,
821 968
           total:this.tumble_Totalpoints,
822
-
969
+          
823 970
          }
824 971
          console.log("params",params)
972
+        
825 973
         saveFllassessmentList(params).then(response=>{
826
-
974
+           if(response.data.state ==1){
975
+             var patientFallassessment = response.data.data.patientFallassessment
976
+             this.$message.success("保存成功!")
977
+           }
827 978
         })
828 979
       }
829 980
     }

Datei-Diff unterdrückt, da er zu groß ist
+ 1383 - 386
src/xt_pages/user/history/tumble_history.vue


+ 24 - 20
src/xt_pages/user/rescueRecord.vue Datei anzeigen

@@ -198,26 +198,30 @@ export default {
198 198
       this.$router.push("/patients/patients");
199 199
       return;
200 200
     }
201
-    var nowDate = new Date();
202
-    var nowYear = nowDate.getFullYear();
203
-    var nowMonth = nowDate.getMonth() + 1;
204
-    var nowDay = nowDate.getDate();
205
-    this.end_time =
206
-      nowYear +
207
-      "-" +
208
-      (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
209
-      "-" +
210
-      (nowDay < 10 ? "0" + nowDay : nowDay);
211
-    nowDate.setMonth(nowDate.getMonth() - 1);
212
-    nowYear = nowDate.getFullYear()-1;
213
-    nowMonth = nowDate.getMonth() + 1;
214
-    nowDay = nowDate.getDate();
215
-    this.start_time =
216
-      nowYear +
217
-      "-" +
218
-      (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
219
-      "-" +
220
-      (nowDay < 10 ? "0" + nowDay : nowDay);
201
+    // var nowDate = new Date();
202
+    // var nowYear = nowDate.getFullYear();
203
+    // var nowMonth = nowDate.getMonth() + 1;
204
+    // var nowDay = nowDate.getDate();
205
+    // this.end_time =
206
+    //   nowYear +
207
+    //   "-" +
208
+    //   (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
209
+    //   "-" +
210
+    //   (nowDay < 10 ? "0" + nowDay : nowDay);
211
+    // nowDate.setMonth(nowDate.getMonth() - 1);
212
+    // nowYear = nowDate.getFullYear()-1;
213
+    // nowMonth = nowDate.getMonth() + 1;
214
+    // nowDay = nowDate.getDate();
215
+    // this.start_time =
216
+    //   nowYear +
217
+    //   "-" +
218
+    //   (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
219
+    //   "-" +
220
+    //   (nowDay < 10 ? "0" + nowDay : nowDay);
221
+    this.start_time = moment().month(moment().month() - 1).startOf('month').format('YYYY-MM-DD');
222
+    console.log("start_time",this.start_time)
223
+    this.end_time = moment().endOf('month').format('YYYY-MM-DD');
224
+    console.log("end_time",this.end_time)
221 225
 
222 226
     this.requestRescueRecords();
223 227
   },