Bladeren bron

Merge branch 'lmm' into develop

seimin 3 jaren geleden
bovenliggende
commit
dbc016701d

+ 13 - 10
src/app/views/group-management/group-management.component.ts

@@ -309,18 +309,21 @@ export class GroupManagementComponent implements OnInit {
309 309
   }
310 310
   // 确认删除
311 311
   confirmDel() {
312
-    let that = this;
313
-    that.btnLoading = true;
314
-    that.mainService
315
-      .coopData("rmvData", "group2", [that.checkedGroup["id"]])
312
+    this.btnLoading = true;
313
+    this.mainService
314
+      .coopData("rmvData", "group2", [this.checkedGroup["id"]])
316 315
       .subscribe((data) => {
317
-        that.hideDelModal();
318
-        that.btnLoading = false;
319
-        if (data.status == 200) {
320
-          that.showPromptModal("删除", true, "");
321
-          this.checkedGroup = {};
316
+        this.hideDelModal();
317
+        this.btnLoading = false;
318
+        if (data.data && data.data[0]) {
319
+          if (!data.data[0].msg) {
320
+            this.showPromptModal("删除", true, "");
321
+            this.checkedGroup = {};
322
+          } else {
323
+            this.showPromptModal("删除", false, data.data[0].msg);
324
+          }
322 325
         } else {
323
-          that.showPromptModal("删除", false, data.msg);
326
+          this.showPromptModal("删除", false, "");
324 327
         }
325 328
       });
326 329
   }

+ 24 - 6
src/app/views/hushijiandan/hushijiandan.component.html

@@ -179,11 +179,11 @@
179 179
                     <div nz-col nzSpan="6" class="borderR h100p">
180 180
                       <div class="quick">
181 181
                         <button class="btn txtC" (click)="newShortcutOrder1(bbMsg,'bb')">
182
-                          收取所有标本
182
+                          收取标本
183 183
                         </button>
184
-                        <button class="btn txtC" (click)="newShortcutOrder1(bbMsg,'bb',true)">
184
+                        <!-- <button class="btn txtC" (click)="newShortcutOrder1(bbMsg,'bb',true)">
185 185
                           收取急查标本
186
-                        </button>
186
+                        </button> -->
187 187
                       </div>
188 188
                     </div>
189 189
                   </div>
@@ -965,7 +965,6 @@
965 965
       <div class="icon"><i class="icon_transport transport-wenhao"></i></div>
966 966
       <div class="defeat">{{buildMsg1.msg}}</div>
967 967
     </div>
968
-
969 968
     <!-- 100013 (护士端一键建单展示策略)取起点科室,和mgs值展示 -->
970 969
     <div class="content" *ngIf='buildMsg1.status==100013'>
971 970
       <div class="jiTit borderB">
@@ -1052,6 +1051,24 @@
1052 1051
         </form>
1053 1052
       </div>
1054 1053
     </div>
1054
+    <!-- 标本配送备注 -->
1055
+    <!-- baba -->
1056
+    <div *ngIf="buildMsg1.remarksSwitch == 1">
1057
+      <p>工单备注:</p>
1058
+      <textarea nz-input [placeholder]="workOrderRemarkTips"
1059
+        [nzAutosize]="{ minRows: 3, maxRows: 5 }" maxlength="100"
1060
+        [(ngModel)]="workOrderRemark" #remarksEle></textarea>
1061
+      <p class="mt8 mb8" *ngIf="customRemarks.length">快捷输入:</p>
1062
+      <div *ngIf="customRemarks.length">
1063
+        <span class="addRemarks" *ngFor="let item of customRemarks"
1064
+          (click)="addRemarks(item)">【{{item}}】</span>
1065
+      </div>
1066
+      <p class="mt8 mb8" *ngIf="historyCustomRemarks.length">历史输入:</p>
1067
+      <div *ngIf="historyCustomRemarks.length">
1068
+        <span class="addRemarks" *ngFor="let item of historyCustomRemarks"
1069
+          (click)="addRemarks(item)">【{{item}}】</span>
1070
+      </div>
1071
+    </div>
1055 1072
     <div class="btns display_flex justify-content_flex-center">
1056 1073
       <button *ngIf="buildMsg1.status!=100009&&buildMsg1.status!=100010" nz-button nzType="primary"
1057 1074
         [nzLoading]="btnLoading" (click)="confirmShortcut1()">确认</button>
@@ -1299,5 +1316,6 @@
1299 1316
 <app-mask *ngIf="maskFlag"></app-mask>
1300 1317
 <!-- 是否需要医护陪同检查模态框 -->
1301 1318
 <app-dialog-delete [delModal]="accompanyModal" (hideDelModalEvent)="hideAccompanyModal($event)"
1302
-  [btnLoading]="accompanyLoading" [cancenlLoading]="cancenlLoading" (confirmDelEvent)="confirmAccompany()"
1303
-  confirmTxt="是" cancelTxt="否" content="您选择的患者是危重或特级护理或一级护理患者,请问是否需要医护陪同检查?"></app-dialog-delete>
1319
+  (cancelDelEvent)="hideAccompanyModal($event)" [btnLoading]="accompanyLoading" [cancenlLoading]="cancenlLoading"
1320
+  (confirmDelEvent)="confirmAccompany()" confirmTxt="是" cancelTxt="否" content="您选择的患者是危重或特级护理或一级护理患者,请问是否需要医护陪同检查?">
1321
+</app-dialog-delete>

+ 2 - 2
src/app/views/hushijiandan/hushijiandan.component.less

@@ -849,7 +849,7 @@
849 849
                   padding: 5px;
850 850
                   display: flex;
851 851
                   flex-direction: column;
852
-                  justify-content: space-between;
852
+                  justify-content: center;
853 853
 
854 854
                   .btn {
855 855
                     height: 48%;
@@ -1513,7 +1513,7 @@
1513 1513
 
1514 1514
         &.defeat {
1515 1515
           color: #333;
1516
-          font-size: 18px;
1516
+          font-size: 16px;
1517 1517
         }
1518 1518
 
1519 1519
         &.otherInfo {

+ 22 - 2
src/app/views/hushijiandan/hushijiandan.component.ts

@@ -1770,9 +1770,29 @@ export class HushijiandanComponent implements OnInit {
1770 1770
     };
1771 1771
     this.mainService
1772 1772
       .postCustom("nurse", "workOrder/buildTrip", postData)
1773
-      .subscribe((data) => {
1773
+      .subscribe((result) => {
1774 1774
         this.shortcutModal = true;
1775
-        this.buildMsg1 = data;
1775
+        this.buildMsg1 = result;
1776
+        if (result.remarksSwitch == 1) {
1777
+          if (result.customRemarks === null || result.customRemarks === "") {
1778
+            this.customRemarks = [];
1779
+          } else {
1780
+            this.customRemarks = result.customRemarks.split("$");
1781
+          }
1782
+          this.workOrderRemarkTips =
1783
+            result.remarksPrompts || "请填写工单备注,不超过100个字符";
1784
+          let user = JSON.parse(localStorage.getItem("user"));
1785
+          this.mainService
1786
+            .postCustom("nurse", "workOrder/recentRemarks", {
1787
+              deptId: user.user.dept.id,
1788
+              taskTypeId: msg.id,
1789
+            })
1790
+            .subscribe((result1) => {
1791
+              if (result1.state == 200) {
1792
+                this.historyCustomRemarks = result1.data;
1793
+              }
1794
+            });
1795
+        }
1776 1796
       });
1777 1797
   }
1778 1798
   hideShortcutOrder() {

+ 13 - 9
src/app/views/office-management/office-management.component.ts

@@ -512,17 +512,21 @@ export class OfficeManagementComponent implements OnInit {
512 512
       .subscribe((data) => {
513 513
         that.btnLoading = false;
514 514
         that.delModal = false;
515
-        if (data.status == 200 && !data.data[0].msg) {
516
-          if (
517
-            that.listOfData.length == 1 &&
518
-            that.pageIndex == Math.ceil(that.listLength / that.pageSize)
519
-          ) {
520
-            that.listLength--;
521
-            that.pageIndex = Math.ceil(that.listLength / that.pageSize);
515
+        if (data.data && data.data[0]) {
516
+          if (!data.data[0].msg) {
517
+            if (
518
+              that.listOfData.length == 1 &&
519
+              that.pageIndex == Math.ceil(that.listLength / that.pageSize)
520
+            ) {
521
+              that.listLength--;
522
+              that.pageIndex = Math.ceil(that.listLength / that.pageSize);
523
+            }
524
+            that.showPromptModal("删除", true, "");
525
+          } else {
526
+            that.showPromptModal("删除", false, data.data[0].msg);
522 527
           }
523
-          that.showPromptModal("删除", true, "");
524 528
         } else {
525
-          that.showPromptModal("删除", false, data.data[0].msg);
529
+          that.showPromptModal("删除", false, "");
526 530
         }
527 531
       });
528 532
   }

+ 3 - 2
src/app/views/round-robin/round-robin.component.html

@@ -46,7 +46,8 @@
46 46
             <td>{{ data.title }}</td>
47 47
             <td>{{ data.taskType.taskName }}</td>
48 48
             <td [ngSwitch]="data.timeStep">
49
-              <ng-container *ngSwitchCase="'day'">每日{{data.dayType == 0?'':'('+dayType[data.dayType]+')'}}</ng-container>
49
+              <ng-container *ngSwitchCase="'day'">每日{{data.dayType == 0?'':'('+dayType[data.dayType]+')'}}
50
+              </ng-container>
50 51
               <ng-container *ngSwitchCase="'week'">每周{{data.dayType == 0?'':'('+dayType[data.dayType]+')'}}
51 52
               </ng-container>
52 53
               <ng-container *ngSwitchCase="'month'">每月{{data.dayType == 0?'':'('+dayType[data.dayType]+')'}}
@@ -110,7 +111,7 @@
110 111
                 (nzOpenChange)="changeFormTasktype($event)" (ngModelChange)="selectedTasktypeHandler($event)">
111 112
                 <ng-container *ngFor="let data of roundRobinTypes">
112 113
                   <nz-option *ngIf="!isLoading" [nzLabel]="data.taskName" [nzValue]="data.id"
113
-                    [nzDisabled]="!data.carryingCourses[0].departmentStrategy||!data.carryingCourses[1].departmentStrategy">
114
+                    [nzDisabled]="data.carryingCourses&&(!data.carryingCourses[0].departmentStrategy||!data.carryingCourses[1].departmentStrategy)">
114 115
                   </nz-option>
115 116
                 </ng-container>
116 117
                 <nz-option *ngIf="isLoading" nzDisabled nzCustomContent>

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

@@ -133,7 +133,7 @@
133 133
           </nz-radio-group>
134 134
         </div>
135 135
         <div class="mb8 w100"
136
-          *ngIf="!(association['id'] == 255||association['id'] == 256||association['id'] == 257||association['id'] == 258||association['id'] == 260||association['id'] == 380)">
136
+          *ngIf="!(association['id'] == 255||association['id'] == 257||association['id'] == 258||association['id'] == 260||association['id'] == 380)">
137 137
           <nz-form-label class="label" nzRequired>是否需要备注信息</nz-form-label>
138 138
           <nz-radio-group class="handlerType" [(ngModel)]="isRemarks">
139 139
             <label nz-radio nzValue='1'>是</label>

+ 9 - 5
src/app/views/task-type-management/task-type-management.component.ts

@@ -1096,12 +1096,16 @@ export class TaskTypeManagementComponent implements OnInit {
1096 1096
         .subscribe((data) => {
1097 1097
           this.btnLoading = false;
1098 1098
           this.delModal = false;
1099
-          if (data.status == 200 && !data.data[0].msg) {
1100
-            this.showPromptModal("删除", true, "");
1101
-            this.getAllTaskType();
1102
-            this.itemChoice(this.allTaskType[0], this.index);
1099
+          if (data.data && data.data[0]) {
1100
+            if (!data.data[0].msg) {
1101
+              this.showPromptModal("删除", true, "");
1102
+              this.getAllTaskType();
1103
+              this.itemChoice(this.allTaskType[0], this.index);
1104
+            } else {
1105
+              this.showPromptModal("删除", false, data.data[0].msg);
1106
+            }
1103 1107
           } else {
1104
-            this.showPromptModal("删除", false, data.data[0].msg);
1108
+            this.showPromptModal("删除", false, "");
1105 1109
           }
1106 1110
         });
1107 1111
     } else {