作者 shenhailong

添加 通过航班号航日期查询 预报审核是否成功

... ... @@ -156,6 +156,9 @@ export const sendPredictionOut = params => { return http.post(`${baseUrlPredicti
//保存并发送
export const sendConfirmOut = params => { return http.post(`${baseUrlConfirm}/sendConfirmOut`, params); };
// 查询是否预报审核通过
export const selectPredictionInterface = params => { return http.get(`${baseUrlPrediction}/selectPredictionInterface`, params)}
//进港航班配置
//新增方法
... ...
... ... @@ -168,7 +168,7 @@ let routes = [
},
{
path: '/',
component: Home,
component: HomeNew,
name: '海关货物流转',
iconCls: 'el-icon-delete-location',
children: [
... ... @@ -190,7 +190,7 @@ let routes = [
{
path: '/domdep',
component: Home,
component: HomeNew,
name: '订舱系统',
iconCls: 'el-icon-delete-location',
children: [
... ... @@ -234,7 +234,7 @@ let routes = [
},
{
path: '/guestService',
component: Home,
component: HomeNew,
name: '客服系统',
iconCls: 'fa fa-id-card-o',
children: [
... ... @@ -260,7 +260,7 @@ let routes = [
},
{
path: '/radioMsgImport',
component: Home,
component: HomeNew,
name: '航空报文导入',
iconCls:'el-icon-goods',
children:[
... ... @@ -271,7 +271,7 @@ let routes = [
},
{
path: '/sec',
component: Home,
component: HomeNew,
name: '国际安检清单申报管理',
iconCls: 'el-icon-collection',
children: [
... ... @@ -281,7 +281,7 @@ let routes = [
{
path: '/output',
component: Home,
component: HomeNew,
name: '国内出港业务申报',
iconCls: 'el-icon-collection',
children: [
... ... @@ -311,7 +311,7 @@ let routes = [
},
{
path: '/sec',
component: Home,
component: HomeNew,
name: '国内安检清单申报管理',
iconCls: 'el-icon-collection',
children: [
... ... @@ -348,7 +348,7 @@ let routes = [
},
{
path: '/lost',
component: Home,
component: HomeNew,
name: '落装改配申报',
iconCls:'el-icon-goods',
children:[
... ... @@ -461,7 +461,7 @@ let routes = [
},
{
path: '/express-system',
component: Home,
component: HomeNew,
name: '快邮舱单申报',
iconCls:'el-icon-wind-power',
children:[
... ... @@ -471,7 +471,7 @@ let routes = [
{
path: '/',
component: Home,
component: HomeNew,
name: '场站管理',
iconCls: 'el-icon-setting',//图标样式class
children: [
... ... @@ -483,7 +483,7 @@ let routes = [
{
path: '/empt',
component: Home,
component: HomeNew,
name: '能源管理',
iconCls: 'fa fa-id-card-o',
children: [
... ... @@ -493,7 +493,7 @@ let routes = [
},
{
path: '/satff',
component: Home,
component: HomeNew,
name: '生活保障部门',
iconCls: 'fa fa-id-card-o',
children: [
... ... @@ -506,7 +506,7 @@ let routes = [
},
{
path: '/water_heating_chamber',
component: Home,
component: HomeNew,
name: '水暖室',
iconCls: 'fa fa-address-card',
// leaf: true,//只有一个节点
... ...
... ... @@ -177,7 +177,7 @@
<div class="btnFoot">
<el-row>
<el-button type="primary" size="mini" v-if="preQuery.flightno !== undefined | preData.length >0"
<el-button type="primary" size="mini" v-if="preQuery.flightno !== undefined || preData.length >0"
@click="handleAddpreInfo">新增预配舱单
</el-button>
<el-button type="primary" size="mini" @click="handelBackStep"
... ... @@ -250,9 +250,10 @@
<el-row class="flight-info" style="padding-left: 90px;padding-right: 90px">
<el-col :span="6">
<el-form-item label="航班号" prop="flightno">
<el-input v-model="flightno" :disabled="fenStatus === 'addAwbh'" style="width: 140px" clearable>
<el-input v-model="flightno" @blur="transportQuery()" :disabled="fenStatus === 'addAwbh'" style="width: 140px" clearable>
</el-input>
</el-form-item>
<span id="message"></span>
</el-col>
<el-col :span="6">
<el-form-item label="航班日期" prop="flightdate">
... ... @@ -261,6 +262,7 @@
style="width: 140px"
v-model="preModel.flightdate" align="left"
class="flight-date-tianbo"
@blur="transportQuery()"
type="date" placeholder="请输入航班日期" clearable/>
</el-form-item>
</el-col>
... ... @@ -791,7 +793,8 @@
import {getResponseForParam} from '@/api/responseDetail'
import { getList} from '../../api/consigner/consigner';
import { getList as neeList} from '../../api/consigner/consignee';
import {getListHzTypeList} from '../../api/shipper/shipper'
import {getListHzTypeList} from '../../api/shipper/shipper';
import {selectPredictionInterface} from '../../api/transport';
import {
validAwb,
validAlphabets,
... ... @@ -1412,8 +1415,9 @@
Message.error("获取货主列表失败")
}
})
this.preModel.carrier = this.preQuery.carrier
this.preModel.flightno = this.preQuery.flightno
if (this.preQuery.carrier !== undefined){
this.preModel.flightno = this.preQuery.carrier+this.preQuery.flightno
}
this.preModel.flightdate = this.preQuery.flightdate
this.preModel.originstation = this.preQuery.originstation
this.preModel.destinationstation = this.preQuery.destinationstation
... ... @@ -1935,7 +1939,7 @@
form.append('enterpriseId', loginUserInfo.companyId);
form.append("username", loginUserInfo.username);
uploadFileExcel(form).then(res =>{
if(res.data.count >0){
if(res.data.code =='200'){
Message.success(res.data.respMessage)
this.getList();
}else {
... ... @@ -1951,6 +1955,27 @@
userId(){
this.preModel.userId = loginUserInfo.userId;
this.preModel.enterpriseId = loginUserInfo.companyId;
},
// 远程查询运输工具申报是否成功
transportQuery(){
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
}
selectPredictionInterface(params).then(res =>{
console.log(res.data.data+"-------------");
if(res.data.data != undefined && res.data.data != ""){
const span = document.getElementById("message");
span.innerHTML = res.data.data[0].statusMsg;
}else {
const span = document.getElementById("message");
span.innerHTML = ""
}
})
}
}
}
}
... ...