瀏覽代碼

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

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 {