Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-app-customer-new-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lanbaoming
jiedao-app-customer-new-master
Commits
e0706a1d
Commit
e0706a1d
authored
Mar 01, 2025
by
Smile
Committed by
wux
Mar 21, 2025
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug291客户APP、H5、WEB端唛头没有限制不能输入中文,需限制与管理端新建订单的规则一样
parent
2ea9e883
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
0 deletions
+11
-0
create_order.vue
src/pages/create_order/create_order.vue
+8
-0
notices.js
src/static/lang/en/notices.js
+1
-0
notices.js
src/static/lang/fr/notices.js
+1
-0
notices.js
src/static/lang/zh/notices.js
+1
-0
No files found.
src/pages/create_order/create_order.vue
View file @
e0706a1d
...
...
@@ -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
,
...
...
src/static/lang/en/notices.js
View file @
e0706a1d
...
...
@@ -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
"
,
...
...
src/static/lang/fr/notices.js
View file @
e0706a1d
...
...
@@ -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
"
,
...
...
src/static/lang/zh/notices.js
View file @
e0706a1d
...
...
@@ -37,6 +37,7 @@ export default {
"
startCity
"
:
"
请选择始发地
"
,
"
endCity
"
:
"
请选择目的地
"
,
"
marksIn
"
:
"
请输入唛头
"
,
"
marksOnlyNumberAndLetters
"
:
"
唛头只能是字母和数字
"
,
"
marksNum
"
:
"
唛头不能以数字开头
"
,
"
customsType
"
:
"
请选择单证报关
"
,
"
date
"
:
"
请选择送货日期
"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment