Ver Fonte

2022.10.13 移动端填报校验

ggooalice há 2 anos atrás
pai
commit
704863e3b1

+ 6 - 1
fhKeeper/formulahousekeeper/timesheet_h5/src/views/edit/index.vue

@@ -1709,16 +1709,21 @@ import timetoolVue from '../timetool/timetool.vue';
                         } else {
                             if (this.user.timeType.reportAuditType == 0) {
                                 this.$toast.fail("请指定["+this.form.domains[i].projectName+']项目的审核人');
+                                return;
                             } else if(this.user.timeType.reportAuditType == 1 || this.user.timeType.reportAuditType == 2){
                                 if (this.form.domains[i].taskGroups.length == 0) {
                                     this.$toast.fail("您在["+this.form.domains[i].projectName+"]项目上尚无参与的任务分组");
+                                    return;
                                 } else if (!this.form.domains[i].groupId) {
                                     this.$toast.fail("请选择["+this.form.domains[i].projectName+"]项目的任务分组");
+                                    return;
                                 } else {
                                     this.$toast.fail("请先设置["+this.form.domains[i].projectName+']-['+this.form.domains[i].groupName+']的分组负责人');
+                                    return;
                                 }
+                                
                             }
-                            return;
+                            
                         }
                     }
                     if(!this.flgLg) {