Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
JSH ERP
Commits
e2aaf4ba
Commit
e2aaf4ba
authored
Dec 16, 2022
by
季圣华
Browse files
优化商品条码的格式
parent
48487866
Changes
1
Hide whitespace changes
Inline
Side-by-side
jshERP-web/src/views/material/modules/MaterialModal.vue
View file @
e2aaf4ba
...
...
@@ -337,8 +337,8 @@
{
title
:
'
条码
'
,
key
:
'
barCode
'
,
width
:
'
15%
'
,
type
:
FormTypes
.
input
,
defaultValue
:
''
,
placeholder
:
'
请输入${title}
'
,
validateRules
:
[{
required
:
true
,
message
:
'
${title}不能为空
'
},
{
pattern
:
/
^
[
1-9
]\d
*$/
,
message
:
'
请输入零以上的正整数
'
},
{
pattern
:
/^
\d
{4,
13
}
$/
,
message
:
'
4到13位数字
'
},
{
pattern
:
/
[^
%&',;=?$x22
]
+$/
,
message
:
'
含有%&
\'
,;=?$"等字符
'
},
{
pattern
:
/^
.
{4,
40
}
$/
,
message
:
'
长度为4到40位
'
},
{
handler
:
this
.
validateBarCode
}]
},
{
...
...
Write
Preview
Supports
Markdown
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