|
@@ -133,7 +133,10 @@ export class HushijiandanComponent implements OnInit {
|
133
|
133
|
currentUser;
|
134
|
134
|
logTimer = null;
|
135
|
135
|
logTime = 0;
|
136
|
|
- logTimeConst = 30;
|
|
136
|
+ logTimeConst = 60;
|
|
137
|
+ orderListTimer = null;
|
|
138
|
+ orderListTime = 0;
|
|
139
|
+ orderListTimeConst = 60;
|
137
|
140
|
deptDisplay;
|
138
|
141
|
ngOnInit() {
|
139
|
142
|
this.tool.getDeptDisplay().subscribe((result) => {
|
|
@@ -166,6 +169,7 @@ export class HushijiandanComponent implements OnInit {
|
166
|
169
|
this.initRole();
|
167
|
170
|
this.getWebsocket();
|
168
|
171
|
this.listDeptOrderRecord();
|
|
172
|
+
|
169
|
173
|
this.logTime = this.logTimeConst;
|
170
|
174
|
clearInterval(this.logTimer);
|
171
|
175
|
this.logTimer = setInterval(() => {
|
|
@@ -175,6 +179,18 @@ export class HushijiandanComponent implements OnInit {
|
175
|
179
|
this.listDeptOrderRecord();
|
176
|
180
|
}
|
177
|
181
|
}, 1000);
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+ this.orderListTime = this.orderListTimeConst;
|
|
185
|
+ clearInterval(this.orderListTimer);
|
|
186
|
+ this.orderListTimer = setInterval(() => {
|
|
187
|
+ this.orderListTime--;
|
|
188
|
+ if (this.orderListTime === 0) {
|
|
189
|
+ this.orderListTime = this.orderListTimeConst;
|
|
190
|
+ this.getOrderList();
|
|
191
|
+ }
|
|
192
|
+ }, 1000);
|
|
193
|
+
|
178
|
194
|
}
|
179
|
195
|
ngOnDestroy() {
|
180
|
196
|
console.log("关闭护士端", this.webs.ws);
|
|
@@ -182,6 +198,7 @@ export class HushijiandanComponent implements OnInit {
|
182
|
198
|
clearInterval(this.moveId1);
|
183
|
199
|
clearInterval(this.msgTimerId);
|
184
|
200
|
clearInterval(this.logTimer);
|
|
201
|
+ clearInterval(this.orderListTimer);
|
185
|
202
|
this.webs.closeWs();
|
186
|
203
|
}
|
187
|
204
|
loginUser: any = localStorage.getItem("user")
|
|
@@ -232,6 +249,62 @@ export class HushijiandanComponent implements OnInit {
|
232
|
249
|
this.remarksEle1.nativeElement.focus();
|
233
|
250
|
this.workOrderRemark1 += item;
|
234
|
251
|
}
|
|
252
|
+
|
|
253
|
+ coopItem: any = {};
|
|
254
|
+ execModal: boolean = false;
|
|
255
|
+
|
|
256
|
+ openExecModal(item) {
|
|
257
|
+ this.coopItem = item;
|
|
258
|
+ this.execModal = true;
|
|
259
|
+ }
|
|
260
|
+
|
|
261
|
+ confirmExec() {
|
|
262
|
+ this.btnLoading = true;
|
|
263
|
+
|
|
264
|
+
|
|
265
|
+
|
|
266
|
+
|
|
267
|
+
|
|
268
|
+
|
|
269
|
+
|
|
270
|
+
|
|
271
|
+
|
|
272
|
+
|
|
273
|
+
|
|
274
|
+
|
|
275
|
+
|
|
276
|
+
|
|
277
|
+
|
|
278
|
+
|
|
279
|
+
|
|
280
|
+
|
|
281
|
+
|
|
282
|
+
|
|
283
|
+
|
|
284
|
+
|
|
285
|
+
|
|
286
|
+
|
|
287
|
+
|
|
288
|
+
|
|
289
|
+
|
|
290
|
+
|
|
291
|
+
|
|
292
|
+
|
|
293
|
+
|
|
294
|
+ this.mainService.executeNow(this.coopItem.id).subscribe((result: any) => {
|
|
295
|
+ this.closeExecModal();
|
|
296
|
+ if (result.status == 200) {
|
|
297
|
+ this.showPromptModal("立即执行", true, "");
|
|
298
|
+ this.getOrderList();
|
|
299
|
+ } else {
|
|
300
|
+ this.showPromptModal("立即执行", false, result.msg);
|
|
301
|
+ }
|
|
302
|
+ });
|
|
303
|
+ }
|
|
304
|
+
|
|
305
|
+ closeExecModal() {
|
|
306
|
+ this.execModal = false;
|
|
307
|
+ }
|
235
|
308
|
|
236
|
309
|
updateTipsForNurses = "";
|
237
|
310
|
getUpdateTipsForNurses() {
|
|
@@ -791,7 +864,12 @@ export class HushijiandanComponent implements OnInit {
|
791
|
864
|
|
792
|
865
|
|
793
|
866
|
changeInfo() {
|
794
|
|
- if (!this.deptTaskTypeRules.openInspection&&!this.deptTaskTypeRules.openPatientTransport) return;
|
|
867
|
+ if (
|
|
868
|
+ !this.deptTaskTypeRules.openInspection &&
|
|
869
|
+ !this.deptTaskTypeRules.openPatientTransport
|
|
870
|
+ ) {
|
|
871
|
+ return;
|
|
872
|
+ }
|
795
|
873
|
this.infoPageIdx = 1;
|
796
|
874
|
this.getPatient();
|
797
|
875
|
}
|
|
@@ -850,7 +928,12 @@ export class HushijiandanComponent implements OnInit {
|
850
|
928
|
|
851
|
929
|
|
852
|
930
|
searchTabInp(e) {
|
853
|
|
- if (!this.deptTaskTypeRules.openInspection&&!this.deptTaskTypeRules.openPatientTransport) return;
|
|
931
|
+ if (
|
|
932
|
+ !this.deptTaskTypeRules.openInspection &&
|
|
933
|
+ !this.deptTaskTypeRules.openPatientTransport
|
|
934
|
+ ) {
|
|
935
|
+ return;
|
|
936
|
+ }
|
854
|
937
|
this.searchTabInpSubject.next(e);
|
855
|
938
|
}
|
856
|
939
|
|