...
|
...
|
@@ -645,7 +645,7 @@ |
|
|
<el-dialog title="回执明细列表" :visible.sync="dialogTableVisible" width="70%">
|
|
|
<el-table :data="gridData">
|
|
|
<el-table-column property="busdate" label="时间" width="160"></el-table-column>
|
|
|
<el-table-column property="username" label="操作人" width="130"></el-table-column>
|
|
|
<el-table-column property="operusername" label="操作人" width="130"></el-table-column>
|
|
|
<el-table-column property="buspiece" label="发送件数" width="130"></el-table-column>
|
|
|
<el-table-column property="busweight" label="发送重量" width="130"></el-table-column>
|
|
|
<el-table-column property="cusrestext" label="回执内容"></el-table-column>
|
...
|
...
|
@@ -721,7 +721,8 @@ |
|
|
import{addResponse,selectResponseList} from "../../api/InResponse";
|
|
|
import FileSaver from "file-saver";
|
|
|
import XLSX from "xlsx";
|
|
|
import htmlToPdf from "../../api/htmlToPdf"
|
|
|
import htmlToPdf from "../../api/htmlToPdf";
|
|
|
import loginUserInfo from '@/api/base.js'
|
|
|
export default {
|
|
|
data() {
|
|
|
/*初始数据*/
|
...
|
...
|
@@ -733,6 +734,7 @@ |
|
|
destinationstation: undefined,
|
|
|
awba: undefined
|
|
|
},
|
|
|
LoginUserInfo: loginUserInfo,
|
|
|
FenQuery:{
|
|
|
flightno: undefined,
|
|
|
flightdate: undefined,
|
...
|
...
|
@@ -767,6 +769,7 @@ |
|
|
weight: undefined,
|
|
|
goodsname: undefined,
|
|
|
splitcode: 'T',
|
|
|
isDelete:0,
|
|
|
uldType: undefined,
|
|
|
uldNo: undefined,
|
|
|
status: '22',
|
...
|
...
|
@@ -804,6 +807,9 @@ |
|
|
weight: undefined,
|
|
|
awbtype:'001',
|
|
|
},
|
|
|
userinfo: {
|
|
|
username: '11111'
|
|
|
},
|
|
|
waybill:undefined,
|
|
|
customText:undefined
|
|
|
},
|
...
|
...
|
@@ -927,6 +933,7 @@ |
|
|
this.dialogTableVisible=true;
|
|
|
let response=res.data.data;
|
|
|
this.gridData=response;
|
|
|
console.log(response)
|
|
|
});
|
|
|
},
|
|
|
//更改状态
|
...
|
...
|
@@ -986,8 +993,8 @@ |
|
|
this.dialogStatus='update';
|
|
|
this.FenStatus='ediAwbh';
|
|
|
this.ruleForm=row;
|
|
|
this.ruleForm.originstation=row.originstation+"-"+row.destinationstation;
|
|
|
this.ruleForm.flightno=row.carrier+row.flightno;
|
|
|
this.ruleForm.originstation=this.defaultQuery.originstation+"-"+this.defaultQuery.destinationstation;
|
|
|
this.ruleForm.flightno=this.defaultQuery.flightno;
|
|
|
this.FenQuery.awba=row.awba;
|
|
|
this.FenQuery.flightno= row.flightno;
|
|
|
this.FenQuery.flightdate=row.flightdate
|
...
|
...
|
@@ -1012,7 +1019,7 @@ |
|
|
}else{
|
|
|
row.flightno=row.flightno;
|
|
|
}
|
|
|
const map = {'mt1201':row}
|
|
|
const map = {'mt1201':row,'username':loginUserInfo.username}
|
|
|
sendCreateMt1201(map).then(res=>{
|
|
|
let response=res.data;
|
|
|
//console.log(res);
|
...
|
...
|
@@ -1062,7 +1069,8 @@ |
|
|
'reason' :this.Udform.operreason,
|
|
|
'contactName':this.Udform.operperson,
|
|
|
'contactTel':this.Udform.opertel,
|
|
|
'carrier':this.Udform.carrier}
|
|
|
'carrier':this.Udform.carrier,
|
|
|
'username':loginUserInfo.username}
|
|
|
sendRemoveMt1201(map).then(res=>{
|
|
|
let response=res.data;
|
|
|
//console.log(res);
|
...
|
...
|
@@ -1116,7 +1124,8 @@ |
|
|
const map = {'mt1201':this.temprows,
|
|
|
'reason' :this.Udform.operreason,
|
|
|
'contactName':this.Udform.operperson,
|
|
|
'contactTel':this.Udform.opertel}
|
|
|
'contactTel':this.Udform.opertel,
|
|
|
'username':loginUserInfo.username}
|
|
|
sendEditeMt1201(map).then(res=>{
|
|
|
let response=res.data;
|
|
|
//console.log(res);
|
...
|
...
|
@@ -1158,6 +1167,7 @@ |
|
|
this.defaultQuery.originstation = JSON.parse(this.$route.query.originstation);
|
|
|
this.defaultQuery.destinationstation = JSON.parse(this.$route.query.destinationstation);
|
|
|
this.defaultQuery.awba=JSON.parse(this.$route.query.awba);
|
|
|
|
|
|
},
|
|
|
/*获取默认数据列表*/
|
|
|
getList(){
|
...
|
...
|
@@ -1172,7 +1182,7 @@ |
|
|
if(item.awba!=null&&item.awbh=="");
|
|
|
this.sumNmmsCount=Number(this.sumNmmsCount)+1;
|
|
|
this.sumNmmsPrice=Number(this.sumNmmsPrice)+Number(item.piece);
|
|
|
this.sumNmmsWeight=Number(this.sumNmmsWeight)+Number(item.weight);
|
|
|
this.sumNmmsWeight=Number(Number(this.sumNmmsWeight)+Number(item.weight)).toFixed(2);
|
|
|
})
|
|
|
});
|
|
|
},
|
...
|
...
|
@@ -1229,25 +1239,29 @@ |
|
|
this.FenStatus='addAwbh';
|
|
|
},
|
|
|
//新增原始舱单数据
|
|
|
createData(formName){
|
|
|
createData:function(formName){
|
|
|
let _this = this;
|
|
|
this.$refs[formName].validate((valid) => {
|
|
|
if (valid) {
|
|
|
this.ruleForm.status='22'
|
|
|
addMt1201(this.ruleForm).then(res=>{
|
|
|
_this.ruleForm.userinfo = {
|
|
|
username: ''
|
|
|
}
|
|
|
_this.ruleForm.userinfo.username=_this.LoginUserInfo.username;
|
|
|
_this.ruleForm.status='22';
|
|
|
addMt1201(_this.ruleForm).then(res=>{
|
|
|
let response=res.data;
|
|
|
//console.log(res);
|
|
|
this.code=response.code;
|
|
|
if(this.code=='200'){
|
|
|
this.outerVisible = false;
|
|
|
this.$refs[formName].resetFields();
|
|
|
this.centerDialogVisible=true;
|
|
|
this.msg=response.msg;
|
|
|
this.getList();
|
|
|
_this.code=response.code;
|
|
|
if(_this.code=='200'){
|
|
|
_this.outerVisible = false;
|
|
|
_this.$refs[formName].resetFields();
|
|
|
_this.centerDialogVisible=true;
|
|
|
_this.msg=response.msg;
|
|
|
_this.getList();
|
|
|
}else{
|
|
|
this.outerVisible = false;
|
|
|
this.centerDialogVisible=true;
|
|
|
this.$refs[formName].resetFields();
|
|
|
this.msg=response.msg;
|
|
|
_this.outerVisible = false;
|
|
|
_this.centerDialogVisible=true;
|
|
|
_this.$refs[formName].resetFields();
|
|
|
_this.msg=response.msg;
|
|
|
}
|
|
|
});
|
|
|
} else {
|
...
|
...
|
@@ -1258,22 +1272,27 @@ |
|
|
|
|
|
},
|
|
|
//修改原始舱单数据
|
|
|
updateData(formName){
|
|
|
updateData: function(formName){
|
|
|
let _this = this;
|
|
|
this.$refs[formName].validate((valid) => {
|
|
|
if (valid) {
|
|
|
ediMt1201(this.ruleForm).then(res=>{
|
|
|
_this.ruleForm.userinfo = {
|
|
|
username: ''
|
|
|
}
|
|
|
_this.ruleForm.userinfo.username=_this.LoginUserInfo.username;
|
|
|
ediMt1201(_this.ruleForm).then(res=>{
|
|
|
let response=res.data;
|
|
|
//console.log(res);
|
|
|
this.code=response.code;
|
|
|
if(this.code=='200'){
|
|
|
this.outerVisible = false;
|
|
|
this.centerDialogVisible=true;
|
|
|
this.msg=response.msg;
|
|
|
this.getList();
|
|
|
_this.code=response.code;
|
|
|
if(_this.code=='200'){
|
|
|
_this.outerVisible = false;
|
|
|
_this.centerDialogVisible=true;
|
|
|
_this.msg=response.msg;
|
|
|
_this.getList();
|
|
|
}else{
|
|
|
this.outerVisible = false;
|
|
|
this.centerDialogVisible=true;
|
|
|
this.msg=response.msg;
|
|
|
_this.outerVisible = false;
|
|
|
_this.centerDialogVisible=true;
|
|
|
_this.msg=response.msg;
|
|
|
}
|
|
|
});
|
|
|
} else {
|
...
|
...
|
@@ -1301,8 +1320,9 @@ |
|
|
this.$router.push({name:'分拨运抵',params:{carrier:row.carrier,flightno:row.flightno,awba:row.awba,flightdate:row.flightdate,
|
|
|
turnpiece:row.awbinfo.pcs,turnweight:row.awbinfo.weight,customcode:row.customcode,goodsname:row.goodsname}});
|
|
|
},
|
|
|
//返回上一层
|
|
|
back(){
|
|
|
this.$router.go(-1);//返回上一层
|
|
|
this.$router.go(-1);
|
|
|
},
|
|
|
|
|
|
},
|
...
|
...
|
|