航班备降撤销备降消息处理修改
This commit is contained in:
@@ -970,19 +970,23 @@ export class MainComponent implements OnInit {
|
||||
|
||||
getAlternateNotes(flight) {
|
||||
if (this.orderHandle.isArriFlight(flight)) {
|
||||
if (flight['preFlight']['FDIV']) {
|
||||
let preFdiv = flight['preFlight']['FDIV'];
|
||||
if (preFdiv && preFdiv.DDES) {
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
} else if (this.orderHandle.isDeptFlight(flight)) {
|
||||
if (flight['reaFlight']['FDIV']) {
|
||||
let reaFdiv = flight['reaFlight']['FDIV'];
|
||||
if (reaFdiv && reaFdiv.DDES) {
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
} else {
|
||||
if ((flight['preFlight']['FDIV']) || (flight['reaFlight']['FDIV'])) {
|
||||
let preFdiv = flight['preFlight']['FDIV'];
|
||||
let reaFdiv = flight['reaFlight']['FDIV'];
|
||||
if ((preFdiv && preFdiv.DDES) || (reaFdiv && reaFdiv.DDES)) {
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
|
||||
@@ -70,10 +70,13 @@ export class RelatedTabComponent implements OnInit {
|
||||
this.precancle = new Date(dateFormatter(this.precancle)).getTime();
|
||||
}
|
||||
if (fdivIndex > -1) {
|
||||
this.prefdiv = this.lines.preFlight['ABN'][fdivIndex].BODY;
|
||||
let airportIndex = this.allAirports.findIndex(val => val.airportCodeIata === this.prefdiv.DDES);
|
||||
if (airportIndex > -1) {
|
||||
this.prefdiv.DDES = this.allAirports[airportIndex].briefNameChn
|
||||
let fdiv = this.lines.preFlight['ABN'][fdivIndex].BODY;
|
||||
if (fdiv.DDES) {
|
||||
this.prefdiv = fdiv;
|
||||
let airportIndex = this.allAirports.findIndex(val => val.airportCodeIata === this.prefdiv.DDES);
|
||||
if (airportIndex > -1) {
|
||||
this.prefdiv.DDES = this.allAirports[airportIndex].briefNameChn
|
||||
}
|
||||
}
|
||||
}
|
||||
if (fretIndex > -1) {
|
||||
@@ -100,11 +103,15 @@ export class RelatedTabComponent implements OnInit {
|
||||
this.reacancle = new Date(dateFormatter(this.reacancle)).getTime();
|
||||
}
|
||||
if (fdivIndex > -1) {
|
||||
this.reafdiv = this.lines.reaFlight['ABN'][fdivIndex].BODY;
|
||||
let airportIndex = this.allAirports.findIndex(val => val.airportCodeIata === this.reafdiv.DDES);
|
||||
if (airportIndex > -1) {
|
||||
this.reafdiv.DDES = this.allAirports[airportIndex].briefNameChn
|
||||
let fdiv = this.lines.reaFlight['ABN'][fdivIndex].BODY;
|
||||
if (fdiv.DDES) {
|
||||
this.reafdiv = fdiv;
|
||||
let airportIndex = this.allAirports.findIndex(val => val.airportCodeIata === this.reafdiv.DDES);
|
||||
if (airportIndex > -1) {
|
||||
this.reafdiv.DDES = this.allAirports[airportIndex].briefNameChn
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
if (fretIndex > -1) {
|
||||
let fret = this.lines.reaFlight['ABN'][fretIndex].BODY;
|
||||
|
||||
Reference in New Issue
Block a user