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
陈智峰
jinfa-platform
Commits
2d190a66
Commit
2d190a66
authored
Feb 09, 2021
by
XieZhiXiong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修复支付金额不对的问题
parent
04db13fa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
index.tsx
src/pages/afterService/components/GoodsDrawer/index.tsx
+3
-2
No files found.
src/pages/afterService/components/GoodsDrawer/index.tsx
View file @
2d190a66
...
...
@@ -2,13 +2,14 @@
* @Author: XieZhiXiong
* @Date: 2020-11-04 15:09:09
* @LastEditors: XieZhiXiong
* @LastEditTime: 2021-0
1-29 10:53:28
* @LastEditTime: 2021-0
2-09 17:02:36
* @Description: 维修商品抽屉组件
*/
import
React
,
{
useState
,
useEffect
}
from
'react'
;
import
{
Drawer
,
Button
,
Pagination
,
message
}
from
'antd'
;
import
{
createFormActions
}
from
'@formily/antd'
;
import
moment
from
'moment'
;
import
BigNumber
from
'bignumber.js'
;
import
{
ColumnType
}
from
'antd/lib/table/interface'
;
import
{
useStateFilterSearchLinkageEffect
}
from
'@/formSchema/effects/useFilterSearch'
;
import
{
FORM_FILTER_PATH
}
from
'@/formSchema/const'
;
...
...
@@ -501,7 +502,7 @@ class GoodsDrawer extends React.Component<GoodsDrawerProps, GoodsDrawerState> {
payAmount
:
product
.
payInfoList
?
product
.
payInfoList
.
reduce
((
prev
,
now
)
=>
{
return
now
.
externalState
===
PayOutWorkState
.
CONFIRM_ACCOUNT
?
now
.
payPrice
+
prev
:
0
;
return
now
.
externalState
===
PayOutWorkState
.
CONFIRM_ACCOUNT
?
+
(
new
BigNumber
(
+
product
.
purchaseCount
).
multipliedBy
(
product
.
price
).
multipliedBy
(
new
BigNumber
(
now
.
payRatio
).
dividedBy
(
100
))).
toFixed
(
2
)
+
prev
:
prev
;
},
0
)
:
0
});
...
...
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