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
d50159fd
Commit
d50159fd
authored
Jun 21, 2021
by
季圣华
Browse files
给计量单位录入增加校验
parent
a60cc936
Changes
1
Hide whitespace changes
Inline
Side-by-side
jshERP-web/src/views/system/modules/UnitModal.vue
View file @
d50159fd
...
@@ -67,7 +67,8 @@
...
@@ -67,7 +67,8 @@
]},
]},
ratio
:{
ratio
:{
rules
:
[
rules
:
[
{
required
:
true
,
message
:
'
请输入比例!
'
}
{
required
:
true
,
message
:
'
请输入比例!
'
},
{
validator
:
this
.
validateRatio
}
]}
]}
},
},
}
}
...
@@ -118,6 +119,13 @@
...
@@ -118,6 +119,13 @@
},
},
handleCancel
()
{
handleCancel
()
{
this
.
close
()
this
.
close
()
},
validateRatio
(
rule
,
value
,
callback
)
{
if
(
value
>
1
)
{
callback
();
}
else
{
callback
(
"
比例必须大于1
"
);
}
}
}
}
}
}
}
...
...
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