Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-admin
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
project
jinfa-admin
Commits
e3afda52
Commit
e3afda52
authored
Jan 20, 2022
by
前端-黄佳鑫
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修复营销活动执行明细
parent
37945cb4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
5 deletions
+15
-5
detail.tsx
...ges/marketingManage/marketing/marketingExecute/detail.tsx
+15
-5
No files found.
src/pages/marketingManage/marketing/marketingExecute/detail.tsx
View file @
e3afda52
...
...
@@ -215,6 +215,11 @@ const DetialLayout = () => {
}
},
[
value
])
const
isHasTax
=
(
tax
:
number
)
=>
{
const
taxText
=
tax
===
1
?
'是'
:
'否'
;
return
taxText
}
const
tableModalColumns
:
ColumnType
<
any
>
[]
=
[
{
title
:
'单据号'
,
...
...
@@ -245,7 +250,8 @@ const DetialLayout = () => {
{
title
:
'单据时间'
,
key
:
'orderTime'
,
dataIndex
:
'orderTime'
dataIndex
:
'orderTime'
,
render
:
(
text
)
=>
format
(
text
)
},
{
title
:
'单据状态'
,
...
...
@@ -255,7 +261,8 @@ const DetialLayout = () => {
{
title
:
'含税/税率'
,
key
:
'isHasTax'
,
dataIndex
:
'isHasTax'
dataIndex
:
'isHasTax'
,
render
:
(
text
,
record
)
=>
`
${
isHasTax
(
text
)}
/
${
record
.
taxRate
}
%`
},
{
title
:
'购买数量'
,
...
...
@@ -265,17 +272,20 @@ const DetialLayout = () => {
{
title
:
'应付金额'
,
key
:
'skuPrice'
,
dataIndex
:
'skuPrice'
dataIndex
:
'skuPrice'
,
render
:
(
text
)
=>
`¥
${
Number
(
text
).
toFixed
(
2
)}
`
},
{
title
:
'实付金额'
,
key
:
'amount'
,
dataIndex
:
'amount'
dataIndex
:
'amount'
,
render
:
(
text
)
=>
`¥
${
Number
(
text
).
toFixed
(
2
)}
`
},
{
title
:
'优惠金额'
,
key
:
'discountPrice'
,
dataIndex
:
'discountPrice'
dataIndex
:
'discountPrice'
,
render
:
(
_text
,
record
)
=>
`¥
${(
record
.
skuPrice
-
record
.
amount
).
toFixed
(
2
)}
`
},
]
...
...
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