作者 朱兆平

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

@@ -289,7 +289,13 @@ @@ -289,7 +289,13 @@
289 <el-input v-model="flightno" @blur="transportQuery()" :disabled="fenStatus === 'addAwbh'" style="width: 140px" clearable> 289 <el-input v-model="flightno" @blur="transportQuery()" :disabled="fenStatus === 'addAwbh'" style="width: 140px" clearable>
290 </el-input> 290 </el-input>
291 </el-form-item> 291 </el-form-item>
292 - <span id="message"></span> 292 + <el-alert
  293 + title="运输工具申报信息:"
  294 + :type="alert_type"
  295 + :description = "alert_des"
  296 + :closable="false"
  297 + >
  298 + </el-alert>
293 </el-col> 299 </el-col>
294 <el-col :span="6"> 300 <el-col :span="6">
295 <el-form-item label="航班日期" prop="flightdate"> 301 <el-form-item label="航班日期" prop="flightdate">
@@ -895,6 +901,8 @@ @@ -895,6 +901,8 @@
895 func: treeToArray, 901 func: treeToArray,
896 total: 1, 902 total: 1,
897 isAdmin: false, 903 isAdmin: false,
  904 + alert_type: 'info',
  905 + alert_des: '',
898 addloading: false, 906 addloading: false,
899 consignerList: [], 907 consignerList: [],
900 dialogNeeVisible: false, 908 dialogNeeVisible: false,
@@ -1501,6 +1509,8 @@ @@ -1501,6 +1509,8 @@
1501 username : JSON.parse(sessionStorage.getItem('user')).username 1509 username : JSON.parse(sessionStorage.getItem('user')).username
1502 } 1510 }
1503 } 1511 }
  1512 + this.alert_des = ''
  1513 + this.alert_type = 'info'
1504 }, 1514 },
1505 // >>>>>>>>>>>>>>>>新增主单<<<<<<<<<<<<<<<<<< 1515 // >>>>>>>>>>>>>>>>新增主单<<<<<<<<<<<<<<<<<<
1506 handleAddpreInfo() { 1516 handleAddpreInfo() {
@@ -2054,6 +2064,7 @@ @@ -2054,6 +2064,7 @@
2054 2064
2055 // 远程查询运输工具申报是否成功 2065 // 远程查询运输工具申报是否成功
2056 transportQuery(){ 2066 transportQuery(){
  2067 + let _this = this
2057 if (this.preModel.flightno != undefined && this.preModel.flightno != '' 2068 if (this.preModel.flightno != undefined && this.preModel.flightno != ''
2058 && this.preModel.flightdate != undefined && this.preModel.flightdate != ''){ 2069 && this.preModel.flightdate != undefined && this.preModel.flightdate != ''){
2059 const params = { 2070 const params = {
@@ -2062,11 +2073,17 @@ @@ -2062,11 +2073,17 @@
2062 } 2073 }
2063 selectPredictionInterface(params).then(res =>{ 2074 selectPredictionInterface(params).then(res =>{
2064 if(res.data.data != undefined && res.data.data != ""){ 2075 if(res.data.data != undefined && res.data.data != ""){
2065 - const span = document.getElementById("message");  
2066 - span.innerHTML = res.data.data[0].statusMsg; 2076 + let ysgj_data = res.data.data[0]
  2077 + let ysgj_status = ysgj_data.status
  2078 + if (ysgj_status === '02'){
  2079 + _this.alert_type = 'success'
  2080 + }else{
  2081 + _this.alert_type = 'warning'
  2082 + }
  2083 + _this.alert_des = ysgj_data.statusMsg
2067 }else { 2084 }else {
2068 - const span = document.getElementById("message");  
2069 - span.innerHTML = "" 2085 + _this.alert_des = "此航班的运输工具申报未做预报动态申报."
  2086 + _this.alert_type = 'error'
2070 } 2087 }
2071 }) 2088 })
2072 } 2089 }