Commit c5c698b7 authored by 李腾's avatar 李腾

fix: 订单列表售后字段改为list

parent e39fa8cf
import { Form, Tabs, Input, Button, Pagination, notification } from 'antd';
import { Form, Tabs, Input, Button, Pagination } from 'antd';
import React, { useState, useEffect, useRef } from 'react';
import { PageHeaderWrapper } from '@ant-design/pro-layout';
import style from './index.less';
......@@ -269,14 +269,20 @@ const OrderList = ref => {
},
{
title: '售后',
dataIndex: 'afterServiceStatusDesc',
width: 200,
render: ({ value, subRecord }) => (
<>
<div>{value}</div>
<div className={style.blue}>{subRecord.afterServiceNo}</div>
</>
),
dataIndex: 'afterSaleVos',
width: 220,
align: 'left',
render: ({ value }) => {
if (value && value.length) {
return value.map(item => (
<div className={style['after-status-box']}>
<div className={style.desc}>{item.afterServiceStatusDesc}</div>
<div className={style.blue}>{item.afterServiceNo}</div>
</div>
));
}
return '-';
},
},
{
title: '操作',
......
......@@ -51,3 +51,7 @@
.blue {
color: #61b0ff;
}
.after-status-box {
margin: 5px 0;
}
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