jbb 2 lat temu
rodzic
commit
cd96c8ce01
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      src/views/shipment-details/shipmentList.vue

+ 1 - 1
src/views/shipment-details/shipmentList.vue

@@ -579,7 +579,7 @@ export default {
       var nowYear = now.getFullYear(); //当前年
       this.monthStartDate = moment(new Date(nowYear, nowMonth, 1)).format('YYYY-MM-DD');  
       this.nextMonthStartDate = moment(new Date(nowYear, nextMonth, 1)).format('YYYY-MM-DD');  
-      if([1, 3, 5, 7, 8, 10, 12].indexOf(nextMonth) > -1){
+      if([1, 3, 5, 7, 8, 10, 12].indexOf(nextMonth+1) > -1){
         this.nextMonthEndDate = moment(new Date(nowYear, nextMonth, 31)).format('YYYY-MM-DD');  
       }else {
         this.nextMonthEndDate = moment(new Date(nowYear, nextMonth, 30)).format('YYYY-MM-DD');