Browse Source

报修建单验证必选项科室

seimin 9 months ago
parent
commit
f8b8532a4f
1 changed files with 4 additions and 0 deletions
  1. 4 0
      src/app/views/hushijiandan/hushijiandan.component.ts

+ 4 - 0
src/app/views/hushijiandan/hushijiandan.component.ts

@@ -1207,6 +1207,10 @@ export class HushijiandanComponent implements OnInit {
1207 1207
       this.message.error('请填写必填字段!');
1208 1208
       return;
1209 1209
     };
1210
+    if (!this.deptDto.id){
1211
+      this.message.error('数据异常,无法建单!');
1212
+      return;
1213
+    };
1210 1214
     this.showReqModal();
1211 1215
   }
1212 1216