浏览代码

Merge branch 'master' into 'master'

统计时间优化

See merge request lighter/vue-intergration-platform!141
huangshuhua 6 月之前
父节点
当前提交
6ce8a5c87f

+ 2 - 3
src/views/operate-monitoring/IncomeStatistics.vue

@@ -45,7 +45,6 @@ import { selectIncomeStatistics } from '@/api/reports/incomeStatistics'
 import { Export } from '@/utils/ExportExcel'
 
 let nowDay = new Date()
-nowDay.setTime(nowDay.getTime() - 24 * 60 * 60 * 1000)
 let yf, inday
 if (nowDay.getMonth() < 9) {
     yf = '0' + (nowDay.getMonth() + 1)
@@ -53,9 +52,9 @@ if (nowDay.getMonth() < 9) {
     yf = nowDay.getMonth() + 1
 }
 if (nowDay.getDate() < 10) {
-    inday = '0' + (nowDay.getDate() + 1)
+    inday = '0' + nowDay.getDate()
 } else {
-    inday = nowDay.getDate() + 1
+    inday = nowDay.getDate()
 }
 let s1 = nowDay.getFullYear() + "-" + yf + "-" + inday
 const start = formatDate(s1);

+ 2 - 3
src/views/operate-monitoring/PowersiMip.vue

@@ -49,7 +49,6 @@ import { selectReportPortalMenu, exportReportPortalData } from '@/api/reports/hi
 import XcTable from '@/components/xiao-chan/xc-table/XcTable.vue'
 
 let nowDay = new Date()
-nowDay.setTime(nowDay.getTime() - 24 * 60 * 60 * 1000)
 let yf, inday
 if (nowDay.getMonth() < 9) {
   yf = '0' + (nowDay.getMonth() + 1)
@@ -57,9 +56,9 @@ if (nowDay.getMonth() < 9) {
   yf = nowDay.getMonth() + 1
 }
 if (nowDay.getDate() < 10) {
-  inday = '0' + (nowDay.getDate() + 1)
+  inday = '0' + nowDay.getDate()
 } else {
-  inday = nowDay.getDate() + 1
+  inday = nowDay.getDate()
 }
 let s1 = nowDay.getFullYear() + "-" + yf + "-" + inday
 let s2 = nowDay.getFullYear() + "-" + yf + "-" + '01'

+ 2 - 3
src/views/operate-monitoring/ReceivePatients.vue

@@ -80,7 +80,6 @@ import { selectAllSmallDept, selectAllDoctor, selectAllRegLevel } from '@/api/me
 import XcTable from '@/components/xiao-chan/xc-table/XcTable.vue'
 
 let nowDay = new Date()
-nowDay.setTime(nowDay.getTime() - 24 * 60 * 60 * 1000)
 let yf, inday
 if (nowDay.getMonth() < 9) {
     yf = '0' + (nowDay.getMonth() + 1)
@@ -88,9 +87,9 @@ if (nowDay.getMonth() < 9) {
     yf = nowDay.getMonth() + 1
 }
 if (nowDay.getDate() < 10) {
-    inday = '0' + (nowDay.getDate() + 1)
+    inday = '0' + nowDay.getDate()
 } else {
-    inday = nowDay.getDate() + 1
+    inday = nowDay.getDate()
 }
 let s1 = nowDay.getFullYear() + "-" + yf + "-" + inday
 let s2 = nowDay.getFullYear() + "-" + yf + "-" + '01'

+ 0 - 1
src/views/operate-monitoring/WorkFeeStatistics.vue

@@ -36,7 +36,6 @@ import {exportWorkFeeStatisticsInfo, selectWorkFeeStatistics} from '@/api/report
 import {selectSmallDept} from "@/api/medical-insurance/si-yb-util"
 
 let nowDay = new Date()
-nowDay.setTime(nowDay.getTime() - 24 * 60 * 60 * 1000)
 let yf, inday
 if (nowDay.getMonth() < 9) {
   yf = '0' + (nowDay.getMonth() + 1)

+ 2 - 3
src/views/operate-monitoring/WorkloadStatistics.vue

@@ -60,7 +60,6 @@ import { selectWorkloadStatistics } from '@/api/reports/workloadStatistics'
 import { Export } from '@/utils/ExportExcel'
 
 let nowDay = new Date()
-nowDay.setTime(nowDay.getTime() - 24 * 60 * 60 * 1000)
 let yf, inday
 if (nowDay.getMonth() < 9) {
     yf = '0' + (nowDay.getMonth() + 1)
@@ -68,9 +67,9 @@ if (nowDay.getMonth() < 9) {
     yf = nowDay.getMonth() + 1
 }
 if (nowDay.getDate() < 10) {
-    inday = '0' + (nowDay.getDate() + 1)
+    inday = '0' + nowDay.getDate()
 } else {
-    inday = nowDay.getDate() + 1
+    inday = nowDay.getDate()
 }
 let s1 = nowDay.getFullYear() + "-" + yf + "-" + inday
 const start = formatDate(s1);