feat(order): 精准区分自动直发与接单平台打手履约,智能门控H5直充按钮
- 后端增加按订单批量关联接单工单查询,精准识别履约类型(自动直发 / 打手履约 / 电子凭证 / 拼多多发货) - 订单列表与详情页中,仅当订单为自动直发(affiliate_dash / 码速达直充)时展示【H5】一键复制直充链接与兑换状态控制 - 接单平台工单单与纯核销单隐藏直充 H5 按钮与兑换暂停/关闭标签,防止客服向打手单买家误发直充链接 - 交付模式标签升级为「⚡ 自动直发」、「👥 打手履约」、「🎫 电子凭证」、「📦 拼多多发货」 验证方式:前端类型检查与打包构建通过,全量 132 项前端单测与 674 项后端单测全部通过
This commit is contained in:
@@ -309,7 +309,12 @@ export default function AdminOrdersPage() {
|
||||
</>
|
||||
)}
|
||||
<span className="muted" style={{ fontSize: 12 }}>
|
||||
数量 {row.totalQuantity || 1} · 关联任务 {row.taskCount || 0}
|
||||
数量 {row.totalQuantity || 1}
|
||||
{row.canClaimH5
|
||||
? ` · 关联任务 ${row.taskCount || 0}`
|
||||
: row.workOrderCount
|
||||
? ` · 关联工单 ${row.workOrderCount}`
|
||||
: ''}
|
||||
</span>
|
||||
</div>
|
||||
)
|
||||
@@ -332,11 +337,11 @@ export default function AdminOrdersPage() {
|
||||
<StatusTag value={row.customerStatus} kind="customer" />
|
||||
</Space>
|
||||
|
||||
{row.claimStatus === 'paused' ? (
|
||||
{row.canClaimH5 && row.claimStatus === 'paused' ? (
|
||||
<Tag color="warning" style={{ margin: 0, width: 'fit-content' }}>
|
||||
H5已暂停
|
||||
</Tag>
|
||||
) : row.claimStatus === 'closed' ? (
|
||||
) : row.canClaimH5 && row.claimStatus === 'closed' ? (
|
||||
<Tag color="default" style={{ margin: 0, width: 'fit-content' }}>
|
||||
H5已关闭
|
||||
</Tag>
|
||||
@@ -361,7 +366,7 @@ export default function AdminOrdersPage() {
|
||||
},
|
||||
{
|
||||
title: '操作',
|
||||
minWidth: 140,
|
||||
minWidth: 130,
|
||||
fixed: 'right',
|
||||
render: (_, row) => {
|
||||
const orderNo = row.platformOrderId || String(row.orderId)
|
||||
@@ -378,15 +383,17 @@ export default function AdminOrdersPage() {
|
||||
>
|
||||
详情
|
||||
</Button>
|
||||
<Tooltip title="复制 H5 领取链接">
|
||||
<Button
|
||||
size="small"
|
||||
icon={<LinkOutlined />}
|
||||
onClick={() => handleCopyText(h5Url, 'H5 领取链接')}
|
||||
>
|
||||
H5
|
||||
</Button>
|
||||
</Tooltip>
|
||||
{row.canClaimH5 ? (
|
||||
<Tooltip title="复制自动直充 H5 领取链接">
|
||||
<Button
|
||||
size="small"
|
||||
icon={<LinkOutlined />}
|
||||
onClick={() => handleCopyText(h5Url, 'H5 直充链接')}
|
||||
>
|
||||
H5
|
||||
</Button>
|
||||
</Tooltip>
|
||||
) : null}
|
||||
</Space>
|
||||
)
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user