|
@@ -2,9 +2,9 @@ |
|
@@ -2,9 +2,9 @@ |
2
|
<!--<div class="app-container">-->
|
2
|
<!--<div class="app-container">-->
|
3
|
<div class="app-content">
|
3
|
<div class="app-content">
|
4
|
<div class="filter-container" style="margin-top: 50px;padding-bottom: 5px">
|
4
|
<div class="filter-container" style="margin-top: 50px;padding-bottom: 5px">
|
5
|
- <el-input v-model="listQuery.awba" clearable style="width: 200px;margin-right: 10px" class="filter-item" placeholder="运单号"/>
|
|
|
6
|
- <el-input v-model="listQuery.carrier" clearable style="width: 200px;margin-right: 10px" class="filter-item" placeholder="承运人"/>
|
|
|
7
|
- <el-input v-model="listQuery.flightno" clearable style="width: 200px;margin-right: 10px" class="filter-item" placeholder="航班号"/>
|
5
|
+ <el-input v-model="listQuery.awba" @blur="inputAwba" clearable style="width: 200px;margin-right: 10px" class="filter-item" placeholder="运单号"/>
|
|
|
6
|
+<!-- <el-input v-model="listQuery.carrier" clearable style="width: 200px;margin-right: 10px" class="filter-item" placeholder="承运人"/>-->
|
|
|
7
|
+ <el-input v-model="flightComNo" clearable style="width: 200px;margin-right: 10px" class="filter-item" placeholder="航班号"/>
|
8
|
<el-date-picker v-model="listQuery.flightDate" type="date" placeholder="航班日期"
|
8
|
<el-date-picker v-model="listQuery.flightDate" type="date" placeholder="航班日期"
|
9
|
value-format="yyyy-MM-dd" class="filter-item"></el-date-picker>
|
9
|
value-format="yyyy-MM-dd" class="filter-item"></el-date-picker>
|
10
|
</div>
|
10
|
</div>
|
|
@@ -153,6 +153,7 @@ |
|
@@ -153,6 +153,7 @@ |
153
|
import {getMt520XListForParam} from "@/api/exitTidy";
|
153
|
import {getMt520XListForParam} from "@/api/exitTidy";
|
154
|
import {getMt3201ListForParam} from "@/api/exitArrive";
|
154
|
import {getMt3201ListForParam} from "@/api/exitArrive";
|
155
|
import {getMt4201ListForParam} from "@/api/exitLoading";
|
155
|
import {getMt4201ListForParam} from "@/api/exitLoading";
|
|
|
156
|
+ import {Message} from "element-ui";
|
156
|
|
157
|
|
157
|
export default {
|
158
|
export default {
|
158
|
name: "ExitManifest",
|
159
|
name: "ExitManifest",
|
|
@@ -167,8 +168,8 @@ |
|
@@ -167,8 +168,8 @@ |
167
|
pageSize: 1,
|
168
|
pageSize: 1,
|
168
|
limitSize: 100,
|
169
|
limitSize: 100,
|
169
|
awba:undefined,
|
170
|
awba:undefined,
|
170
|
- carrier: undefined,
|
|
|
171
|
- flightno:undefined,
|
171
|
+ carrier: '',
|
|
|
172
|
+ flightno:'',
|
172
|
flightDate: new Date(),
|
173
|
flightDate: new Date(),
|
173
|
messageType: undefined,
|
174
|
messageType: undefined,
|
174
|
messageStatus: undefined,
|
175
|
messageStatus: undefined,
|
|
@@ -206,9 +207,37 @@ |
|
@@ -206,9 +207,37 @@ |
206
|
]
|
207
|
]
|
207
|
}
|
208
|
}
|
208
|
},
|
209
|
},
|
|
|
210
|
+ computed: {
|
|
|
211
|
+ flightComNo: {
|
|
|
212
|
+ get: function () {
|
|
|
213
|
+ return this.listQuery.carrier+this.listQuery.flightno;
|
|
|
214
|
+ },
|
|
|
215
|
+ set: function (val) {
|
|
|
216
|
+ this.listQuery.carrier='';
|
|
|
217
|
+ this.listQuery.flightno = val.toUpperCase();
|
|
|
218
|
+ }
|
|
|
219
|
+ }
|
|
|
220
|
+ },
|
209
|
methods: {
|
221
|
methods: {
|
210
|
getList() {
|
222
|
getList() {
|
|
|
223
|
+ // 主单为空 航班号 航班日期 不能为空
|
|
|
224
|
+ if (this.listQuery.awba == undefined
|
|
|
225
|
+ && this.listQuery.flightno != ''){
|
|
|
226
|
+ this.listLoading = true
|
|
|
227
|
+ if (this.listQuery.flightno != '' && this.listQuery.flightno.length > 0){
|
|
|
228
|
+ this.listQuery.carrier = this.listQuery.flightno.substring(0,2);
|
|
|
229
|
+ this.listQuery.flightno = this.listQuery.flightno.substring(2);
|
|
|
230
|
+ }
|
|
|
231
|
+ getManifests(this.listQuery).then(res =>{
|
|
|
232
|
+ this.manifestData = res.data.data.list
|
|
|
233
|
+ this.total = res.data.data.total
|
|
|
234
|
+ setTimeout(() =>{
|
|
|
235
|
+ this.listLoading = false
|
|
|
236
|
+ },1500)
|
|
|
237
|
+ })
|
|
|
238
|
+ }else if (this.listQuery.awba != undefined){
|
211
|
this.listLoading = true
|
239
|
this.listLoading = true
|
|
|
240
|
+ this.listQuery.flightDate = undefined;
|
212
|
getManifests(this.listQuery).then(res =>{
|
241
|
getManifests(this.listQuery).then(res =>{
|
213
|
this.manifestData = res.data.data.list
|
242
|
this.manifestData = res.data.data.list
|
214
|
this.total = res.data.data.total
|
243
|
this.total = res.data.data.total
|
|
@@ -216,6 +245,13 @@ |
|
@@ -216,6 +245,13 @@ |
216
|
this.listLoading = false
|
245
|
this.listLoading = false
|
217
|
},1500)
|
246
|
},1500)
|
218
|
})
|
247
|
})
|
|
|
248
|
+ }else {
|
|
|
249
|
+ Message.warning("请输入运单号或者航班号为查询条件");
|
|
|
250
|
+ }
|
|
|
251
|
+
|
|
|
252
|
+ },
|
|
|
253
|
+ inputAwba(){
|
|
|
254
|
+ this.listQuery.flightDate = '';
|
219
|
},
|
255
|
},
|
220
|
handleSelectionChange() {
|
256
|
handleSelectionChange() {
|
221
|
|
257
|
|