...
|
...
|
@@ -116,7 +116,6 @@ |
|
|
label="回执信息"
|
|
|
width="180">
|
|
|
</el-table-column>
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
|
prop="operation"
|
|
|
label="操作"
|
...
|
...
|
@@ -362,9 +361,15 @@ |
|
|
</el-col>
|
|
|
<el-col :span="6">
|
|
|
<el-form-item label="海关关区" prop="customcode">
|
|
|
<el-select v-model="ruleForm.customcode" placeholder="" style="display:inline">
|
|
|
<el-option v-for="(item,index) in customcodes" :key="index" :label="item.label"
|
|
|
:value="item.value"></el-option>
|
|
|
<el-select v-model="ruleForm.customcode" filterable placeholder="请选择" style="display:inline">
|
|
|
<el-option
|
|
|
v-for="item in customcodes"
|
|
|
:key="item.customcode"
|
|
|
:label="item.customcode"
|
|
|
:value="item.customcode">
|
|
|
<span style="float: left">{{ item.customcode }}</span>
|
|
|
<span style="float: right; color: #8492a6; font-size: 13px">{{ item.customname }}</span>
|
|
|
</el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
...
|
...
|
@@ -390,11 +395,23 @@ |
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="6">
|
|
|
<el-form-item label="国家代码" prop="awbinfo.shprcountyr">
|
|
|
<!--<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 placeholder="请选择">
|
|
|
<el-option
|
|
|
v-for="item in shprcountyrs"
|
|
|
:key="item.countryCode"
|
|
|
:label="item.countryCode"
|
|
|
:value="item.countryCode">
|
|
|
<span style="float: left">{{ item.countryNameCn }}</span>
|
|
|
<span style="float: right; color: #8492a6; font-size: 13px">{{ item.countryCode }}</span>
|
|
|
</el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="6">
|
...
|
...
|
@@ -421,10 +438,17 @@ |
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="6">
|
|
|
|
|
|
<el-form-item label="国家代码" prop="awbinfo.cnscountyr">
|
|
|
<el-select v-model="ruleForm.awbinfo.cnscountyr" placeholder="" style="display:inline">
|
|
|
<el-option v-for="item in cnscountyrs" :key="item" :label="item"
|
|
|
:value="item"></el-option>
|
|
|
<el-select v-model="ruleForm.awbinfo.cnscountyr" filterable placeholder="请选择">
|
|
|
<el-option
|
|
|
v-for="item in cnscountyrs"
|
|
|
:key="item.countryCode"
|
|
|
:label="item.countryCode"
|
|
|
:value="item.countryCode">
|
|
|
<span style="float: left">{{ item.countryNameCn }}</span>
|
|
|
<span style="float: right; color: #8492a6; font-size: 13px">{{ item.countryCode }}</span>
|
|
|
</el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
...
|
...
|
@@ -522,13 +546,13 @@ |
|
|
</div>
|
|
|
</el-col>
|
|
|
<el-col :span="2.5" class="pub">
|
|
|
<div class="grid-content"><span>主单数:999</span></div>
|
|
|
<div class="grid-content"><span>主单数:{{sumNmmsCount}}</span></div>
|
|
|
</el-col>
|
|
|
<el-col :span="3.5" class="pub">
|
|
|
<div class="grid-content"><span>舱单总件数:999999</span></div>
|
|
|
<div class="grid-content"><span>舱单总件数:{{sumNmmsPrice}}</span></div>
|
|
|
</el-col>
|
|
|
<el-col :span="4" class="pub">
|
|
|
<div class="grid-content"><span>舱单总重量:999999</span></div>
|
|
|
<div class="grid-content"><span>舱单总重量:{{sumNmmsWeight}}</span></div>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
<!--对话提示框-->
|
...
|
...
|
@@ -601,7 +625,7 @@ |
|
|
</style>
|
|
|
|
|
|
<script>
|
|
|
import { getMt1201List,addMt1201,ediMt1201,getFenList } from '../../api/mt1201'
|
|
|
import { getMt1201List,addMt1201,ediMt1201,getFenList,getCountryCode,selectCustomcode } from '../../api/mt1201'
|
|
|
export default {
|
|
|
data() {
|
|
|
/*初始数据*/
|
...
|
...
|
@@ -712,23 +736,8 @@ |
|
|
value: '008',
|
|
|
label: '惰性物料'
|
|
|
}],
|
|
|
customcodes:[
|
|
|
{
|
|
|
value: '-1',
|
|
|
label: '请选择'
|
|
|
},
|
|
|
{
|
|
|
value: '4604',
|
|
|
label: '4604'
|
|
|
},
|
|
|
{
|
|
|
value: '4620',
|
|
|
label: '4620'
|
|
|
},
|
|
|
{
|
|
|
value: '4613',
|
|
|
label: '4613'
|
|
|
}],
|
|
|
customcodes:[],
|
|
|
customcode:'',
|
|
|
rules: {
|
|
|
waybill: [{required: true, message: '请输入运单号', trigger: 'blur'}],
|
|
|
flightno: [{required: true, message: '航班号必须输入', trigger: 'blur'}],
|
...
|
...
|
@@ -757,12 +766,16 @@ |
|
|
},
|
|
|
labelPosition: 'left',
|
|
|
splitcodes: [{value:'T',label:'否'},{value:'P',label:'是'}],
|
|
|
shprcountyrs:['US','CN'],
|
|
|
cnscountyrs:['US','CN'],
|
|
|
shprcountyrs:[],
|
|
|
cnscountyrs:[],
|
|
|
countryCode:'',
|
|
|
msg:'',
|
|
|
code:'',
|
|
|
centerDialogVisible:false,
|
|
|
FenStatus:''
|
|
|
FenStatus:'',
|
|
|
sumNmmsCount:0,
|
|
|
sumNmmsPrice:0,
|
|
|
sumNmmsWeight:0,
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
...
|
...
|
@@ -783,6 +796,8 @@ |
|
|
this.FenQuery.originstation=this.defaultQuery.originstation;
|
|
|
this.FenQuery.destinationstation=row.destinationstation;
|
|
|
this.getFenList(this.FenQuery);
|
|
|
this.getCountryCode();
|
|
|
this.selectCustomcode();
|
|
|
},
|
|
|
/*编辑分单信息*/
|
|
|
handleFen(index,row){
|
...
|
...
|
@@ -817,8 +832,34 @@ |
|
|
getList(){
|
|
|
getMt1201List(this.defaultQuery).then(res =>{
|
|
|
//console.log(res);
|
|
|
this.sumNmmsCount=0;
|
|
|
this.sumNmmsPrice=0;
|
|
|
this.sumNmmsWeight=0;
|
|
|
let response=res.data.data;
|
|
|
this.tableData=response;
|
|
|
response.forEach((item,i) => {
|
|
|
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);
|
|
|
})
|
|
|
});
|
|
|
},
|
|
|
/*获取国家代码*/
|
|
|
getCountryCode(){
|
|
|
let params={};
|
|
|
getCountryCode(params).then(res =>{
|
|
|
//console.log(res);
|
|
|
this.shprcountyrs=res.data.data;
|
|
|
this.cnscountyrs=res.data.data;
|
|
|
});
|
|
|
},
|
|
|
//获取关区代码
|
|
|
selectCustomcode(){
|
|
|
let params={};
|
|
|
selectCustomcode(params).then(res =>{
|
|
|
//console.log(res);
|
|
|
this.customcodes=res.data.data;
|
|
|
});
|
|
|
},
|
|
|
//新增原始舱单按钮
|
...
|
...
|
|