Переглянути джерело

Merge branch 'lmm' into develop

seimin 3 роки тому
батько
коміт
d582bca22e

+ 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 },

+ 57 - 3
src/polyfills.ts

@@ -13,6 +13,62 @@
13 13
  *
14 14
  * Learn more in https://angular.io/guide/browser-support
15 15
  */
16
+// Array.prototype.includes()兼容问题,2021年7月21日-seimin
17
+if (!Array.prototype.includes) {
18
+  Object.defineProperty(Array.prototype, "includes", {
19
+    value: function (valueToFind, fromIndex) {
20
+      if (this == null) {
21
+        throw new TypeError('"this" is null or not defined');
22
+      }
23
+
24
+      // 1. Let O be ? ToObject(this value).
25
+      var o = Object(this);
26
+
27
+      // 2. Let len be ? ToLength(? Get(O, "length")).
28
+      var len = o.length >>> 0;
29
+
30
+      // 3. If len is 0, return false.
31
+      if (len === 0) {
32
+        return false;
33
+      }
34
+
35
+      // 4. Let n be ? ToInteger(fromIndex).
36
+      //    (If fromIndex is undefined, this step produces the value 0.)
37
+      var n = fromIndex | 0;
38
+
39
+      // 5. If n ≥ 0, then
40
+      //  a. Let k be n.
41
+      // 6. Else n < 0,
42
+      //  a. Let k be len + n.
43
+      //  b. If k < 0, let k be 0.
44
+      var k = Math.max(n >= 0 ? n : len - Math.abs(n), 0);
45
+
46
+      function sameValueZero(x, y) {
47
+        return (
48
+          x === y ||
49
+          (typeof x === "number" &&
50
+            typeof y === "number" &&
51
+            isNaN(x) &&
52
+            isNaN(y))
53
+        );
54
+      }
55
+
56
+      // 7. Repeat, while k < len
57
+      while (k < len) {
58
+        // a. Let elementK be the result of ? Get(O, ! ToString(k)).
59
+        // b. If SameValueZero(valueToFind, elementK) is true, return true.
60
+        if (sameValueZero(o[k], valueToFind)) {
61
+          return true;
62
+        }
63
+        // c. Increase k by 1.
64
+        k++;
65
+      }
66
+
67
+      // 8. Return false
68
+      return false;
69
+    },
70
+  });
71
+}
16 72
 // (function () {
17 73
 //     Object.setPrototypeOf = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array ? setProtoOf : mixinProperties);
18 74
 
@@ -179,9 +235,7 @@
179 235
  * APPLICATION IMPORTS
180 236
  */
181 237
 
182
-
183
-import 'zone.js/dist/zone';  // Included with Angular CLI.
184
-
238
+import "zone.js/dist/zone"; // Included with Angular CLI.
185 239
 
186 240
 // import 'babel-polyfill';
187 241