Browse Source

时间间隔更改

jbb 2 years ago
parent
commit
1973a80a59
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/views/shipment-details/referOrderDataModal.vue

+ 2 - 2
src/views/shipment-details/referOrderDataModal.vue

@@ -641,8 +641,8 @@ export default {
            var startDate = new Date(startDates[0], startDates[1]-1, startDates[2]);  
            var endDate = new Date(endDates[0], endDates[1]-1, endDates[2]);  
            var timeInterval= parseInt(Math.abs(endDate - startDate ) / 1000 / 60 / 60 /24) + 1;
-           if(timeInterval > 31 ){
-             this.$message.error('预发货时间区间超过31天,请重新选择!');
+           if(timeInterval > 60 ){
+             this.$message.error('预发货时间区间超过60天,请重新选择!');
              this.range = []
              this.queryParam.preDeliveryDateS = ''
              this.queryParam.preDeliveryDateE = ''