浏览代码

提交移动端填写日报审核部门的必填

Lijy 1 年之前
父节点
当前提交
e30f6d9294
共有 1 个文件被更改,包括 6 次插入1 次删除
  1. 6 1
      fhKeeper/formulahousekeeper/timesheet_h5/src/views/edit/index.vue

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

@@ -2540,7 +2540,12 @@ export default {
                 }
 
                 if(this.user.timeType.userWithMultiDept == 1) {
-                    formData.append('reportTargetDeptId', this.form.domains[i].reportTargetDeptId || '');
+                    if(this.form.domains[i].reportTargetDeptId) {
+                        formData.append('reportTargetDeptId', this.form.domains[i].reportTargetDeptId || '');
+                    } else {
+                        this.$toast.fail("请选择[" + this.form.domains[i].projectName + "]审核部门");
+                        return;
+                    }
                 }
             }
             if (!this.flgLg) {