...
|
...
|
@@ -8,15 +8,29 @@ |
|
|
</el-col>
|
|
|
<el-col :span="24">
|
|
|
<div class="grid-content co">
|
|
|
<el-col :span="1">
|
|
|
<div class="grid-content"></div>
|
|
|
</el-col>
|
|
|
<el-col :span="20">
|
|
|
<div class="grid-content">
|
|
|
<span class="titleSpan">航班号:{{this.preQuery.carrier}}{{this.preQuery.flightno}}</span>
|
|
|
<span class="titleSpan">航班日期:{{this.preQuery.flightdate}}</span>
|
|
|
<span class="titleSpan">航段:{{this.preQuery.originstation}}-{{this.preQuery.destinationstation}}</span>
|
|
|
</div>
|
|
|
<el-col :span="24">
|
|
|
<el-row>
|
|
|
<el-col :span="4">
|
|
|
<el-input v-model="flightComNo" placeholder="航班号" clearable >
|
|
|
<template slot="prepend">航班号</template>
|
|
|
</el-input>
|
|
|
</el-col>
|
|
|
<el-col :span="1">
|
|
|
<div class="grid-content"></div>
|
|
|
</el-col>
|
|
|
<el-col :span="4">
|
|
|
<div class="el-input el-input--mini el-input-group el-input-group--prepend el-input--suffix">
|
|
|
<div class="el-input-group__prepend"> 航班日期</div>
|
|
|
<el-date-picker
|
|
|
value-format="yyyy-MM-dd"
|
|
|
style="width: 200px"
|
|
|
v-model="preQuery.flightdate" align="left"
|
|
|
class="flight-date-tianbo"
|
|
|
type="date" placeholder="请输入航班日期" clearable>
|
|
|
</el-date-picker>
|
|
|
</div>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
</el-col>
|
|
|
</div>
|
|
|
</el-col>
|
...
|
...
|
@@ -841,6 +855,7 @@ |
|
|
validAlphabetsAndSpanceKey,
|
|
|
validatorNum
|
|
|
} from "@/utils/validate"
|
|
|
import flight from "../airtransport/flight";
|
|
|
|
|
|
export default {
|
|
|
name: "ExitPre",
|
...
|
...
|
@@ -887,6 +902,7 @@ |
|
|
batchChooseFlag: false,
|
|
|
batchChooseSelection: '',
|
|
|
consigneeList: [],
|
|
|
carrierAndFlight: '',
|
|
|
consignerQuery: {
|
|
|
companyName: '',
|
|
|
total: 0,
|
...
|
...
|
@@ -1131,10 +1147,28 @@ |
|
|
})
|
|
|
}, 1000)
|
|
|
},
|
|
|
created() {
|
|
|
// deactivated(){
|
|
|
// this.preQuery= {
|
|
|
// pageSize: 1,
|
|
|
// limitSize: 30,
|
|
|
// awba: '',
|
|
|
// carrier: '',
|
|
|
// flightno: '',
|
|
|
// flightdate: '',
|
|
|
// originstation: '',
|
|
|
// destinationstation: '',
|
|
|
// userId:loginedUserInfo().userId,
|
|
|
// customCode:'',
|
|
|
// enterpriseId:loginedUserInfo().companyId,
|
|
|
// messageType: ''
|
|
|
// }
|
|
|
// console.log("distroyed")
|
|
|
// },
|
|
|
activated() {
|
|
|
if (this.$route.params.flightData !== undefined) {
|
|
|
this.preQuery.carrier = this.$route.params.flightData.flightno.substring(0, 2)
|
|
|
this.preQuery.flightno = this.$route.params.flightData.flightno.substring(2)
|
|
|
this.carrierAndFlight = this.$route.params.flightData.flightno;
|
|
|
this.preQuery.flightdate = this.$route.params.flightData.flightdate
|
|
|
this.preQuery.originstation = this.$route.params.flightData.originstation
|
|
|
this.preQuery.destinationstation = this.$route.params.flightData.destinationstation
|
...
|
...
|
@@ -1142,21 +1176,6 @@ |
|
|
this.preQuery.awba = this.$route.params.flightData.awba.substring(0, 3) + "-" + this.$route.params.flightData.awba.substring(3)
|
|
|
}
|
|
|
this.getList()
|
|
|
}else {
|
|
|
this.preQuery= {
|
|
|
pageSize: 1,
|
|
|
limitSize: 30,
|
|
|
awba: '',
|
|
|
carrier: '',
|
|
|
flightno: '',
|
|
|
flightdate: '',
|
|
|
originstation: '',
|
|
|
destinationstation: '',
|
|
|
userId:loginedUserInfo().userId,
|
|
|
customCode:'',
|
|
|
enterpriseId:loginedUserInfo().companyId,
|
|
|
messageType: ''
|
|
|
}
|
|
|
}
|
|
|
this.getCountryList()
|
|
|
let username = JSON.parse(sessionStorage.getItem('user')).username
|
...
|
...
|
@@ -1371,37 +1390,56 @@ |
|
|
this.preModel.awbinfo.dest3 = val.toUpperCase().trim()
|
|
|
}
|
|
|
},
|
|
|
flightComNo: {
|
|
|
get: function () {
|
|
|
return this.carrierAndFlight;
|
|
|
},
|
|
|
set: function (val) {
|
|
|
val = val.toUpperCase();
|
|
|
if (util.checkNull(val) && val.length>=2){
|
|
|
this.preQuery.carrier= val.substring(0,2);
|
|
|
this.preQuery.flightno = val.substring(2)
|
|
|
}else {
|
|
|
this.preQuery.carrier= ''
|
|
|
this.preQuery.flightno = ''
|
|
|
}
|
|
|
this.carrierAndFlight = val
|
|
|
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
// >>>>>>>>>>>>>>>>获取list集合<<<<<<<<<<<<<<<<<<
|
|
|
getList() {
|
|
|
// console.log("11111"+JSON.stringify(this.preQuery));
|
|
|
this.listLoading = true
|
|
|
if (this.preQuery.awba !== undefined && this.preQuery.awba !== '') {
|
|
|
getMt2201ListForParam(this.preQuery).then(res => {
|
|
|
this.preData = res.data.data.list
|
|
|
this.total = res.data.data.total
|
|
|
if (res.data.data.list.length > 0) {
|
|
|
this.preQuery.carrier = this.preData[0].carrier
|
|
|
this.preQuery.flightno = this.preData[0].flightno
|
|
|
this.preQuery.flightdate = this.preData[0].flightdate
|
|
|
this.preQuery.originstation = this.preData[0].originstation
|
|
|
this.preQuery.destinationstation = this.preData[0].destinationstation
|
|
|
this.preQuery.customcode = this.preData[0].customcode
|
|
|
}
|
|
|
setTimeout(() => {
|
|
|
this.listLoading = false
|
|
|
}, 1500)
|
|
|
})
|
|
|
} else {
|
|
|
// if (this.preQuery.awba !== undefined && this.preQuery.awba !== '') {
|
|
|
// console.log("22222"+JSON.stringify(this.preQuery));
|
|
|
// getMt2201ListForParam(this.preQuery).then(res => {
|
|
|
// this.preData = res.data.data.list
|
|
|
// this.total = res.data.data.total
|
|
|
// if (res.data.data.list.length > 0) {
|
|
|
// this.preQuery.carrier = this.preData[0].carrier
|
|
|
// this.preQuery.flightno = this.preData[0].flightno
|
|
|
// this.preQuery.flightdate = this.preData[0].flightdate
|
|
|
// this.preQuery.originstation = this.preData[0].originstation
|
|
|
// this.preQuery.destinationstation = this.preData[0].destinationstation
|
|
|
// this.preQuery.customcode = this.preData[0].customcode
|
|
|
// }
|
|
|
// setTimeout(() => {
|
|
|
// this.listLoading = false
|
|
|
// }, 1500)
|
|
|
// })
|
|
|
// } else {
|
|
|
// console.log("33333"+JSON.stringify(this.preQuery));
|
|
|
getMt2201ListForParam(this.preQuery).then(res => {
|
|
|
this.preData = res.data.data.list
|
|
|
|
|
|
this.total = res.data.data.total
|
|
|
setTimeout(() => {
|
|
|
this.listLoading = false
|
|
|
}, 1500)
|
|
|
})
|
|
|
}
|
|
|
// }
|
|
|
},
|
|
|
// >>>>>>>>>>>>>>>>重置实体<<<<<<<<<<<<<<<<<<
|
|
|
restModel() {
|
...
|
...
|
@@ -1591,10 +1629,8 @@ |
|
|
},
|
|
|
// >>>>>>>>>>>>>>>>搜索<<<<<<<<<<<<<<<<<<
|
|
|
handleSerach() {
|
|
|
this.preQuery.flightno = undefined
|
|
|
this.preQuery.carrier = undefined
|
|
|
this.preQuery.originstation = undefined
|
|
|
this.preQuery.flightdate = undefined
|
|
|
// this.preQuery.flightdate = undefined
|
|
|
this.preQuery.destinationstation = undefined
|
|
|
this.getList()
|
|
|
},
|
...
|
...
|
@@ -2023,8 +2059,8 @@ |
|
|
|
|
|
// 远程查询运输工具申报是否成功
|
|
|
transportQuery(){
|
|
|
if (this.preModel.flightno !== undefined && this.preModel.flightno !== ''
|
|
|
&& this.preModel.flightdate !== undefined && this.preModel.flightdate !== ''){
|
|
|
if (this.preModel.flightno != undefined && this.preModel.flightno != ''
|
|
|
&& this.preModel.flightdate != undefined && this.preModel.flightdate != ''){
|
|
|
const params = {
|
|
|
flightNo: this.preModel.flightno,
|
|
|
flightDate: this.preModel.flightdate
|
...
|
...
|
|