|
@@ -359,12 +359,12 @@ export default {
|
|
|
this.startQueryTrack()
|
|
|
}
|
|
|
},
|
|
|
- created () {
|
|
|
+ async created () {
|
|
|
this.resetStepNodes()
|
|
|
const { flightNO, flightDate, bagSN } = this.$route.query
|
|
|
if (flightNO && flightDate && bagSN) {
|
|
|
this.queryData = { flightNO, flightDate, bagSN }
|
|
|
- this.queryBasicInfo()
|
|
|
+ await this.queryBasicInfo()
|
|
|
this.queryAirline()
|
|
|
this.infoBtn = this.infoRadios[0]
|
|
|
} else {
|
|
@@ -645,7 +645,8 @@ export default {
|
|
|
},
|
|
|
// 行李航段
|
|
|
queryBaggageAirline (dataContent) {
|
|
|
- return myQuery(SERVICE_ID.baggageAirline, ...dataContent)
|
|
|
+ const id = this.baggageBasicInfo.PNR ? SERVICE_ID.baggageAirline : SERVICE_ID.baggageAirlineNew
|
|
|
+ return myQuery(id, ...dataContent)
|
|
|
},
|
|
|
// 行李详情追踪链
|
|
|
queryBaggageTrack (dataContent) {
|
|
@@ -653,13 +654,15 @@ export default {
|
|
|
},
|
|
|
// 行李详情表格
|
|
|
queryBaggageDetails (dataContent) {
|
|
|
- return myQuery(SERVICE_ID.baggageDetails, ...dataContent)
|
|
|
+ const id = this.baggageBasicInfo.PNR ? SERVICE_ID.baggageDetails : SERVICE_ID.baggageDetailsNew
|
|
|
+ return myQuery(id, ...dataContent)
|
|
|
},
|
|
|
// 原始报文
|
|
|
async queryBaggageMessage (dataContent) {
|
|
|
try {
|
|
|
+ const id = this.baggageBasicInfo.PNR ? SERVICE_ID.baggageMessage : SERVICE_ID.baggageMessageNew
|
|
|
const { code, returnData, message } = await BaggageMessageQuery({
|
|
|
- id: SERVICE_ID.baggageMessage,
|
|
|
+ id,
|
|
|
dataContent
|
|
|
})
|
|
|
if (Number(code) === 0) {
|