Ver código fonte

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

See999 4 anos atrás
pai
commit
fb2349f089
1 arquivos alterados com 38 adições e 0 exclusões
  1. 38 0
      src/xt_pages/qcd/basicInformationAnalysis.vue

+ 38 - 0
src/xt_pages/qcd/basicInformationAnalysis.vue Ver arquivo

@@ -243,6 +243,44 @@ export default {
243 243
       }
244 244
     },
245 245
     selectLapseTo(state) {
246
+      //获取本月当前机构的透析模式
247
+      const startDate = moment().subtract('month', 0).format('YYYY-MM') + '-01'
248
+      console.log("开始时间",startDate)
249
+      const endDate = moment(new Date()).format('YYYY-MM-DD')
250
+     // console.log("结束时间",endDate) 
251
+      var now = new Date()
252
+      var nowMonth = now.getMonth(); //当前月 
253
+      var nowYear = now.getFullYear(); //当前年 
254
+      //本月的开始时间
255
+      var monthStartDate = new Date(nowYear, nowMonth, 1); 
256
+      var timeStar=Date.parse(monthStartDate)/1000;//s
257
+     // console.log("本月第一天",timeStar)
258
+      //本月的结束时间
259
+      var monthEndDate = new Date(nowYear, nowMonth+1, 0);
260
+      var timeEnd=Date.parse(monthEndDate)/1000-1;//s
261
+     // console.log("本月最后一天",timeEnd)
262
+      //本月
263
+      if(state == 0){
264
+         this.stateType = state;
265
+         this.listQuery.state = state;
266
+       //统计透析总量
267
+        this.getDialysisModeType(startDate,endDate)
268
+        //统计转归状态
269
+        this.getTotalLapseCount(timeStar,timeEnd)
270
+        //统计男女比例
271
+        this.getTotalSexCount(timeStar,timeEnd)
272
+        //统计传染病
273
+        this.getTotalInfectiousCount(timeStar,timeEnd)
274
+        //统计年龄
275
+        this.getTotalAgeCount(timeStar,timeEnd)
276
+        //统计透析年龄
277
+        this.getTotalDialysisCount(timeStar,timeEnd)
278
+      }
279
+      if(state == 1){
280
+      
281
+       const startDate = moment().subtract('month', 0).format('YYYY-MM') + '-01'
282
+        console.log("三月前",nowMonth)
283
+      }
246 284
       this.stateType = state;
247 285
       this.listQuery.state = state;
248 286
     },