|
@@ -5,7 +5,7 @@
|
|
|
<div class="manageTitle">高级查询</div>
|
|
|
<!-- <div class="interfaceLog_head_time_start mr10">
|
|
|
<el-date-picker
|
|
|
- v-model="FlightDate[0]"
|
|
|
+ v-model="flightDate[0]"
|
|
|
class="input-shadow"
|
|
|
size="small"
|
|
|
type="date"
|
|
@@ -16,7 +16,7 @@
|
|
|
</div>
|
|
|
<div class="interfaceLog_head_time_end">
|
|
|
<el-date-picker
|
|
|
- v-model="FlightDate[1]"
|
|
|
+ v-model="flightDate[1]"
|
|
|
class="input-shadow"
|
|
|
size="small"
|
|
|
type="date"
|
|
@@ -25,7 +25,7 @@
|
|
|
@change="endDateChangeHandler"
|
|
|
/>
|
|
|
</div> -->
|
|
|
- <el-date-picker v-model="FlightDate" size="small" type="daterange" value-format="yyyy-MM-dd" start-placeholder="开始日期" end-placeholder="结束日期" :picker-options="dateRangePickerOptions" />
|
|
|
+ <el-date-picker v-model="flightDate" size="small" type="daterange" value-format="yyyy-MM-dd" start-placeholder="开始日期" end-placeholder="结束日期" :picker-options="dateRangePickerOptions" />
|
|
|
</div>
|
|
|
<Search ref="search" class="advanced-search" :is-title="false" :is-slot="true" :search-tooltip="'请输入航班号(示例:CA1234)或行李牌号(示例:1234567890)'" @getSearchData="getSearchData" @clearSearchData="clearSearchData">
|
|
|
<div class="flex-wrap">
|
|
@@ -92,8 +92,8 @@
|
|
|
<el-row :gutter="20">
|
|
|
<el-col v-for="item in formItems" :key="item.prop" :span="item.span || 8">
|
|
|
<el-form-item :label="item.label" :prop="item.prop">
|
|
|
- <template v-if="item.prop === 'FlightDate'">
|
|
|
- <el-date-picker v-model="FlightDate" size="small" type="daterange" value-format="yyyy-MM-dd" start-placeholder="开始日期" end-placeholder="结束日期" :picker-options="dateRangePickerOptions" @keyup.esc.native="dialogFocus" />
|
|
|
+ <template v-if="item.prop === 'flightDate'">
|
|
|
+ <el-date-picker v-model="flightDate" size="small" type="daterange" value-format="yyyy-MM-dd" start-placeholder="开始日期" end-placeholder="结束日期" :picker-options="dateRangePickerOptions" @keyup.esc.native="dialogFocus" />
|
|
|
</template>
|
|
|
<template v-else-if="item.prop === 'status'">
|
|
|
<el-select v-model="form.status" size="small" filterable default-first-option clearable @keyup.esc.native="dialogFocus">
|
|
@@ -174,33 +174,33 @@ export default {
|
|
|
gjFlag: false,
|
|
|
tableData: [
|
|
|
// {
|
|
|
- // FlightNO: '',
|
|
|
- // FlightDate: '',
|
|
|
- // SourceAirport: '',
|
|
|
- // TargetAirport: '',
|
|
|
- // PassengerNameUpcase: '',
|
|
|
- // BagSN: '',
|
|
|
- // SpecialType: '',
|
|
|
+ // flightNO: '',
|
|
|
+ // flightDate: '',
|
|
|
+ // sourceAirport: '',
|
|
|
+ // targetAirport: '',
|
|
|
+ // passengerNameUpcase: '',
|
|
|
+ // bagSN: '',
|
|
|
+ // specialType: '',
|
|
|
// checkIn: '',
|
|
|
// deleted: '',
|
|
|
// activated: '',
|
|
|
- // BagWeight: '',
|
|
|
+ // bagWeight: '',
|
|
|
// latestStatus: '',
|
|
|
// bagLocation: '',
|
|
|
- // TransferFlightNO: ''
|
|
|
+ // transferFlightNO: ''
|
|
|
// }
|
|
|
],
|
|
|
checkList: [],
|
|
|
tableCols: [
|
|
|
{
|
|
|
- prop: 'FlightNO',
|
|
|
+ prop: 'flightNO',
|
|
|
label: '航班号',
|
|
|
fixed: 'left',
|
|
|
filterable: true,
|
|
|
sortable: true
|
|
|
},
|
|
|
{
|
|
|
- prop: 'FlightDate',
|
|
|
+ prop: 'flightDate',
|
|
|
label: '航班日期',
|
|
|
fixed: 'left',
|
|
|
width: 110,
|
|
@@ -208,38 +208,38 @@ export default {
|
|
|
sortable: true
|
|
|
},
|
|
|
{
|
|
|
- prop: 'DepartureTime',
|
|
|
+ prop: 'departureTime',
|
|
|
label: '起飞时间',
|
|
|
width: 150
|
|
|
},
|
|
|
{
|
|
|
- prop: 'SourceAirport',
|
|
|
+ prop: 'sourceAirport',
|
|
|
label: '起飞站',
|
|
|
filterable: true,
|
|
|
sortable: true
|
|
|
},
|
|
|
{
|
|
|
- prop: 'TargetAirport',
|
|
|
+ prop: 'targetAirport',
|
|
|
label: '目的地',
|
|
|
filterable: true,
|
|
|
sortable: true
|
|
|
},
|
|
|
{
|
|
|
- prop: 'PassengerNameUpcase',
|
|
|
+ prop: 'passengerNameUpcase',
|
|
|
label: '旅客姓名',
|
|
|
width: 150,
|
|
|
filterable: true,
|
|
|
sortable: true
|
|
|
},
|
|
|
{
|
|
|
- prop: 'BagSN',
|
|
|
+ prop: 'bagSN',
|
|
|
label: '行李牌号',
|
|
|
width: 110,
|
|
|
filterable: true,
|
|
|
sortable: true
|
|
|
},
|
|
|
{
|
|
|
- prop: 'SpecialType',
|
|
|
+ prop: 'specialType',
|
|
|
label: '特殊行李类型',
|
|
|
width: 115,
|
|
|
filterable: true,
|
|
@@ -258,7 +258,7 @@ export default {
|
|
|
sortable: true
|
|
|
},
|
|
|
{
|
|
|
- prop: 'BagWeight',
|
|
|
+ prop: 'bagWeight',
|
|
|
label: '重量'
|
|
|
},
|
|
|
{
|
|
@@ -283,27 +283,27 @@ export default {
|
|
|
sortable: true
|
|
|
},
|
|
|
{
|
|
|
- prop: 'PreFlightNO',
|
|
|
+ prop: 'preFlightNO',
|
|
|
label: '中转进航班',
|
|
|
width: 110,
|
|
|
filterable: true,
|
|
|
sortable: true
|
|
|
},
|
|
|
{
|
|
|
- prop: 'TransferFlightNO',
|
|
|
+ prop: 'transferFlightNO',
|
|
|
label: '中转出航班',
|
|
|
width: 110,
|
|
|
filterable: true,
|
|
|
sortable: true
|
|
|
}
|
|
|
],
|
|
|
- FlightDate: [parseTime(new Date(), '{y}-{m}-{d}'), parseTime(new Date(), '{y}-{m}-{d}')],
|
|
|
+ flightDate: [parseTime(new Date(), '{y}-{m}-{d}'), parseTime(new Date(), '{y}-{m}-{d}')],
|
|
|
dateRangePickerOptions: {
|
|
|
onPick: this.dateRangePickHandler,
|
|
|
disabledDate: this.dateRangeDisabled
|
|
|
},
|
|
|
form: {
|
|
|
- FlightNO: '',
|
|
|
+ flightNO: '',
|
|
|
destination: '',
|
|
|
departureStation: '',
|
|
|
baggageNO: '',
|
|
@@ -323,7 +323,7 @@ export default {
|
|
|
},
|
|
|
formItems: [
|
|
|
{
|
|
|
- prop: 'FlightDate',
|
|
|
+ prop: 'flightDate',
|
|
|
label: '航班日期',
|
|
|
span: 16
|
|
|
},
|
|
@@ -332,7 +332,7 @@ export default {
|
|
|
label: '当前状态'
|
|
|
},
|
|
|
{
|
|
|
- prop: 'FlightNO',
|
|
|
+ prop: 'flightNO',
|
|
|
label: '航班号',
|
|
|
hintText: '示例:CA1111',
|
|
|
hintVisible: false
|
|
@@ -447,7 +447,7 @@ export default {
|
|
|
dataContent: [],
|
|
|
rules: {
|
|
|
// 机器信息表单验证
|
|
|
- // FlightNO: [
|
|
|
+ // flightNO: [
|
|
|
// { required: true, message: "请输入有效航班号", trigger: "blur" },
|
|
|
// ],
|
|
|
},
|
|
@@ -485,10 +485,10 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
watch: {
|
|
|
- FlightDate: {
|
|
|
+ flightDate: {
|
|
|
handler (val) {
|
|
|
if (val === null) {
|
|
|
- this.FlightDate = ['', '']
|
|
|
+ this.flightDate = ['', '']
|
|
|
}
|
|
|
},
|
|
|
deep: true
|
|
@@ -502,11 +502,11 @@ export default {
|
|
|
this.spanArr.push(1)
|
|
|
} else {
|
|
|
if (
|
|
|
- item['FlightNO'] === arr[index - 1]['FlightNO'] &&
|
|
|
- item['FlightDate'] === arr[index - 1]['FlightDate'] &&
|
|
|
- item['PassengerNameUpcase'] === arr[index - 1]['PassengerNameUpcase'] &&
|
|
|
- item['CheckInNO'] === arr[index - 1]['CheckInNO'] &&
|
|
|
- item['BagWeight'] === arr[index - 1]['BagWeight']
|
|
|
+ item['flightNO'] === arr[index - 1]['flightNO'] &&
|
|
|
+ item['flightDate'] === arr[index - 1]['flightDate'] &&
|
|
|
+ item['passengerNameUpcase'] === arr[index - 1]['passengerNameUpcase'] &&
|
|
|
+ item['checkInNO'] === arr[index - 1]['checkInNO'] &&
|
|
|
+ item['bagWeight'] === arr[index - 1]['bagWeight']
|
|
|
) {
|
|
|
this.spanArr[contactDot] += 1
|
|
|
this.spanArr.push(0)
|
|
@@ -557,15 +557,15 @@ export default {
|
|
|
this.form[key] = ['unLoad', 'checkIn', 'active', 'transferIn', 'canceled'].includes(key) ? Number(value) : value
|
|
|
}
|
|
|
})
|
|
|
- startDate && (this.FlightDate[0] = startDate)
|
|
|
- endDate && (this.FlightDate[1] = endDate)
|
|
|
+ startDate && (this.flightDate[0] = startDate)
|
|
|
+ endDate && (this.flightDate[1] = endDate)
|
|
|
if (flag) {
|
|
|
this.onCheckGj(singleJump)
|
|
|
} else if (this.queryForm) {
|
|
|
Object.keys(this.form).forEach(key => {
|
|
|
this.form[key] = this.queryForm[key]
|
|
|
})
|
|
|
- this.FlightDate = this.queryForm.FlightDate
|
|
|
+ this.flightDate = this.queryForm.flightDate
|
|
|
this.onCheckGj()
|
|
|
}
|
|
|
},
|
|
@@ -580,7 +580,7 @@ export default {
|
|
|
if (this.$route.matched.filter(item => item.name && item.meta.title).length > 1) {
|
|
|
this.$store.dispatch('app/setQueryForm', {
|
|
|
...this.form,
|
|
|
- FlightDate: this.FlightDate
|
|
|
+ flightDate: this.flightDate
|
|
|
})
|
|
|
} else {
|
|
|
this.$store.dispatch('app/setQueryForm', null)
|
|
@@ -597,32 +597,32 @@ export default {
|
|
|
this.$refs['dialog'].focus()
|
|
|
},
|
|
|
// startDateChangeHandler(val) {
|
|
|
- // this.FlightDate[0] = val ?? ''
|
|
|
- // if (!val || !this.FlightDate[1]) {
|
|
|
+ // this.flightDate[0] = val ?? ''
|
|
|
+ // if (!val || !this.flightDate[1]) {
|
|
|
// return
|
|
|
// }
|
|
|
// const startDate = new Date(val)
|
|
|
- // const endDate = new Date(this.FlightDate[1])
|
|
|
+ // const endDate = new Date(this.flightDate[1])
|
|
|
// if (startDate > endDate) {
|
|
|
- // this.FlightDate.splice(1, 1, '')
|
|
|
+ // this.flightDate.splice(1, 1, '')
|
|
|
// this.$message.info('结束时间不能早于开始时间,请重新选择')
|
|
|
// } else if (endDate - startDate > 2 * 24 * 60 * 60 * 1000) {
|
|
|
- // this.FlightDate.splice(1, 1, '')
|
|
|
+ // this.flightDate.splice(1, 1, '')
|
|
|
// this.$message.info('时间跨度不能超过三天,请重新选择')
|
|
|
// }
|
|
|
// },
|
|
|
// endDateChangeHandler(val) {
|
|
|
- // this.FlightDate[1] = val ?? ''
|
|
|
- // if (!val || !this.FlightDate[0]) {
|
|
|
+ // this.flightDate[1] = val ?? ''
|
|
|
+ // if (!val || !this.flightDate[0]) {
|
|
|
// return
|
|
|
// }
|
|
|
- // const startDate = new Date(this.FlightDate[0])
|
|
|
+ // const startDate = new Date(this.flightDate[0])
|
|
|
// const endDate = new Date(val)
|
|
|
// if (startDate > endDate) {
|
|
|
- // this.FlightDate.splice(0, 1, '')
|
|
|
+ // this.flightDate.splice(0, 1, '')
|
|
|
// this.$message.info('开始时间不能晚于结束时间,请重新选择')
|
|
|
// } else if (endDate - startDate > 2 * 24 * 60 * 60 * 1000) {
|
|
|
- // this.FlightDate.splice(0, 1, '')
|
|
|
+ // this.flightDate.splice(0, 1, '')
|
|
|
// this.$message.info('时间跨度不能超过三天,请重新选择')
|
|
|
// }
|
|
|
// },
|
|
@@ -637,7 +637,7 @@ export default {
|
|
|
return this.pickedDate ? Math.abs(date - this.pickedDate) > 2 * 24 * 60 * 60 * 1000 : false
|
|
|
},
|
|
|
objectSpanMethod ({ row, column, rowIndex, columnIndex }) {
|
|
|
- if (['PassengerNameUpcase', 'BagWeight'].includes(column.property)) {
|
|
|
+ if (['passengerNameUpcase', 'bagWeight'].includes(column.property)) {
|
|
|
const _row = this.spanArr[rowIndex]
|
|
|
const _col = _row > 0 ? 1 : 0
|
|
|
return {
|
|
@@ -664,7 +664,7 @@ export default {
|
|
|
},
|
|
|
cellClass ({ row, column, rowIndex, columnIndex }) {
|
|
|
const classes = []
|
|
|
- if (['FlightNO', 'TransferFlightNO', 'BagSN'].includes(column.property)) {
|
|
|
+ if (['flightNO', 'transferFlightNO', 'bagSN'].includes(column.property)) {
|
|
|
classes.push('cell-click')
|
|
|
if (
|
|
|
this.clickedCells.some(
|
|
@@ -680,7 +680,7 @@ export default {
|
|
|
return classes.join(' ')
|
|
|
},
|
|
|
cellClickHandler (row, column, cell, event) {
|
|
|
- if (['FlightNO', 'TransferFlightNO', 'BagSN'].includes(column.property)) {
|
|
|
+ if (['flightNO', 'transferFlightNO', 'bagSN'].includes(column.property)) {
|
|
|
this.$store.dispatch('keepAlive/addClickedCell', {
|
|
|
row,
|
|
|
columnProp: column.property,
|
|
@@ -688,31 +688,31 @@ export default {
|
|
|
})
|
|
|
}
|
|
|
switch (column.property) {
|
|
|
- case 'FlightNO':
|
|
|
+ case 'flightNO':
|
|
|
this.$router.push({
|
|
|
path: '/advance/flightView',
|
|
|
query: {
|
|
|
- flightNO: row.FlightNO,
|
|
|
- flightDate: row.FlightDate
|
|
|
+ flightNO: row.flightNO,
|
|
|
+ flightDate: row.flightDate
|
|
|
}
|
|
|
})
|
|
|
break
|
|
|
- case 'TransferFlightNO':
|
|
|
+ case 'transferFlightNO':
|
|
|
this.$router.push({
|
|
|
path: '/advance/flightView',
|
|
|
query: {
|
|
|
- flightNO: row.TransferFlightNO,
|
|
|
- flightDate: row.FlightDate
|
|
|
+ flightNO: row.transferFlightNO,
|
|
|
+ flightDate: row.flightDate
|
|
|
}
|
|
|
})
|
|
|
break
|
|
|
- case 'BagSN':
|
|
|
+ case 'bagSN':
|
|
|
this.$router.push({
|
|
|
path: '/advance/baggageView',
|
|
|
query: {
|
|
|
- flightNO: row.FlightNO,
|
|
|
- flightDate: row.FlightDate,
|
|
|
- bagSN: row.BagSN
|
|
|
+ flightNO: row.flightNO,
|
|
|
+ flightDate: row.flightDate,
|
|
|
+ bagSN: row.bagSN
|
|
|
}
|
|
|
})
|
|
|
break
|
|
@@ -723,7 +723,7 @@ export default {
|
|
|
// 查询
|
|
|
getSearchData (val) {
|
|
|
this.clearForm()
|
|
|
- if (this.FlightDate[0] === '' || this.FlightDate[1] === '' || val === '') {
|
|
|
+ if (this.flightDate[0] === '' || this.flightDate[1] === '' || val === '') {
|
|
|
this.$message.error('请先输入完整查询信息')
|
|
|
} else {
|
|
|
// 点击搜索后清除跳转携带的查询信息
|
|
@@ -742,7 +742,7 @@ export default {
|
|
|
this.onCheckGj(true)
|
|
|
} else if (azNum.test(val) && top2.test(val)) {
|
|
|
// 字母加数字且前两位为字母则为航班号
|
|
|
- this.form['FlightNO'] = val
|
|
|
+ this.form['flightNO'] = val
|
|
|
this.onCheckGj(true)
|
|
|
} else if ((num.test(val) && val.length === 10) || bagNo.test(val)) {
|
|
|
// 纯数字且位数等于10则为行李牌号
|
|
@@ -773,15 +773,15 @@ export default {
|
|
|
是否已翻减(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 = []
|
|
|
- const FlightDate = this.FlightDate
|
|
|
- if (FlightDate && FlightDate.length) {
|
|
|
- this.dataContent.push(FlightDate[0])
|
|
|
- this.dataContent.push(FlightDate[1])
|
|
|
+ const flightDate = this.flightDate
|
|
|
+ if (flightDate && flightDate.length) {
|
|
|
+ this.dataContent.push(flightDate[0])
|
|
|
+ this.dataContent.push(flightDate[1])
|
|
|
if (Object.values(this.form).every(value => value === '')) {
|
|
|
this.$message.error('请先输入查询信息')
|
|
|
} else {
|
|
|
const {
|
|
|
- FlightNO,
|
|
|
+ flightNO,
|
|
|
baggageNO,
|
|
|
departureStation,
|
|
|
destination,
|
|
@@ -800,7 +800,7 @@ export default {
|
|
|
status
|
|
|
} = this.form
|
|
|
this.setDataContent(
|
|
|
- FlightNO,
|
|
|
+ flightNO,
|
|
|
baggageNO,
|
|
|
departureStation,
|
|
|
destination,
|
|
@@ -850,23 +850,23 @@ export default {
|
|
|
this.$router.push({
|
|
|
path: '/advance/baggageView',
|
|
|
query: {
|
|
|
- bagSN: result[0].BagSN,
|
|
|
- flightNO: result[0].FlightNO,
|
|
|
- flightDate: result[0].FlightDate
|
|
|
+ bagSN: result[0].bagSN,
|
|
|
+ flightNO: result[0].flightNO,
|
|
|
+ flightDate: result[0].flightDate
|
|
|
}
|
|
|
})
|
|
|
} else {
|
|
|
const onlyFlight = result.reduce((pre, curr) => {
|
|
|
if (
|
|
|
pre === null ||
|
|
|
- (curr.FlightNO &&
|
|
|
- curr.FlightDate &&
|
|
|
- curr.FlightNO === pre.flightNO &&
|
|
|
- curr.FlightDate === pre.flightDate)
|
|
|
+ (curr.flightNO &&
|
|
|
+ curr.flightDate &&
|
|
|
+ curr.flightNO === pre.flightNO &&
|
|
|
+ curr.flightDate === pre.flightDate)
|
|
|
) {
|
|
|
return {
|
|
|
- flightNO: curr.FlightNO,
|
|
|
- flightDate: curr.FlightDate
|
|
|
+ flightNO: curr.flightNO,
|
|
|
+ flightDate: curr.flightDate
|
|
|
}
|
|
|
} else {
|
|
|
return {}
|
|
@@ -880,7 +880,7 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- const tableData = this._.sortBy(result, ['FlightDate', 'DepartureTime', 'PassengerNameUpcase', 'BagSN'])
|
|
|
+ const tableData = this._.sortBy(result, ['flightDate', 'departureTime', 'passengerNameUpcase', 'bagSN'])
|
|
|
this.tableData = tableData.map((item, index, arr) => {
|
|
|
item['deleted'] === 'DEL' || (item['deleted'] = '')
|
|
|
item['activated'] = item['activated'] === 'I' ? '未激活' : '激活'
|