作者 zhuzhaoping

合并分支 'ExportOrder' 到 'master'

Export order



查看合并请求 !33
... ... @@ -21,15 +21,17 @@
"eslint-plugin-html": "^6.0.2",
"eslint-plugin-vue": "^8.7.1",
"fecha": "^4.2.0",
"file-saver": "^2.0.2",
"file-saver": "^2.0.5",
"font-awesome": "^4.7.0",
"form-gen-parser": "^1.0.3",
"fs": "0.0.1-security",
"html2canvas": "^1.4.1",
"install": "^0.12.2",
"js-cookie": "^2.2.1",
"js-file-download": "^0.4.12",
"jspdf": "^1.5.3",
"jszip": "^3.2.2",
"minio": "^8.0.1",
"moment": "^2.29.4",
"npm": "^6.8.0",
"nprogress": "^0.2.0",
... ... @@ -46,6 +48,7 @@
"xlsx": "^0.15.6"
},
"devDependencies": {
"@babel/plugin-syntax-class-properties": "^7.12.13",
"autoprefixer": "^6.7.2",
"axios-mock-adapter": "^1.7.1",
"babel-core": "^6.22.1",
... ...
... ... @@ -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);
}
... ...