Browse Source

修改bug

chenrui 2 năm trước cách đây
mục cha
commit
6ee4b21ae6
1 tập tin đã thay đổi với 3 bổ sung3 xóa
  1. 3 3
      src/views/reportData/receivedSendStorageReport/index.vue

+ 3 - 3
src/views/reportData/receivedSendStorageReport/index.vue

@@ -213,16 +213,16 @@ export default {
     disabledStartDate (startValue) {
       const endValue = this.endValue
       if (!startValue || !endValue) {
-        return startValue.valueOf() > this.moment().valueOf()
+        return startValue.valueOf() > this.moment().month(this.moment().month() - 1).valueOf()
       }
       return startValue.valueOf() >= endValue.valueOf()
     },
     disabledEndDate (endValue) {
       const startValue = this.startValue
       if (!startValue) {
-        return endValue.valueOf() > this.moment().valueOf()
+        return endValue.valueOf() > this.moment().month(this.moment().month() - 1).valueOf()
       }
-      return endValue.valueOf() < startValue.valueOf() || endValue.valueOf() > this.moment().valueOf()
+      return endValue.valueOf() < startValue.valueOf() || endValue.valueOf() > this.moment().month(this.moment().month() - 1).valueOf()
     },
     // 开始时间
     handleStartOpenChange (open) {