|
@@ -457,6 +457,40 @@ export class QuickCombinationComponent implements OnInit {
|
457
|
457
|
this.validateForm.get("quickCombinationDept")!.markAsDirty();
|
458
|
458
|
}
|
459
|
459
|
this.validateForm.get("quickCombinationDept")!.updateValueAndValidity();
|
|
460
|
+ // ------
|
|
461
|
+ if (!(this.queryParamsType == 1 && this.quickCombinationModel == 1)) {
|
|
462
|
+ this.validateForm.get("quickCombinationDispatchMethod")!.clearValidators();
|
|
463
|
+ this.validateForm.get("quickCombinationDispatchMethod")!.markAsPristine();
|
|
464
|
+ } else {
|
|
465
|
+ this.validateForm.get("quickCombinationDispatchMethod")!.setValidators(Validators.required);
|
|
466
|
+ this.validateForm.get("quickCombinationDispatchMethod")!.markAsDirty();
|
|
467
|
+ }
|
|
468
|
+ this.validateForm.get("quickCombinationDispatchMethod")!.updateValueAndValidity();
|
|
469
|
+ this.validateForm.controls.quickCombinationDispatchMethod.setValue(null);
|
|
470
|
+ // ------
|
|
471
|
+ if (!(this.queryParamsType == 1 && this.quickCombinationModel == 1 && this.validateForm.value.quickCombinationDispatchMethod == 2)) {
|
|
472
|
+ this.validateForm.get("quickCombinationDispatchType")!.clearValidators();
|
|
473
|
+ this.validateForm.get("quickCombinationDispatchType")!.markAsPristine();
|
|
474
|
+
|
|
475
|
+ this.validateForm.get("quickCombinationDispatchWeight")!.clearValidators();
|
|
476
|
+ this.validateForm.get("quickCombinationDispatchWeight")!.markAsPristine();
|
|
477
|
+ } else {
|
|
478
|
+ this.validateForm.get("quickCombinationDispatchType")!.setValidators(Validators.required);
|
|
479
|
+ this.validateForm.get("quickCombinationDispatchType")!.markAsDirty();
|
|
480
|
+
|
|
481
|
+ this.validateForm.get("quickCombinationDispatchWeight")!.setValidators(Validators.required);
|
|
482
|
+ this.validateForm.get("quickCombinationDispatchWeight")!.markAsDirty();
|
|
483
|
+ }
|
|
484
|
+ this.validateForm.get("quickCombinationDispatchType")!.updateValueAndValidity();
|
|
485
|
+ this.validateForm.controls.quickCombinationDispatchType.setValue(null);
|
|
486
|
+
|
|
487
|
+ this.validateForm.get("quickCombinationDispatchWeight")!.updateValueAndValidity();
|
|
488
|
+ this.validateForm.controls.quickCombinationDispatchWeight.setValue(0);
|
|
489
|
+ }
|
|
490
|
+ // 选择派单方式
|
|
491
|
+ radioDispatchMethod(){
|
|
492
|
+ this.validateForm.controls.quickCombinationDispatchType.setValue(null);
|
|
493
|
+ this.validateForm.controls.quickCombinationDispatchWeight.setValue(0);
|
460
|
494
|
}
|
461
|
495
|
deptList = []; //科室列表
|
462
|
496
|
dLoading = false;
|
|
@@ -918,12 +952,11 @@ export class QuickCombinationComponent implements OnInit {
|
918
|
952
|
quickCombinationClass: [null, [Validators.required]],
|
919
|
953
|
quickCombinationType: [null, [Validators.required]],
|
920
|
954
|
quickCombinationModel: [null, [Validators.required]],
|
921
|
|
- quickCombinationDept: this.requireGroup
|
922
|
|
- ? [null, [Validators.required]]
|
923
|
|
- : [null],
|
924
|
|
- quickCombinationGroup: this.requireDept
|
925
|
|
- ? [null, [Validators.required]]
|
926
|
|
- : [null],
|
|
955
|
+ quickCombinationDept: this.requireGroup ? [null, [Validators.required]] : [null],
|
|
956
|
+ quickCombinationGroup: this.requireDept ? [null, [Validators.required]] : [null],
|
|
957
|
+ quickCombinationDispatchMethod: [null],
|
|
958
|
+ quickCombinationDispatchType: [null],
|
|
959
|
+ quickCombinationDispatchWeight: [0],
|
927
|
960
|
});
|
928
|
961
|
}
|
929
|
962
|
// 初始化新增form表单
|