作者 小范

运输工具测试

... ... @@ -83,6 +83,9 @@ export const selectAirLineAircraft=params=>{return http.get(`${baseUrlAirLineAir
//进港预报申报prediction
//新增方法
export const addPrediction = params => { return http.post(`${baseUrlPrediction}/addPrediction`, params); };
//保存并发送
export const sendPredictionIn = params => { return http.post(`${baseUrlPrediction}/sendPredictionIn`, params); };
//删除方法
export const editPrediction=params=>{return http.put(`${baseUrlPrediction}/editPrediction`, params);};
//查询列表
... ... @@ -92,12 +95,22 @@ export const selectPrediction=params=>{return http.get(`${baseUrlPrediction}/sel
//进港确报申报confirm
//新增方法
export const addConfirm = params => { return http.post(`${baseUrlConfirm}/addConfirm`, params); };
//保存并发送
export const sendConfirmIn = params => { return http.post(`${baseUrlPrediction}/sendConfirmIn`, params); };
//删除方法
export const editConfirm=params=>{return http.put(`${baseUrlConfirm}/editConfirm`, params);};
//查询列表
export const selectConfirm=params=>{return http.get(`${baseUrlConfirm}/selectConfirm`, params);};
//出港预报申报
//保存并发送
export const sendPredictionOut = params => { return http.post(`${baseUrlPrediction}/sendPredictionOut`, params); };
//出港确报申报
//保存并发送
export const sendConfirmOut = params => { return http.post(`${baseUrlConfirm}/sendConfirmOut`, params); };
//进港航班配置
//新增方法
export const addSchedule = params => { return http.post(`${baseUrlSchedule}/addSchedule`, params); };
... ...
... ... @@ -98,7 +98,7 @@
</el-row>
<el-row style="margin-left: 120px">
<el-col :span="24"> <el-button type="primary" @click="submitForm('arrival')">保 存</el-button>
<el-button type="success">保存并发送</el-button></el-col>
<el-button type="success" @click="sendForm('arrival')">保存并发送</el-button></el-col>
</el-row>
<!--对话提示框-->
<el-row>
... ... @@ -136,7 +136,7 @@
.el-col{margin-right: 0px;}
</style>
<script>
import {addPrediction} from "../../api/transport";
import {addPrediction, sendPredictionIn} from "../../api/transport";
export default {
data(){
... ... @@ -215,6 +215,26 @@
}
});
},
//新增进港预报申报(保存并发送按钮)
sendForm(formName) {
this.$refs[formName].validate((valid) => {
if (valid) {
sendPredictionIn(this.arrival).then(res=>{
let response=res.data;
if(response.code=='200'){
this.centerDialogVisible=true;
this.msg=response.msg;
this.$router.push({path:'/queryArrival',query:{flightNo:this.arrival.flightNo,flightDate:this.arrival.flightDate}});
}else{
this.msg=response.msg;
}
});
} else {
console.log('error submit!!');
return false;
}
});
},
//加载默认值
defaultData(){
if(this.$route.query!=null){
... ...
... ... @@ -80,7 +80,7 @@
</el-row>
<el-row style="margin-left: 120px">
<el-col :span="24"> <el-button type="primary" @click="submitForm('confirmatory')">保 存</el-button>
<el-button type="success">保存并发送</el-button></el-col>
<el-button type="success" @click="sendForm('confirmatory')">保存并发送</el-button></el-col>
</el-row>
<!--对话提示框-->
<el-row>
... ... @@ -118,7 +118,7 @@
.el-col{margin-right: 0px;}
</style>
<script>
import {addConfirm} from "../../api/transport";
import {addConfirm, sendConfirmIn} from "../../api/transport";
export default {
data(){
... ... @@ -188,6 +188,26 @@
}
});
},
//新增进港确报申报(保存并发送按钮)
sendForm(formName) {
this.$refs[formName].validate((valid) => {
if (valid) {
sendConfirmIn(this.confirmatory).then(res=>{
let response=res.data;
if(response.code=='200'){
this.centerDialogVisible=true;
this.msg=response.msg;
this.$router.push({path:'/queryConfirmatory',query:{flightNo:this.confirmatory.flightNo,flightDate:this.confirmatory.flightDate}});
}else{
this.msg=response.msg;
}
});
} else {
console.log('error submit!!');
return false;
}
});
},
//加载默认值
defaultData(){
if(this.$route.query!=null){
... ... @@ -203,4 +223,4 @@
this.defaultData();
}
}
</script>
\ No newline at end of file
</script>
... ...
... ... @@ -61,7 +61,7 @@
</el-row>
<el-row style="margin-left: 120px">
<el-col :span="24"> <el-button type="primary" @click="submitForm('declare')">保 存</el-button>
<el-button type="success">保存并发送</el-button></el-col>
<el-button type="success" @click="sendForm('declare')">保存并发送</el-button></el-col>
</el-row>
<!--对话提示框-->
<el-row>
... ... @@ -99,7 +99,7 @@
.el-col{margin-right: 0px;}
</style>
<script>
import {addConfirm} from "../../api/transport";
import {addConfirm, sendConfirmOut} from "../../api/transport";
export default {
data(){
... ... @@ -162,6 +162,26 @@
}
});
},
//新增出港确报申报(保存按钮)
sendForm(formName) {
this.$refs[formName].validate((valid) => {
if (valid) {
sendConfirmOut(this.declare).then(res=>{
let response=res.data;
if(response.code=='200'){
this.centerDialogVisible=true;
this.msg=response.msg;
this.$router.push({path:'/queryDeclare',query:{flightNo:this.declare.flightNo,flightDate:this.declare.flightDate}});
}else{
this.msg=response.msg;
}
});
} else {
console.log('error submit!!');
return false;
}
});
},
//加载默认值
defaultData(){
if(this.$route.query!=null){
... ... @@ -177,4 +197,4 @@
this.defaultData();
}
}
</script>
\ No newline at end of file
</script>
... ...
... ... @@ -72,7 +72,7 @@
</el-row>
<el-row style="margin-left: 120px">
<el-col :span="24"> <el-button type="primary" @click="submitForm('departure')">保 存</el-button>
<el-button type="success">保存并发送</el-button></el-col>
<el-button type="success" @click="sendForm('departure')">保存并发送</el-button></el-col>
</el-row>
<!--对话提示框-->
<el-row>
... ... @@ -110,7 +110,7 @@
.el-col{margin-right: 0px;}
</style>
<script>
import {addPrediction} from "../../api/transport";
import {addPrediction, sendPredictionOut} from "../../api/transport";
export default {
data(){
... ... @@ -181,6 +181,26 @@
}
});
},
//新增出港预报申报(保存并发送按钮)
sendForm(formName) {
this.$refs[formName].validate((valid) => {
if (valid) {
sendPredictionOut(this.departure).then(res=>{
let response=res.data;
if(response.code=='200'){
this.centerDialogVisible=true;
this.msg=response.msg;
this.$router.push({path:'/queryDeparture',query:{flightNo:this.departure.flightNo,flightDate:this.departure.flightDate}});
}else{
this.msg=response.msg;
}
});
} else {
console.log('error submit!!');
return false;
}
});
},
//加载默认值
defaultData(){
if(this.$route.query!=null){
... ...
... ... @@ -30,8 +30,8 @@
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="航空器国籍" prop="areoNationality" label-width="130px">
<el-input v-model="aircraft.areoNationality" placeholder="请输入"></el-input>
<el-form-item label="航空器国籍" prop="aeroNationality" label-width="130px">
<el-input v-model="aircraft.aeroNationality" placeholder="请输入"></el-input>
</el-form-item>
</el-col>
<el-col :span="6">
... ... @@ -46,8 +46,8 @@
</el-col>
<el-col :span="6">
<el-form-item label="机型" prop="areoModel" label-width="130px">
<el-input v-model="aircraft.areoModel" placeholder="请输入"></el-input>
<el-form-item label="机型" prop="aeroModel" label-width="130px">
<el-input v-model="aircraft.aeroModel" placeholder="请输入"></el-input>
</el-form-item>
</el-col>
<el-col :span="6">
... ... @@ -145,8 +145,8 @@
airwayNameEn:undefined,
airwayNameCn:undefined,
aircraftNo:undefined,
areoModel:undefined,
areoNationality:undefined,
aeroModel:undefined,
aeroNationality:undefined,
certNo:undefined,
grossWeight:undefined,
passengerLimit:undefined,
... ... @@ -169,13 +169,16 @@
airwayCode: [
{required: true, message: '请输入', trigger: 'blur'}
],
meno: [
{required: true, message: '请输入', trigger: 'blur'}
],
airwayNameEn: [
{required: true, message: '请输入', trigger: 'blur'}
],
airwayNameCn: [
{required: true, message: '请输入', trigger: 'blur'}
],
areoNationality: [
aeroNationality: [
{required: true, message: '请输入', trigger: 'blur'}
],
aircraftNo: [
... ... @@ -187,7 +190,7 @@
credentialNo: [
{required: true, message: '请输入', trigger: 'blur'}
],
areoModel: [
aeroModel: [
{required: true, message: '请输入', trigger: 'blur'}
],
grossWeight: [
... ...