|
@@ -3680,7 +3680,6 @@ export class FuwutaiComponent implements OnInit {
|
3680
|
3680
|
hosId: this.incidentModel.hosId,
|
3681
|
3681
|
},
|
3682
|
3682
|
};
|
3683
|
|
- console.log(postData);
|
3684
|
3683
|
// return;
|
3685
|
3684
|
this.isLoading = true;
|
3686
|
3685
|
this.mainService
|
|
@@ -3718,12 +3717,15 @@ export class FuwutaiComponent implements OnInit {
|
3718
|
3717
|
orders.push(this.malPriorityDTO.orders)
|
3719
|
3718
|
id.push(this.malPriorityDTO.id)
|
3720
|
3719
|
}
|
3721
|
|
- let minNumber = Math.min(...orders)
|
3722
|
|
- let index = orders.indexOf(minNumber)
|
3723
|
|
- console.log('最小值的orders', minNumber)
|
3724
|
|
- setTimeout(_=>{
|
3725
|
|
- this.incidentModel.priorityId = minNumber != Infinity ? id[index] : null
|
3726
|
|
- })
|
|
3720
|
+ if(orders.length>0){
|
|
3721
|
+ let minNumber = Math.min(...orders)
|
|
3722
|
+ let index = orders.indexOf(minNumber)
|
|
3723
|
+ console.log('最小值的orders', orders, minNumber)
|
|
3724
|
+ setTimeout(_=>{
|
|
3725
|
+ this.incidentModel.priorityId = minNumber != Infinity ? id[index] : null
|
|
3726
|
+ })
|
|
3727
|
+ }
|
|
3728
|
+
|
3727
|
3729
|
// 根据院区和故障现象带出责任部门,优先级,维修人/组
|
3728
|
3730
|
this.incidentModel.duty = this.incidentCategoryConfig.dutyDTO;
|
3729
|
3731
|
// this.incidentModel.priorityId = this.incidentCategoryConfig.priority;
|
|
@@ -6685,7 +6687,6 @@ export class FuwutaiComponent implements OnInit {
|
6685
|
6687
|
this.editOrder = cloneDeep(data);
|
6686
|
6688
|
let incidentModel = cloneDeep(data);
|
6687
|
6689
|
let incidentMsg:any = {};
|
6688
|
|
-
|
6689
|
6690
|
// incidentModel.department && (this.applicationDeptList = [cloneDeep(incidentModel.department)]);
|
6690
|
6691
|
incidentModel.department && (incidentMsg.deptManyPhone = incidentModel.department.manyPhone);
|
6691
|
6692
|
incidentModel.department && (incidentMsg.deptName = incidentModel.department.dept);
|
|
@@ -6705,6 +6706,7 @@ export class FuwutaiComponent implements OnInit {
|
6705
|
6706
|
incidentModel.category && (incidentModel.category = incidentModel.category.id);
|
6706
|
6707
|
this.incidentModel = incidentModel;
|
6707
|
6708
|
this.incidentMsg = incidentMsg;
|
|
6709
|
+ // this.incidentModel.department && this.changeApply(this.incidentModel.department.id);
|
6708
|
6710
|
this.incidentModel.category && this.changeApplyCategory(this.incidentModel.category, true);
|
6709
|
6711
|
console.log('this.applicationDeptList:', this.applicationDeptList)
|
6710
|
6712
|
console.log('incidentModel:', incidentModel)
|