feat(shipping-notice): 新增发货通知自动上传功能与候选资格评估

- 在环境配置中新增 SHIPPING_NOTICE_AUTO_UPLOAD_ENABLED 选项,默认关闭,需显式开启以支持自动上传。
- 引入新的 pytest.ini 文件,增加测试标记以支持自动化测试。
- 删除不再使用的 seed_shipping_notice_agents.py 文件,简化代码库。
- 更新相关 API,增强发货通知与候选资格评估功能,支持多种筛选条件。
- 增强文档与代码注释,反映新的业务逻辑与功能要求。
This commit is contained in:
hugo committed 2026-08-02 19:26:35 +08:00
1 parent cef3d5b26a
commit 3a9fbac2fc
226 files changed
+25010 -2098

No files matched your search

+127 -3
View File
@@ -2787,6 +2787,7 @@
"refreshResults": "Read again",
"resultsLoading": "Reading current sample...",
"resultsFailed": "No value was read or the read failed. Check the annotations in the editor.",
"noTrainingSample": "There is no annotation/training sample available for validation.",
"headerResults": "Order header",
"lineResults": "Order lines",
"noHeaderResults": "No order header fields were read from the current sample.",
@@ -3653,6 +3654,15 @@
"refresh": "Refresh",
"export": "Export CSV",
"exporting": "Exporting...",
"exportDone": "Download started",
"moreActions": "More",
"copied": "Copied",
"copyId": "Copy ID",
"techRefsHint": "Technical IDs are collapsed; click a chip to copy.",
"hashSection": "Hash summary (diagnostics)",
"scrollHint": "The main table shows business fields only—no horizontal scroll. WF/Item/Run IDs appear as compact chips under business refs; click to copy.",
"showTechRefs": "Show technical IDs",
"hideTechRefs": "Hide technical IDs",
"apply": "Apply",
"loading": "Loading...",
"empty": "No audit events",
@@ -3667,11 +3677,118 @@
"total": "{count} total",
"previous": "Previous",
"next": "Next",
"labels": {
"eventTypes": {
"fallback": "Audit event",
"workflow_item_created": "Workflow item created",
"review_field_changed": "Review field changed",
"inventory_routing_rerouted": "Inventory routing recalculated",
"inventory_routing_suggestion_adopted": "Rule suggestion adopted",
"inventory_routing_manual_kept": "Manual inventory decision kept",
"audit_access": "Audit access",
"shipping_resource_accessed": "Resource accessed",
"process_gate_attempt_started": "Gate processing started",
"process_gate_blocked": "Gate blocked",
"process_gate_passed": "Gate passed",
"process_gate_recovery_requested": "Gate recovery requested",
"chat_process_gate_retried": "Chat: gate retried",
"chat_process_gate_taken_over": "Chat: gate taken over",
"chat_process_gate_skipped": "Chat: gate skipped",
"candidate_qualification_evaluated": "Candidate qualification evaluated",
"upload_rpa_triggered": "Freight upload RPA triggered"
},
"actions": {
"fallback": "Business action",
"create": "Create",
"update": "Update",
"export": "Export",
"verify_hash_chain": "Verify hash chain",
"read": "Read"
},
"reasonCodes": {
"fallback": "Business reason",
"no_inventory_source_candidates": "No inventory source rule matched",
"inventory_source_unavailable": "Inventory source unavailable",
"require_manual_review": "Manual review required",
"layout_parse_failed": "Layout parsing failed",
"unknown_business_failure": "Business processing failed",
"customer_unresolved": "Customer could not be identified",
"customer_ambiguous": "Multiple customers matched",
"reservation_missing": "Valid reservation is missing",
"reservation_duplicate": "Reservation is already used by another order",
"duplicate_unresolved": "Suspected duplicate order is unresolved",
"attachment_corrupted": "Attachment is corrupted",
"attachment_size_exceeded": "Attachment exceeds size limit",
"attachment_format_unsupported": "Attachment format is unsupported",
"attachment_security_blocked": "Attachment blocked for security reasons",
"attachment_replaced": "Shipping notice attachment was replaced",
"order_extraction_failed": "Order field extraction failed",
"order_extraction_cancelled": "Order extraction was cancelled",
"inventory_rpa_exhausted": "Inventory RPA retries exhausted",
"inventory_file_missing": "Inventory file is missing",
"inventory_match_failed": "Inventory matching failed",
"inventory_insufficient": "Insufficient inventory",
"excel_not_ready": "Excel generation conditions are not met",
"artifact_generation_failed": "Excel generation failed",
"upload_rpa_failed": "Freight platform upload failed",
"upload_result_unknown": "Upload result is temporarily unknown",
"manual_upload_pending": "Download Excel, upload on freight platform, then register the result",
"task_cancelled_by_user": "Task was cancelled by the user",
"task_voided_for_correction": "Task was voided for correction",
"task_archived": "Task was archived",
"task_rejected_by_user": "Candidate/task was rejected by the user",
"task_closed_after_upload": "Task closed after successful upload",
"void_blocked_external_uploaded": "External fulfillment exists; void is blocked — archive instead",
"gate_invalidated": "Upstream result changed; gate must be re-evaluated",
"technical_retry_exhausted": "Automatic retries exhausted",
"business_table_not_found": "Business table was not found",
"generic_gate_blocked": "Generic order recognition gate blocked",
"upload_rpa_login_failed": "Freight platform login failed",
"upload_platform_rejected": "Freight platform rejected the upload",
"inventory_mapping_required": "Inventory field mapping requires confirmation",
"inventory_shortage_review_required": "Inventory shortage requires review",
"inventory_source_conflicted": "Conflicting inventory source rules require review",
"inventory_source_changed": "Confirmed inventory source configuration has changed",
"inventory_source_identity_mismatch": "Task identity does not match inventory source/warehouse",
"inventory_multi_file_conflict": "Conflicting results across inventory files",
"inventory_sku_not_found": "SKU was not found in inventory",
"inventory_reservation_not_found": "Reservation was not found in inventory",
"inventory_warehouse_mismatch": "Warehouse does not match order requirements",
"inventory_required_column_missing": "Required inventory column is missing",
"inventory_column_ambiguous": "Inventory column mapping is ambiguous",
"excel_template_missing": "Shipping Excel template is missing",
"excel_input_incomplete": "Inputs required to generate Excel are incomplete",
"artifact_validation_failed": "Excel artifact validation failed",
"late_callback_ignored": "Late external callback was ignored",
"close_blocked_missing_receipt": "Upload receipt is missing; close is blocked"
},
"actorTypes": {
"user": "Business user",
"admin": "Administrator",
"system": "System",
"rpa": "RPA",
"unknown": "Unknown actor"
},
"results": {
"success": "Success",
"failed": "Failed",
"rejected": "Rejected",
"ok": "Success"
}
},
"filters": {
"eventType": "Event type",
"eventTypeGroup": "Event group",
"eventTypeGroupReviewWorkbench": "Review workbench",
"eventTypeGroupChatWorkbench": "Chat workbench",
"eventTypeGroupProcessGate": "Process Gate",
"eventTypeGroupQualification": "Candidate qualification",
"eventTypeGroupWorkflowNode": "Workflow node",
"actorType": "Actor type",
"runNo": "Run no.",
"taskNo": "Task no.",
"candidateNo": "Candidate no.",
"gateCode": "Node / gate code",
"operationId": "operation_id",
"q": "ID search",
"all": "All",
@@ -3685,7 +3802,8 @@
"createdFrom": "From",
"createdTo": "To",
"workflowId": "Workflow",
"workflowItemId": "Workflow Item"
"workflowItemId": "Workflow Item",
"reasonCode": "Reason code"
},
"columns": {
"time": "Time",
@@ -3697,7 +3815,10 @@
"conversation": "Conversation",
"reviewCase": "Case",
"workflow": "Workflow",
"workflowItem": "Item"
"workflowItem": "Item",
"reasonCode": "Reason",
"businessRefs": "Business refs",
"refs": "Related IDs"
},
"sensitiveRedacted": "Sensitive snapshots and diffs are redacted for your account.",
"verifyChain": "Verify hash chain",
@@ -3712,7 +3833,10 @@
"chainSummary": "Association chain: {total} events{truncated}",
"chainTruncated": " (truncated)",
"eventHash": "Event hash",
"previousEventHash": "Previous hash"
"previousEventHash": "Previous hash",
"showAdvancedFilters": "More filters",
"hideAdvancedFilters": "Hide filters",
"techRefs": "Technical IDs"
},
"shippingProcessGates": {
"title": "Process Gate diagnostics",