作者 朱兆平

预配查询运输工具申报信息优化

... ... @@ -289,7 +289,13 @@
<el-input v-model="flightno" @blur="transportQuery()" :disabled="fenStatus === 'addAwbh'" style="width: 140px" clearable>
</el-input>
</el-form-item>
<span id="message"></span>
<el-alert
title="运输工具申报信息:"
:type="alert_type"
:description = "alert_des"
:closable="false"
>
</el-alert>
</el-col>
<el-col :span="6">
<el-form-item label="航班日期" prop="flightdate">
... ... @@ -895,6 +901,8 @@
func: treeToArray,
total: 1,
isAdmin: false,
alert_type: 'info',
alert_des: '',
addloading: false,
consignerList: [],
dialogNeeVisible: false,
... ... @@ -1501,6 +1509,8 @@
username : JSON.parse(sessionStorage.getItem('user')).username
}
}
this.alert_des = ''
this.alert_type = 'info'
},
// >>>>>>>>>>>>>>>>新增主单<<<<<<<<<<<<<<<<<<
handleAddpreInfo() {
... ... @@ -2054,6 +2064,7 @@
// 远程查询运输工具申报是否成功
transportQuery(){
let _this = this
if (this.preModel.flightno != undefined && this.preModel.flightno != ''
&& this.preModel.flightdate != undefined && this.preModel.flightdate != ''){
const params = {
... ... @@ -2062,11 +2073,17 @@
}
selectPredictionInterface(params).then(res =>{
if(res.data.data != undefined && res.data.data != ""){
const span = document.getElementById("message");
span.innerHTML = res.data.data[0].statusMsg;
let ysgj_data = res.data.data[0]
let ysgj_status = ysgj_data.status
if (ysgj_status === '02'){
_this.alert_type = 'success'
}else{
_this.alert_type = 'warning'
}
_this.alert_des = ysgj_data.statusMsg
}else {
const span = document.getElementById("message");
span.innerHTML = ""
_this.alert_des = "此航班的运输工具申报未做预报动态申报."
_this.alert_type = 'error'
}
})
}
... ...