优化(履约列表): 明确展示客户提交角色与识别角色

This commit is contained in:
yml
2026-11-26 02:01:30 +08:00
parent 3c4111796e
commit bde4b9017c
@@ -1395,14 +1395,16 @@ export default function PlatformFulfillmentPage() {
),
},
{
title: '用户角色绑定',
title: '客户角色 / 绑定',
key: 'binding',
width: 180,
width: 200,
render: (_, task) => {
const roleName =
task.bindTask?.roleName?.trim() ||
task.customerProfile?.roleName?.trim() ||
'-';
const customerRole = task.customerProfile?.roleName?.trim() || '';
const scannedRole = task.bindTask?.roleName?.trim() || '';
const showScannedRole =
Boolean(scannedRole) &&
scannedRole !== customerRole &&
['role_ready', 'bound'].includes(task.bindingStatus);
return (
<Space direction="vertical" size={2}>
<Tag color={bindingStatusColor(task.bindingStatus)}>
@@ -1411,7 +1413,14 @@ export default function PlatformFulfillmentPage() {
{task.account && task.bindingStatus === 'failed' ? (
<Tag color="orange">账号保留中</Tag>
) : null}
<Text ellipsis title={roleName}>{roleName}</Text>
<Text ellipsis title={customerRole || scannedRole || '-'}>
客户角色:{customerRole || '未填写'}
</Text>
{showScannedRole ? (
<Text type="secondary" style={{ fontSize: 12 }} ellipsis title={scannedRole}>
识别角色:{scannedRole}
</Text>
) : null}
{task.bindingStatus === 'bound' ? (
<Text type="secondary" style={{ fontSize: 12 }}>
换绑时间:{formatTime(task.account?.roleChangeAvailableAt) || '无冷却'}