feat(freight-rpa): 系统连接只保留上传开关并增加 Crane 一次回查

上传页、按钮和成功判断改由连接器固定。Crane 分配中只排一次 10 分钟状态回查,手动刷新不改到期时间。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
hugoandCursor committed 2026-10-23 12:20:29 +08:00
1 parent 95e7db0831
commit 3bb9938c05
33 files changed
+878 -374

No files matched your search

@@ -1399,6 +1399,19 @@ export async function batchConfirmWorkspaceShippingNoticesUploaded(businessNos:
);
}
/**
* 手动刷新 Crane 分配状态。后端只排队一次状态回查,不重新上传 Excel。
* @param businessNo - 对外发货通知单号,同时是 Crane 的 Pull Request #
* @returns 已排队的回查结果
*/
export async function refreshWorkspaceCraneUploadStatus(businessNo: string) {
const body = await requestJson<ShippingDecisionResponse & ShippingApiStatusPayload>(
`/api/workspace/shipping-notices/${encodeURIComponent(businessNo)}/refresh-crane-upload`,
jsonPost({}),
);
return assertShippingOk(body);
}
/** 按多个发货通知单号批量受理货代 RPA 上传;RPA 成功仍以回调为准。 */
export async function batchStartWorkspaceShippingNoticeRpaUpload(businessNos: string[]) {
return requestJson<{ results: Array<Record<string, unknown>> }>(