소스 검색

修改国内贸易制单日期默认值

caojunjie 3 년 전
부모
커밋
c183d1fa56
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/util/date.js

+ 1 - 1
src/util/date.js

@@ -67,7 +67,7 @@ export function defaultDate(type) {
     ];
   }else if (type == 3){
     return[
-      dateFormat(new Date(date.getFullYear(), date.getMonth(), date.getDate()), "yyyy-MM-dd"),
+      dateFormat(new Date(date.getFullYear(), date.getMonth()-1, 1), "yyyy-MM-dd"),
       dateFormat(new Date((date.getMonth() + 1) === 12?date.getFullYear()+1:date.getFullYear(), (date.getMonth() + 1), date.getDate()), "yyyy-MM-dd")
     ];
   }else {