Browse Source

修改bug

chenrui 2 months ago
parent
commit
487ef9c3ef
1 changed files with 5 additions and 2 deletions
  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) {