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
7eeb371d
Commit
7eeb371d
authored
Jan 21, 2021
by
XieZhiXiong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: 过滤掉未支付的订单商品
parent
56c37d33
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
index.tsx
src/pages/afterService/components/GoodsDrawer/index.tsx
+4
-3
No files found.
src/pages/afterService/components/GoodsDrawer/index.tsx
View file @
7eeb371d
...
...
@@ -2,7 +2,7 @@
* @Author: XieZhiXiong
* @Date: 2020-11-04 15:09:09
* @LastEditors: XieZhiXiong
* @LastEditTime: 2021-01-21 1
4:50:59
* @LastEditTime: 2021-01-21 1
5:26:30
* @Description: 维修商品抽屉组件
*/
import
React
,
{
useState
,
useEffect
}
from
'react'
;
...
...
@@ -485,7 +485,7 @@ class GoodsDrawer extends React.Component<GoodsDrawerProps, GoodsDrawerState> {
}
=
item
;
return
{
payAmount
:
payPrice
,
payTime
:
moment
(
payTime
).
format
(
'YYYY-MM-DD HH:mm:ss'
)
,
payTime
:
payTime
?
moment
(
payTime
).
format
(
'YYYY-MM-DD HH:mm:ss'
)
:
''
,
payWay
,
channel
,
payWayName
:
PAYWAY
[
payWay
],
...
...
@@ -494,7 +494,8 @@ class GoodsDrawer extends React.Component<GoodsDrawerProps, GoodsDrawerState> {
payRuleId
:
ruleConfigurationId
,
...
rest
,
}
})
:
})
.
filter
(
item
=>
item
.
payTime
)
:
[]
,
// 计算已支付金额,采购单价 * 支付比例 累加
...
...
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