소스 검색

Merge branch 'master' of https://git.steerinfo.com/DAL-DAZHOU/icore-pass

luobang 2 년 전
부모
커밋
8e30f315ca
2개의 변경된 파일10개의 추가작업 그리고 0개의 파일을 삭제
  1. 5 0
      src/views/TMS/components/importedShip/addLoadShip.vue
  2. 5 0
      src/views/TMS/components/importedShip/addUnloadShip.vue

+ 5 - 0
src/views/TMS/components/importedShip/addLoadShip.vue

@@ -195,6 +195,11 @@ export default {
         }
       }
       var val = this.value;
+      if(mapVal.resultLoadShipDate > new Date()){
+         this.$message.error("装船日期不能大于当前时间!");
+         this.isLoading=false;
+         return;
+      }
       if (
         mapVal.resultActualInstallations == null ||
         mapVal.resultLoadShipDate == null ||

+ 5 - 0
src/views/TMS/components/importedShip/addUnloadShip.vue

@@ -88,6 +88,11 @@ export default {
         this.isLoading = false
         return
       }
+      if(this.form.resultStartTime > new Date()){
+         this.$message.error("卸船开始时间不能大于当前时间!");
+         this.isLoading=false;
+         return;
+      }
       if (
         !this.form.resultArrivalDate ||
         !this.form.resultStartTime ||