28169 пре 1 година
родитељ
комит
80fdfde47d

+ 36 - 0
src/api/fallassement.js Прегледај датотеку

@@ -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 Прегледај датотеку

@@ -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
 }

+ 17 - 24
src/xt_pages/user/courseOfDisease.vue Прегледај датотеку

@@ -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 Прегледај датотеку

@@ -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
     }

Разлика између датотеке није приказан због своје велике величине
+ 1383 - 386
src/xt_pages/user/history/tumble_history.vue


+ 24 - 20
src/xt_pages/user/rescueRecord.vue Прегледај датотеку

@@ -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
   },