XMLWAN 3 lat temu
rodzic
commit
9d4b37333e
1 zmienionych plików z 4 dodań i 0 usunięć
  1. 4 0
      src/xt_pages/user/templateSummary.vue

+ 4 - 0
src/xt_pages/user/templateSummary.vue Wyświetl plik

@@ -919,6 +919,7 @@
919 919
         start_date: moment(new Date()).startOf("month").format("YYYY-MM-DD"),
920 920
         end_date: moment(new Date()).endOf('month').format("YYYY-MM-DD"),
921 921
         ids:"",
922
+        lastYear:new moment().subtract(1,'months').date(1).format("YYYY-MM-DD"),
922 923
       }
923 924
     },
924 925
     created() {
@@ -1034,6 +1035,7 @@
1034 1035
 
1035 1036
       },
1036 1037
       changeCurrentRecordTwo(val){
1038
+        console.log("val232232",val.id)
1037 1039
         this.form.id = val.id
1038 1040
         this.getCurrentRecordDetail(val.id)
1039 1041
       },
@@ -1147,6 +1149,7 @@
1147 1149
           var params = {
1148 1150
             other_start_time:this.startYear,
1149 1151
             patient_id:this.patient_id,
1152
+            last_time:this.lastYear,
1150 1153
           }
1151 1154
          console.log("开始数据",params)
1152 1155
         getInspectionMajorItem(params).then(response=>{
@@ -1707,6 +1710,7 @@
1707 1710
       changeYear(val){
1708 1711
         console.log("val2323323223",val)
1709 1712
         this.startYear = val+"-" + "30"
1713
+        this.lastYear = val+"-"+"01"
1710 1714
         this.getInspectionMajor()
1711 1715
       },
1712 1716
       selectSummary(val){