...
|
...
|
@@ -361,9 +361,13 @@ |
|
|
</el-col>
|
|
|
<el-col :span="6">
|
|
|
<el-form-item label="海关关区" prop="customcode">
|
|
|
<el-select v-model="ruleForm.customcode" filterable
|
|
|
<el-select v-model="ruleForm.customcode"
|
|
|
filterable
|
|
|
allow-create
|
|
|
default-first-option filterable placeholder="请选择" style="display:inline">
|
|
|
default-first-option
|
|
|
remote
|
|
|
:remote-method="remoteMethod2"
|
|
|
:loading="loading" placeholder="请选择" style="display:inline">
|
|
|
<el-option
|
|
|
v-for="item in customcodes"
|
|
|
:key="item.customcode"
|
...
|
...
|
@@ -404,9 +408,13 @@ |
|
|
</el-select>
|
|
|
</el-form-item>-->
|
|
|
<el-form-item label="国家代码" prop="awbinfo.shprcountyr">
|
|
|
<el-select v-model="ruleForm.awbinfo.shprcountyr" filterable
|
|
|
<el-select v-model="ruleForm.awbinfo.shprcountyr"
|
|
|
filterable
|
|
|
allow-create
|
|
|
default-first-option filterable placeholder="请选择">
|
|
|
default-first-option
|
|
|
remote
|
|
|
:remote-method="remoteMethod"
|
|
|
:loading="loading" placeholder="请选择">
|
|
|
<el-option
|
|
|
v-for="item in shprcountyrs"
|
|
|
:key="item.countryCode"
|
...
|
...
|
@@ -444,9 +452,13 @@ |
|
|
<el-col :span="6">
|
|
|
|
|
|
<el-form-item label="国家代码" prop="awbinfo.cnscountyr">
|
|
|
<el-select v-model="ruleForm.awbinfo.cnscountyr" filterable
|
|
|
<el-select v-model="ruleForm.awbinfo.cnscountyr"
|
|
|
filterable
|
|
|
allow-create
|
|
|
default-first-option filterable placeholder="请选择">
|
|
|
default-first-option
|
|
|
remote
|
|
|
:remote-method="remoteMethod"
|
|
|
:loading="loading" placeholder="请选择">
|
|
|
<el-option
|
|
|
v-for="item in cnscountyrs"
|
|
|
:key="item.countryCode"
|
...
|
...
|
@@ -763,7 +775,8 @@ |
|
|
{
|
|
|
value: '008',
|
|
|
label: '惰性物料'
|
|
|
}],
|
|
|
}
|
|
|
],
|
|
|
customcodes:[],
|
|
|
customcode:'',
|
|
|
rules: {
|
...
|
...
|
@@ -938,20 +951,40 @@ |
|
|
});
|
|
|
},
|
|
|
/*获取国家代码*/
|
|
|
getCountryCode(){
|
|
|
let params={};
|
|
|
remoteMethod:function(query){
|
|
|
this.shprcountyrs=[];
|
|
|
this.cnscountyrs=[];
|
|
|
let params={countryCode:query};
|
|
|
this.loading = true;
|
|
|
getCountryCode(params).then(res =>{
|
|
|
//console.log(res);
|
|
|
if (res !== '') {
|
|
|
setTimeout(() => {
|
|
|
this.loading = false;
|
|
|
this.shprcountyrs=res.data.data;
|
|
|
this.cnscountyrs=res.data.data;
|
|
|
}, 200);
|
|
|
} else {
|
|
|
this.shprcountyrs = [];
|
|
|
this.cnscountyrs=[];
|
|
|
}
|
|
|
|
|
|
});
|
|
|
},
|
|
|
//获取关区代码
|
|
|
selectCustomcode(){
|
|
|
let params={};
|
|
|
remoteMethod2:function(query){
|
|
|
this.customcodes=[];
|
|
|
let params={customcode:query};
|
|
|
this.loading = true;
|
|
|
selectCustomcode(params).then(res =>{
|
|
|
//console.log(res);
|
|
|
if (res !== '') {
|
|
|
setTimeout(() => {
|
|
|
this.loading = false;
|
|
|
this.customcodes=res.data.data;
|
|
|
}, 200);
|
|
|
} else {
|
|
|
this.customcodes = [];
|
|
|
}
|
|
|
|
|
|
});
|
|
|
},
|
|
|
//新增原始舱单按钮
|
...
|
...
|
|