fix:拼单明细状态补齐中文映射
This commit is contained in:
@@ -3357,14 +3357,21 @@ export default function WorkOrdersPanel() {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '状态',
|
title: '状态',
|
||||||
width: 104,
|
// 状态 + 取消原因两个 Tag 纵向排列;宽度按最长原因「后台取消部分」留足,
|
||||||
|
// PercentTable 会按权重归一化,160 在当前 1360 弹窗下约 105px。
|
||||||
|
width: 160,
|
||||||
render: (_, share) => (
|
render: (_, share) => (
|
||||||
<Space size={4} wrap>
|
<Space direction="vertical" size={2} className="admin-share-status">
|
||||||
<Tag color={resolveSharingShareStatusColor(share.status)}>
|
<Tag
|
||||||
|
color={resolveSharingShareStatusColor(share.status)}
|
||||||
|
style={{ marginInlineEnd: 0 }}
|
||||||
|
>
|
||||||
{formatSharingShareStatus(share.status)}
|
{formatSharingShareStatus(share.status)}
|
||||||
</Tag>
|
</Tag>
|
||||||
{share.status === 'cancelled' && share.cancelledReason ? (
|
{share.status === 'cancelled' && share.cancelledReason ? (
|
||||||
<Tag>{formatSharingShareCancelledReason(share.cancelledReason)}</Tag>
|
<Tag style={{ marginInlineEnd: 0 }}>
|
||||||
|
{formatSharingShareCancelledReason(share.cancelledReason)}
|
||||||
|
</Tag>
|
||||||
) : null}
|
) : null}
|
||||||
</Space>
|
</Space>
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -1614,6 +1614,16 @@
|
|||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* 拼单明细:状态列两个标签纵向排列,长原因(如「后台取消部分」)必须完整显示 */
|
||||||
|
.admin-share-status {
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.admin-share-status .ant-tag {
|
||||||
|
margin-inline-end: 0;
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
|
|
||||||
/* 拼单明细:问题单行强调、已撤单行弱化 */
|
/* 拼单明细:问题单行强调、已撤单行弱化 */
|
||||||
.admin-share-row-problem > td {
|
.admin-share-row-problem > td {
|
||||||
background: #fff1f0 !important;
|
background: #fff1f0 !important;
|
||||||
|
|||||||
Reference in New Issue
Block a user