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
d36573b4
authored
2025-06-25 15:42:24 +0800
by
lxs
Committed by
lihua
2025-06-30 14:34:40 +0800
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
数据定价更新
1 parent
aa347f07
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
src/views/data_pricing/priceModel.vue
src/views/data_pricing/priceModel.vue
View file @
d36573b
...
...
@@ -730,7 +730,7 @@ const setSignatoryTableInfo = (row, isEdit = false) => {
},
{
label
:
"默认值"
,
field
:
"defaultValue"
,
width
:
180
,
align
:
'right'
,
getName
:
(
scope
)
=>
{
return
changeNum
(
scope
.
row
.
defaultValue
,
2
)
||
'-'
return
scope
.
row
.
defaultValue
!==
null
&&
scope
.
row
.
defaultValue
!==
''
?
changeNum
(
scope
.
row
.
defaultValue
,
2
)
:
'-'
}
},
{
...
...
@@ -842,11 +842,11 @@ const inputChange = (val, scope, field) => {
let
strArr
=
val
.
split
(
"."
);
if
(
strArr
.
length
>
1
)
{
let
right
=
strArr
[
1
];
if
(
right
===
""
||
right
.
length
<
2
)
{
row
[
field
]
=
val
=
parseFloat
(
val
||
0
).
toFixed
(
2
);
if
(
right
===
""
||
right
.
length
<
3
)
{
row
[
field
]
=
val
=
parseFloat
(
val
||
0
).
toFixed
(
3
);
}
}
else
{
row
[
field
]
=
val
=
parseFloat
(
val
||
0
).
toFixed
(
2
);
row
[
field
]
=
val
=
parseFloat
(
val
||
0
).
toFixed
(
3
);
}
}
...
...
@@ -857,7 +857,7 @@ const inputEventChange = (val, scope, field) => {
row
[
field
]
=
row
[
field
].
toString
().
replace
(
/
\.{2,}
/g
,
"."
)
row
[
field
]
=
row
[
field
].
toString
().
replace
(
"."
,
"$#$"
).
replace
(
/
\.
/g
,
""
).
replace
(
"$#$"
,
"."
)
row
[
field
]
=
row
[
field
].
toString
().
replace
(
/^
(\-)
*
(\d
+
)\.(\d\d\d\d\d\d)
.*$/
,
"$1$2.$3"
)
row
[
field
]
=
row
[
field
].
toString
().
replace
(
/^
\D
*
(\d{0,12}(?:\.\d{0,
2
})?)
.*$/g
,
"$1"
)
row
[
field
]
=
row
[
field
].
toString
().
replace
(
/^
\D
*
(\d{0,12}(?:\.\d{0,
3
})?)
.*$/g
,
"$1"
)
}
// 设置表格合并下标
...
...
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