Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
dj-car-life-system
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit a6efab96
authored
Oct 06, 2025
by
wangzhihui
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
bug修复
1 parent
4a8ec41e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
24 deletions
src/common/constants.js
src/views/usedCarManagement/evaluationManagement/components/assess.vue
src/common/constants.js
View file @
a6efab9
...
...
@@ -1510,7 +1510,7 @@ export const usageTypeOpt = [
//所有人性质
export
const
ownerTypeOpt
=
[
{
confId
:
"1"
,
confValue
:
"个人"
},
{
confId
:
"2"
,
confValue
:
"
公司
"
}
{
confId
:
"2"
,
confValue
:
"
单位
"
}
]
//车辆类别
export
const
vehicleCategoryOpt
=
[
...
...
src/views/usedCarManagement/evaluationManagement/components/assess.vue
View file @
a6efab9
...
...
@@ -40,7 +40,7 @@ export default {
name
:
"evalPrice"
,
type
:
"input"
,
isClear
:
true
,
maxlength
:
11
,
maxlength
:
7
,
width
:
"570px"
,
placeholder
:
"请输入"
,
append
:
"元"
...
...
@@ -70,9 +70,9 @@ export default {
callback
()
return
}
// 校验是否为
有效数字
if
(
!
/^
\d
+
(\.\d
+
)?
$/
.
test
(
value
))
{
callback
(
new
Error
(
"
请输入有效的数字格式
"
))
// 校验是否为
整数
if
(
!
/^
\d
+$/
.
test
(
value
))
{
callback
(
new
Error
(
"
只能输入整数
"
))
}
else
{
callback
()
}
...
...
@@ -85,28 +85,13 @@ export default {
callback
()
return
}
// 校验小数位数不超过两位
if
(
!
/^
\d
+
(\.\d{1,2})?
$/
.
test
(
value
))
{
callback
(
new
Error
(
"最多只能输入两位小数"
))
}
else
{
callback
()
}
},
trigger
:
"blur"
},
{
validator
:
(
rule
,
value
,
callback
)
=>
{
if
(
!
value
)
{
callback
()
return
}
const
numValue
=
parseFloat
(
value
)
const
numValue
=
parseInt
(
value
,
10
)
if
(
isNaN
(
numValue
))
{
callback
(
new
Error
(
"请输入有效
数字
"
))
callback
(
new
Error
(
"请输入有效
整数
"
))
}
else
if
(
numValue
<=
0
)
{
callback
(
new
Error
(
"评估价必须大于0"
))
}
else
if
(
numValue
>
9999999
.99
)
{
callback
(
new
Error
(
"评估价必须小于9999999
.99
"
))
}
else
if
(
numValue
>
9999999
)
{
callback
(
new
Error
(
"评估价必须小于9999999"
))
}
else
{
callback
()
}
...
...
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