Quellcode durchsuchen

标本配送任务类型显示备注

seimin vor 3 Jahren
Ursprung
Commit
4885560a32

+ 2 - 0
src/app/share/detail-sample/detail-sample.component.html

@@ -17,6 +17,8 @@
17 17
         <div nz-col nzSpan="8">目标科室:{{endDepts}}</div>
18 18
         <div nz-col nzSpan="8" *ngIf="orderInfo.worker">支助人员信息:{{orderInfo.worker.name}}</div>
19 19
         <div nz-col nzSpan="8">实际接收:{{orderInfo.actualReceiveNum?orderInfo.actualReceiveNum:''}}</div>
20
+        <div nz-col nzSpan="24" *ngIf="orderInfo.workOrderRemark">备注信息:{{orderInfo.workOrderRemark}}
21
+        </div>
20 22
         <div nz-col nzSpan="24" *ngIf="orderInfo.specialCloseReason">
21 23
           特殊情况关闭原因:{{orderInfo.specialCloseReason}}
22 24
         </div>

+ 4 - 0
src/app/share/order-detail/order-detail.component.html

@@ -95,6 +95,10 @@
95 95
               加急状态:{{orderInfo.urgentDetails.checkStatus.name}}</div>
96 96
             <div nz-col nzSpan="24" class="jiaji">加急原因:{{orderInfo.urgentDetails.urgentReason}}</div>
97 97
           </div>
98
+          <div class="info" nz-row *ngIf="orderInfo.workOrderRemark!==undefined">
99
+            <div nz-col nzSpan="24">备注信息:{{orderInfo.workOrderRemark||'-'}}
100
+            </div>
101
+          </div>
98 102
           <div class="info" nz-row *ngIf="orderInfo.specialCloseReason!==undefined">
99 103
             <div nz-col nzSpan="24">特殊情况关闭原因:{{orderInfo.specialCloseReason||'-'}}
100 104
             </div>

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

@@ -1055,18 +1055,18 @@
1055 1055
     <!-- baba -->
1056 1056
     <div *ngIf="buildMsg1.remarksSwitch == 1">
1057 1057
       <p>工单备注:</p>
1058
-      <textarea nz-input [placeholder]="workOrderRemarkTips"
1058
+      <textarea nz-input [placeholder]="workOrderRemarkTips1"
1059 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>
1060
+        [(ngModel)]="workOrderRemark1" #remarksEle1></textarea>
1061
+      <p class="mt8 mb8" *ngIf="customRemarks1.length">快捷输入:</p>
1062
+      <div *ngIf="customRemarks1.length">
1063
+        <span class="addRemarks" *ngFor="let item of customRemarks1"
1064
+          (click)="addRemarks1(item)">【{{item}}】</span>
1065 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>
1066
+      <p class="mt8 mb8" *ngIf="historyCustomRemarks1.length">历史输入:</p>
1067
+      <div *ngIf="historyCustomRemarks1.length">
1068
+        <span class="addRemarks" *ngFor="let item of historyCustomRemarks1"
1069
+          (click)="addRemarks1(item)">【{{item}}】</span>
1070 1070
       </div>
1071 1071
     </div>
1072 1072
     <div class="btns display_flex justify-content_flex-center">

+ 18 - 4
src/app/views/hushijiandan/hushijiandan.component.ts

@@ -46,6 +46,7 @@ function range(start: number, end: number): number[] {
46 46
 })
47 47
 export class HushijiandanComponent implements OnInit {
48 48
   @ViewChild("remarksEle", { static: false }) remarksEle: ElementRef;
49
+  @ViewChild("remarksEle1", { static: false }) remarksEle1: ElementRef;
49 50
   @ViewChild("osComponentRef1", {
50 51
     read: OverlayScrollbarsComponent,
51 52
     static: false,
@@ -206,13 +207,21 @@ export class HushijiandanComponent implements OnInit {
206 207
 
207 208
   btnLoading: boolean = false; //确认按钮loading状态
208 209
   workOrderRemark = ""; //备注
210
+  workOrderRemark1 = ""; //备注
209 211
   workOrderRemarkTips = ""; //备注提示
212
+  workOrderRemarkTips1 = ""; //备注提示
210 213
   customRemarks = []; //备注快速输入
214
+  customRemarks1 = []; //备注快速输入
211 215
   // 添加备注
212 216
   addRemarks(item) {
213 217
     this.remarksEle.nativeElement.focus();
214 218
     this.workOrderRemark += item;
215 219
   }
220
+  // 添加备注
221
+  addRemarks1(item) {
222
+    this.remarksEle1.nativeElement.focus();
223
+    this.workOrderRemark1 += item;
224
+  }
216 225
   // 获取护士端更新提示
217 226
   updateTipsForNurses = "";
218 227
   getUpdateTipsForNurses() {
@@ -1757,7 +1766,11 @@ export class HushijiandanComponent implements OnInit {
1757 1766
   buildMsg1: any = {}; //一键发起返回信息
1758 1767
   urgentFlag = false;
1759 1768
   // 打开一键发起建单模态框,urgent为true的时候是紧急
1769
+  historyCustomRemarks1 = [];
1760 1770
   newShortcutOrder1(msg, type, urgent?) {
1771
+    this.workOrderRemark1 = "";
1772
+    this.customRemarks1 = [];
1773
+    this.historyCustomRemarks1 = [];
1761 1774
     console.log(msg, type);
1762 1775
     this.urgentFlag = Boolean(urgent);
1763 1776
     this.buildType = type;
@@ -1775,11 +1788,11 @@ export class HushijiandanComponent implements OnInit {
1775 1788
         this.buildMsg1 = result;
1776 1789
         if (result.remarksSwitch == 1) {
1777 1790
           if (result.customRemarks === null || result.customRemarks === "") {
1778
-            this.customRemarks = [];
1791
+            this.customRemarks1 = [];
1779 1792
           } else {
1780
-            this.customRemarks = result.customRemarks.split("$");
1793
+            this.customRemarks1 = result.customRemarks.split("$");
1781 1794
           }
1782
-          this.workOrderRemarkTips =
1795
+          this.workOrderRemarkTips1 =
1783 1796
             result.remarksPrompts || "请填写工单备注,不超过100个字符";
1784 1797
           let user = JSON.parse(localStorage.getItem("user"));
1785 1798
           this.mainService
@@ -1789,7 +1802,7 @@ export class HushijiandanComponent implements OnInit {
1789 1802
             })
1790 1803
             .subscribe((result1) => {
1791 1804
               if (result1.state == 200) {
1792
-                this.historyCustomRemarks = result1.data;
1805
+                this.historyCustomRemarks1 = result1.data;
1793 1806
               }
1794 1807
             });
1795 1808
         }
@@ -1842,6 +1855,7 @@ export class HushijiandanComponent implements OnInit {
1842 1855
       postData = {
1843 1856
         urgent: this.urgentFlag ? 1 : 0,
1844 1857
         workOrder: {
1858
+          workOrderRemark: this.workOrderRemark1,
1845 1859
           taskType: { id: that.shortcutMsg1.id },
1846 1860
           createDept: that.loginUserDeptId,
1847 1861
           startDept: { id: that.loginUserDeptId },