|
@@ -922,6 +922,103 @@ export default {
|
|
|
},
|
|
|
// 高级查询-确定
|
|
|
advancedSubmitHandler (singleJump) {
|
|
|
+ this.resetTable()
|
|
|
+ /* 参数顺序
|
|
|
+ 【航班开始日期,航班结束日期,航班号,航班号,行李牌号,行李牌号,起飞站,起飞站,目的站,目的站,特殊行李类型,特殊行李类型,旅客姓名大写拼音,旅客姓名大写拼音,
|
|
|
+ PNR,PNR,值机号,值机号,中转进航班,中转进航班,中转出航班,中转出航班,容器编号,容器编号,
|
|
|
+ 是否已翻减(null/OFF/其他),是否已翻减(null/OFF/其他),是否值机(null/0/1),是否值机(null/0/1),
|
|
|
+ 是否激活(null/0/1),是否激活(null/0/1),是否中转(null/0/1),是否中转(null/0/1),是否取消行李(null/0/1),是否取消行李(null/0/1)】 */
|
|
|
+ this.dataContent = [{}]
|
|
|
+ if (!this.flightDate?.length) {
|
|
|
+ this.$message.error('请先选择要查询的时间')
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if (Object.values(this.form).every(value => value === '')) {
|
|
|
+ this.$message.error('请先输入查询信息')
|
|
|
+ return
|
|
|
+ }
|
|
|
+ // this.dataContent.push(...this.flightDate)
|
|
|
+ this.dataContent[0] = {
|
|
|
+ startTime: this.flightDate[0],
|
|
|
+ endTime: this.flightDate[1],
|
|
|
+ }
|
|
|
+ // const {
|
|
|
+ // flightNO,
|
|
|
+ // baggageNO,
|
|
|
+ // departureStation,
|
|
|
+ // destination,
|
|
|
+ // specialType,
|
|
|
+ // passengerName,
|
|
|
+ // PNR,
|
|
|
+ // checkInSequence,
|
|
|
+ // transferArrival,
|
|
|
+ // transferDeparture,
|
|
|
+ // loadType,
|
|
|
+ // U_Device_ID,
|
|
|
+ // unLoad,
|
|
|
+ // checkIn,
|
|
|
+ // active,
|
|
|
+ // transferIn,
|
|
|
+ // canceled,
|
|
|
+ // status,
|
|
|
+ // noBSM,
|
|
|
+ // } = this.form
|
|
|
+ // this.setDataContent(
|
|
|
+ // flightNO,
|
|
|
+ // baggageFormat(baggageNO),
|
|
|
+ // departureStation,
|
|
|
+ // destination,
|
|
|
+ // specialType.map(v => v.replaceAll(',', '/')).join(),
|
|
|
+ // passengerName,
|
|
|
+ // PNR,
|
|
|
+ // digitFormat(checkInSequence),
|
|
|
+ // transferArrival,
|
|
|
+ // transferDeparture,
|
|
|
+ // U_Device_ID,
|
|
|
+ // unLoad,
|
|
|
+ // checkIn,
|
|
|
+ // active,
|
|
|
+ // transferIn,
|
|
|
+ // canceled,
|
|
|
+ // status,
|
|
|
+ // noBSM,
|
|
|
+ // loadType
|
|
|
+ // )
|
|
|
+ this.setDataContent(
|
|
|
+ 'flightNO',
|
|
|
+ 'baggageNO',
|
|
|
+ 'departureStation',
|
|
|
+ 'destination',
|
|
|
+ 'specialType',
|
|
|
+ 'passengerName',
|
|
|
+ 'PNR',
|
|
|
+ 'checkInSequence',
|
|
|
+ 'transferArrival',
|
|
|
+ 'transferDeparture',
|
|
|
+ 'U_Device_ID',
|
|
|
+ 'unLoad',
|
|
|
+ 'checkIn',
|
|
|
+ 'active',
|
|
|
+ 'transferIn',
|
|
|
+ 'canceled',
|
|
|
+ 'status',
|
|
|
+ 'noBSM',
|
|
|
+ 'loadType'
|
|
|
+ )
|
|
|
+ this.advancedQuery(this.dataContent, singleJump)
|
|
|
+ this.gjFlag = false
|
|
|
+ },
|
|
|
+ // setDataContent (...dataContent) {
|
|
|
+ // dataContent.forEach(target => {
|
|
|
+ // target = typeof target === 'string' ? target.trim() : target
|
|
|
+ // if ((target ?? '') !== '') {
|
|
|
+ // this.dataContent.push(target, target)
|
|
|
+ // } else {
|
|
|
+ // this.dataContent.push(null, null)
|
|
|
+ // }
|
|
|
+ // })
|
|
|
+ // },
|
|
|
+ setDataContent(...keys) {
|
|
|
function digitFormat (num) {
|
|
|
if (num) {
|
|
|
num = '000' + num
|
|
@@ -946,76 +1043,22 @@ export default {
|
|
|
}
|
|
|
return baggageNO || null
|
|
|
}
|
|
|
- this.resetTable()
|
|
|
- /* 参数顺序
|
|
|
- 【航班开始日期,航班结束日期,航班号,航班号,行李牌号,行李牌号,起飞站,起飞站,目的站,目的站,特殊行李类型,特殊行李类型,旅客姓名大写拼音,旅客姓名大写拼音,
|
|
|
- PNR,PNR,值机号,值机号,中转进航班,中转进航班,中转出航班,中转出航班,容器编号,容器编号,
|
|
|
- 是否已翻减(null/OFF/其他),是否已翻减(null/OFF/其他),是否值机(null/0/1),是否值机(null/0/1),
|
|
|
- 是否激活(null/0/1),是否激活(null/0/1),是否中转(null/0/1),是否中转(null/0/1),是否取消行李(null/0/1),是否取消行李(null/0/1)】 */
|
|
|
- this.dataContent = []
|
|
|
- if (!this.flightDate?.length) {
|
|
|
- this.$message.error('请先选择要查询的时间')
|
|
|
- return
|
|
|
- }
|
|
|
- if (Object.values(this.form).every(value => value === '')) {
|
|
|
- this.$message.error('请先输入查询信息')
|
|
|
- return
|
|
|
- }
|
|
|
- this.dataContent.push(...this.flightDate)
|
|
|
- const {
|
|
|
- flightNO,
|
|
|
- baggageNO,
|
|
|
- departureStation,
|
|
|
- destination,
|
|
|
- specialType,
|
|
|
- passengerName,
|
|
|
- PNR,
|
|
|
- checkInSequence,
|
|
|
- transferArrival,
|
|
|
- transferDeparture,
|
|
|
- loadType,
|
|
|
- U_Device_ID,
|
|
|
- unLoad,
|
|
|
- checkIn,
|
|
|
- active,
|
|
|
- transferIn,
|
|
|
- canceled,
|
|
|
- status,
|
|
|
- noBSM,
|
|
|
- } = this.form
|
|
|
- this.setDataContent(
|
|
|
- flightNO,
|
|
|
- baggageFormat(baggageNO),
|
|
|
- departureStation,
|
|
|
- destination,
|
|
|
- specialType.map(v => v.replaceAll(',', '/')).join(),
|
|
|
- passengerName,
|
|
|
- PNR,
|
|
|
- digitFormat(checkInSequence),
|
|
|
- transferArrival,
|
|
|
- transferDeparture,
|
|
|
- U_Device_ID,
|
|
|
- unLoad,
|
|
|
- checkIn,
|
|
|
- active,
|
|
|
- transferIn,
|
|
|
- canceled,
|
|
|
- status,
|
|
|
- noBSM,
|
|
|
- loadType
|
|
|
- )
|
|
|
- this.advancedQuery(this.dataContent, singleJump)
|
|
|
- this.gjFlag = false
|
|
|
- },
|
|
|
- setDataContent (...dataContent) {
|
|
|
- dataContent.forEach(target => {
|
|
|
- target = typeof target === 'string' ? target.trim() : target
|
|
|
- if ((target ?? '') !== '') {
|
|
|
- this.dataContent.push(target, target)
|
|
|
+ const dataContent = {}
|
|
|
+ keys.forEach(key => {
|
|
|
+ if (key === 'baggageNO') {
|
|
|
+ dataContent[key] = baggageFormat(this.form[key]) || null
|
|
|
+ } else if (key === 'specialType') {
|
|
|
+ dataContent[key] = this.form[key].join() || null
|
|
|
+ } else if (key === 'checkInSequence') {
|
|
|
+ dataContent[key] = digitFormat(this.form[key]) || null
|
|
|
} else {
|
|
|
- this.dataContent.push(null, null)
|
|
|
+ dataContent[key] = this.form[key] || null
|
|
|
}
|
|
|
})
|
|
|
+ this.dataContent[0] = {
|
|
|
+ ...this.dataContent[0],
|
|
|
+ ...dataContent
|
|
|
+ }
|
|
|
},
|
|
|
// 数据查询
|
|
|
async advancedQuery (dataContent, singleJump) {
|
|
@@ -1025,8 +1068,11 @@ export default {
|
|
|
code,
|
|
|
returnData: { listValues: result, needPage },
|
|
|
} = await TempQuery({
|
|
|
- id: SERVICE_ID.advancedQueryId,
|
|
|
- needPage: ++this.page,
|
|
|
+ // id: SERVICE_ID.advancedQueryId,
|
|
|
+ // needPage: ++this.page,
|
|
|
+ serviceId: SERVICE_ID.advancedQueryId,
|
|
|
+ page: ++this.page,
|
|
|
+ size: 50,
|
|
|
dataContent,
|
|
|
})
|
|
|
if (Number(code) !== 0) {
|