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
efa6be34
Commit
efa6be34
authored
Aug 11, 2021
by
XieZhiXiong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: 修改已支付金额字段
parent
9418cd57
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
12 deletions
+12
-12
index.tsx
src/pages/afterService/components/GoodsDrawer/index.tsx
+2
-2
index.tsx
...pplication/returnPrSubmit/components/ReturnForm/index.tsx
+10
-10
No files found.
src/pages/afterService/components/GoodsDrawer/index.tsx
View file @
efa6be34
...
...
@@ -2,7 +2,7 @@
* @Author: XieZhiXiong
* @Date: 2020-11-04 15:09:09
* @LastEditors: XieZhiXiong
* @LastEditTime: 2021-08-1
0 11:29:44
* @LastEditTime: 2021-08-1
1 11:44:19
* @Description: 维修商品抽屉组件
*/
import
React
from
'react'
;
...
...
@@ -432,7 +432,7 @@ class GoodsDrawer extends React.Component<GoodsDrawerProps, GoodsDrawerState> {
?
product
.
payInfoList
.
reduce
((
prev
,
now
)
=>
{
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
)
:
product
.
a
mount
,
:
product
.
paidA
mount
,
});
}
});
...
...
src/pages/afterService/returnApplication/returnPrSubmit/components/ReturnForm/index.tsx
View file @
efa6be34
...
...
@@ -137,8 +137,8 @@ const ReturnForm: React.FC<BillsFormProps> = ({
},
{
title
:
'订单摘要'
,
dataIndex
:
'digest'
,
align
:
'center'
,
dataIndex
:
'digest'
,
ellipsis
:
true
,
},
{
title
:
'供应会员'
,
...
...
@@ -178,31 +178,31 @@ const ReturnForm: React.FC<BillsFormProps> = ({
const
childTableColumn
:
ColumnType
<
any
>
[]
=
[
!
isMateriel
?{
title
:
'商品ID'
,
dataIndex
:
'product
Id
'
,
dataIndex
:
'product
No
'
,
align
:
'center'
,
}
:
{
title
:
'物料编号'
,
dataIndex
:
'
materialCode
'
,
dataIndex
:
'
productNo
'
,
align
:
'center'
,
},
!
isMateriel
?
{
title
:
'商品名称'
,
dataIndex
:
'name'
,
align
:
'center'
,
ellipsis
:
true
,
}
:
{
title
:
'物料名称、规格'
,
dataIndex
:
'
materialN
ame'
,
dataIndex
:
'
n
ame'
,
align
:
'center'
,
render
:
(
text
,
record
)
=>
`
${
text
}
/
${
record
.
materialType
}
`
,
},
{
title
:
'品类'
,
dataIndex
:
!
isMateriel
?
'category'
:
'
material
Category'
,
dataIndex
:
!
isMateriel
?
'category'
:
'
quoted
Category'
,
align
:
'center'
,
},
{
title
:
'品牌'
,
dataIndex
:
!
isMateriel
?
'brand'
:
'
material
Brand'
,
dataIndex
:
!
isMateriel
?
'brand'
:
'
quoted
Brand'
,
align
:
'center'
,
},
{
...
...
@@ -223,7 +223,7 @@ const ReturnForm: React.FC<BillsFormProps> = ({
},
{
title
:
'金额'
,
dataIndex
:
'
a
mount'
,
dataIndex
:
'
paidA
mount'
,
align
:
'center'
,
render
:
(
text
)
=>
`¥
${
text
}
`
,
},
...
...
@@ -623,7 +623,7 @@ const ReturnForm: React.FC<BillsFormProps> = ({
purchasePrice
:
item
.
price
,
purchaseCount
:
item
.
quantity
,
purchaseAmount
:
+
(
item
.
price
*
item
.
quantity
).
toFixed
(
2
),
payAmount
:
item
.
pa
yAmount
,
payAmount
:
item
.
pa
idAmount
,
returnCount
:
''
,
refundAmount
:
''
,
extraData
:
{
...
...
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