소스 검색

修改bug

chenrui 2 달 전
부모
커밋
487ef9c3ef
1개의 변경된 파일5개의 추가작업 그리고 2개의 파일을 삭제
  1. 5 2
      src/views/vinReport/vinReportDetails/monthReportList.vue

+ 5 - 2
src/views/vinReport/vinReportDetails/monthReportList.vue

@@ -107,8 +107,11 @@ export default {
     },
     //  月份  change
     handleChange (date, dateString) {
-      this.queryParam.beginDate = dateString + ' 00:00:00'
-      this.queryParam.endDate = dateString + ' 23:59:60'
+      if (dateString) {
+        this.queryParam.beginDate = dateString + '-01 00:00:00'
+        const endTime = moment(dateString).endOf('month').format('YYYY-MM-DD')
+        this.queryParam.endDate = endTime + ' 23:59:60'
+      }
     },
     // 数量弹窗
     handleDetail (row) {