Przeglądaj źródła

登记结果的优化

zhuliu 2 lat temu
rodzic
commit
736478d0b6

+ 5 - 30
RMS-FrontEnd/src/views/report/components/matter/remarryMatter.vue

@@ -402,19 +402,20 @@ export default {
                 }
                 if(a == true){
                     if(item.followUpName!='') {
-                    list.push(item)              
+                        list.push(item)              
                     }else{
-                    throw new Error()
+                        throw new Error()
                     }
                 }
                 })
                 if (list.length == 0) {
                   return false
                 }
-              this.registerForm.followUps = list
+                this.registerForm.followUps = list
                 this.submitRegister1()
             }catch(e){
                 this.$message.error('后续事项名称不能为空')
+                this.registerForm.followUps = [{}]
                 this.btnLoading = false
             }  
         },
@@ -428,33 +429,7 @@ export default {
             this.$nextTick(()=>{
                 // this.btnLoading = true
                 if(this.registerForm.followUps && this.registerForm.followUps.length>0){
-                    // try{
-                    //     var keyList={
-                    //         followUpName:'',
-                    //         remark:'',
-                    //         agent:'',
-                    //         assistPerson:'',
-                    //         timeLimit:''
-                    //     }
-                    //     this.registerForm.followUps.forEach(item=>{
-                    //         var a = false
-                    //         for(let key in keyList){
-                    //             if(item[key] !='' && item[key] != null){
-                    //                 a = true
-                    //             }
-                    //         }
-                    //         if(a == true){
-                    //             if(item.followUpName!='') {
-                                    
-                    //             }else{
-                    //                 throw new Error()
-                    //             }
-                    //         }
-                    //     })
-                    //     this.submitRegister1()
-                    // }catch(e){
-                    //     this.$message.error('名称不能为空')
-                    // }
+                    this.registerForm.followUps = []
                 } else {
                     this.submitRegister1()
                 }