feat(freight-rpa): 批次R解耦编排层并切换 onhand/inbound 契约

将 RPA 编排收编至 freight_rpa,回调迁 /api/freight-rpa/*。
共享目录与 Worker 契约一次切换至 onhand/inbound/upload,
并补 outbound 骨架与 tt16 排程 job key 迁移。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
hugoandCursor committed 2026-10-17 23:18:48 +08:00
1 parent bf3154033b
commit ffc0d4a430
147 files changed
+4221 -2678

No files matched your search

+3 -3
View File
@@ -187,7 +187,7 @@ export const downloadShippingInventorySnapshot = async (snapshotId: number, fall
/** 货代库存配置统一接口;敏感凭据仅能写入,服务端不会回显。 */
export const getShippingInventoryConfig = async () => Promise.all([
requestJson<unknown[]>('/api/admin/shipping-notice/rpa-profiles', auth()),
requestJson<unknown[]>('/api/admin/freight-rpa/rpa-profiles', auth()),
requestJson<unknown[]>('/api/admin/shipping-notice/sources', auth()),
requestJson<unknown[]>('/api/admin/shipping-notice/routing-rules', auth()),
requestJson<unknown[]>('/api/admin/shipping-notice/external-mappings', auth()),
@@ -326,11 +326,11 @@ export const createShippingParsingDraftFromTemporarySession = (sessionNo: string
/** 保存 RPA Profile;password 未传或为空时由服务端保留旧密文。 */
export const saveShippingRpaProfile = (payload: Record<string, unknown>, id?: number) => requestJson<unknown>(
`/api/admin/shipping-notice/rpa-profiles${id ? `/${id}` : ''}`,
`/api/admin/freight-rpa/rpa-profiles${id ? `/${id}` : ''}`,
{ method: id ? 'PUT' : 'POST', body: JSON.stringify(payload), ...jsonAuth() },
);
export const deleteShippingRpaProfile = (id: number) => requestJson<void>(
`/api/admin/shipping-notice/rpa-profiles/${id}`, { method: 'DELETE', ...auth() },
`/api/admin/freight-rpa/rpa-profiles/${id}`, { method: 'DELETE', ...auth() },
);
/** 保存 Inventory Source,服务端校验其 Driver 与 Profile 一致。 */