jbb 2 년 전
부모
커밋
cd96c8ce01
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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');