Commit 853ae3d8 authored by Smile's avatar Smile Committed by wux

bug291客户APP、H5、WEB端唛头没有限制不能输入中文,需限制与管理端新建订单的规则一样

parent f85c8173
......@@ -1854,6 +1854,14 @@ export default {
icon:"none",
})
}*/
// 必须是字母和数字
let reg = /^[a-zA-Z0-9 ]*$/;
if (!reg.test(this.params.marks)) {
return uni.showToast({
title: this.$lang.lang.notices.marksOnlyNumberAndLetters,
icon:"none",
})
}
if(this.params.customsType==''||this.params.customsType==null){
return uni.showToast({
title: this.$lang.lang.notices.customsType,
......
......@@ -37,6 +37,7 @@ export default {
"startCity": "Warehouse of loading",
"endCity": "Destination",
"marksIn": "Marks",
"marksOnlyNumberAndLetters":"The mark can only consist of letters and numbers.",
"marksNum": "Can't start with a number",
"customsType": "Document declaration",
"date": "Estimated Delivery Date",
......
......@@ -37,6 +37,7 @@ export default {
"startCity": "entrepôt de chargement",
"endCity": "destination",
"marksIn": "marques",
"marksOnlyNumberAndLetters":"La marque ne peut être composée que de lettres et de chiffres",
"marksNum": "ne peut pas commencer par un chiffre",
"customsType": "déclaration de document",
"date": "date de livraison",
......
......@@ -37,6 +37,7 @@ export default {
"startCity": "请选择始发地",
"endCity": "请选择目的地",
"marksIn": "请输入唛头",
"marksOnlyNumberAndLetters": "唛头只能是字母和数字",
"marksNum": "唛头不能以数字开头",
"customsType": "请选择单证报关",
"date": "请选择送货日期",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment