|
@@ -1196,7 +1196,7 @@ export class HushijiandanComponent implements OnInit {
|
1196
|
1196
|
targetOffice: [null, [this.targetOfficeValidator]],
|
1197
|
1197
|
originOffice: [null, [this.originOfficeValidator]],
|
1198
|
1198
|
allowUrgent: [null], //加急
|
1199
|
|
- urgentReason: [null], //加急原因
|
|
1199
|
+ urgentReason: [null, [this.urgentReasonValidator]], //加急原因
|
1200
|
1200
|
});
|
1201
|
1201
|
|
1202
|
1202
|
// 初始化一键发起建单表单
|
|
@@ -1246,6 +1246,12 @@ export class HushijiandanComponent implements OnInit {
|
1246
|
1246
|
return { required: true };
|
1247
|
1247
|
}
|
1248
|
1248
|
};
|
|
1249
|
+ // 加急原因校验
|
|
1250
|
+ urgentReasonValidator = (control: FormControl): { [s: string]: boolean } => {
|
|
1251
|
+ if (this.allowUrgent == 1) {
|
|
1252
|
+ return { required: true };
|
|
1253
|
+ }
|
|
1254
|
+ };
|
1249
|
1255
|
|
1250
|
1256
|
// 患者信息一键建单
|
1251
|
1257
|
patientModal: boolean = false; //患者信息一键建单模态框
|