Browse Source

Merge branch '0320细节调整' of sckj/mz-cloud into master

sckj 1 month ago
parent
commit
1c1940e0f3
1 changed files with 14 additions and 9 deletions
  1. 14 9
      ruoyi-ui-gljt/src/views/gljt/gljtTf/index.vue

+ 14 - 9
ruoyi-ui-gljt/src/views/gljt/gljtTf/index.vue

@@ -581,12 +581,14 @@ export default {
       return this.selectDictLabel(this.dict.type[type], value);
     },
     changeTime(){
-
       if(this.form.tfyf){
         this.checkTfsjEdit({tfyf:this.form.tfyf,sqrZjhm:this.formXq.sqrZjhm})
       }
     },
     checkTfsjEdit(obj){
+      if(!obj.tfyf||!obj.sqrZjhm){
+        return
+      }
       checkTfsj(obj).then(res=>{
         if(res.msg)
         {
@@ -764,14 +766,17 @@ export default {
 
           this.getSqShrxm();
           this.open = true;
-          checkTfsj({tfyf:this.formXq.tfyf,sqrZjhm:this.formXq.sqrZjhm}).then(res=>{
-            if(res.msg)
-            {
-              // this.$modal.confirm(res.msg)
-              // this.$modal
-              this.zyMsg=res.msg;
-            }
-          })
+          if(this.formXq.tfyf&&this.formXq.sqrZjhm)
+          {
+            checkTfsj({tfyf:this.formXq.tfyf,sqrZjhm:this.formXq.sqrZjhm}).then(res=>{
+              if(res.msg)
+              {
+                // this.$modal.confirm(res.msg)
+                // this.$modal
+                this.zyMsg=res.msg;
+              }
+            })
+          }
         }
         if(type===2)
         {