...
|
...
|
@@ -109,7 +109,7 @@ |
|
|
<el-table-column
|
|
|
prop="status"
|
|
|
label="状态"
|
|
|
width="100">
|
|
|
width="100" :formatter="formatStatus">
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
|
prop="customText"
|
...
|
...
|
@@ -352,8 +352,8 @@ |
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="6">
|
|
|
<el-form-item label="海关状态" prop="ext5">
|
|
|
<el-select v-model="ruleForm.ext5" placeholder="" style="display:inline">
|
|
|
<el-form-item label="海关状态" prop="awbinfo.awbtype">
|
|
|
<el-select v-model="ruleForm.awbinfo.awbtype" placeholder="" style="display:inline">
|
|
|
<el-option v-for="(item,index) in customext5" :key="index" :label="item.label"
|
|
|
:value="item.value"></el-option>
|
|
|
</el-select>
|
...
|
...
|
@@ -401,12 +401,6 @@ |
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="6">
|
|
|
<!--<el-form-item label="国家代码" prop="awbinfo.shprcountyr">
|
|
|
<el-select v-model="ruleForm.awbinfo.shprcountyr" placeholder="" style="display:inline">
|
|
|
<el-option v-for="item in shprcountyrs" :key="item" :label="item"
|
|
|
:value="item"></el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>-->
|
|
|
<el-form-item label="国家代码" prop="awbinfo.shprcountyr">
|
|
|
<el-select v-model="ruleForm.awbinfo.shprcountyr"
|
|
|
filterable
|
...
|
...
|
@@ -589,7 +583,7 @@ |
|
|
</el-row>
|
|
|
<!--发送删除报修改报提示框-->
|
|
|
<el-row>
|
|
|
<el-dialog title="提交修改信息" :visible.sync="dialogFormVisible">
|
|
|
<el-dialog :title="'提交'+Reason[udStatus]+'信息'" :visible.sync="dialogFormVisible">
|
|
|
<el-form :model="Udform" :rules="udrules" ref="Udform" class="demo-ruleForm">
|
|
|
<el-form-item label="操作原因" prop="operreason">
|
|
|
<el-input type="textarea" v-model="Udform.operreason"></el-input>
|
...
|
...
|
@@ -603,7 +597,7 @@ |
|
|
</el-form>
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
<el-button @click="dialogFormVisible = false">取 消</el-button>
|
|
|
<el-button type="primary" @click="submitUdForm('Udform')">确 定</el-button>
|
|
|
<el-button type="primary" @click="udStatus==='delete'?deleteUdForm('Udform'):updateUdForm('Udform')">确 定</el-button>
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
</el-row>
|
...
|
...
|
@@ -663,7 +657,7 @@ |
|
|
</style>
|
|
|
|
|
|
<script>
|
|
|
import { getMt1201List,addMt1201,ediMt1201,getFenList,getCountryCode,selectCustomcode } from '../../api/mt1201'
|
|
|
import { getMt1201List,addMt1201,ediMt1201,getFenList,getCountryCode,selectCustomcode,sendCreateMt1201,sendEditeMt1201,sendRemoveMt1201 } from '../../api/mt1201'
|
|
|
import{addResponse} from "../../api/InResponse";
|
|
|
|
|
|
export default {
|
...
|
...
|
@@ -694,6 +688,10 @@ |
|
|
update: '编辑',
|
|
|
create: '添加'
|
|
|
},
|
|
|
Reason:{
|
|
|
update: '修改',
|
|
|
delete: '删除'
|
|
|
},
|
|
|
ruleForm: {
|
|
|
awba: undefined,
|
|
|
awbh: undefined,
|
...
|
...
|
@@ -709,8 +707,7 @@ |
|
|
splitcode: 'T',
|
|
|
uldType: undefined,
|
|
|
uldNo: undefined,
|
|
|
status: undefined,
|
|
|
ext5:'-1',
|
|
|
status: '22',
|
|
|
awbinfo: {
|
|
|
specopeid: undefined,
|
|
|
shprname: undefined,
|
...
|
...
|
@@ -742,41 +739,18 @@ |
|
|
csgcustomerid: undefined,
|
|
|
paymodel: 'PP',
|
|
|
pcs: undefined,
|
|
|
weight: undefined
|
|
|
weight: undefined,
|
|
|
awbtype:'001',
|
|
|
},
|
|
|
waybill:undefined
|
|
|
},
|
|
|
paymodel:[{value:'PP',label:'预付'},{value:'DP',label:'到付'}],
|
|
|
customext5: [
|
|
|
{
|
|
|
value: '-1',
|
|
|
label: '请选择'
|
|
|
},
|
|
|
{
|
|
|
value: '001',
|
|
|
label: '进出口货物'
|
|
|
},
|
|
|
{
|
|
|
value: '002',
|
|
|
label: '国际转运货物'
|
|
|
},
|
|
|
{
|
|
|
value: '003',
|
|
|
label: '过境货物'
|
|
|
},
|
|
|
{
|
|
|
value: '004',
|
|
|
label: '暂时进出境集装箱'
|
|
|
},
|
|
|
{
|
|
|
value: '007',
|
|
|
label: '互市贸易'
|
|
|
},
|
|
|
{
|
|
|
value: '008',
|
|
|
label: '惰性物料'
|
|
|
}
|
|
|
],
|
|
|
customext5: [
|
|
|
{value:'001',label:'普通货物'},
|
|
|
{value:'002',label:'国际转运货物'},
|
|
|
{value:'003',label:'国内转关'},
|
|
|
{value:'004',label:'空箱'},
|
|
|
{value:'005',label:'快件'}],
|
|
|
customcodes:[],
|
|
|
customcode:'',
|
|
|
rules: {
|
...
|
...
|
@@ -802,6 +776,7 @@ |
|
|
'awbinfo.cnsnaddress': [{required: true, message: '收获地址不能为空', trigger: 'blur'}],
|
|
|
'awbinfo.cnscountyr': [{required: true, message: '国家代码不能为空', trigger: 'change'}],
|
|
|
'awbinfo.paymodel':[{required: true, message: '付费方式必须选择', trigger: 'change'}],
|
|
|
'awbinfo.awbtype':[{required: true, message: '海关状态必须选择', trigger: 'change'}],
|
|
|
customcode:[{required: true, message: '海关关区必须选择', trigger: 'change'}],
|
|
|
goodsname:[{required: true, message: '货物描述必须填写', trigger: 'blur'}]
|
|
|
},
|
...
|
...
|
@@ -839,15 +814,26 @@ |
|
|
operperson: [{required: true, message: '请输入操作人', trigger: 'blur'}],
|
|
|
opertel: [{required: true, message: '请输入操作人联系电话', trigger: 'blur'}],
|
|
|
},
|
|
|
udStatus:'',
|
|
|
loading:false,
|
|
|
rows:{}
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
//状态识别
|
|
|
formatStatus: function(row,column){
|
|
|
return row.status=='01'?'接受申报':row.status=='02'?'待人工审核':row.status=='03'?'退单'
|
|
|
:row.status=='11'?'放行':row.status=='12'?'拒装':row.status=='13'?'禁卸'
|
|
|
:row.status=='21'?'可自动发送':row.status=='22'?'未发送':row.status=='23'?'已发送新增报'
|
|
|
:row.status=='24'?'已发送删除报':row.status=='25'?'已发送修改报':'';
|
|
|
},
|
|
|
/*多选框功能*/
|
|
|
handleSelectionChange(val) {
|
|
|
this.multipleSelection = val;
|
|
|
},
|
|
|
/*编辑主单信息*/
|
|
|
handleEdit(index, row){
|
|
|
console.log(row)
|
|
|
this.outerVisible = true;
|
|
|
this.dialogStatus='update';
|
|
|
this.FenStatus='ediAwbh';
|
...
|
...
|
@@ -859,8 +845,6 @@ |
|
|
this.FenQuery.originstation=this.defaultQuery.originstation;
|
|
|
this.FenQuery.destinationstation=row.destinationstation;
|
|
|
this.getFenList(this.FenQuery);
|
|
|
this.getCountryCode();
|
|
|
this.selectCustomcode();
|
|
|
},
|
|
|
/*编辑分单信息*/
|
|
|
handleFen(index,row){
|
...
|
...
|
@@ -873,11 +857,81 @@ |
|
|
|
|
|
},
|
|
|
//发送舱单报
|
|
|
handleSend(index,row){},
|
|
|
handleSend(index,row){
|
|
|
if(row.flightno.length>4){
|
|
|
row.flightno=row.flightno.substring(2)
|
|
|
}else{
|
|
|
row.flightno=row.flightno;
|
|
|
}
|
|
|
const map = {'mt1201':row}
|
|
|
sendCreateMt1201(map).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;
|
|
|
}else{
|
|
|
this.outerVisible = false;
|
|
|
this.centerDialogVisible=true;
|
|
|
this.msg=response.msg;
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
//发送舱单删除报
|
|
|
handleDelete(index,row){
|
|
|
this.udStatus='delete';
|
|
|
this.dialogFormVisible=true;
|
|
|
this.Udform.awbano=row.awba;
|
|
|
this.Udform.awbhno=row.awbh;
|
|
|
this.Udform.carrier=row.carrier;
|
|
|
this.Udform.flightno=row.flightno.substring(2);
|
|
|
this.Udform.flightdate=row.flightdate;
|
|
|
this.Udform.bustype='MT1201';
|
|
|
this.Udform.busdate=Date.parse(new Date());
|
|
|
this.Udform.busweight=row.weight;
|
|
|
this.Udform.buspiece=row.piece;
|
|
|
this.Udform.opertype='发送舱单删除报';
|
|
|
if(row.flightno.length>4){
|
|
|
row.flightno=row.flightno;
|
|
|
}else{
|
|
|
row.flightno=row.carrier+row.flightno;
|
|
|
};
|
|
|
this.rows=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}
|
|
|
sendRemoveMt1201(map).then(res=>{
|
|
|
let response=res.data;
|
|
|
//console.log(res);
|
|
|
this.code=response.code;
|
|
|
if(this.code=='200'){
|
|
|
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;
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
/*发送舱单修改报*/
|
|
|
handleUpdate(index,row){
|
|
|
this.udStatus='update';
|
|
|
this.dialogFormVisible=true;
|
|
|
//console.log(row);
|
|
|
this.Udform.awbano=row.awba;
|
|
|
this.Udform.awbhno=row.awbh;
|
|
|
this.Udform.carrier=row.carrier;
|
...
|
...
|
@@ -888,32 +942,37 @@ |
|
|
this.Udform.busweight=row.weight;
|
|
|
this.Udform.buspiece=row.piece;
|
|
|
this.Udform.opertype='发送舱单修改报';
|
|
|
if(row.flightno.length>4){
|
|
|
row.flightno=row.flightno.substring(2);
|
|
|
}else{
|
|
|
row.flightno=row.flightno;
|
|
|
};
|
|
|
this.rows=row;
|
|
|
},
|
|
|
//提交发送舱单修改报表单
|
|
|
submitUdForm(formName){
|
|
|
updateUdForm(formName){
|
|
|
this.$refs[formName].validate((valid) => {
|
|
|
if (valid) {
|
|
|
console.log(this.Udform)
|
|
|
addResponse(this.Udform).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.dialogFormVisible=false;
|
|
|
}else{
|
|
|
this.outerVisible = false;
|
|
|
this.centerDialogVisible=true;
|
|
|
this.$refs[formName].resetFields();
|
|
|
this.msg=response.msg;
|
|
|
}
|
|
|
});
|
|
|
} else {
|
|
|
console.log('error submit!!');
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
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.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;
|
|
|
}
|
|
|
});
|
|
|
});
|
|
|
},
|
|
|
/*编辑分单列表信息*/
|
...
|
...
|
|