2
3
shihang 6 лет назад
Родитель
Сommit
d762083c41

+ 15 - 2
src/dashoo.cn/frontend_web/src/components/oilsupplier/businesslist.vue

@@ -9,7 +9,6 @@
           <el-button type="primary" size="mini" style="margin-right: 3px" @click="showDialog" v-if="canadd">添加
           </el-button>
         </span>
-        <!-- <el-button style="float: right; padding: 3px 0" type="text" @click="showDialog">添加</el-button> -->
       </div>
       <el-table :data="businessList" border>
         <el-table-column label="操作" width="150" align="center" fixed>
@@ -435,7 +434,21 @@
         this.basicDialog = false
       },
       nextStep() {
-        this.$emit('close')
+        this.subfileList = this.$refs["subfileList"].subfileList
+        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')
+        }
       },
 
       subfiledialog() {

+ 1 - 2
src/dashoo.cn/frontend_web/src/pages/oilsupplier/supplier/_opera/techedit.vue

@@ -543,8 +543,7 @@
             }
             //this.formData.WellNo = this.$refs.selectWellNo.selectedLabel + '';
             if (!this.formData.Id || !this.certId) {
-              console.log("==================",this.formData)
-              //this.addEntity()
+              this.addEntity()
             } else {
               this.updateEntity()
             }