diff --git a/web/frontend/src/pages/PlatformFulfillmentPage.tsx b/web/frontend/src/pages/PlatformFulfillmentPage.tsx
index 6c45b8c..a15ebcf 100644
--- a/web/frontend/src/pages/PlatformFulfillmentPage.tsx
+++ b/web/frontend/src/pages/PlatformFulfillmentPage.tsx
@@ -457,6 +457,15 @@ function canRefreshBindingQr(task: PlatformFulfillmentTask) {
return !['role_ready', 'bound', 'completed', 'cancelled'].includes(task.executionStatus);
}
+function canReallocateAndBind(task: PlatformFulfillmentTask) {
+ return Boolean(
+ !task.account &&
+ task.customerProfile &&
+ task.executionStatus === 'manual_required' &&
+ ['binding_failed', 'lease_expired'].includes(task.issueCode),
+ );
+}
+
function canManualConfirmBinding(task: PlatformFulfillmentTask) {
if (!task.account) return false;
return !['bound', 'completed', 'cancelled'].includes(task.executionStatus);
@@ -1515,6 +1524,18 @@ export default function PlatformFulfillmentPage() {
刷新二维码
) : null}
+ {canReallocateAndBind(task) ? (
+ }
+ loading={allocatingTaskId === task.id}
+ disabled={allocatingTaskId !== null && allocatingTaskId !== task.id}
+ onClick={() => void requestAllocation(task)}
+ >
+ 重新选号并绑定
+
+ ) : null}
{task.executionStatus === 'role_ready' ? (
} onClick={() => void runTaskAction(() => platformFulfillmentApi.confirmBinding(task.id))}>
代客户确认
@@ -1591,6 +1612,16 @@ export default function PlatformFulfillmentPage() {
刷新二维码
) : null}
+ {selected && canReallocateAndBind(selected) ? (
+ }
+ loading={allocatingTaskId === selected.id}
+ onClick={() => void requestAllocation(selected)}
+ >
+ 重新选号并绑定
+
+ ) : null}
{selected &&
selected.executionStatus !== 'role_ready' &&
selected.executionStatus !== 'bound' &&