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 React, { useState, useEffect, useRef } from 'react';
import { PageHeaderWrapper } from '@ant-design/pro-layout'; import { PageHeaderWrapper } from '@ant-design/pro-layout';
import style from './index.less'; import style from './index.less';
...@@ -269,14 +269,20 @@ const OrderList = ref => { ...@@ -269,14 +269,20 @@ const OrderList = ref => {
}, },
{ {
title: '售后', title: '售后',
dataIndex: 'afterServiceStatusDesc', dataIndex: 'afterSaleVos',
width: 200, width: 220,
render: ({ value, subRecord }) => ( align: 'left',
<> render: ({ value }) => {
<div>{value}</div> if (value && value.length) {
<div className={style.blue}>{subRecord.afterServiceNo}</div> 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: '操作', title: '操作',
......
...@@ -51,3 +51,7 @@ ...@@ -51,3 +51,7 @@
.blue { .blue {
color: #61b0ff; 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