优化(履约列表): 并列展示客户角色与扫码绑定角色

This commit is contained in:
yml
2026-11-26 02:06:10 +08:00
parent bde4b9017c
commit 244b556800
@@ -1395,16 +1395,12 @@ export default function PlatformFulfillmentPage() {
),
},
{
title: '客户角色 / 绑定',
title: '用户角色绑定',
key: 'binding',
width: 200,
width: 220,
render: (_, task) => {
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)}>
@@ -1413,14 +1409,17 @@ export default function PlatformFulfillmentPage() {
{task.account && task.bindingStatus === 'failed' ? (
<Tag color="orange">账号保留中</Tag>
) : null}
<Text ellipsis title={customerRole || scannedRole || '-'}>
客户角色:{customerRole || '未填写'}
<Text ellipsis title={customerRole || '未填写'}>
客户提交角色:{customerRole || '未填写'}
</Text>
<Text
type={scannedRole ? undefined : 'secondary'}
style={{ fontSize: 12 }}
ellipsis
title={scannedRole || '未识别'}
>
扫码绑定角色:{scannedRole || '未识别'}
</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) || '无冷却'}