作者 xudada

运单,理货手动编辑,添加功能

... ... @@ -533,6 +533,7 @@
<script>
import{addResponse,selectResponseList} from "../../api/InResponse";
import { QueryData,ediAllocat,sendCreateMt6202,sendRemoveMt6202,sendCreateMt3202,sendRemoveMt3202 } from '../../api/Allocat'
import loginUserInfo from '@/api/base'
export default{
data(){
return{
... ... @@ -790,7 +791,7 @@
},
//发送分拨申请报
importSend(index,row){
const map = {'mt6202':row}
const map = {'mt6202':row,'username':loginUserInfo.username}
sendCreateMt6202(map).then(res=>{
let response=res.data;
//console.log(res);
... ... @@ -839,7 +840,8 @@
'reason' :this.Udform.operreason,
'contactName':this.Udform.operperson,
'contactTel':this.Udform.opertel,
'carrier':this.rows.carrier}
'carrier':this.rows.carrier,
'username':loginUserInfo.username}
if(this.rows.turntype=='MT6202'){
sendRemoveMt6202(map).then(res=>{
let response=res.data;
... ... @@ -889,7 +891,7 @@
//发送分拨运抵报
arriveSend(index,row){
const map = {'mt3202':row}
const map = {'mt3202':row,'username':loginUserInfo.username}
sendCreateMt3202(map).then(res=>{
let response=res.data;
//console.log(res);
... ...
... ... @@ -160,6 +160,7 @@
/*加载默认参数*/
getDefaultData(){
if(this.$route.query!=null){
console.log(this.$route.query)
this.ruleForm.flightno=JSON.parse(this.$route.query.flightno);
this.ruleForm.flightdate=JSON.parse(this.$route.query.flightdate);
this.ruleForm.originstation=JSON.parse(this.$route.query.originstation);
... ...
... ... @@ -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);
},
},
... ...
... ... @@ -441,6 +441,7 @@
<script>
import{addResponse,selectResponseList} from "../../api/InResponse";
import { getMt5201List,addMt5201,ediMt5201,delMt5201,sendCreateMt520x,sendRemoveMt520x,selectCustomcode} from '../../api/mt5201'
import loginUserInfo from '@/api/base'
export default {
data() {
return {
... ... @@ -451,6 +452,7 @@
destinationstation:undefined,
awba:undefined,
},
LoginUserInfo: loginUserInfo,
tableData: [],
tableData2: [],
multipleSelection: [],
... ... @@ -482,7 +484,10 @@
isdelete:undefined,
pcs:undefined,
wei:undefined,
ext5:undefined
ext5:undefined,
userinfo: {
username: '11111'
},
},
FenStatus:'',
rules: {
... ... @@ -613,7 +618,7 @@
if(row.awbh==null){
row.awbh="";
}
const map = {'mt520x':row}
const map = {'mt520x':row,'username':loginUserInfo.username}
sendCreateMt520x(map).then(res=>{
let response=res.data;
//console.log(res);
... ... @@ -667,7 +672,8 @@
'contactName':this.Udform.operperson,
'contactTel':this.Udform.opertel,
'rcfdep':this.rows.rcfdep,
'carrier':this.rows.carrier}
'carrier':this.rows.carrier,
'username':loginUserInfo.username}
sendRemoveMt520x(map).then(res=>{
let response=res.data;
//console.log(res);
... ... @@ -756,25 +762,30 @@
this.ruleForm.destinationstation=JSON.parse(this.$route.query.destinationstation);
},
//新增原始舱单数据
createData(formName){
createData:function(formName){
let _this = this;
this.$refs[formName].validate((valid) => {
if (valid) {
this.ruleForm.status='22';
_this.ruleForm.userinfo = {
username: ''
}
_this.ruleForm.userinfo.username=_this.LoginUserInfo.username;
_this.ruleForm.status='22';
//this.ruleForm.endtime=this.ruleForm.starttime.add(Calendar.MINUTE, 15);
addMt5201(this.ruleForm).then(res=>{
addMt5201(_this.ruleForm).then(res=>{
let response=res.data;
this.code=response.code;
if(this.code=='200'){
this.outerVisible = false;
this.$refs[formName].resetFields();
this.centerDialogVisible=true;
this.msg=response.msg;
this.getMt5201List();
_this.code=response.code;
if(_this.code=='200'){
_this.outerVisible = false;
_this.$refs[formName].resetFields();
_this.centerDialogVisible=true;
_this.msg=response.msg;
_this.getMt5201List();
}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 {
... ... @@ -784,21 +795,26 @@
});
},
//修改进港理货数据
updateData(formName){
updateData:function(formName){
let _this = this;
this.$refs[formName].validate((valid) => {
if (valid) {
ediMt5201(this.ruleForm).then(res=>{
_this.ruleForm.userinfo = {
username: ''
}
_this.ruleForm.userinfo.username=_this.LoginUserInfo.username;
ediMt5201(_this.ruleForm).then(res=>{
let response=res.data;
this.code=response.code;
if(this.code=='200'){
this.outerVisible = false;
this.centerDialogVisible=true;
this.msg=response.msg;
this.getMt5201List();
_this.code=response.code;
if(_this.code=='200'){
_this.outerVisible = false;
_this.centerDialogVisible=true;
_this.msg=response.msg;
_this.getMt5201List();
}else{
this.outerVisible = false;
this.centerDialogVisible=true;
this.msg=response.msg;
_this.outerVisible = false;
_this.centerDialogVisible=true;
_this.msg=response.msg;
}
});
} else {
... ...