forked from yoone/WEB
refactor(订单列表): 更新物流信息显示字段和样式
将 shipmentList 字段改为 fulfillments 以匹配后端数据 调整物流信息显示样式,移除状态显示并优化布局
This commit is contained in:
parent
e498793678
commit
ce12e55adc
|
|
@ -267,17 +267,17 @@ const ListPage: React.FC = () => {
|
|||
},
|
||||
{
|
||||
title: '物流',
|
||||
dataIndex: 'shipmentList',
|
||||
dataIndex: 'fulfillments',
|
||||
hideInSearch: true,
|
||||
render: (_, record) => {
|
||||
return (
|
||||
<div>
|
||||
{(record as any)?.shipmentList?.map((item: any) => {
|
||||
{(record as any)?.fulfillments?.map((item: any) => {
|
||||
if (!item) return;
|
||||
return (
|
||||
<div>
|
||||
{item.tracking_provider}:{item.primary_tracking_number} (
|
||||
{formatShipmentState(item.state)})
|
||||
<div style={{ display:"flex", alignItems:"center" }}>
|
||||
{item.tracking_provider}
|
||||
{item.tracking_number}
|
||||
</div>
|
||||
);
|
||||
})}
|
||||
|
|
|
|||
Loading…
Reference in New Issue