|
@@ -1465,7 +1465,7 @@ export class FuwutaiComponent implements OnInit {
|
1465
|
1465
|
// 呼叫中心---start
|
1466
|
1466
|
searchBxDept(){
|
1467
|
1467
|
let dataObj = {
|
1468
|
|
- hosId: this.tool.getCurrentUserDept().id,
|
|
1468
|
+ hosId: this.tool.getCurrentHospital().id,
|
1469
|
1469
|
phone: this.incidentModel.incomingPhone,
|
1470
|
1470
|
};
|
1471
|
1471
|
this.mainService
|
|
@@ -3145,7 +3145,9 @@ export class FuwutaiComponent implements OnInit {
|
3145
|
3145
|
// 选择报修类型
|
3146
|
3146
|
changeRepairIncidentType(value){
|
3147
|
3147
|
this.incidentModel.department = undefined;
|
3148
|
|
- this.isRelatedDepartment = false;
|
|
3148
|
+ this.incidentMsg.deptManyPhone = '';
|
|
3149
|
+
|
|
3150
|
+ this.isRelatedDepartment = value !== 'public';
|
3149
|
3151
|
this.changeApplyRelatedDepartment(this.isRelatedDepartment);
|
3150
|
3152
|
}
|
3151
|
3153
|
// 楼栋列表
|
|
@@ -4973,7 +4975,10 @@ export class FuwutaiComponent implements OnInit {
|
4973
|
4975
|
incidentModel.requester && (incidentMsg.requesterPhone = incidentModel.requester.phone);
|
4974
|
4976
|
incidentModel.requester && (incidentMsg.requesterName = incidentModel.requester.name);
|
4975
|
4977
|
incidentModel.requester && (incidentModel.requester = incidentModel.requester.id);
|
4976
|
|
- incidentModel.repairIncidentType && (incidentModel.repairIncidentType = incidentModel.repairIncidentType.value);
|
|
4978
|
+ if(incidentModel.repairIncidentType){
|
|
4979
|
+ incidentModel.repairIncidentType = incidentModel.repairIncidentType.value
|
|
4980
|
+ this.changeRepairIncidentType(incidentModel.repairIncidentType);
|
|
4981
|
+ }
|
4977
|
4982
|
incidentModel.source && (incidentModel.source = incidentModel.source.id);
|
4978
|
4983
|
incidentModel.area && (incidentModel.area = incidentModel.area.id);
|
4979
|
4984
|
incidentModel.place && (incidentModel.place = incidentModel.place.id);
|
|
@@ -5004,7 +5009,10 @@ export class FuwutaiComponent implements OnInit {
|
5004
|
5009
|
incidentModel.requester && (incidentMsg.requesterPhone = incidentModel.requester.phone);
|
5005
|
5010
|
incidentModel.requester && (incidentMsg.requesterName = incidentModel.requester.name);
|
5006
|
5011
|
incidentModel.requester && (incidentModel.requester = incidentModel.requester.id);
|
5007
|
|
- incidentModel.repairIncidentType && (incidentModel.repairIncidentType = incidentModel.repairIncidentType.value);
|
|
5012
|
+ if(incidentModel.repairIncidentType){
|
|
5013
|
+ incidentModel.repairIncidentType = incidentModel.repairIncidentType.value
|
|
5014
|
+ this.changeRepairIncidentType(incidentModel.repairIncidentType);
|
|
5015
|
+ }
|
5008
|
5016
|
incidentModel.source && (incidentModel.source = incidentModel.source.id);
|
5009
|
5017
|
incidentModel.area && (incidentModel.area = incidentModel.area.id);
|
5010
|
5018
|
incidentModel.place && (incidentModel.place = incidentModel.place.id);
|
|
@@ -5103,7 +5111,10 @@ export class FuwutaiComponent implements OnInit {
|
5103
|
5111
|
incidentModel.requester && (incidentMsg.requesterPhone = incidentModel.requester.phone);
|
5104
|
5112
|
incidentModel.requester && (incidentMsg.requesterName = incidentModel.requester.name);
|
5105
|
5113
|
incidentModel.requester && (incidentModel.requester = incidentModel.requester.id);
|
5106
|
|
- incidentModel.repairIncidentType && (incidentModel.repairIncidentType = incidentModel.repairIncidentType.value);
|
|
5114
|
+ if(incidentModel.repairIncidentType){
|
|
5115
|
+ incidentModel.repairIncidentType = incidentModel.repairIncidentType.value
|
|
5116
|
+ this.changeRepairIncidentType(incidentModel.repairIncidentType);
|
|
5117
|
+ }
|
5107
|
5118
|
incidentModel.source && (incidentModel.source = incidentModel.source.id);
|
5108
|
5119
|
incidentModel.area && (incidentModel.area = incidentModel.area.id);
|
5109
|
5120
|
incidentModel.place && (incidentModel.place = incidentModel.place.id);
|
|
@@ -5273,7 +5284,7 @@ export class FuwutaiComponent implements OnInit {
|
5273
|
5284
|
if(e.data){
|
5274
|
5285
|
// 留言创建工单
|
5275
|
5286
|
let postData = {
|
5276
|
|
- hosId: this.tool.getCurrentUserDept().id,
|
|
5287
|
+ hosId: this.tool.getCurrentHospital().id,
|
5277
|
5288
|
phone: e.data.ano,
|
5278
|
5289
|
};
|
5279
|
5290
|
this.maskFlag = this.msg.loading("正在加载中..", {
|
|
@@ -5306,6 +5317,8 @@ export class FuwutaiComponent implements OnInit {
|
5306
|
5317
|
incidentModel.department && (incidentMsg.deptName = incidentModel.department.dept);
|
5307
|
5318
|
|
5308
|
5319
|
incidentModel.department && (incidentModel.department = incidentModel.department.id);
|
|
5320
|
+ incidentModel.repairIncidentType = 'dept';
|
|
5321
|
+ this.changeRepairIncidentType(incidentModel.repairIncidentType);
|
5309
|
5322
|
this.incidentModel = incidentModel;
|
5310
|
5323
|
console.log('this.incidentModel:', this.incidentModel)
|
5311
|
5324
|
this.incidentMsg = incidentMsg;
|
|
@@ -5339,16 +5352,17 @@ export class FuwutaiComponent implements OnInit {
|
5339
|
5352
|
this.getAddressList();
|
5340
|
5353
|
}
|
5341
|
5354
|
|
5342
|
|
- // 详细地址失去焦点
|
5343
|
|
- blurAddress(){
|
5344
|
|
- setTimeout(() => {
|
|
5355
|
+ // 点击其他位置
|
|
5356
|
+ clickExtra(e){
|
|
5357
|
+ if(document.documentElement.contains(document.querySelector('.addressList')) && e.target !== document.querySelector('.addressFocus')){
|
5345
|
5358
|
this.isShowAddressList = false;
|
5346
|
|
- }, 100)
|
|
5359
|
+ }
|
5347
|
5360
|
}
|
5348
|
5361
|
|
5349
|
5362
|
// 选择地址
|
5350
|
5363
|
selectAddress(name){
|
5351
|
5364
|
this.incidentModel.houseNumber = name;
|
|
5365
|
+ this.isShowAddressList = false;
|
5352
|
5366
|
}
|
5353
|
5367
|
|
5354
|
5368
|
// 获取科室地点列表
|