Browse Source

护士端建单加急原因修复

seimin 2 years ago
parent
commit
2e9e6f04cc
2 changed files with 8 additions and 2 deletions
  1. 1 1
      proxy.conf.json
  2. 7 1
      src/app/views/hushijiandan/hushijiandan.component.ts

+ 1 - 1
proxy.conf.json

@@ -1,6 +1,6 @@
1 1
 {
2 2
   "/service": {
3
-    "target": "http://192.168.3.200",
3
+    "target": "http://192.168.3.108",
4 4
     "logLevel": "debug",
5 5
     "changeOrigin": true,
6 6
     "pathRewrite": {

+ 7 - 1
src/app/views/hushijiandan/hushijiandan.component.ts

@@ -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; //患者信息一键建单模态框