Commit e0706a1d authored by Smile's avatar Smile Committed by wux

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

parent 2ea9e883
...@@ -1854,6 +1854,14 @@ export default { ...@@ -1854,6 +1854,14 @@ export default {
icon:"none", 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){ if(this.params.customsType==''||this.params.customsType==null){
return uni.showToast({ return uni.showToast({
title: this.$lang.lang.notices.customsType, title: this.$lang.lang.notices.customsType,
......
...@@ -37,6 +37,7 @@ export default { ...@@ -37,6 +37,7 @@ export default {
"startCity": "Warehouse of loading", "startCity": "Warehouse of loading",
"endCity": "Destination", "endCity": "Destination",
"marksIn": "Marks", "marksIn": "Marks",
"marksOnlyNumberAndLetters":"The mark can only consist of letters and numbers.",
"marksNum": "Can't start with a number", "marksNum": "Can't start with a number",
"customsType": "Document declaration", "customsType": "Document declaration",
"date": "Estimated Delivery Date", "date": "Estimated Delivery Date",
......
...@@ -37,6 +37,7 @@ export default { ...@@ -37,6 +37,7 @@ export default {
"startCity": "entrepôt de chargement", "startCity": "entrepôt de chargement",
"endCity": "destination", "endCity": "destination",
"marksIn": "marques", "marksIn": "marques",
"marksOnlyNumberAndLetters":"La marque ne peut être composée que de lettres et de chiffres",
"marksNum": "ne peut pas commencer par un chiffre", "marksNum": "ne peut pas commencer par un chiffre",
"customsType": "déclaration de document", "customsType": "déclaration de document",
"date": "date de livraison", "date": "date de livraison",
......
...@@ -37,6 +37,7 @@ export default { ...@@ -37,6 +37,7 @@ export default {
"startCity": "请选择始发地", "startCity": "请选择始发地",
"endCity": "请选择目的地", "endCity": "请选择目的地",
"marksIn": "请输入唛头", "marksIn": "请输入唛头",
"marksOnlyNumberAndLetters": "唛头只能是字母和数字",
"marksNum": "唛头不能以数字开头", "marksNum": "唛头不能以数字开头",
"customsType": "请选择单证报关", "customsType": "请选择单证报关",
"date": "请选择送货日期", "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