feat(shipping-notice): 增强发货通知候选管理功能,支持候选选择、重复检测与业务摘要修订

This commit is contained in:
hugo committed 2026-07-15 11:57:04 +08:00
1 parent 70f684b94a
commit b595e157e9
83 files changed
+5857 -200

No files matched your search

@@ -540,10 +540,41 @@ export const refreshShippingNoticeDuplicate = (intakeNo: string) =>
{ method: 'POST' },
);
export const updateShippingNoticeCandidate = (
candidateNo: string,
patch: { selected?: boolean; business_summary?: Record<string, unknown> },
) => requestJson<import('../types/shipping.api.types').ShippingNoticeCandidateResponse>(
`/api/workspace/shipping-notice/candidates/${encodeURIComponent(candidateNo)}`,
{
method: 'PATCH',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify(patch),
},
);
export const resolveShippingNoticeCandidateDuplicate = (
candidateNo: string,
action: string,
targetTaskNo?: string | null,
reason?: string | null,
) => requestJson<import('../types/shipping.api.types').ShippingNoticeCandidateResponse>(
`/api/workspace/shipping-notice/candidates/${encodeURIComponent(candidateNo)}/duplicate-resolution`,
{
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
action,
target_task_no: targetTaskNo || undefined,
reason: reason || undefined,
}),
},
);
export const createWorkspaceShippingBatchFromIntakes = (
intakeNos: string[],
conversationId?: string | null,
idempotencyKey?: string,
candidateNos?: string[],
) =>
requestJson<ShippingCreateBatchFromIntakesResponse>('/api/workspace/shipping-batches/create-from-intakes', {
method: 'POST',
@@ -555,6 +586,7 @@ export const createWorkspaceShippingBatchFromIntakes = (
intake_nos: intakeNos,
conversation_id: conversationId || undefined,
idempotency_key: idempotencyKey,
candidate_nos: candidateNos,
}),
});