Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
dj-car-boutique-work-wechat
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
1
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit edc4a55b
authored
Nov 24, 2025
by
chenwq
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
优化本月二拓门店的输入验证,限制输入范围为0-1000
1 parent
5c1dde0b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
tabWorkOrder/pages/supervisorDaily/ruleFnObj.js
tabWorkOrder/pages/supervisorDaily/ruleFnObj.js
View file @
edc4a55
...
@@ -77,6 +77,10 @@ export const tempRuleFnObj = {
...
@@ -77,6 +77,10 @@ export const tempRuleFnObj = {
/** 本月二拓门店 */
/** 本月二拓门店 */
monthlySecondExpansionStore
:
{
monthlySecondExpansionStore
:
{
ruleFn
:
(
rule
,
value
)
=>
{
ruleFn
:
(
rule
,
value
)
=>
{
const
maxValue
=
1000
if
(
value
<
0
||
value
>
maxValue
)
{
return
{
message
:
`本月二拓门店请输入0-
${
maxValue
}
`
}
}
return
/^$|^
\d{1}
$|^
[
1-9
]\d{0,3}
$/
.
test
(
value
)
?
null
:
{
message
:
'本月二拓门店请输入四位数字'
}
return
/^$|^
\d{1}
$|^
[
1-9
]\d{0,3}
$/
.
test
(
value
)
?
null
:
{
message
:
'本月二拓门店请输入四位数字'
}
}
}
},
},
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment