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