|
@@ -335,7 +335,7 @@ export class InspectionConfigurationComponent implements OnInit {
|
335
|
335
|
|
336
|
336
|
data.groupDTO && (this.groupList = [data.groupDTO]);
|
337
|
337
|
this.validateForm.controls.groupId.setValue(data.groupId);
|
338
|
|
- this.requiredChange('groupId', data.userGroup == 2 || data.userGroup == 3);
|
|
338
|
+ this.requiredChange('groupId', true);
|
339
|
339
|
|
340
|
340
|
data.userDTO && (this.userList = [data.userDTO]);
|
341
|
341
|
this.validateForm.controls.userId.setValue(data.userId);
|
|
@@ -379,11 +379,9 @@ export class InspectionConfigurationComponent implements OnInit {
|
379
|
379
|
this.requiredChange('createOrder', value == 1);
|
380
|
380
|
this.validateForm.controls.createOrder.setValue(0);
|
381
|
381
|
|
382
|
|
- this.requiredChange('repairDeptId', value == 1);
|
383
|
382
|
this.validateForm.controls.repairDeptId.setValue(null);
|
384
|
383
|
this.repairDeptList = [];
|
385
|
384
|
|
386
|
|
- this.requiredChange('categoryId', value == 1);
|
387
|
385
|
this.validateForm.controls.categoryId.setValue(null);
|
388
|
386
|
this.categoryList = [];
|
389
|
387
|
|
|
@@ -420,7 +418,7 @@ export class InspectionConfigurationComponent implements OnInit {
|
420
|
418
|
}
|
421
|
419
|
|
422
|
420
|
changeUserGroup(value){
|
423
|
|
- this.requiredChange('groupId', value == 2 || value == 3);
|
|
421
|
+ this.requiredChange('groupId', true);
|
424
|
422
|
this.validateForm.controls.groupId.setValue(null);
|
425
|
423
|
this.groupList = [];
|
426
|
424
|
|