Browse Source

批量发货为空时不弹框

DELL 3 years ago
parent
commit
91ac8e63c9
1 changed files with 6 additions and 2 deletions
  1. 6 2
      src/views/order/deliver/index.vue

+ 6 - 2
src/views/order/deliver/index.vue

@@ -396,13 +396,17 @@ export default {
         this.upload.open = false;
         this.upload.open = false;
         this.upload.isUploading = false;
         this.upload.isUploading = false;
         this.$refs.upload.clearFiles();
         this.$refs.upload.clearFiles();
-        this.$alert(response.data, "导入结果", { dangerouslyUseHTMLString: true, customClass: 'msgbox' });
+        if(response.data){
+          this.$alert(response.data, "导入结果", { dangerouslyUseHTMLString: true, customClass: 'msgbox' });
+        }
         this.close()
         this.close()
       }).catch(response => {
       }).catch(response => {
         this.upload.open = false;
         this.upload.open = false;
         this.upload.isUploading = false;
         this.upload.isUploading = false;
         this.$refs.upload.clearFiles();
         this.$refs.upload.clearFiles();
-        this.$alert(response.data, "导入结果", { dangerouslyUseHTMLString: true, customClass: 'msgbox'  });
+        if(response.data){
+          this.$alert(response.data, "导入结果", { dangerouslyUseHTMLString: true, customClass: 'msgbox'  });
+        }
         this.vloading.close();
         this.vloading.close();
         //param.onError()
         //param.onError()
       })
       })