...
|
...
|
@@ -588,7 +588,12 @@ |
|
|
</el-col>
|
|
|
<el-col :span="2.5" class="pub">
|
|
|
<div class="grid-content">
|
|
|
<el-button type="primary" size="mini">批量发送删除报</el-button>
|
|
|
<el-button type="primary" size="mini" :disabled="batich" @click="batchdel()">批量发送删除报</el-button>
|
|
|
</div>
|
|
|
</el-col>
|
|
|
<el-col :span="2.5" class="pub">
|
|
|
<div class="grid-content">
|
|
|
<el-button type="primary" size="mini" :disabled="batich" @click="batchaplly()">批量申请</el-button>
|
|
|
</div>
|
|
|
</el-col>
|
|
|
<el-col :span="2" class="pub">
|
...
|
...
|
@@ -717,7 +722,7 @@ |
|
|
</style>
|
|
|
|
|
|
<script>
|
|
|
import { getMt1201List,addMt1201,ediMt1201,getFenList,getCountryCode,selectCustomcode,sendCreateMt1201,sendEditeMt1201,sendRemoveMt1201 } from '../../api/mt1201'
|
|
|
import { getMt1201List,addMt1201,ediMt1201,getFenList,getCountryCode,selectCustomcode,sendCreateMt1201,sendEditeMt1201,sendRemoveMt1201,sendBatchDelMt1201,sendBatchApllyMt1201 } from '../../api/mt1201'
|
|
|
import{addResponse,selectResponseList} from "../../api/InResponse";
|
|
|
import FileSaver from "file-saver";
|
|
|
import XLSX from "xlsx";
|
...
|
...
|
@@ -890,7 +895,10 @@ |
|
|
dialogTableVisible:false,
|
|
|
gridData:[],
|
|
|
tableloading:true,
|
|
|
htmlTitle:''
|
|
|
htmlTitle:'',
|
|
|
batich:true,
|
|
|
batichboolean:false,
|
|
|
uuids:[],
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
...
|
...
|
@@ -982,10 +990,44 @@ |
|
|
return false;
|
|
|
}
|
|
|
},
|
|
|
/*多选框功能*/
|
|
|
/*多选框功能批量选择*/
|
|
|
handleSelectionChange(val) {
|
|
|
this.multipleSelection = val;
|
|
|
console.log(val)
|
|
|
if(this.multipleSelection!=null && this.multipleSelection!=""){
|
|
|
this.batich=false;
|
|
|
}else{
|
|
|
this.batich=true;
|
|
|
}
|
|
|
|
|
|
},
|
|
|
//批量删除
|
|
|
batchdel(){
|
|
|
let ids=[];
|
|
|
this.multipleSelection.forEach(function (item) {
|
|
|
ids.push(item.uuid);
|
|
|
})
|
|
|
this.uuids=ids;
|
|
|
this.udStatus='delete';
|
|
|
this.dialogFormVisible=true;
|
|
|
this.batichboolean=true;
|
|
|
},
|
|
|
//批量申请
|
|
|
batchaplly(){
|
|
|
let ids=[];
|
|
|
this.multipleSelection.forEach(function (item) {
|
|
|
ids.push(item.uuid);
|
|
|
})
|
|
|
sendBatchApllyMt1201(ids).then(res=>{
|
|
|
let response=res.data;
|
|
|
this.code=response.code;
|
|
|
if(this.code=='200'){
|
|
|
this.centerDialogVisible=true;
|
|
|
this.msg=response.msg;
|
|
|
}else{
|
|
|
this.centerDialogVisible=true;
|
|
|
this.msg=response.msg;
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
/*编辑主单信息*/
|
|
|
handleEdit(index, row){
|
...
|
...
|
@@ -1055,40 +1097,56 @@ |
|
|
row.flightno=row.flightno.substring(2);
|
|
|
}
|
|
|
this.temprows= row;
|
|
|
this.batichboolean=false;
|
|
|
},
|
|
|
//提交发送舱单删除报表单
|
|
|
deleteUdForm(formName){
|
|
|
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,
|
|
|
'username':loginUserInfo.username}
|
|
|
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;
|
|
|
}
|
|
|
});
|
|
|
if(this.batichboolean){
|
|
|
let arr={ids:this.uuids,reason:this.Udform.operreason,contactName:loginUserInfo.username,contactTel:this.Udform.opertel,content:''}
|
|
|
sendBatchDelMt1201(arr).then(res=>{
|
|
|
let response=res.data;
|
|
|
this.code=response.code;
|
|
|
if(this.code=='200'){
|
|
|
this.centerDialogVisible=true;
|
|
|
this.msg=response.msg;
|
|
|
}else{
|
|
|
this.centerDialogVisible=true;
|
|
|
this.msg=response.msg;
|
|
|
}
|
|
|
});
|
|
|
}else{
|
|
|
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,
|
|
|
'username':loginUserInfo.username}
|
|
|
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;
|
...
|
...
|
@@ -1320,6 +1378,7 @@ |
|
|
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);
|
...
|
...
|
@@ -1332,4 +1391,4 @@ |
|
|
this.getList();
|
|
|
}
|
|
|
}
|
|
|
</script> |
|
|
\ No newline at end of file |
|
|
</script> |
...
|
...
|
|