Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
csbr-daop
/
fe-data-trusted-space
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
0f05ea10
authored
2025-03-28 17:22:56 +0800
by
lihua
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
x
1 parent
423d6c2d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
0 deletions
src/views/data_transaction/valuationModelCreate.vue
src/views/data_transaction/valuationModelCreate.vue
View file @
0f05ea1
...
...
@@ -593,6 +593,7 @@ const inputEventChange = (val, scope, field, max: any = null) => {
}
else
{
//需要支持负数
row
[
field
]
=
row
[
field
].
toString
().
replace
(
/
[^\d
.-
]
/g
,
""
)
row
[
field
]
=
row
[
field
].
toString
().
replace
(
/
\.{2,}
/g
,
"."
)
row
[
field
]
=
row
[
field
].
toString
().
replace
(
"."
,
"$#$"
).
replace
(
/
\.
/g
,
""
).
replace
(
"$#$"
,
"."
)
// 第四步:移除整数部分前面不必要的零,但保留小数部分的有效零
if
(
row
[
field
].
startsWith
(
'-'
))
{
// 对于负数,去掉负号进行处理
...
...
Write
Preview
Styling with
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