|
@@ -1465,24 +1465,20 @@ export class FuwutaiComponent implements OnInit {
|
1465
|
1465
|
// 呼叫中心---start
|
1466
|
1466
|
searchBxDept(){
|
1467
|
1467
|
let dataObj = {
|
1468
|
|
- idx: 0,
|
1469
|
|
- sum: 10,
|
1470
|
|
- department: {
|
1471
|
|
- searchType: 2,
|
1472
|
|
- phone: this.incidentModel.incomingPhone,
|
1473
|
|
- },
|
|
1468
|
+ hosId: this.tool.getCurrentUserDept().id,
|
|
1469
|
+ phone: this.incidentModel.incomingPhone,
|
1474
|
1470
|
};
|
1475
|
1471
|
this.mainService
|
1476
|
|
- .getFetchDataList("data", "department", dataObj)
|
1477
|
|
- .subscribe((result) => {
|
1478
|
|
- if (result.status == 200) {
|
|
1472
|
+ .findPhoneDept(dataObj)
|
|
1473
|
+ .subscribe((result:any) => {
|
|
1474
|
+ if (result.state == 200) {
|
1479
|
1475
|
console.log(result);
|
1480
|
|
- if (result.list.length > 0) {
|
|
1476
|
+ if (result.data.length > 0) {
|
1481
|
1477
|
//绑定了科室
|
1482
|
1478
|
// if (!this.newOrderShow && !this.newOrderShowOpen) {
|
1483
|
1479
|
let incidentModel:any = Object.assign({}, this.incidentModel);
|
1484
|
1480
|
let incidentMsg:any = Object.assign({}, this.incidentMsg);
|
1485
|
|
- incidentModel.department = result.list[0];
|
|
1481
|
+ incidentModel.department = result.data[0];
|
1486
|
1482
|
incidentModel.department && incidentModel.department.hospital && (incidentModel.hosId = incidentModel.department.hospital.parent ? incidentModel.department.hospital.parent.id : incidentModel.department.hospital.id);
|
1487
|
1483
|
incidentModel.department && incidentModel.department.building && (incidentModel.area = incidentModel.department.building.id);
|
1488
|
1484
|
incidentModel.department && incidentModel.department.floor && (incidentModel.place = incidentModel.department.floor.id);
|
|
@@ -1495,7 +1491,7 @@ export class FuwutaiComponent implements OnInit {
|
1495
|
1491
|
this.incidentModel = incidentModel;
|
1496
|
1492
|
this.incidentMsg = incidentMsg;
|
1497
|
1493
|
this.searchApplicationRequester();
|
1498
|
|
- this.applyDeptMiddle = result.list[0];
|
|
1494
|
+ this.applyDeptMiddle = result.data[0];
|
1499
|
1495
|
this.showNewOrder("yes", this.incidentModel.incomingPhone, true, '来电弹屏');
|
1500
|
1496
|
// }
|
1501
|
1497
|
} else {
|
|
@@ -5237,23 +5233,19 @@ export class FuwutaiComponent implements OnInit {
|
5237
|
5233
|
if(e.data){
|
5238
|
5234
|
// 留言创建工单
|
5239
|
5235
|
let postData = {
|
5240
|
|
- idx: 0,
|
5241
|
|
- sum: 10,
|
5242
|
|
- department: {
|
5243
|
|
- searchType: 2,
|
5244
|
|
- phone: e.data.ano,
|
5245
|
|
- },
|
|
5236
|
+ hosId: this.tool.getCurrentUserDept().id,
|
|
5237
|
+ phone: e.data.ano,
|
5246
|
5238
|
};
|
5247
|
5239
|
this.maskFlag = this.msg.loading("正在加载中..", {
|
5248
|
5240
|
nzDuration: 0,
|
5249
|
5241
|
}).messageId;
|
5250
|
5242
|
|
5251
|
5243
|
this.mainService
|
5252
|
|
- .getFetchDataList("data", "department", postData)
|
5253
|
|
- .subscribe((result) => {
|
|
5244
|
+ .findPhoneDept(postData)
|
|
5245
|
+ .subscribe((result:any) => {
|
5254
|
5246
|
this.msg.remove(this.maskFlag);
|
5255
|
5247
|
this.maskFlag = false;
|
5256
|
|
- if (result.status == 200) {
|
|
5248
|
+ if (result.state == 200) {
|
5257
|
5249
|
this.mainService.getDictionary("list", "incident_source").subscribe((res) => {
|
5258
|
5250
|
let sourceList = res || [];
|
5259
|
5251
|
let incidentModel:any = {
|
|
@@ -5263,9 +5255,9 @@ export class FuwutaiComponent implements OnInit {
|
5263
|
5255
|
let incidentMsg:any = {};
|
5264
|
5256
|
let source = sourceList.find(v => v.value === 'record');
|
5265
|
5257
|
source && (incidentModel.source = source.id);
|
5266
|
|
- if (result.list.length > 0) {
|
|
5258
|
+ if (result.data.length > 0) {
|
5267
|
5259
|
//绑定了科室
|
5268
|
|
- incidentModel.department = result.list[0];
|
|
5260
|
+ incidentModel.department = result.data[0];
|
5269
|
5261
|
incidentModel.department && incidentModel.department.hospital && (incidentModel.hosId = incidentModel.department.hospital.parent ? incidentModel.department.hospital.parent.id : incidentModel.department.hospital.id);
|
5270
|
5262
|
incidentModel.department && incidentModel.department.building && (incidentModel.area = incidentModel.department.building.id);
|
5271
|
5263
|
incidentModel.department && incidentModel.department.floor && (incidentModel.place = incidentModel.department.floor.id);
|