Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-platform
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
shenshaokai
jinfa-platform
Commits
9963e260
Commit
9963e260
authored
Apr 26, 2022
by
前端-许佳敏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修复合同详情页面时,处理金额需保留三位小数
parent
236282f3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
Fromtable.tsx
src/pages/contract/manage/add/components/Fromtable.tsx
+3
-3
No files found.
src/pages/contract/manage/add/components/Fromtable.tsx
View file @
9963e260
...
...
@@ -192,7 +192,7 @@ const FormList = (props: any) => {
console
.
log
(
item
[
idx
],
1231321
)
switch
(
name
)
{
case
'payAmount'
:
item
[
idx
].
payAmount
=
Number
(
item
[
idx
].
payAmount
).
toFixed
(
2
);
item
[
idx
].
payAmount
=
Number
(
item
[
idx
].
payAmount
).
toFixed
(
3
);
break
;
}
setPlanList
(
item
)
...
...
@@ -221,7 +221,7 @@ const FormList = (props: any) => {
break
;
case
'payAmount'
:
if
(
Price
!=
0
)
{
item
[
idx
].
payRatio
=
Number
(
e
.
target
.
value
/
Price
*
100
).
toFixed
(
2
);
item
[
idx
].
payRatio
=
Number
(
e
.
target
.
value
/
Price
*
100
).
toFixed
(
3
);
}
item
[
idx
].
payAmount
=
e
.
target
.
value
break
;
...
...
@@ -237,7 +237,7 @@ const FormList = (props: any) => {
PlanList
.
map
(
item
=>
{
item
.
payNum
=
Number
(
item
.
payNum
)
item
.
payRatio
=
Number
(
item
.
payRatio
)
item
.
payAmount
=
Number
(
item
.
payAmount
).
toFixed
(
2
)
item
.
payAmount
=
Number
(
item
.
payAmount
).
toFixed
(
3
)
item
.
payWay
=
Number
(
item
.
payWay
)
item
.
payParam
=
Number
(
item
.
payParam
)
// 付款方式: 1 - 账期,2 - 月结,3 - 现结
...
...
Write
Preview
Markdown
is supported
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