Commit 900510e1 authored by 李腾's avatar 李腾

fix: 订单详情商品列表添加图片

parent 91599ce3
...@@ -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],
}, },
]; ];
......
...@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment