|
@@ -130,7 +130,7 @@ export class HushijiandanComponent implements OnInit {
|
130
|
130
|
private webs: WebsocketNurseService,
|
131
|
131
|
public tool: ToolService,
|
132
|
132
|
public http: HttpClient
|
133
|
|
-
|
|
133
|
+
|
134
|
134
|
) {
|
135
|
135
|
this.othersListOptions = {
|
136
|
136
|
onUpdate: (event: any) => {
|
|
@@ -313,17 +313,17 @@ export class HushijiandanComponent implements OnInit {
|
313
|
313
|
this.coopBtns = coopBtns;
|
314
|
314
|
console.log(this.coopBtns);
|
315
|
315
|
}
|
316
|
|
-
|
|
316
|
+
|
317
|
317
|
// 关闭客服弹框
|
318
|
318
|
smartClose(e){
|
319
|
319
|
this.smartShow = false;
|
320
|
320
|
}
|
321
|
|
-
|
|
321
|
+
|
322
|
322
|
// 打开客服弹框
|
323
|
|
- smartOpen(e){
|
|
323
|
+ smartOpen(e?){
|
324
|
324
|
this.smartShow = true;
|
325
|
325
|
}
|
326
|
|
-
|
|
326
|
+
|
327
|
327
|
// 预览图片
|
328
|
328
|
imgs = [];
|
329
|
329
|
isPreview = false;
|
|
@@ -338,7 +338,7 @@ export class HushijiandanComponent implements OnInit {
|
338
|
338
|
this.isPreview = true;
|
339
|
339
|
}, 0)
|
340
|
340
|
}
|
341
|
|
-
|
|
341
|
+
|
342
|
342
|
// 图片相关
|
343
|
343
|
showUploadList = {
|
344
|
344
|
showPreviewIcon: true,
|
|
@@ -361,7 +361,7 @@ export class HushijiandanComponent implements OnInit {
|
361
|
361
|
this.previewImage = file.url || file.thumbUrl;
|
362
|
362
|
this.previewVisible = true;
|
363
|
363
|
};
|
364
|
|
-
|
|
364
|
+
|
365
|
365
|
beforeUpload = (file: UploadFile): boolean => {
|
366
|
366
|
console.log('file2:', file)
|
367
|
367
|
this.fileList = [...this.fileList, file];
|
|
@@ -371,7 +371,7 @@ export class HushijiandanComponent implements OnInit {
|
371
|
371
|
console.log('this.fileList:', this.fileList)
|
372
|
372
|
return true;
|
373
|
373
|
};
|
374
|
|
-
|
|
374
|
+
|
375
|
375
|
getBase64(file: any): Promise<any> {
|
376
|
376
|
return new Promise((resolve, reject) => {
|
377
|
377
|
const reader = new FileReader();
|
|
@@ -380,10 +380,10 @@ export class HushijiandanComponent implements OnInit {
|
380
|
380
|
reader.onerror = error => reject(error);
|
381
|
381
|
});
|
382
|
382
|
}
|
383
|
|
-
|
|
383
|
+
|
384
|
384
|
// 临时上传图片
|
385
|
385
|
temporarilyUrl = this.mainService.returnUploadUrl('wechatRequesterIncident', 0);
|
386
|
|
-
|
|
386
|
+
|
387
|
387
|
// 图片上传
|
388
|
388
|
uploadImages(file, id){
|
389
|
389
|
const formData = new FormData();
|
|
@@ -394,7 +394,7 @@ export class HushijiandanComponent implements OnInit {
|
394
|
394
|
});
|
395
|
395
|
return this.http.request(req).pipe(filter(e => e instanceof HttpResponse)).toPromise();
|
396
|
396
|
}
|
397
|
|
-
|
|
397
|
+
|
398
|
398
|
// 获取任务类型(病理标本)
|
399
|
399
|
taskTypeData:any;
|
400
|
400
|
getTaskTypesId() {
|
|
@@ -3169,7 +3169,7 @@ export class HushijiandanComponent implements OnInit {
|
3169
|
3169
|
this.patientModal = true;
|
3170
|
3170
|
that.checkedShowMsg = data;
|
3171
|
3171
|
if(data.end){
|
3172
|
|
- if(data.end.end.departmentStrategy==202 ||
|
|
3172
|
+ if(data.end.end.departmentStrategy==202 ||
|
3173
|
3173
|
data.end.end.departmentStrategy==204 ||
|
3174
|
3174
|
data.end.end.departmentStrategy==205){
|
3175
|
3175
|
this.isEndFixedType = true
|