|
@@ -435,7 +435,7 @@ export class FuwutaiComponent implements OnInit {
|
435
|
435
|
if (go === "&go&") {
|
436
|
436
|
this.applyDept = data["startDept"].id;
|
437
|
437
|
this.applyStartDept = data["startDept"];
|
438
|
|
- this.incidentModel.incomingPhone = this.callNumber = data["phone"];
|
|
438
|
+ this.incidentModel.incomingPhone = this.callNumber = this.incidentModel.contactsInformation = data["phone"];
|
439
|
439
|
this.showPromptModal("建单", true, "", "closeGo");
|
440
|
440
|
} else {
|
441
|
441
|
if(this.incomingService.getSign() === 'callCenter' && this.incomingService.getPhoneNumber()){
|
|
@@ -473,7 +473,7 @@ export class FuwutaiComponent implements OnInit {
|
473
|
473
|
if (go === "&go&") {
|
474
|
474
|
this.applyDept = data["startDept"].id;
|
475
|
475
|
this.applyStartDept = data["startDept"];
|
476
|
|
- this.incidentModel.incomingPhone = this.callNumber = data["phone"];
|
|
476
|
+ this.incidentModel.incomingPhone = this.callNumber = this.incidentModel.contactsInformation = data["phone"];
|
477
|
477
|
this.showPromptModal("建单", true, "", "closeGo");
|
478
|
478
|
} else {
|
479
|
479
|
if(this.incomingService.getSign() === 'callCenter' && this.incomingService.getPhoneNumber()){
|
|
@@ -535,7 +535,7 @@ export class FuwutaiComponent implements OnInit {
|
535
|
535
|
if (go === "&go&") {
|
536
|
536
|
this.applyDept = data["startDept"].id;
|
537
|
537
|
this.applyStartDept = data["startDept"];
|
538
|
|
- this.incidentModel.incomingPhone = this.callNumber = data["phone"];
|
|
538
|
+ this.incidentModel.incomingPhone = this.callNumber = this.incidentModel.contactsInformation = data["phone"];
|
539
|
539
|
this.showPromptModal("建单", true, "", "closeGo");
|
540
|
540
|
} else {
|
541
|
541
|
if(this.incomingService.getSign() === 'callCenter' && this.incomingService.getPhoneNumber()){
|
|
@@ -1338,21 +1338,32 @@ export class FuwutaiComponent implements OnInit {
|
1338
|
1338
|
console.log(data);
|
1339
|
1339
|
console.log(this.incidentModel);
|
1340
|
1340
|
this.websocketLoading = false;
|
1341
|
|
- this.incidentModel = {};
|
1342
|
|
- this.incidentMsg = {};
|
1343
|
|
- this.incidentModel.callID = data.callId || undefined;
|
|
1341
|
+
|
|
1342
|
+ // 200签入 201摘机 202来电
|
1344
|
1343
|
if (data.status == 200 && data.phone) {
|
|
1344
|
+ this.incidentModel = {};
|
|
1345
|
+ this.incidentMsg = {};
|
|
1346
|
+ this.incidentModel.callID = data.callId || undefined;
|
1345
|
1347
|
this.msg.info('签入成功');
|
1346
|
1348
|
this.cancelBindExtensionNumber();
|
1347
|
1349
|
} else if (data.status == 201 && data.phone) {
|
1348
|
|
- this.incidentModel.incomingPhone = this.callNumber = data.phone;
|
|
1350
|
+ this.incidentModel = {};
|
|
1351
|
+ this.incidentMsg = {};
|
|
1352
|
+ this.incidentModel.callID = data.callId || undefined;
|
|
1353
|
+
|
|
1354
|
+ this.incidentModel.incomingPhone = this.callNumber = this.incidentModel.contactsInformation = data.phone;
|
1349
|
1355
|
this.searchBxDept();
|
1350
|
1356
|
} else if (data.status == 201 && data.phone === "") {
|
|
1357
|
+ this.incidentModel = {};
|
|
1358
|
+ this.incidentMsg = {};
|
|
1359
|
+ this.incidentModel.callID = data.callId || undefined;
|
1351
|
1360
|
//没绑定科室
|
1352
|
1361
|
if (!this.newOrderShow && !this.newOrderShowOpen) {
|
1353
|
1362
|
this.applyDept = null;
|
1354
|
1363
|
this.showNewOrder("no", data.phone, true, '来电弹屏');
|
1355
|
1364
|
}
|
|
1365
|
+ } else if (data.status == 202) {
|
|
1366
|
+ this.msg.warning(data.msg);
|
1356
|
1367
|
}
|
1357
|
1368
|
});
|
1358
|
1369
|
}else if(sign === 'callCenter'){
|
|
@@ -1382,7 +1393,7 @@ export class FuwutaiComponent implements OnInit {
|
1382
|
1393
|
console.log(result);
|
1383
|
1394
|
if (result.list.length > 0) {
|
1384
|
1395
|
//绑定了科室
|
1385
|
|
- if (!this.newOrderShow && !this.newOrderShowOpen) {
|
|
1396
|
+ // if (!this.newOrderShow && !this.newOrderShowOpen) {
|
1386
|
1397
|
let incidentModel:any = Object.assign({}, this.incidentModel);
|
1387
|
1398
|
let incidentMsg:any = Object.assign({}, this.incidentMsg);
|
1388
|
1399
|
incidentModel.department = result.list[0];
|
|
@@ -1400,7 +1411,7 @@ export class FuwutaiComponent implements OnInit {
|
1400
|
1411
|
this.searchApplicationRequester();
|
1401
|
1412
|
this.applyDeptMiddle = result.list[0];
|
1402
|
1413
|
this.showNewOrder("yes", this.incidentModel.incomingPhone, true, '来电弹屏');
|
1403
|
|
- }
|
|
1414
|
+ // }
|
1404
|
1415
|
} else {
|
1405
|
1416
|
//没绑定科室
|
1406
|
1417
|
console.log(this.newOrderShow);
|
|
@@ -3294,7 +3305,7 @@ export class FuwutaiComponent implements OnInit {
|
3294
|
3305
|
phone !== "&ks&" &&
|
3295
|
3306
|
phone !== "&go&"
|
3296
|
3307
|
) {
|
3297
|
|
- // this.incidentModel.incomingPhone = this.callNumber = phone;
|
|
3308
|
+ // this.incidentModel.incomingPhone = this.callNumber = this.incidentModel.contactsInformation = phone;
|
3298
|
3309
|
this.applyDept = null;
|
3299
|
3310
|
this.noArrives = []; //近期配送
|
3300
|
3311
|
} else if (phone === "&ks&") {
|
|
@@ -3302,7 +3313,7 @@ export class FuwutaiComponent implements OnInit {
|
3302
|
3313
|
(item) => item.id == this.applyDept
|
3303
|
3314
|
);
|
3304
|
3315
|
console.log('filter', filter)
|
3305
|
|
- // this.incidentModel.incomingPhone = this.callNumber = filter[0].phone;
|
|
3316
|
+ // this.incidentModel.incomingPhone = this.callNumber = this.incidentModel.contactsInformation = filter[0].phone;
|
3306
|
3317
|
console.log(this.callNumber); //ceshi
|
3307
|
3318
|
if (this.currentTabIndex == "255") {
|
3308
|
3319
|
//患者转运
|