Browse Source

药品和静配的自动建单-前端

seimin 3 years ago
parent
commit
65104a2425

+ 10 - 8
src/app/views/task-type-management/task-type-management.component.html

@@ -183,8 +183,7 @@
183 183
             <label nz-radio nzValue='0'>否</label>
184 184
           </nz-radio-group>
185 185
         </div>
186
-        <div class="mb8 w100"
187
-          *ngIf="association['id'] == 255||association['id'] == 260">
186
+        <div class="mb8 w100" *ngIf="association['id'] == 255||association['id'] == 260">
188 187
           <nz-form-label class="label" nzRequired>是否需要医护陪同检查</nz-form-label>
189 188
           <nz-radio-group class="handlerType" [(ngModel)]="isAccompany">
190 189
             <label nz-radio nzValue='1'>是</label>
@@ -579,17 +578,13 @@
579 578
           </div>
580 579
         </div>
581 580
       </div>
582
-      <!-- 运过程 -->
581
+      <!-- 运过程 -->
583 582
       <div *ngIf="tabModalName=='ysgc'" class="ysgcItem">
584 583
         <div class="ysgc_top">
585 584
           <div class="title">
586 585
             <span>{{hosName}}--{{allTaskTypeShow}}流程</span>
587
-            <!-- <span>基础流程</span> -->
588 586
           </div>
589 587
           <div class="process">
590
-            <!-- <nz-steps [nzCurrent]="indexs" (nzIndexChange)="onIndexChange($event)">
591
-              <nz-step nzTitle="{{data.name}}" *ngFor="let data of carryingCourses"></nz-step>
592
-            </nz-steps> -->
593 588
             <div *ngFor="let data of carryingCourses; let i =index" (click)="onIndexChange(i)" class="carrItem"
594 589
               [ngStyle]="{'width':carryingCourses.length == 2 ? '45%' : '30%' }" [ngClass]="{'carrItems':indexs==i}">
595 590
               <div class="carrItem_icon" [ngClass]="{'carrItems':indexs==i}">
@@ -614,7 +609,6 @@
614 609
                 <div class="item_type_cont_L" *ngIf='carryingCourses[indexs].departmentDTOS'>
615 610
                   <div *ngFor='let data of carryingCourses[indexs].departmentDTOS'>
616 611
                     <span>{{data.dept}}</span>
617
-                    <!-- <p >{{data.name}} : 手动建单</p> -->
618 612
                   </div>
619 613
                 </div>
620 614
                 <div class="item_type_cont_L" *ngIf='!carryingCourses[indexs].departmentDTOS'>
@@ -653,6 +647,14 @@
653 647
           <nz-select class="mb8 w100" nzShowSearch nzAllowClear nzPlaceHolder="请选择检验方式" [(ngModel)]="checkoutMethod.id">
654 648
             <nz-option nzLabel="{{data.name}}" nzValue="{{data.id}}" *ngFor="let data of checkoutData"></nz-option>
655 649
           </nz-select>
650
+          <!-- 静配自动建单 -->
651
+          <div class="turnoff" *ngIf="currentChoice.associationType.value == 'jPBag'&&indexs==0">
652
+            <label nz-checkbox [(ngModel)]="xxx">根据对接数据自动建单</label>
653
+          </div>
654
+          <!-- 药品自动建单 -->
655
+          <div class="turnoff" *ngIf="currentChoice.associationType.value == 'drugsBag'&&indexs==0">
656
+            <label nz-checkbox [(ngModel)]="yyy">根据对接数据自动建单</label>
657
+          </div>
656 658
           <div *ngIf="depaShow3">
657 659
             <!-- 标本配送才有自动建单,重要! -->
658 660
             <nz-form-label class="label">自动建单</nz-form-label>

+ 36 - 4
src/app/views/task-type-management/task-type-management.component.ts

@@ -188,8 +188,10 @@ export class TaskTypeManagementComponent implements OnInit {
188 188
   depaShow = false; //固定科室选择字段
189 189
   depaShow1 = false; //固定科室范围选择字段
190 190
   depaShow2 = false; //自助填写选择字段
191
-  depaShow3 = false;
191
+  depaShow3 = false; //标本自动建单
192 192
   depaShow4 = false; //固定科室类型
193
+  depaShow5 = false; //静配自动建单
194
+  depaShow6 = false; //药品自动建单
193 195
   scheduleClassChecked; //已选班次
194 196
   ClassChecked = false; //班次选择模态框字段
195 197
   classChecked; //班次选择
@@ -209,6 +211,8 @@ export class TaskTypeManagementComponent implements OnInit {
209 211
   addEndDeptIds: any = []; //自动(手动)建单追加终点科室
210 212
   autoAddDeptSwitch: any = false; //自动建单追加终点科室开关
211 213
   handAddDeptSwitch: any = false; //手动建单追加终点科室开关
214
+  xxx: any = false; //根据对接数据自动建单(静配)
215
+  yyy: any = false; //根据对接数据自动建单(药品)
212 216
   createRuleConfiguration = []; //自动建单字段
213 217
   levelData; //护理级别字段
214 218
   specimen_types = false; //标本选择显示隐藏字段
@@ -649,6 +653,16 @@ export class TaskTypeManagementComponent implements OnInit {
649 653
       } else {
650 654
         this.depaShow3 = false;
651 655
       }
656
+      if (data.associationType.value == "jPBag" && this.indexs == 0) {
657
+        this.depaShow5 = true;
658
+      } else {
659
+        this.depaShow5 = false;
660
+      }
661
+      if (data.associationType.value == "drugsBag" && this.indexs == 0) {
662
+        this.depaShow6 = true;
663
+      } else {
664
+        this.depaShow6 = false;
665
+      }
652 666
     }
653 667
     if (this.tabModalName == "ktks") {
654 668
       this.getCourseList(this.pageSize);
@@ -774,6 +788,8 @@ export class TaskTypeManagementComponent implements OnInit {
774 788
       data.carryingCourses[0].autoAddDeptSwitch == 1 ? true : false; //自动建单追加终点科室开关
775 789
     this.handAddDeptSwitch =
776 790
       data.carryingCourses[0].handAddDeptSwitch == 1 ? true : false; //手动建单追加终点科室开关
791
+    this.xxx = data.carryingCourses[0].xxx == 1 ? true : false; //根据对接数据自动建单(静配)
792
+    this.yyy = data.carryingCourses[0].yyy == 1 ? true : false; //根据对接数据自动建单(药品)
777 793
     if (data.carryingCourses) {
778 794
       if (this.indexs == 2 && this.association.value != "inspect") {
779 795
         this.indexs = 1;
@@ -1054,10 +1070,14 @@ export class TaskTypeManagementComponent implements OnInit {
1054 1070
         .handAddDeptSwitch
1055 1071
         ? 1
1056 1072
         : 0; //手动建单追加终点科室开关
1073
+      this.taskData.taskType.carryingCourses[0].xxx = this.xxx ? 1 : 0; //根据对接数据自动建单(静配)
1074
+      this.taskData.taskType.carryingCourses[0].yyy = this.yyy ? 1 : 0; //根据对接数据自动建单(药品)
1057 1075
     } else {
1058 1076
       this.taskData.taskType.carryingCourses[0].addEndDeptIds = ""; //自动(手动)建单追加终点科室
1059 1077
       this.taskData.taskType.carryingCourses[0].autoAddDeptSwitch = 0; //自动建单追加终点科室开关
1060 1078
       this.taskData.taskType.carryingCourses[0].handAddDeptSwitch = 0; //手动建单追加终点科室开关
1079
+      this.taskData.taskType.carryingCourses[0].xxx = 0; //根据对接数据自动建单(静配)
1080
+      this.taskData.taskType.carryingCourses[0].yyy = 0; //根据对接数据自动建单(药品)
1061 1081
     }
1062 1082
     console.log(this.taskData);
1063 1083
     // return;
@@ -1143,6 +1163,8 @@ export class TaskTypeManagementComponent implements OnInit {
1143 1163
     this.addEndDeptIds = []; //自动(手动)建单追加终点科室
1144 1164
     this.autoAddDeptSwitch = false; //自动建单追加终点科室开关
1145 1165
     this.handAddDeptSwitch = false; //手动建单追加终点科室开关
1166
+    this.xxx = false; //根据对接数据自动建单(静配)
1167
+    this.yyy = false; //根据对接数据自动建单(药品)
1146 1168
     this.remarks = ""; //提前生效时间,默认20分钟
1147 1169
     this.quickRemarks = ""; //备注快速输入
1148 1170
     this.styleType = false;
@@ -1624,10 +1646,20 @@ export class TaskTypeManagementComponent implements OnInit {
1624 1646
   //起终点科室流程选择
1625 1647
   onIndexChange(index: number): void {
1626 1648
     this.indexs = index;
1627
-    if (index == 1) {
1628
-      this.depaShow3 = false;
1629
-    } else if (index == 0 && this.currentChoice.associationType.id == 256) {
1649
+    if (index == 0 && this.currentChoice.associationType.value == "specimen") {
1630 1650
       this.depaShow3 = true;
1651
+    } else {
1652
+      this.depaShow3 = false;
1653
+    }
1654
+    if (index == 0 && this.currentChoice.associationType.value == "jPBag") {
1655
+      this.depaShow5 = true;
1656
+    } else {
1657
+      this.depaShow5 = false;
1658
+    }
1659
+    if (index == 0 && this.currentChoice.associationType.value == "drugsBag") {
1660
+      this.depaShow6 = true;
1661
+    } else {
1662
+      this.depaShow6 = false;
1631 1663
     }
1632 1664
     this.getDepartment();
1633 1665
     this.getcheckout();