seimin 1 月之前
父节点
当前提交
9de97436df
共有 1 个文件被更改,包括 12 次插入12 次删除
  1. 12 12
      src/app/views/hushijiandan/hushijiandan.component.ts

+ 12 - 12
src/app/views/hushijiandan/hushijiandan.component.ts

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