forked from yoone/WEB
1
0
Fork 0

refactor(订单列表): 更新物流信息显示字段和样式

将 shipmentList 字段改为 fulfillments 以匹配后端数据
调整物流信息显示样式,移除状态显示并优化布局
This commit is contained in:
tikkhun 2026-01-05 22:39:30 +08:00
parent e498793678
commit ce12e55adc
1 changed files with 5 additions and 5 deletions

View File

@ -267,17 +267,17 @@ const ListPage: React.FC = () => {
}, },
{ {
title: '物流', title: '物流',
dataIndex: 'shipmentList', dataIndex: 'fulfillments',
hideInSearch: true, hideInSearch: true,
render: (_, record) => { render: (_, record) => {
return ( return (
<div> <div>
{(record as any)?.shipmentList?.map((item: any) => { {(record as any)?.fulfillments?.map((item: any) => {
if (!item) return; if (!item) return;
return ( return (
<div> <div style={{ display:"flex", alignItems:"center" }}>
{item.tracking_provider}:{item.primary_tracking_number} ( {item.tracking_provider}
{formatShipmentState(item.state)}) {item.tracking_number}
</div> </div>
); );
})} })}