|
@@ -391,6 +391,7 @@ export class FuwutaiComponent implements OnInit {
|
391
|
391
|
applyStartDept;
|
392
|
392
|
patientCode:any;
|
393
|
393
|
taskTypeId:any;
|
|
394
|
+ patientObj:any;
|
394
|
395
|
// 患者转运表单提交
|
395
|
396
|
submitFormZy(go?): void {
|
396
|
397
|
let newOrderShowFlag = true; //是否可以关闭弹窗
|
|
@@ -460,7 +461,9 @@ export class FuwutaiComponent implements OnInit {
|
460
|
461
|
if (go === "&go&") {
|
461
|
462
|
this.applyDept = data["createDept"].id;
|
462
|
463
|
this.applyStartDept = data["createDept"];
|
463
|
|
- this.patientCode = data["patientId"];
|
|
464
|
+ this.patientObj = data["patient"] ? data["patient"] : null;
|
|
465
|
+ this.patientCode = data["patient"] ? data["patient"].patientCode : null;
|
|
466
|
+ console.log(99999,this.patientCode)
|
464
|
467
|
this.taskTypeId = data["taskTypeId"];
|
465
|
468
|
this.incidentModel.incomingPhone = this.callNumber = this.incidentModel.contactsInformation = data["phone"];
|
466
|
469
|
this.showPromptModal("建单", true, "", "closeGo");
|
|
@@ -476,7 +479,8 @@ export class FuwutaiComponent implements OnInit {
|
476
|
479
|
if (go === "&go&") {
|
477
|
480
|
this.applyDept = data["createDept"].id;
|
478
|
481
|
this.applyStartDept = data["createDept"];
|
479
|
|
- this.patientCode = data["patientId"];
|
|
482
|
+ this.patientObj = data["patient"] ? data["patient"] : null;
|
|
483
|
+ this.patientCode = data["patient"] ? data["patient"].patientCode : null;
|
480
|
484
|
this.taskTypeId = data["taskTypeId"];
|
481
|
485
|
this.incidentModel.incomingPhone = this.callNumber = this.incidentModel.contactsInformation = data["phone"];
|
482
|
486
|
}
|
|
@@ -2810,6 +2814,10 @@ export class FuwutaiComponent implements OnInit {
|
2810
|
2814
|
tlwsa.tlaAcw();
|
2811
|
2815
|
},0)
|
2812
|
2816
|
}
|
|
2817
|
+ this.addressDTO = null;
|
|
2818
|
+ this.deptPriorityDTO = null;
|
|
2819
|
+ this.userPriorityDTO = null;
|
|
2820
|
+ this.malPriorityDTO = null;
|
2813
|
2821
|
this.buildType = buildType;
|
2814
|
2822
|
console.log(123,buildType)
|
2815
|
2823
|
if(this.itsmData.mdv2Switch){
|
|
@@ -3143,6 +3151,7 @@ export class FuwutaiComponent implements OnInit {
|
3143
|
3151
|
that.zwLoading = false;
|
3144
|
3152
|
that.initZwForm();
|
3145
|
3153
|
if (data.status == 200) {
|
|
3154
|
+ this.patientCode = null;
|
3146
|
3155
|
this.getZwOrders();
|
3147
|
3156
|
this.selectProvince = false;
|
3148
|
3157
|
this.newOrderShow = false;
|
|
@@ -3156,11 +3165,13 @@ export class FuwutaiComponent implements OnInit {
|
3156
|
3165
|
|
3157
|
3166
|
// 获取患者信息
|
3158
|
3167
|
searchPatientList(id, searchWords) {
|
|
3168
|
+ this.patientObj = null;
|
|
3169
|
+ this.patientCode = null;
|
3159
|
3170
|
this.searchPatientListSubject.next([id, searchWords]);
|
3160
|
3171
|
}
|
3161
|
3172
|
// 获取患者信息
|
3162
|
3173
|
isLoadingPatient: boolean = false;
|
3163
|
|
- getPatientList(id, searchWords, patient?) {
|
|
3174
|
+ getPatientList(id, searchWords, patient?, type:any = '') {
|
3164
|
3175
|
if(patient){
|
3165
|
3176
|
this.patientList = [patient];
|
3166
|
3177
|
return;
|
|
@@ -3175,10 +3186,31 @@ export class FuwutaiComponent implements OnInit {
|
3175
|
3186
|
this.isLoadingPatient = false;
|
3176
|
3187
|
if (result["state"] == 200) {
|
3177
|
3188
|
this.patientList = result["data"];
|
3178
|
|
- if(this.deathTasktypeId != this.taskTypeId){
|
3179
|
|
- // 患者信息自动带入
|
3180
|
|
- let item = this.patientList.find(i=> i.id == this.patientCode)
|
3181
|
|
- this.validateFormZy.controls.patient.setValue(item.patientCode+"");
|
|
3189
|
+ console.log(111,Number(this.deathTasktypeId))
|
|
3190
|
+ console.log(222,this.taskTypeId)
|
|
3191
|
+ console.log(333, type)
|
|
3192
|
+ if(type!='change'){
|
|
3193
|
+ if(this.patientObj){
|
|
3194
|
+ let list = this.patientList.find(i=>i.id == this.patientObj.id)
|
|
3195
|
+ if(!list){
|
|
3196
|
+ this.patientList.push({
|
|
3197
|
+ patientname: this.patientObj.patientName,
|
|
3198
|
+ bednum: this.patientObj.bedNum,
|
|
3199
|
+ residenceNo: this.patientObj.residenceNo,
|
|
3200
|
+ id: this.patientObj.id,
|
|
3201
|
+ patientCode: this.patientObj.patientCode
|
|
3202
|
+ })
|
|
3203
|
+ }
|
|
3204
|
+ }
|
|
3205
|
+ if(this.taskTypeId){
|
|
3206
|
+ if(Number(this.deathTasktypeId) != this.taskTypeId){
|
|
3207
|
+ // 患者信息自动带入
|
|
3208
|
+ let item = this.patientList.find(i=> i.patientCode == this.patientCode)
|
|
3209
|
+ if(item){
|
|
3210
|
+ this.validateFormZy.controls.patient.setValue(item.patientCode+"");
|
|
3211
|
+ }
|
|
3212
|
+ }
|
|
3213
|
+ }
|
3182
|
3214
|
}
|
3183
|
3215
|
// if (this.patientList.length) {
|
3184
|
3216
|
// this.patientList = this.patientList.filter((item) => !!item.bednum);
|
|
@@ -3365,10 +3397,15 @@ export class FuwutaiComponent implements OnInit {
|
3365
|
3397
|
if(userObj){
|
3366
|
3398
|
this.incidentMsg.requesterPhone = userObj.phone;
|
3367
|
3399
|
}
|
3368
|
|
- if(userObj.priorityDTO){
|
|
3400
|
+ if(userObj && userObj.priorityDTO){
|
3369
|
3401
|
this.userPriorityDTO = userObj.priorityDTO
|
|
3402
|
+ }else{
|
|
3403
|
+ this.userPriorityDTO = null
|
3370
|
3404
|
}
|
3371
|
3405
|
let orders = [];
|
|
3406
|
+ if(this.addressDTO&&this.addressDTO.orders){
|
|
3407
|
+ orders.push(this.addressDTO.orders)
|
|
3408
|
+ }
|
3372
|
3409
|
if(this.deptPriorityDTO&&this.deptPriorityDTO.orders){
|
3373
|
3410
|
orders.push(this.deptPriorityDTO.orders)
|
3374
|
3411
|
}
|
|
@@ -3381,7 +3418,7 @@ export class FuwutaiComponent implements OnInit {
|
3381
|
3418
|
let minNumber = Math.min(...orders)
|
3382
|
3419
|
console.log('最小值的orders', orders, minNumber)
|
3383
|
3420
|
setTimeout(_=>{
|
3384
|
|
- this.incidentModel.priorityId = minNumber || null
|
|
3421
|
+ this.incidentModel.priorityId = minNumber != Infinity ? minNumber : null
|
3385
|
3422
|
})
|
3386
|
3423
|
if(this.incidentModel.repairIncidentType === 'public'){
|
3387
|
3424
|
this.getItsmOrders('')
|
|
@@ -3458,8 +3495,13 @@ export class FuwutaiComponent implements OnInit {
|
3458
|
3495
|
}
|
3459
|
3496
|
if(this.incidentCategoryConfig.priorityDTO){
|
3460
|
3497
|
this.malPriorityDTO = this.incidentCategoryConfig.priorityDTO
|
|
3498
|
+ }else{
|
|
3499
|
+ this.malPriorityDTO = null
|
3461
|
3500
|
}
|
3462
|
3501
|
let orders = [];
|
|
3502
|
+ if(this.addressDTO&&this.addressDTO.orders){
|
|
3503
|
+ orders.push(this.addressDTO.orders)
|
|
3504
|
+ }
|
3463
|
3505
|
if(this.deptPriorityDTO&&this.deptPriorityDTO.orders){
|
3464
|
3506
|
orders.push(this.deptPriorityDTO.orders)
|
3465
|
3507
|
}
|
|
@@ -3472,7 +3514,7 @@ export class FuwutaiComponent implements OnInit {
|
3472
|
3514
|
let minNumber = Math.min(...orders)
|
3473
|
3515
|
console.log('最小值的orders', orders, minNumber)
|
3474
|
3516
|
setTimeout(_=>{
|
3475
|
|
- this.incidentModel.priorityId = minNumber || null
|
|
3517
|
+ this.incidentModel.priorityId = minNumber != Infinity ? minNumber : null
|
3476
|
3518
|
})
|
3477
|
3519
|
// 根据院区和故障现象带出责任部门,优先级,维修人/组
|
3478
|
3520
|
this.incidentModel.duty = this.incidentCategoryConfig.dutyDTO;
|
|
@@ -3977,26 +4019,6 @@ export class FuwutaiComponent implements OnInit {
|
3977
|
4019
|
// 配送-选择科室
|
3978
|
4020
|
deptPriorityDTO:any;
|
3979
|
4021
|
changeApply(e) {
|
3980
|
|
- let item = this.applicationDepartmentList.find(i=>i.id = e)
|
3981
|
|
- console.log('选中的科室11111',item);
|
3982
|
|
- if(item.priorityDTO){
|
3983
|
|
- this.deptPriorityDTO = item.priorityDTO
|
3984
|
|
- }
|
3985
|
|
- let orders = [];
|
3986
|
|
- if(this.deptPriorityDTO&&this.deptPriorityDTO.orders){
|
3987
|
|
- orders.push(this.deptPriorityDTO.orders)
|
3988
|
|
- }
|
3989
|
|
- if(this.userPriorityDTO&&this.userPriorityDTO.orders){
|
3990
|
|
- orders.push(this.userPriorityDTO.orders)
|
3991
|
|
- }
|
3992
|
|
- if(this.malPriorityDTO&&this.malPriorityDTO.orders){
|
3993
|
|
- orders.push(this.malPriorityDTO.orders)
|
3994
|
|
- }
|
3995
|
|
- let minNumber = Math.min(...orders)
|
3996
|
|
- console.log('最小值的orders', orders, minNumber)
|
3997
|
|
- setTimeout(_=>{
|
3998
|
|
- this.incidentModel.priorityId = minNumber || null
|
3999
|
|
- })
|
4000
|
4022
|
this.changeApplicationDepartment("&same&");
|
4001
|
4023
|
this.defaultInspectFn();
|
4002
|
4024
|
|
|
@@ -4010,15 +4032,43 @@ export class FuwutaiComponent implements OnInit {
|
4010
|
4032
|
|
4011
|
4033
|
let deptObj = this.applicationDepartmentList.find(v => v.id == e);
|
4012
|
4034
|
|
4013
|
|
- if(this.incidentModel.department != e){
|
4014
|
|
- this.incidentModel.department = e;
|
4015
|
|
- this.searchApplicationDepartment('itsm', deptObj ? deptObj.dept : '', undefined, e);
|
4016
|
|
- }
|
|
4035
|
+ // if(this.incidentModel.department != e){
|
|
4036
|
+ // this.incidentModel.department = e;
|
|
4037
|
+ // this.searchApplicationDepartment('itsm', deptObj ? deptObj.dept : '', undefined, e);
|
|
4038
|
+ // }
|
4017
|
4039
|
}
|
4018
|
4040
|
// 运维-选择科室
|
4019
|
4041
|
changeApplyDept(e) {
|
4020
|
4042
|
console.log(e, this.applicationDeptList);
|
4021
|
|
-
|
|
4043
|
+ let item = this.applicationDeptList.find(i=>i.id == e)
|
|
4044
|
+ console.log('选中的科室11111',item);
|
|
4045
|
+ if(item && item.priorityDTO){
|
|
4046
|
+ this.addressDTO = null;
|
|
4047
|
+ this.userPriorityDTO = null;
|
|
4048
|
+ this.deptPriorityDTO = item.priorityDTO
|
|
4049
|
+ }else{
|
|
4050
|
+ this.addressDTO = null;
|
|
4051
|
+ this.userPriorityDTO = null;
|
|
4052
|
+ this.deptPriorityDTO = null
|
|
4053
|
+ }
|
|
4054
|
+ let orders = [];
|
|
4055
|
+ if(this.addressDTO&&this.addressDTO.orders){
|
|
4056
|
+ orders.push(this.addressDTO.orders)
|
|
4057
|
+ }
|
|
4058
|
+ if(this.deptPriorityDTO&&this.deptPriorityDTO.orders){
|
|
4059
|
+ orders.push(this.deptPriorityDTO.orders)
|
|
4060
|
+ }
|
|
4061
|
+ if(this.userPriorityDTO&&this.userPriorityDTO.orders){
|
|
4062
|
+ orders.push(this.userPriorityDTO.orders)
|
|
4063
|
+ }
|
|
4064
|
+ if(this.malPriorityDTO&&this.malPriorityDTO.orders){
|
|
4065
|
+ orders.push(this.malPriorityDTO.orders)
|
|
4066
|
+ }
|
|
4067
|
+ let minNumber = Math.min(...orders)
|
|
4068
|
+ console.log('最小值的orders', orders, minNumber)
|
|
4069
|
+ setTimeout(_=>{
|
|
4070
|
+ this.incidentModel.priorityId = minNumber != Infinity ? minNumber : null
|
|
4071
|
+ })
|
4022
|
4072
|
if(this.incidentModel.department && this.currentTabIndex === '故障报修'){
|
4023
|
4073
|
this.rightTitle_tab = [
|
4024
|
4074
|
{ id: 2, name: '近期维修' },
|
|
@@ -4092,7 +4142,7 @@ export class FuwutaiComponent implements OnInit {
|
4092
|
4142
|
|
4093
|
4143
|
// 根据院区和故障现象带出责任部门,优先级,维修人/组
|
4094
|
4144
|
this.incidentModel.duty = this.incidentCategoryConfig.dutyDTO;
|
4095
|
|
- this.incidentModel.priorityId = this.incidentCategoryConfig.priority;
|
|
4145
|
+ // this.incidentModel.priorityId = this.incidentCategoryConfig.priority;
|
4096
|
4146
|
|
4097
|
4147
|
// 回显维修人/组
|
4098
|
4148
|
this.showGroupOrUser();
|
|
@@ -4146,7 +4196,7 @@ export class FuwutaiComponent implements OnInit {
|
4146
|
4196
|
if (this.currentTabIndex == "患者转运") {
|
4147
|
4197
|
//患者转运
|
4148
|
4198
|
//获取患者信息
|
4149
|
|
- this.getPatientList(this.applyDept, "");
|
|
4199
|
+ this.getPatientList(this.applyDept, "", "", "");
|
4150
|
4200
|
}
|
4151
|
4201
|
if (this.currentRTab === 0) {
|
4152
|
4202
|
this.getWorkOrders(this.applyDept);
|
|
@@ -4163,7 +4213,7 @@ export class FuwutaiComponent implements OnInit {
|
4163
|
4213
|
if (this.currentTabIndex == "患者转运") {
|
4164
|
4214
|
//患者转运
|
4165
|
4215
|
//获取患者信息
|
4166
|
|
- this.getPatientList(this.applyDept, "");
|
|
4216
|
+ this.getPatientList(this.applyDept, "", "", "");
|
4167
|
4217
|
}
|
4168
|
4218
|
if (this.currentRTab === 0) {
|
4169
|
4219
|
this.getWorkOrders(this.applyDept);
|
|
@@ -4571,6 +4621,7 @@ export class FuwutaiComponent implements OnInit {
|
4571
|
4621
|
this.jry_shixian();
|
4572
|
4622
|
}
|
4573
|
4623
|
this.goType = null;
|
|
4624
|
+ this.patientCode = null;
|
4574
|
4625
|
this.newOrderShow = false; //关闭弹窗
|
4575
|
4626
|
this.newOrderShowOpen = false; //此时可出现新的弹窗
|
4576
|
4627
|
this.showPromptModal("操作", true, "", "");
|
|
@@ -4685,13 +4736,15 @@ export class FuwutaiComponent implements OnInit {
|
4685
|
4736
|
let arr = this.workTypesArrange;
|
4686
|
4737
|
this.workTypesFlag = arr.length >= 5;
|
4687
|
4738
|
// 默认选中故障现象
|
4688
|
|
- if (arr.length > 0) {
|
|
4739
|
+ if (arr.length > 0 && this.patientCode) {
|
|
4740
|
+ isFirst ? this.tabClick(arr[0].key, isInit) : this.tabClick(arr[0].key, isInit);
|
|
4741
|
+ }else{
|
4689
|
4742
|
if(this.showGovDuty==1){
|
4690
|
4743
|
isFirst ? this.tabClick(arr[0].key, isInit) : this.tabClick(arr[arr.length - 2].key, isInit);
|
4691
|
4744
|
}else{
|
4692
|
4745
|
isFirst ? this.tabClick(arr[0].key, isInit) : this.tabClick(arr[arr.length - 1].key, isInit);
|
4693
|
4746
|
}
|
4694
|
|
- }
|
|
4747
|
+ }
|
4695
|
4748
|
}
|
4696
|
4749
|
});
|
4697
|
4750
|
this.getTaskTypeCountRemarkList();
|
|
@@ -5105,10 +5158,9 @@ export class FuwutaiComponent implements OnInit {
|
5105
|
5158
|
tabIndex;
|
5106
|
5159
|
isStartFixedType:boolean = false;
|
5107
|
5160
|
isEndFixedType:boolean = false;
|
5108
|
|
- radioChangeZy(value, index) {
|
|
5161
|
+ radioChangeZy(value, index, type='') {
|
5109
|
5162
|
this.radioValueZyPre = this.radioValueZy;
|
5110
|
5163
|
this.radioValueZy = value;
|
5111
|
|
-
|
5112
|
5164
|
this.tabIndex = index;
|
5113
|
5165
|
//任务类型id
|
5114
|
5166
|
if (value === "" || value === null) {
|
|
@@ -5212,11 +5264,15 @@ export class FuwutaiComponent implements OnInit {
|
5212
|
5264
|
if (this.endDeptZy && this.radioValueZy == this.deathTasktypeId) {
|
5213
|
5265
|
//获取患者信息
|
5214
|
5266
|
this.patientZy = null;
|
5215
|
|
- this.getPatientList(this.endDeptZy, "");
|
|
5267
|
+ this.patientObj = null;
|
|
5268
|
+ this.taskTypeId = null;
|
|
5269
|
+ this.getPatientList(this.endDeptZy, "", "", type);
|
5216
|
5270
|
} else if(this.applyDept && this.radioValueZyPre == this.deathTasktypeId) {
|
5217
|
5271
|
//获取患者信息
|
5218
|
5272
|
this.patientZy = null;
|
5219
|
|
- this.getPatientList(this.applyDept, "");
|
|
5273
|
+ this.patientObj = null;
|
|
5274
|
+ this.taskTypeId = null;
|
|
5275
|
+ this.getPatientList(this.applyDept, "", "", type);
|
5220
|
5276
|
}
|
5221
|
5277
|
}
|
5222
|
5278
|
});
|
|
@@ -5333,30 +5389,24 @@ export class FuwutaiComponent implements OnInit {
|
5333
|
5389
|
goType:any;
|
5334
|
5390
|
newOrderOk(go?): void {
|
5335
|
5391
|
this.goType = go
|
5336
|
|
- console.log(this.radioValueQt);
|
5337
|
5392
|
let arr = this.workTypesArrange.find(v => v.key === this.currentTabIndex);
|
5338
|
5393
|
let objQt = arr.value.find(v => v.id == this.radioValueQt);
|
5339
|
5394
|
let objZy = arr.value.find(v => v.id == this.radioValueZy);
|
5340
|
5395
|
if (this.isYyInspect && objQt && objQt.associationTypeValue === 'other') {
|
5341
|
5396
|
this.clickYYFlag = true;
|
5342
|
|
- console.log(110)
|
5343
|
5397
|
} else {
|
5344
|
|
- console.log(111)
|
5345
|
5398
|
this.clickYYFlag = false;
|
5346
|
5399
|
}
|
5347
|
5400
|
if (this.isYyInspect && objZy && (objZy.associationTypeValue === 'patientTransport' || objZy.associationTypeValue === 'inspect')) {
|
5348
|
5401
|
this.clickYYZyFlag = true;
|
5349
|
|
- console.log(112)
|
5350
|
5402
|
} else {
|
5351
|
5403
|
this.clickYYZyFlag = false;
|
5352
|
|
- console.log(113)
|
5353
|
5404
|
}
|
5354
|
5405
|
|
5355
|
5406
|
if (
|
5356
|
5407
|
(!this.yyTime && objQt && objQt.associationTypeValue === 'other' && this.isYyInspect) ||
|
5357
|
5408
|
(!this.yyTimeZy && objZy && (objZy.associationTypeValue === 'patientTransport' || objZy.associationTypeValue === 'inspect') && this.isYyInspect)
|
5358
|
5409
|
) {
|
5359
|
|
- console.log(114)
|
5360
|
5410
|
return;
|
5361
|
5411
|
}
|
5362
|
5412
|
|
|
@@ -5365,6 +5415,9 @@ export class FuwutaiComponent implements OnInit {
|
5365
|
5415
|
} else {
|
5366
|
5416
|
this.isGoLoading = true;
|
5367
|
5417
|
}
|
|
5418
|
+ if(this.currentTabIndex!='患者转运'){
|
|
5419
|
+ this.patientCode = null;
|
|
5420
|
+ }
|
5368
|
5421
|
if (objZy && objZy.associationTypeValue === 'patientTransport') {
|
5369
|
5422
|
//患者转运
|
5370
|
5423
|
go === "&go&" ? this.submitFormZy(go) : this.submitFormZy();
|
|
@@ -5466,17 +5519,18 @@ export class FuwutaiComponent implements OnInit {
|
5466
|
5519
|
// 撤回并删除
|
5467
|
5520
|
recAndDel() {
|
5468
|
5521
|
let that = this;
|
5469
|
|
- that.recDelLoading = true;
|
5470
|
|
- that.mainService.delOrder(that.coopId).subscribe((data) => {
|
5471
|
|
- that.recDelLoading = false;
|
5472
|
|
- console.log(data);
|
5473
|
|
- that.closeRecallOrderModal();
|
5474
|
|
- if (data.status == 200) {
|
5475
|
|
- that.showPromptModal("删除", true, "");
|
5476
|
|
- } else {
|
5477
|
|
- that.showPromptModal("删除", false, data.msg);
|
5478
|
|
- }
|
5479
|
|
- });
|
|
5522
|
+ this.openReasonModal()
|
|
5523
|
+ // that.recDelLoading = true;
|
|
5524
|
+ // that.mainService.delOrder(that.coopId).subscribe((data) => {
|
|
5525
|
+ // that.recDelLoading = false;
|
|
5526
|
+ // console.log(data);
|
|
5527
|
+ // that.closeRecallOrderModal();
|
|
5528
|
+ // if (data.status == 200) {
|
|
5529
|
+ // that.showPromptModal("删除", true, "");
|
|
5530
|
+ // } else {
|
|
5531
|
+ // that.showPromptModal("删除", false, data.msg);
|
|
5532
|
+ // }
|
|
5533
|
+ // });
|
5480
|
5534
|
}
|
5481
|
5535
|
// 关闭撤回模态框
|
5482
|
5536
|
closeRecallOrderModal() {
|
|
@@ -5535,6 +5589,7 @@ export class FuwutaiComponent implements OnInit {
|
5535
|
5589
|
delReason:any;
|
5536
|
5590
|
isDelVisible:boolean = false;
|
5537
|
5591
|
openReasonModal() {
|
|
5592
|
+ this.closeRecallOrderModal();
|
5538
|
5593
|
this.isDelVisible = true;
|
5539
|
5594
|
}
|
5540
|
5595
|
// 确认删除
|
|
@@ -5561,6 +5616,7 @@ export class FuwutaiComponent implements OnInit {
|
5561
|
5616
|
// 关闭模态框
|
5562
|
5617
|
delOrderModal() {
|
5563
|
5618
|
this.isDelVisible = false;
|
|
5619
|
+ this.delReason = null;
|
5564
|
5620
|
}
|
5565
|
5621
|
|
5566
|
5622
|
// 新建工单
|
|
@@ -5638,6 +5694,12 @@ export class FuwutaiComponent implements OnInit {
|
5638
|
5694
|
this.repeatModal = true;
|
5639
|
5695
|
this.repeatPostData = postData;
|
5640
|
5696
|
this.sourceType = sourceType;
|
|
5697
|
+ if(this.currentTabIndex!='患者转运'){
|
|
5698
|
+ this.patientCode = null;
|
|
5699
|
+ }
|
|
5700
|
+ if(this.currentTabIndex=='患者转运' && go!='&go&' ){
|
|
5701
|
+ this.patientCode = null;
|
|
5702
|
+ }
|
5641
|
5703
|
// if(this.goType=='&go&'){
|
5642
|
5704
|
// this.showRepetitionModal("建单", true, "", "closeGo");
|
5643
|
5705
|
// }
|
|
@@ -5647,7 +5709,6 @@ export class FuwutaiComponent implements OnInit {
|
5647
|
5709
|
this.btnLoading = false;
|
5648
|
5710
|
this.confirmType = false;
|
5649
|
5711
|
if(this.goType=='&go&'){
|
5650
|
|
- console.log('fou222222')
|
5651
|
5712
|
this.showNewOrder(1,"&go&");
|
5652
|
5713
|
// this.showRepetitionModal("建单", true, "", "closeGo");
|
5653
|
5714
|
}
|
|
@@ -6624,7 +6685,33 @@ export class FuwutaiComponent implements OnInit {
|
6624
|
6685
|
}
|
6625
|
6686
|
|
6626
|
6687
|
// 选择地址
|
6627
|
|
- selectAddress(name){
|
|
6688
|
+ addressDTO:any;
|
|
6689
|
+ selectAddress(name, id){
|
|
6690
|
+ let item = this.addressList.find(i=>i.id == id)
|
|
6691
|
+ console.log('选中的地址11111',item);
|
|
6692
|
+ if(item && item.priority){
|
|
6693
|
+ this.addressDTO = item.priority
|
|
6694
|
+ }else{
|
|
6695
|
+ this.addressDTO = null
|
|
6696
|
+ }
|
|
6697
|
+ let orders = [];
|
|
6698
|
+ if(this.addressDTO&&this.addressDTO.orders){
|
|
6699
|
+ orders.push(this.addressDTO.orders)
|
|
6700
|
+ }
|
|
6701
|
+ if(this.deptPriorityDTO&&this.deptPriorityDTO.orders){
|
|
6702
|
+ orders.push(this.deptPriorityDTO.orders)
|
|
6703
|
+ }
|
|
6704
|
+ if(this.userPriorityDTO&&this.userPriorityDTO.orders){
|
|
6705
|
+ orders.push(this.userPriorityDTO.orders)
|
|
6706
|
+ }
|
|
6707
|
+ if(this.malPriorityDTO&&this.malPriorityDTO.orders){
|
|
6708
|
+ orders.push(this.malPriorityDTO.orders)
|
|
6709
|
+ }
|
|
6710
|
+ let minNumber = Math.min(...orders)
|
|
6711
|
+ console.log('最小值的orders', orders, minNumber)
|
|
6712
|
+ setTimeout(_=>{
|
|
6713
|
+ this.incidentModel.priorityId = minNumber != Infinity ? minNumber : null
|
|
6714
|
+ })
|
6628
|
6715
|
this.incidentModel.houseNumber = name;
|
6629
|
6716
|
this.isShowAddressList = false;
|
6630
|
6717
|
}
|