Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
merchant-manage-ui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
ui
merchant-manage-ui
Commits
900510e1
Commit
900510e1
authored
Aug 24, 2022
by
李腾
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 订单详情商品列表添加图片
parent
91599ce3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
0 deletions
+26
-0
index.jsx
...s/orderManage/queryOrder/components/DetailModal/index.jsx
+19
-0
index.less
.../orderManage/queryOrder/components/DetailModal/index.less
+7
-0
No files found.
src/pages/orderManage/queryOrder/components/DetailModal/index.jsx
View file @
900510e1
...
@@ -34,18 +34,31 @@ const DetailModal = (props, ref) => {
...
@@ -34,18 +34,31 @@ const DetailModal = (props, ref) => {
{
{
title
:
'
商品
'
,
title
:
'
商品
'
,
dataIndex
:
'
skuName
'
,
dataIndex
:
'
skuName
'
,
width
:
350
,
render
:
(
value
,
record
)
=>
{
const
{
primaryImage
}
=
record
;
return
(
<
div
className=
{
style
[
'
sku-info
'
]
}
>
<
img
src=
{
primaryImage
}
width=
"50px"
height=
"50px"
alt=
""
/>
<
span
className=
{
style
[
'
sku-info__name
'
]
}
>
{
value
}
</
span
>
</
div
>
);
},
},
},
{
{
title
:
'
单价(元)
'
,
title
:
'
单价(元)
'
,
dataIndex
:
'
supplyPrice
'
,
dataIndex
:
'
supplyPrice
'
,
width
:
150
,
},
},
{
{
title
:
'
数量
'
,
title
:
'
数量
'
,
dataIndex
:
'
count
'
,
dataIndex
:
'
count
'
,
width
:
150
,
},
},
{
{
title
:
'
小计
'
,
title
:
'
小计
'
,
dataIndex
:
'
subTotal
'
,
dataIndex
:
'
subTotal
'
,
width
:
150
,
render
:
(
value
,
record
)
=>
{
render
:
(
value
,
record
)
=>
{
const
{
supplyPrice
,
count
}
=
record
;
const
{
supplyPrice
,
count
}
=
record
;
return
(
supplyPrice
*
count
).
toFixed
(
2
);
return
(
supplyPrice
*
count
).
toFixed
(
2
);
...
@@ -53,6 +66,7 @@ const DetailModal = (props, ref) => {
...
@@ -53,6 +66,7 @@ const DetailModal = (props, ref) => {
},
},
{
{
title
:
'
售后状态
'
,
title
:
'
售后状态
'
,
width
:
150
,
dataIndex
:
'
afterServiceStatusDesc
'
,
dataIndex
:
'
afterServiceStatusDesc
'
,
},
},
];
];
...
@@ -62,11 +76,13 @@ const DetailModal = (props, ref) => {
...
@@ -62,11 +76,13 @@ const DetailModal = (props, ref) => {
const
couponColumns
=
[
const
couponColumns
=
[
{
{
title
:
'
券码
'
,
title
:
'
券码
'
,
width
:
150
,
render
:
(
value
,
record
,
index
)
=>
`券码
${
index
+
1
}
`
,
render
:
(
value
,
record
,
index
)
=>
`券码
${
index
+
1
}
`
,
},
},
{
{
title
:
'
有效期
'
,
title
:
'
有效期
'
,
dataIndex
:
'
useStartTime
'
,
dataIndex
:
'
useStartTime
'
,
width
:
350
,
render
:
(
value
,
record
)
=>
{
render
:
(
value
,
record
)
=>
{
const
{
useEndTime
}
=
record
;
const
{
useEndTime
}
=
record
;
return
`
${
value
}
-
${
useEndTime
}
`
;
return
`
${
value
}
-
${
useEndTime
}
`
;
...
@@ -75,16 +91,19 @@ const DetailModal = (props, ref) => {
...
@@ -75,16 +91,19 @@ const DetailModal = (props, ref) => {
{
{
title
:
'
核销时间
'
,
title
:
'
核销时间
'
,
dataIndex
:
'
useTime
'
,
dataIndex
:
'
useTime
'
,
width
:
200
,
render
:
value
=>
value
||
'
-
'
,
render
:
value
=>
value
||
'
-
'
,
},
},
{
{
title
:
'
核销人
'
,
title
:
'
核销人
'
,
dataIndex
:
'
usedByShopName
'
,
dataIndex
:
'
usedByShopName
'
,
width
:
150
,
render
:
value
=>
value
||
'
-
'
,
render
:
value
=>
value
||
'
-
'
,
},
},
{
{
title
:
'
状态
'
,
title
:
'
状态
'
,
dataIndex
:
'
codeStatus
'
,
dataIndex
:
'
codeStatus
'
,
width
:
150
,
render
:
value
=>
COUPON_CODE_STATUS
[
value
],
render
:
value
=>
COUPON_CODE_STATUS
[
value
],
},
},
];
];
...
...
src/pages/orderManage/queryOrder/components/DetailModal/index.less
View file @
900510e1
...
@@ -21,6 +21,13 @@
...
@@ -21,6 +21,13 @@
}
}
}
}
.sku-info {
display: flex;
.sku-info__name {
margin-left: 10px;
}
}
.good-table,
.good-table,
.coupon-table {
.coupon-table {
margin-top: 20px;
margin-top: 20px;
...
...
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