...
|
...
|
@@ -1346,7 +1346,7 @@ Handling Information |
|
|
<el-row style="margin-bottom: -5px">
|
|
|
<el-col style="width: 95%">
|
|
|
<el-form-item>
|
|
|
<el-input v-model="addForm.cvd.cvd_charge_code" auto-complete="off" placeholder="收费代码" size="mini"></el-input>
|
|
|
<el-input v-model="addForm.cvd.cvd_charge_code" disabled auto-complete="off" placeholder="收费代码" size="mini"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
</el-row>
|
...
|
...
|
@@ -1691,6 +1691,8 @@ Handling Information |
|
|
<el-form-item>
|
|
|
<el-input minlength="1" maxlength="20" onkeyup="this.value=this.value.toUpperCase()"
|
|
|
@keyup.native="addForm.hbs.hbs_manifest_description.replace(/[^A-Za-z0-9\s]/g,'')"
|
|
|
:max-length="15"
|
|
|
@paste.native="handlePaste($event, 15)"
|
|
|
v-model="addForm.hbs.hbs_manifest_description" auto-complete="off" placeholder="货物品名" size="mini"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
...
|
...
|
@@ -2119,27 +2121,27 @@ Handling Information |
|
|
},
|
|
|
cvd:{
|
|
|
cvd_amount_of_insurance:'XXX',
|
|
|
cvd_charge_code:'',
|
|
|
cvd_charge_code:'PP',
|
|
|
cvd_charge_prepaid:'PP',
|
|
|
cvd_currency_code:'',
|
|
|
cvd_currency_code:'EUR',
|
|
|
cvd_value_for_carriage:'NVD',
|
|
|
cvd_value_for_customs:'NCV',
|
|
|
},
|
|
|
flt:{
|
|
|
cariier:"",
|
|
|
day:'',
|
|
|
flightNumber:'',
|
|
|
cariier2:"",
|
|
|
day2:'',
|
|
|
flightNumber2:'',
|
|
|
cariier:"HQ",
|
|
|
day:'02',
|
|
|
flightNumber:'405',
|
|
|
cariier2:"HQ",
|
|
|
day2:'02',
|
|
|
flightNumber2:'4055',
|
|
|
cariier3:"",
|
|
|
day3:'',
|
|
|
flightNumber3:'',
|
|
|
},
|
|
|
isu:{
|
|
|
isu_day_mounth_year:'',
|
|
|
isu_place_or_airport_code:'',
|
|
|
isu_signature:'',
|
|
|
isu_day_mounth_year:'2024-11-01',
|
|
|
isu_place_or_airport_code:'ZHENGZHOU',
|
|
|
isu_signature:'CHINA',
|
|
|
},
|
|
|
nfy:{
|
|
|
nfy_contacts:[],
|
...
|
...
|
@@ -2201,10 +2203,10 @@ Handling Information |
|
|
}
|
|
|
,
|
|
|
rtg:{
|
|
|
destinationAirport:'',
|
|
|
destinationCarrier:'',
|
|
|
onwardAirport:'',
|
|
|
onwardCarrier:'',
|
|
|
destinationAirport:'SOF',
|
|
|
destinationCarrier:'HQ',
|
|
|
onwardAirport:'LGG',
|
|
|
onwardCarrier:'HQ',
|
|
|
onwardAirport3:'',
|
|
|
onwardCarrier3:'',
|
|
|
},
|
...
|
...
|
@@ -2219,13 +2221,13 @@ Handling Information |
|
|
shp_postcode:'',
|
|
|
},
|
|
|
ssr:{
|
|
|
ssr_request_content:[],
|
|
|
ssr_request_content:["BUP DO NOT BREAKDOWN"],
|
|
|
},
|
|
|
cer:{
|
|
|
cer_signature:''
|
|
|
cer_signature:'GATE INTERNATIONAL'
|
|
|
}
|
|
|
},
|
|
|
ssr_content:"",
|
|
|
ssr_content:"BUP DO NOT BREAKDOWN",
|
|
|
cne_contact:{
|
|
|
contact_id:'TE',
|
|
|
contact_number:'',
|
...
|
...
|
@@ -2303,7 +2305,7 @@ Handling Information |
|
|
},
|
|
|
// 分单
|
|
|
addForm:{
|
|
|
companyName1:'',
|
|
|
companyName1:'Q',
|
|
|
fhl:{
|
|
|
waybillNum:'',
|
|
|
quantity_weight_code:'',
|
...
|
...
|
@@ -2392,6 +2394,32 @@ Handling Information |
|
|
}
|
|
|
},
|
|
|
methods:{
|
|
|
handlePaste(event, maxLength) {
|
|
|
// 阻止默认的粘贴行为
|
|
|
event.preventDefault();
|
|
|
// 获取粘贴的内容
|
|
|
let pasteData = (event.clipboardData || window.clipboardData).getData('text').toUpperCase();
|
|
|
// 获取当前输入框的内容
|
|
|
let currentValue = this.addForm.hbs.hbs_manifest_description;
|
|
|
// 计算总长度
|
|
|
let totalLength = currentValue.length + pasteData.length;
|
|
|
if (totalLength > 15) {
|
|
|
// 如果总长度超过15,只粘贴允许的部分
|
|
|
pasteData = pasteData.slice(0, 15 - currentValue.length);
|
|
|
}
|
|
|
// 更新输入框的内容
|
|
|
this.addForm.hbs.hbs_manifest_description += pasteData;
|
|
|
// 再次限制总长度
|
|
|
this.addForm.hbs.hbs_manifest_description = this.limitInputLength(this.addForm.hbs.hbs_manifest_description);
|
|
|
},
|
|
|
|
|
|
limitInputLength(value, maxLength) {
|
|
|
// 如果输入值的长度超过15,则截取前15个字符
|
|
|
if (value.length > 15) {
|
|
|
return value.slice(0, 15);
|
|
|
}
|
|
|
return value;
|
|
|
},
|
|
|
handleInput(value) {
|
|
|
// 这里可以进一步处理输入值,例如去空格等
|
|
|
this.form.bill.waybillNum = value.trim();
|
...
|
...
|
@@ -2701,6 +2729,7 @@ Handling Information |
|
|
this.addForm.fhl.origin = res.data.data.origin;
|
|
|
this.addForm.fhl.destination = res.data.data.destination;
|
|
|
this.addForm.fhl.quantity_weight_code = res.data.data.quantity_weight_code;
|
|
|
this.addForm.hbs.hbs_origin=res.data.data.origin;
|
|
|
}
|
|
|
return this.$message.success(res.data.msg);
|
|
|
}
|
...
|
...
|
|