瀏覽代碼

护士端工单指派

seimin 1 年之前
父節點
當前提交
d2e4328026

+ 20 - 0
src/app/views/hospital-config/hospital-config.component.html

@@ -454,6 +454,26 @@
454 454
                 </nz-form-control>
455 455
               </ng-container>
456 456
             </ng-container>
457
+            <ng-container *ngSwitchCase="'nurseSendOrder'">
458
+              <nz-form-label
459
+                [nzSpan]="24"
460
+                [nzFor]="config.key"
461
+                class="label"
462
+                [nzRequired]="config.required"
463
+                >{{config.desc}}</nz-form-label
464
+              >
465
+              <nz-form-control
466
+                [nzSpan]="24"
467
+                [nzErrorTip]="'请选择!'"
468
+              >
469
+                <nz-radio-group
470
+                  [formControlName]="config.key"
471
+                >
472
+                  <label nz-radio nzValue="1">是</label>
473
+                  <label nz-radio nzValue="0">否</label>
474
+                </nz-radio-group>
475
+              </nz-form-control>
476
+            </ng-container>
457 477
             <ng-container *ngSwitchDefault>
458 478
               <nz-form-label
459 479
                 [nzSpan]="24"

+ 2 - 1
src/app/views/hushijiandan/hushijiandan-routing.module.ts

@@ -46,7 +46,8 @@ const routes: Routes = [
46 46
         component: DetailBxComponent
47 47
       },
48 48
       {
49
-        path: 'allotWorker/:id/:stateId',
49
+        // 指派
50
+        path: 'allotWorker/:id/:stateId/:flag/:hosId',
50 51
         component: AllocationWorkerComponent
51 52
       }
52 53
     ]

+ 15 - 1
src/app/views/hushijiandan/hushijiandan.component.html

@@ -2316,6 +2316,20 @@
2316 2316
                             评价
2317 2317
                           </div>
2318 2318
                           <div
2319
+                            *ngIf="isAssign && item.gdState.value == 2"
2320
+                            class="btn flex_1 revocation borderR"
2321
+                            (click)="allotWorker(item.id, item.gdState.id)"
2322
+                          >
2323
+                            指派
2324
+                          </div>
2325
+                          <div
2326
+                            *ngIf="isAssign && item.gdState.value == 4"
2327
+                            class="btn flex_1 revocation borderR"
2328
+                            (click)="allotWorker(item.id, item.gdState.id, 1)"
2329
+                          >
2330
+                            指派
2331
+                          </div>
2332
+                          <div
2319 2333
                             *ngIf="
2320 2334
                               item.gdState.id == 69 ||
2321 2335
                               item.gdState.id == 70 ||
@@ -3743,7 +3757,7 @@
3743 3757
   </div>
3744 3758
 </div>
3745 3759
 
3746
-<router-outlet></router-outlet>
3760
+<router-outlet (deactivate)="refreshList($event)"></router-outlet>
3747 3761
 <!-- 遮罩 -->
3748 3762
 <app-mask *ngIf="maskFlag"></app-mask>
3749 3763
 <!-- 是否需要医护陪同检查模态框 -->

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

@@ -457,13 +457,15 @@ export class HushijiandanComponent implements OnInit {
457 457
   closeExecModal() {
458 458
     this.execModal = false;
459 459
   }
460
-  // 获取系统配置,护士端是否显示报修
461
-  isShowBx = false;
460
+  // 获取系统配置
461
+  isShowBx = false;// 护士端是否显示报修
462
+  isAssign = false;// 是否护士指定人员
462 463
   getItsmIncident() {
463 464
     let postData = { idx: 0, sum: 100, hospitalConfig: { hosId: this.currentHospital.id } };
464 465
     this.mainService.getFetchDataList("simple/data", "hospitalConfig", postData).subscribe((result) => {
465 466
         if (result.status == 200) {
466 467
           this.isShowBx = result.list.find(v => v.key == 'hos_itsmIncident').value == 1;
468
+          this.isAssign = result.list.find(v => v.key == 'nurseSendOrder').value == 1;
467 469
           if (this.isShowBx && (this.coopBtns.repairList || this.coopBtns.quickReportForRepair)) {
468 470
             // 初始化默认显示第一个
469 471
             if(this.tabPermission.length){
@@ -499,6 +501,14 @@ export class HushijiandanComponent implements OnInit {
499 501
         }
500 502
       });
501 503
   }
504
+  // 派单,flag 0是待抢单指派,1是待到达指派
505
+  allotWorker(id, stateId, flag?) {
506
+    if (flag == 1) {
507
+      this.router.navigateByUrl("nurse/allotWorker/" + id + "/" + stateId + "/1/" + this.currentHospital.id);
508
+    } else {
509
+      this.router.navigateByUrl("nurse/allotWorker/" + id + "/" + stateId + "/0/" + this.currentHospital.id);
510
+    }
511
+  }
502 512
   //获取检查页面任务类型
503 513
   getInspectAndPatientTransportConfigTasktype() {
504 514
     let postData = {
@@ -3887,11 +3897,6 @@ export class HushijiandanComponent implements OnInit {
3887 3897
     }
3888 3898
   }
3889 3899
 
3890
-  // 派单
3891
-  allotWorker(id, stateId) {
3892
-    this.router.navigateByUrl("nurse/allotWorker/" + id + "/" + stateId);
3893
-  }
3894
-
3895 3900
   // 展示信息提示框(con:提示信息,success:操作是否成功,promptInfo:操作结果提示信息)
3896 3901
   showPromptModal(con, success, promptInfo?, back?) {
3897 3902
     this.btnLoading = false;
@@ -4065,4 +4070,11 @@ export class HushijiandanComponent implements OnInit {
4065 4070
     clearInterval(this.timerCloseTime);
4066 4071
     this.changeShow = false;
4067 4072
   }
4073
+  // 刷新工单列表
4074
+  refreshList(e) {
4075
+    if (!e.promptContent) {
4076
+      return;
4077
+    }
4078
+    this.getOrderList();
4079
+  }
4068 4080
 }

+ 1 - 1
src/main.ts

@@ -8,7 +8,7 @@ if (environment.production) {
8 8
   enableProdMode();
9 9
   if (window) {
10 10
     window.console.log = function () { };
11
-    console.info('v2.4.39');
11
+    console.info('v2.4.40');
12 12
   }
13 13
 }
14 14
 platformBrowserDynamic().bootstrapModule(AppModule)