feat(shipping-notice): 完善发货通知自动推进与多库存源复核闭环

This commit is contained in:
hugo committed 2026-08-09 11:43:53 +08:00
1 parent cfa19a0b7b
commit 8e0bbf7a81
180 files changed
+31210 -1864

No files matched your search

@@ -268,7 +268,15 @@ function primaryActionItem(task: ConversationProcessingUserTask): ActionPresenta
/** needs_action 的用户语义提示:不重复主按钮文案。 */
function currentNeedLabel(task: ConversationProcessingUserTask): string {
if (task.group !== 'needs_action') return '';
const action = String(task.primary_action || task.available_actions?.[0] || '').trim().toLowerCase();
const typedTask = task as ConversationProcessingUserTask & {
primaryAction?: { code?: string } | null;
};
const action = String(
typedTask.primaryAction?.code
?? task.primary_action
?? task.available_actions?.[0]
?? '',
).trim().toLowerCase();
const labels: Record<string, string> = {
confirm_customer: 'chat.shippingProcessing.currentNeed.confirmCustomer',
resolve_field_conflicts: 'chat.shippingProcessing.currentNeed.resolveFieldConflicts',