...
|
...
|
@@ -284,12 +284,12 @@ |
|
|
<el-row style="margin-bottom: 0px;">
|
|
|
<el-col :span="3">
|
|
|
<el-form-item label="起始站" prop="awbinfo.sairportid" >
|
|
|
<el-input v-model="ruleForm.awbinfo.sairportid"></el-input>
|
|
|
<el-input v-model="ruleForm.awbinfo.sairportid" onkeyup="this.value=this.value.toUpperCase()"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="3">
|
|
|
<el-form-item label="承运人1" prop="awbinfo.by1">
|
|
|
<el-input v-model="ruleForm.awbinfo.by1"></el-input>
|
|
|
<el-input v-model="ruleForm.awbinfo.by1" onkeyup="this.value=this.value.toUpperCase()"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="3">
|
...
|
...
|
@@ -299,27 +299,27 @@ |
|
|
</el-col>
|
|
|
<el-col :span="3">
|
|
|
<el-form-item label="承运人2" prop="awbinfo.by2">
|
|
|
<el-input v-model="ruleForm.awbinfo.by2"></el-input>
|
|
|
<el-input v-model="ruleForm.awbinfo.by2" onkeyup="this.value=this.value.toUpperCase()"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="3">
|
|
|
<el-form-item label="到达站2" prop="awbinfo.dest2">
|
|
|
<el-input v-model="ruleForm.awbinfo.dest2"></el-input>
|
|
|
<el-input v-model="ruleForm.awbinfo.dest2" onkeyup="this.value=this.value.toUpperCase()"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="3">
|
|
|
<el-form-item label="承运人3" prop="awbinfo.by3">
|
|
|
<el-input v-model="ruleForm.awbinfo.by3"></el-input>
|
|
|
<el-input v-model="ruleForm.awbinfo.by3" onkeyup="this.value=this.value.toUpperCase()"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="3">
|
|
|
<el-form-item label="到达站3" prop="awbinfo.dest3">
|
|
|
<el-input v-model="ruleForm.awbinfo.dest3"></el-input>
|
|
|
<el-input v-model="ruleForm.awbinfo.dest3" onkeyup="this.value=this.value.toUpperCase()"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="3">
|
|
|
<el-form-item label="目的站" prop="awbinfo.eairportid">
|
|
|
<el-input v-model="ruleForm.awbinfo.eairportid"></el-input>
|
|
|
<el-input v-model="ruleForm.awbinfo.eairportid" onkeyup="this.value=this.value.toUpperCase()"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
</el-row>
|
...
|
...
|
@@ -333,7 +333,7 @@ |
|
|
<el-row class="product">
|
|
|
<el-col :span="6">
|
|
|
<el-form-item label="总件数" prop="awbinfo.pcs">
|
|
|
<el-input v-model="ruleForm.awbinfo.pcs"></el-input>
|
|
|
<el-input v-model="ruleForm.awbinfo.pcs" ></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="6">
|
...
|
...
|
@@ -723,7 +723,7 @@ |
|
|
awba: undefined,
|
|
|
awbh: undefined,
|
|
|
passage: undefined,
|
|
|
customcode: '-1',
|
|
|
customcode: undefined,
|
|
|
flightno: undefined,
|
|
|
flightdate: undefined,
|
|
|
originstation: undefined,
|
...
|
...
|
@@ -769,7 +769,8 @@ |
|
|
weight: undefined,
|
|
|
awbtype:'001',
|
|
|
},
|
|
|
waybill:undefined
|
|
|
waybill:undefined,
|
|
|
customText:undefined
|
|
|
},
|
|
|
paymodel:[{value:'PP',label:'预付'},{value:'DP',label:'到付'}],
|
|
|
customext5: [
|
...
|
...
|
@@ -844,12 +845,14 @@ |
|
|
},
|
|
|
udStatus:'',
|
|
|
loading:false,
|
|
|
rows:{},
|
|
|
temprows:{
|
|
|
},
|
|
|
dialogTableVisible:false,
|
|
|
gridData:[]
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
|
|
|
//回执收发明细
|
|
|
handleDetail(index,row){
|
|
|
if(row.flightno.length>4){
|
...
|
...
|
@@ -914,7 +917,6 @@ |
|
|
},
|
|
|
/*编辑主单信息*/
|
|
|
handleEdit(index, row){
|
|
|
console.log(row)
|
|
|
this.outerVisible = true;
|
|
|
this.dialogStatus='update';
|
|
|
this.FenStatus='ediAwbh';
|
...
|
...
|
@@ -951,6 +953,7 @@ |
|
|
this.code=response.code;
|
|
|
if(this.code=='200'){
|
|
|
row.status='23'
|
|
|
row.customText='舱单报发送成功';
|
|
|
this.outerVisible = false;
|
|
|
this.centerDialogVisible=true;
|
|
|
this.msg=response.msg;
|
...
|
...
|
@@ -978,37 +981,46 @@ |
|
|
if(row.flightno.length>4){
|
|
|
row.flightno=row.flightno.substring(2);
|
|
|
}
|
|
|
this.rows=row;
|
|
|
this.temprows= row;
|
|
|
},
|
|
|
//提交发送舱单删除报表单
|
|
|
deleteUdForm(formName){
|
|
|
const map = {'flightNo':this.rows.flightno,
|
|
|
'flightDate':this.rows.flightdate,
|
|
|
'awba':this.rows.awba,
|
|
|
'content':'',
|
|
|
'customCode':this.rows.customcode,
|
|
|
'awbh':this.rows.awbh,
|
|
|
'reason' :this.Udform.operreason,
|
|
|
'contactName':this.Udform.operperson,
|
|
|
'contactTel':this.Udform.opertel,
|
|
|
'carrier':this.Udform.carrier}
|
|
|
sendRemoveMt1201(map).then(res=>{
|
|
|
let response=res.data;
|
|
|
//console.log(res);
|
|
|
this.code=response.code;
|
|
|
if(this.code=='200'){
|
|
|
this.rows.status='24'
|
|
|
this.dialogFormVisible=false;
|
|
|
this.outerVisible = false;
|
|
|
this.centerDialogVisible=true;
|
|
|
this.msg=response.msg;
|
|
|
}else{
|
|
|
this.dialogFormVisible=false;
|
|
|
this.outerVisible = false;
|
|
|
this.centerDialogVisible=true;
|
|
|
this.msg=response.msg;
|
|
|
this.$refs[formName].validate((valid) => {
|
|
|
if (valid) {
|
|
|
const map = {'flightNo':this.temprows.flightno,
|
|
|
'flightDate':this.temprows.flightdate,
|
|
|
'awba':this.temprows.awba,
|
|
|
'content':'',
|
|
|
'customCode':this.temprows.customcode,
|
|
|
'awbh':this.temprows.awbh,
|
|
|
'reason' :this.Udform.operreason,
|
|
|
'contactName':this.Udform.operperson,
|
|
|
'contactTel':this.Udform.opertel,
|
|
|
'carrier':this.Udform.carrier}
|
|
|
sendRemoveMt1201(map).then(res=>{
|
|
|
let response=res.data;
|
|
|
//console.log(res);
|
|
|
this.code=response.code;
|
|
|
if(this.code=='200'){
|
|
|
this.temprows.status='24';
|
|
|
this.temprows.customText='舱单删除报发送成功';
|
|
|
this.dialogFormVisible=false;
|
|
|
this.outerVisible = false;
|
|
|
this.centerDialogVisible=true;
|
|
|
this.msg=response.msg;
|
|
|
}else{
|
|
|
this.dialogFormVisible=false;
|
|
|
this.outerVisible = false;
|
|
|
this.centerDialogVisible=true;
|
|
|
this.msg=response.msg;
|
|
|
}
|
|
|
});
|
|
|
} else {
|
|
|
console.log('error submit!!');
|
|
|
return false;
|
|
|
}
|
|
|
});
|
|
|
|
|
|
},
|
|
|
/*发送舱单修改报*/
|
|
|
handleUpdate(index,row){
|
...
|
...
|
@@ -1029,34 +1041,40 @@ |
|
|
}else{
|
|
|
row.flightno=row.flightno;
|
|
|
};
|
|
|
this.rows=row;
|
|
|
this.temprows=row;
|
|
|
},
|
|
|
//提交发送舱单修改报表单
|
|
|
updateUdForm(formName){
|
|
|
this.$refs[formName].validate((valid) => {
|
|
|
|
|
|
const map = {'mt1201':this.rows,
|
|
|
'reason' :this.Udform.operreason,
|
|
|
'contactName':this.Udform.operperson,
|
|
|
'contactTel':this.Udform.opertel}
|
|
|
sendEditeMt1201(map).then(res=>{
|
|
|
let response=res.data;
|
|
|
//console.log(res);
|
|
|
this.code=response.code;
|
|
|
if(this.code=='200'){
|
|
|
this.rows.status='25'
|
|
|
this.dialogFormVisible=false;
|
|
|
this.outerVisible = false;
|
|
|
this.centerDialogVisible=true;
|
|
|
this.msg=response.msg;
|
|
|
}else{
|
|
|
this.dialogFormVisible=false;
|
|
|
this.outerVisible = false;
|
|
|
this.centerDialogVisible=true;
|
|
|
this.msg=response.msg;
|
|
|
}
|
|
|
});
|
|
|
if (valid) {
|
|
|
const map = {'mt1201':this.temprows,
|
|
|
'reason' :this.Udform.operreason,
|
|
|
'contactName':this.Udform.operperson,
|
|
|
'contactTel':this.Udform.opertel}
|
|
|
sendEditeMt1201(map).then(res=>{
|
|
|
let response=res.data;
|
|
|
//console.log(res);
|
|
|
this.code=response.code;
|
|
|
if(this.code=='200'){
|
|
|
this.temprows.status='25'
|
|
|
this.temprows.customText='舱单修改报发送成功';
|
|
|
this.dialogFormVisible=false;
|
|
|
this.outerVisible = false;
|
|
|
this.centerDialogVisible=true;
|
|
|
this.msg=response.msg;
|
|
|
}else{
|
|
|
this.dialogFormVisible=false;
|
|
|
this.outerVisible = false;
|
|
|
this.centerDialogVisible=true;
|
|
|
this.msg=response.msg;
|
|
|
}
|
|
|
});
|
|
|
} else {
|
|
|
console.log('error submit!!');
|
|
|
return false;
|
|
|
}
|
|
|
});
|
|
|
|
|
|
},
|
|
|
/*编辑分单列表信息*/
|
|
|
handleClick(row) {
|
...
|
...
|
@@ -1078,7 +1096,7 @@ |
|
|
/*获取默认数据列表*/
|
|
|
getList(){
|
|
|
getMt1201List(this.defaultQuery).then(res =>{
|
|
|
//console.log(res);
|
|
|
console.log(res);
|
|
|
this.sumNmmsCount=0;
|
|
|
this.sumNmmsPrice=0;
|
|
|
this.sumNmmsWeight=0;
|
...
|
...
|
@@ -1148,6 +1166,7 @@ |
|
|
createData(formName){
|
|
|
this.$refs[formName].validate((valid) => {
|
|
|
if (valid) {
|
|
|
this.ruleForm.status='22'
|
|
|
addMt1201(this.ruleForm).then(res=>{
|
|
|
let response=res.data;
|
|
|
//console.log(res);
|
...
|
...
|
|