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
54043d96
Commit
54043d96
authored
Sep 15, 2020
by
前端-钟卫鹏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:价格显示处理
parent
4e5e2a47
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
25 additions
and
6 deletions
+25
-6
index.tsx
src/pages/commodity/goods/index.tsx
+1
-0
directChannel.tsx
src/pages/commodity/products/directChannel.tsx
+20
-2
fastModifyPrice.tsx
src/pages/commodity/products/fastModifyPrice.tsx
+2
-2
index.tsx
src/pages/commodity/products/index.tsx
+2
-2
No files found.
src/pages/commodity/goods/index.tsx
View file @
54043d96
...
...
@@ -110,6 +110,7 @@ const Goods: React.FC<{}> = () => {
title
:
'成单价'
,
dataIndex
:
'costPrice'
,
key
:
'costPrice'
,
render
:
text
=>
`¥
${
text
}
`
},
{
title
:
'导入批次'
,
...
...
src/pages/commodity/products/directChannel.tsx
View file @
54043d96
...
...
@@ -93,7 +93,25 @@ const DirectChannel: React.FC<{}> = () => {
title
:
'价格'
,
dataIndex
:
[
'channelCommodity'
,
'commodity'
,
'min'
],
key
:
'id'
,
render
:
(
text
:
any
,
record
:
any
)
=>
<>
¥
{
text
}
~ ¥
{
record
.
channelCommodity
.
commodity
.
max
}
</>
render
:
(
text
:
any
,
reocrd
:
any
)
=>
{
let
min
=
reocrd
.
channelCommodity
.
commodity
.
min
let
type
=
reocrd
.
channelCommodity
.
commodity
.
priceType
let
max
=
reocrd
.
channelCommodity
.
commodity
.
max
if
(
type
===
1
){
if
(
max
===
min
)
return
<>
¥
{
min
}
</>
else
return
<>
¥
{
min
}
~ ¥
{
max
}
</>
}
if
(
type
===
3
){
if
(
max
===
min
)
return
<>
{
min
}
</>
else
return
<>
{
min
}
~
{
max
}
</>
}
if
(
type
===
2
)
return
null
}
},
{
title
:
'渠道会员角色'
,
...
...
@@ -101,7 +119,7 @@ const DirectChannel: React.FC<{}> = () => {
key
:
'memberRoleName'
,
},
{
title
:
'适用
会员
'
,
title
:
'适用
渠道
'
,
dataIndex
:
'memberName'
,
key
:
'memberName'
,
},
...
...
src/pages/commodity/products/fastModifyPrice.tsx
View file @
54043d96
...
...
@@ -100,13 +100,13 @@ const FastModifyPrice: React.FC<{}> = () => {
key
:
'min'
,
render
:
(
text
:
any
,
reocrd
:
any
)
=>
{
if
(
reocrd
.
priceType
===
1
){
if
(
reocrd
.
m
in
===
reocrd
.
min
)
if
(
reocrd
.
m
ax
===
reocrd
.
min
)
return
<>
¥
{
reocrd
.
min
}
</>
else
return
<>
¥
{
reocrd
.
min
}
~ ¥
{
reocrd
.
max
}
</>
}
if
(
reocrd
.
priceType
===
3
){
if
(
reocrd
.
m
in
===
reocrd
.
min
)
if
(
reocrd
.
m
ax
===
reocrd
.
min
)
return
<>
{
reocrd
.
min
}
</>
else
return
<>
{
reocrd
.
min
}
~
{
reocrd
.
max
}
</>
...
...
src/pages/commodity/products/index.tsx
View file @
54043d96
...
...
@@ -143,13 +143,13 @@ const Products: React.FC<{}> = () => {
key
:
'min'
,
render
:
(
text
:
any
,
reocrd
:
any
)
=>
{
if
(
reocrd
.
priceType
===
1
){
if
(
reocrd
.
m
in
===
reocrd
.
min
)
if
(
reocrd
.
m
ax
===
reocrd
.
min
)
return
<>
¥
{
reocrd
.
min
}
</>
else
return
<>
¥
{
reocrd
.
min
}
~ ¥
{
reocrd
.
max
}
</>
}
if
(
reocrd
.
priceType
===
3
){
if
(
reocrd
.
m
in
===
reocrd
.
min
)
if
(
reocrd
.
m
ax
===
reocrd
.
min
)
return
<>
{
reocrd
.
min
}
</>
else
return
<>
{
reocrd
.
min
}
~
{
reocrd
.
max
}
</>
...
...
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