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 00fda0c2
authored
Sep 03, 2025
by
chenwq
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix(financeManage): 优化系统账单对话框金额验证逻辑
合并金额范围的验证条件,简化错误提示信息
1 parent
86b9f1bc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
src/views/financeManage/components/SystemBillDialog.vue
src/views/financeManage/components/SystemBillDialog.vue
View file @
00fda0c
...
@@ -497,11 +497,9 @@ export default {
...
@@ -497,11 +497,9 @@ export default {
const
totalPaymentObj
=
this
.
tmplFieldsList
.
find
(
item
=>
item
.
fieldCode
==
'totalPaymentAmount'
)
const
totalPaymentObj
=
this
.
tmplFieldsList
.
find
(
item
=>
item
.
fieldCode
==
'totalPaymentAmount'
)
var
errorTxt
=
''
var
errorTxt
=
''
const
max
=
this
.
tableList
[
rowIndex
][
totalPaymentObj
.
extInfo
.
source
].
totalPaymentAmount
||
'0'
const
max
=
this
.
tableList
[
rowIndex
][
totalPaymentObj
.
extInfo
.
source
].
totalPaymentAmount
||
'0'
const
min
=
(
this
.
tableList
[
rowIndex
][
totalPaymentObj
.
extInfo
.
source
].
totalPaymentAmount
*
-
1
).
toFixed
(
2
)
||
'0'
const
min
=
parseFloat
((
this
.
tableList
[
rowIndex
][
totalPaymentObj
.
extInfo
.
source
].
totalPaymentAmount
*
-
1
).
toFixed
(
2
))
||
'0'
if
(
value
>
max
)
{
if
(
value
>
max
||
value
<
min
)
{
errorTxt
=
`请输入小于
${
max
}
的数字`
errorTxt
=
`请输入大于
${
min
}
且小于
${
max
}
的数字`
}
else
if
(
value
<
min
)
{
errorTxt
=
`请输入大于
${
min
}
的数字`
}
else
if
(
value
!==
null
&&
value
!==
undefined
&&
value
!==
''
)
{
}
else
if
(
value
!==
null
&&
value
!==
undefined
&&
value
!==
''
)
{
const
decimalPart
=
String
(
value
).
split
(
'.'
)[
1
]
const
decimalPart
=
String
(
value
).
split
(
'.'
)[
1
]
if
(
decimalPart
&&
decimalPart
.
length
>
2
)
{
if
(
decimalPart
&&
decimalPart
.
length
>
2
)
{
...
...
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