Przeglądaj źródła

准入范围验证

shihang 6 lat temu
rodzic
commit
78f58ce28f

+ 17 - 10
src/dashoo.cn/frontend_web/src/components/oilsupplier/subfilelist.vue

@@ -325,19 +325,26 @@
           .catch(() => {});
       },
       nextStep() {
-        if (this.subfileList && this.subfileList.length > 0) {
-          for (var i = 0; i < this.subfileList.length; i++) {
-            if (this.subfileList[i].FileType === 1 && this.subfileList[i].FileUrl === '') {
-              this.$message({
-                type: 'warning',
-                message: '请上传文件' + this.subfileList[i].NeedFileType + '!'
-              })
-              return
+        if (this.businessList && this.businessList.length > 0) {
+          if (this.subfileList && this.subfileList.length > 0) {
+            for (var i = 0; i < this.subfileList.length; i++) {
+              if (this.subfileList[i].FileType === 1 && this.subfileList[i].FileUrl === '') {
+                this.$message({
+                  type: 'warning',
+                  message: '请上传文件' + this.subfileList[i].NeedFileType + '!'
+                })
+                return
+              }
             }
+            this.$emit('close')
+          } else {
+            this.$emit('close')
           }
-          this.$emit('close')
         } else {
-          this.$emit('close')
+          this.$message({
+            type: 'warning',
+            message: '请选择准入范围!'
+          })
         }
       },
       showDialog() {