Browse Source

患者预约建单不减去生效时间

seimin 2 years ago
parent
commit
6dfcb93e34

+ 14 - 14
src/app/views/hushijiandan/hushijiandan.component.html

@@ -501,7 +501,7 @@
501 501
                 <div class="tab borderB" nz-row style="padding: 4px 0">
502 502
                   <div
503 503
                     nz-col
504
-                    nzSpan="5"
504
+                    nzSpan="3"
505 505
                     [ngClass]="{
506 506
                       txtC: true,
507 507
                       cur: true,
@@ -513,7 +513,7 @@
513 513
                   </div>
514 514
                   <div
515 515
                     nz-col
516
-                    nzSpan="5"
516
+                    nzSpan="3"
517 517
                     [ngClass]="{
518 518
                       txtC: true,
519 519
                       cur: true,
@@ -525,7 +525,7 @@
525 525
                   </div>
526 526
                   <div
527 527
                     nz-col
528
-                    nzSpan="5"
528
+                    nzSpan="3"
529 529
                     [ngClass]="{
530 530
                       txtC: true,
531 531
                       cur: true,
@@ -537,7 +537,7 @@
537 537
                   </div>
538 538
                   <div
539 539
                     nz-col
540
-                    nzSpan="5"
540
+                    nzSpan="3"
541 541
                     [ngClass]="{
542 542
                       txtC: true,
543 543
                       cur: true,
@@ -547,23 +547,23 @@
547 547
                   >
548 548
                     <div class="text">历史药单查询</div>
549 549
                   </div>
550
-                  <!-- <div nz-col nzSpan="4" [ngClass]="{
550
+                  <div *ngIf="isShowBx" nz-col nzSpan="3" [ngClass]="{
551 551
                       txtC: true,
552 552
                       cur: true,
553 553
                       checked: checkedTableType == 'kjbx'
554 554
                     }" (click)="checkTable('kjbx')">
555 555
                     <div class="text">快捷报修</div>
556 556
                   </div>
557
-                  <div nz-col nzSpan="4" [ngClass]="{
557
+                  <div *ngIf="isShowBx" nz-col nzSpan="3" [ngClass]="{
558 558
                       txtC: true,
559 559
                       cur: true,
560 560
                       checked: checkedTableType == 'bxlb'
561 561
                     }" (click)="checkTable('bxlb')">
562 562
                     <div class="text">报修列表</div>
563
-                  </div> -->
563
+                  </div>
564 564
                   <div
565 565
                     nz-col
566
-                    nzSpan="4"
566
+                    nzSpan="{{isShowBx?6:12}}"
567 567
                     class="txtC h100p alignR display_flex justify-content_flex-end align-items_center"
568 568
                   >
569 569
                     <div class="btn txtC" *ngIf="mainRole&&loginUser.usertype.value != 1" (click)="toMain()">
@@ -1438,7 +1438,7 @@
1438 1438
                 </div>
1439 1439
               </div>
1440 1440
               <!-- 快捷报修 -->
1441
-              <!-- <div *ngIf="checkedTableType == 'kjbx'" style="flex: 1; height: 100%;display:flex;">
1441
+              <div *ngIf="checkedTableType == 'kjbx'&&isShowBx" style="flex: 1; height: 100%;display:flex;">
1442 1442
                 <form nz-form [formGroup]="bxForm" (ngSubmit)="submitBxForm()" class="bxForm bxFlex">
1443 1443
                   <nz-form-item>
1444 1444
                     <nz-form-label [nzSpan]="8" nzRequired nzFor="name">联系人</nz-form-label>
@@ -1499,9 +1499,9 @@
1499 1499
                     </tr>
1500 1500
                   </tbody>
1501 1501
                 </nz-table>
1502
-              </div> -->
1502
+              </div>
1503 1503
               <!-- 报修列表 -->
1504
-              <!-- <div *ngIf="checkedTableType == 'bxlb'" style="flex: 1; height: 100%">
1504
+              <div *ngIf="checkedTableType == 'bxlb'&&isShowBx" style="flex: 1; height: 100%">
1505 1505
                 <div class="
1506 1506
                     searchBox
1507 1507
                     display_flex
@@ -1566,7 +1566,7 @@
1566 1566
                     </div>
1567 1567
                   </div>
1568 1568
                 </div>
1569
-              </div> -->
1569
+              </div>
1570 1570
             </div>
1571 1571
             <div nz-col nzSpan="7" class="orders">
1572 1572
               <div
@@ -2042,7 +2042,7 @@
2042 2042
                   请填写预约建单时间!
2043 2043
                 </div>
2044 2044
                 <div class="red">
2045
-                  请您在预约建单时至少在预约检查时间的基础上提前30分钟,以免错过检查!
2045
+                  请您填写实际预约检查时间,系统会根据时间安排人员进行陪检!
2046 2046
                 </div>
2047 2047
               </nz-form-item>
2048 2048
               <!-- 预约建单时间 -->
@@ -2096,7 +2096,7 @@
2096 2096
                   请填写预约建单时间!
2097 2097
                 </div>
2098 2098
                 <div class="red">
2099
-                  请您在预约建单时至少在预约检查时间的基础上提前30分钟,以免错过检查!
2099
+                  请您填写实际预约检查时间,系统会根据时间安排人员进行陪检!
2100 2100
                 </div>
2101 2101
               </nz-form-item>
2102 2102
             </div>

+ 53 - 52
src/app/views/hushijiandan/hushijiandan.component.ts

@@ -881,13 +881,14 @@ export class HushijiandanComponent implements OnInit {
881 881
                 if (result.list && result.list.length > 0) {
882 882
                   this.appointmentBuildFlag =
883 883
                     result.list[0].appointmentSwitch + ""; //是否开启护士端预约建单
884
-                  this.leadTime = result.list[0].appointmentTime; //是否开启护士端预约建单
884
+                  // this.leadTime = result.list[0].appointmentTime; //生效时长
885
+                  this.leadTime = 0; //生效时长
885 886
                   this.followFlag = result.list[0].focusSwitch + ""; //是否开启护士端重点关注
886 887
                   this.allowUrgentFlag =
887 888
                     result.list[0].allowUrgent == 1 ? true : false; //是否允许加急(检查列表)
888 889
                 } else {
889 890
                   this.appointmentBuildFlag = "0"; //是否开启护士端预约建单
890
-                  this.leadTime = 0; //是否开启护士端预约建单
891
+                  this.leadTime = 0; //生效时长
891 892
                   this.followFlag = "0"; //是否开启护士端重点关注
892 893
                   this.allowUrgentFlag = false; //是否允许加急(检查列表)
893 894
                 }
@@ -2423,24 +2424,24 @@ export class HushijiandanComponent implements OnInit {
2423 2424
 
2424 2425
   // 页面中间部分tab切换
2425 2426
   checkedTableType: string = "other";
2427
+  isShowBx = false;
2426 2428
   checkTable(type) {
2427 2429
     this.checkedTableType = type;
2428 2430
     if (type === "historySpecimen") {
2429 2431
       this.getHistorySpecimen();
2430 2432
     } else if (type === "historyDrugsbag") {
2431 2433
       this.getHistoryDrugsbag();
2434
+    }else if (type === "bxlb" && this.isShowBx) {
2435
+      this.getBxlb();
2436
+    } else if (type === "kjbx" && this.isShowBx) {
2437
+      this.getQuickBxlb();
2438
+      // 获取报修的区域(所属院区)
2439
+      this.getArea();
2440
+      this.bxForm.controls.name.setValue(this.loginUser.name);
2441
+      this.bxForm.controls.phone.setValue(this.loginUser.phone);
2442
+      this.bxForm.controls.address.setValue(null);
2443
+      this.bxForm.controls.content.setValue(null);
2432 2444
     }
2433
-    // else if (type === "bxlb") {
2434
-    //   this.getBxlb();
2435
-    // } else if (type === "kjbx") {
2436
-    //   this.getQuickBxlb();
2437
-    //   // 获取报修的区域(所属院区)
2438
-    //   this.getArea();
2439
-    //   this.bxForm.controls.name.setValue(this.loginUser.name);
2440
-    //   this.bxForm.controls.phone.setValue(this.loginUser.phone);
2441
-    //   this.bxForm.controls.address.setValue(null);
2442
-    //   this.bxForm.controls.content.setValue(null);
2443
-    // }
2444 2445
   }
2445 2446
   //提交报修
2446 2447
   bxLoading = false;
@@ -2597,47 +2598,47 @@ export class HushijiandanComponent implements OnInit {
2597 2598
       });
2598 2599
   }
2599 2600
   // 报修列表查询表格数据
2600
-  // bxlbList: any = [];
2601
-  // bxlbPageIndex: number = 1; //表格当前页码
2602
-  // bxlbPageSize: number = 10; //表格每页展示条数
2603
-  // bxlbListLength: number = 10; //表格总数据量
2604
-  // bxlbCodeSearchInp: string = ""; //标本编码搜索
2605
-  // bxlbParentSearchInp: string = ""; //患者信息搜索
2606
-  // bxlbLoading = false;
2607
-  // getBxlb(idx?) {
2608
-  //   if (idx) {
2609
-  //     this.bxlbPageIndex = 1;
2610
-  //   }
2611
-  //   let current = JSON.parse(localStorage.getItem("user"));
2612
-  //   this.bxlbLoading = true;
2613
-  //   this.mainService
2614
-  //     .listWxIncident({
2615
-  //       "assignee": current.user.account,
2616
-  //       "state": 0,
2617
-  //       "idx": this.bxlbPageIndex - 1,
2618
-  //       "sum": this.bxlbPageSize
2619
-  //     })
2620
-  //     .subscribe((data: any) => {
2621
-  //       this.bxlbLoading = false;
2622
-  //       this.bxlbList = data.data || [];
2623
-  //       this.bxlbListLength = data.resultCount || 0;
2624
-  //     });
2625
-  // }
2601
+  bxlbList: any = [];
2602
+  bxlbPageIndex: number = 1; //表格当前页码
2603
+  bxlbPageSize: number = 10; //表格每页展示条数
2604
+  bxlbListLength: number = 10; //表格总数据量
2605
+  bxlbCodeSearchInp: string = ""; //标本编码搜索
2606
+  bxlbParentSearchInp: string = ""; //患者信息搜索
2607
+  bxlbLoading = false;
2608
+  getBxlb(idx?) {
2609
+    if (idx) {
2610
+      this.bxlbPageIndex = 1;
2611
+    }
2612
+    let current = JSON.parse(localStorage.getItem("user"));
2613
+    this.bxlbLoading = true;
2614
+    this.mainService
2615
+      .listWxIncident({
2616
+        "assignee": current.user.account,
2617
+        "state": 0,
2618
+        "idx": this.bxlbPageIndex - 1,
2619
+        "sum": this.bxlbPageSize
2620
+      })
2621
+      .subscribe((data: any) => {
2622
+        this.bxlbLoading = false;
2623
+        this.bxlbList = data.data || [];
2624
+        this.bxlbListLength = data.resultCount || 0;
2625
+      });
2626
+  }
2626 2627
 
2627 2628
   //快速报修列表
2628
-  // quickBxlbLoading = false;
2629
-  // quickBxlbList = [];
2630
-  // getQuickBxlb() {
2631
-  //   this.quickBxlbLoading = true;
2632
-  //   this.mainService
2633
-  //     .fetchListBx("incidentCategoryContent", { idx: 0, sum: 10 })
2634
-  //     .subscribe((data: any) => {
2635
-  //       this.quickBxlbLoading = false;
2636
-  //       if (data.status == 200) {
2637
-  //         this.quickBxlbList = data.list || [];
2638
-  //       }
2639
-  //     });
2640
-  // }
2629
+  quickBxlbLoading = false;
2630
+  quickBxlbList = [];
2631
+  getQuickBxlb() {
2632
+    this.quickBxlbLoading = true;
2633
+    this.mainService
2634
+      .fetchListBx("incidentCategoryContent", { idx: 0, sum: 10 })
2635
+      .subscribe((data: any) => {
2636
+        this.quickBxlbLoading = false;
2637
+        if (data.status == 200) {
2638
+          this.quickBxlbList = data.list || [];
2639
+        }
2640
+      });
2641
+  }
2641 2642
 
2642 2643
   // 意见箱-查看模态框
2643 2644
   adviceModal: boolean = false;