feat(shipping-notice): 添加订单抽取功能,支持异步运行和管理,优化相关数据模型和处理逻辑

This commit is contained in:
hugo committed 2026-07-21 09:02:42 +08:00
1 parent 34d489a2d1
commit ce26d6d0c4
144 files changed
+12241 -4233

No files matched your search

+34 -4
View File
@@ -31,6 +31,8 @@
"shippingConfig": "Shipping Configuration",
"shippingInventory": "Inventory Configuration",
"shippingIdentityRules": "Customer Identity Rules"
,
"platformApps": "Platform Apps"
},
"shippingOrderSchema": {
"eyebrow": "Order field template",
@@ -70,7 +72,14 @@
"diffRemovedField": "This field existed in the baseline but was removed in the compared version",
"diffOrderChanged": "Order only changed",
"diffStatus": { "added": "Added", "removed": "Removed", "modified": "Modified", "unchanged": "Unchanged" },
"diffField": { "field_code": "Field name (system identifier)", "scope": "Field placement", "value_type": "Data format", "enabled": "Included in current version", "display_name": "Current version display name", "description": "Description", "business_purpose": "Business purpose", "required": "Business required", "aliases": "Aliases", "normalizer_key": "Text processing", "validator_keys": "Content validation", "enum_options": "Enum options", "relation_role": "Cross-document relation", "comparator_key": "Comparison method", "extraction_instruction": "Extraction instruction", "sequence": "Field order", "evidence_policy.required": "Original evidence required", "evidence_policy.source_precedence": "Recognizable sources", "evidence_policy.conflict_policy": "On content conflict", "evidence_policy.allow_single_source": "Allow one trusted source" },
"diffField": { "field_code": "Field name (system identifier)", "scope": "Field placement", "value_type": "Data format", "enabled": "Included in current version", "display_name": "Current version display name", "description": "Description", "business_purpose": "Business purpose", "required": "Business required", "aliases": "Aliases", "normalizer_key": "Text processing", "validator_keys": "Content validation", "enum_options": "Enum options", "relation_role": "Cross-document relation", "comparator_key": "Comparison method", "extraction_instruction": "Extraction instruction", "sequence": "Field order", "evidence_policy.required": "Original evidence required", "evidence_policy.source_precedence": "Recognizable sources", "evidence_policy.conflict_policy": "On content conflict", "evidence_policy.allow_single_source": "Allow one trusted source" ,
"field_category": "Field category",
"collection_mode": "Collection mode",
"context_source": "Deterministic source",
"sensitivity_level": "Sensitivity level",
"dify_exposure_policy": "Dify exposure policy",
"available_for_customer_identity": "Available for customer identity"
},
"auditTitle": "Configuration audit timeline",
"auditEmpty": "No configuration audit events",
"auditLoadMore": "Load more audit events",
@@ -186,6 +195,19 @@
"setupStepRules": "Set aliases, validation, and EML/PDF evidence rules for each field",
"setupStepPublish": "Publish the field version for downstream configuration",
"operationFailed": "Order template operation failed"
,
"fieldCategory": "Field category",
"fieldCategoryOption": {"general_context":"General context fields","order_header":"Order information","order_line":"Item details"},
"contextSource": "Deterministic source",
"selectContextSource": "Select a source field",
"contextSourceHint": "Only registered and active platform sources are available. No extraction prompt is required.",
"contextOption": {"mail_header_from_email":"Sender email","mail_header_from_domain":"Sender organization domain"},
"deterministicCollection": "Collected deterministically by HXOPS",
"deterministicCollectionHint": "The LLM neither extracts nor adjudicates this field, and it is hidden from Dify by default. Sender identity always uses the original EML From header.",
"difyExposurePolicy": "Dify read-only exposure",
"difyExposurePolicyOption": {"never":"Never expose","redacted":"Redacted read-only","confirmed_readonly":"Frozen value read-only"},
"difyExposurePolicyHint": {"never":"This field is omitted from Dify inputs.","redacted":"Only an irreversible placeholder is sent; the original email, domain, and recoverable patterns are excluded.","confirmed_readonly":"Sends the deterministic value frozen for this HXOPS run. This does not mean customer-confirmed, and Dify must not write it back."},
"availableForCustomerIdentity": "Allow the published field for customer identity"
},
"shippingInventory": {
"title": "Shipping Configuration",
@@ -397,7 +419,9 @@
"activationRequiredHint": "Complete the current item and the system will continue deciding whether the site can be enabled automatically.",
"activationOptionalTitle": "Prepare later (does not block enablement)",
"activationOptionalHint": "Complete when inventory exists or before an actual transfer.",
"readinessState": { "passed": "Complete", "required": "Action required", "waiting": "Waiting for prerequisite", "optional": "Complete when inventory or a transfer requires it", "failed": "Check failed; resolve and retry", "stale": "Configuration changed; run the test again" },
"readinessState": { "passed": "Complete", "required": "Action required", "waiting": "Waiting for prerequisite", "optional": "Complete when inventory or a transfer requires it", "failed": "Check failed; resolve and retry", "stale": "Configuration changed; run the test again" ,
"empty": "Export succeeded but inventory is empty; validate rows with the first non-empty file"
},
"readinessAction": { "configure_connection": "Configure connection", "configure_parsing_profile": "Configure parsing", "configure_excel_template": "Configure template", "configure_warehouse_mapping": "Configure warehouse mapping" },
"saveBeforeReadinessAction": "Save the current inventory-site changes before taking this action.",
"activationReady": "The inventory site is enabled and can run in production.",
@@ -698,8 +722,8 @@
"scheduleTaskRequired": "Please select a linked schedule first"
},
"capabilities": {
"title": "Runtime capabilities",
"subtitle": "Control streaming, file upload, task progress, human confirmation, citations, guides, and more at runtime",
"title": "Application interaction capabilities",
"subtitle": "Control the interaction features and display options available in chat",
"forcedByCatalog": "Fixed by the selected app type and cannot be turned off",
"streaming": "Streaming",
"streamingHint": "Stream chat responses via SSE; when off, wait for the full reply",
@@ -806,6 +830,8 @@
"memberCount": "{count} child apps",
"normalListHint": "This app only"
}
,
"runtimeBinding": {"title":"Background business capability binding","subtitle":"Explicitly select a background business provider; no name or environment fallback is used.","exposureMode":"Application visibility","exposureWorkspace":"Workspace entry","exposureInternal":"Internal business provider","exposureHint":"Internal applications are only available for background business bindings and are hidden from users.","enabled":"Enable order extraction service","provider":"Order extraction service provider","selectProvider":"Select an internal Dify Workflow","timeout":"Timeout (seconds)","maxAttempts":"Maximum attempts","noProvider":"No eligible internal Dify Workflow exists. Create and test the service provider application first.","providerRequired":"Select an order extraction service provider first."}
},
"question": {
"title": "Common Questions",
@@ -1065,6 +1091,8 @@
"employeeIdSource": "Employee ID Source",
"mobileNormalize": "Normalize mobile number",
"publicBaseUrl": "Public HTTPS base (extranet)"
,
"userSelect": "Select user"
},
"bindModes": {
"match_rules": "Match automatically",
@@ -1755,6 +1783,8 @@
"targets": { "customer": "Customer", "site": "Delivery site" },
"automations": { "none": "Candidate/manual review only", "conditional": "Controlled auto-confirm" },
"status": { "draft": "Draft", "published": "Current", "retired": "Retired" }
,
"selectFieldHint": "Only currently published order-header fields enabled for customer identity can be selected."
},
"shippingCustomers": {
"title": "Shipping Customer Master Data", "subtitle": "Maintain stable customer identities, short codes, identifiers, and initial imports", "add": "Add Customer", "edit": "Edit Customer", "saving": "Saving...", "importButton": "Initial Import", "search": "Search", "searchPlaceholder": "Search by customer name or short code", "empty": "No customers", "deactivate": "Deactivate", "confirmDeactivate": "Deactivate customer \"{name}\"? Historical business references will be retained.", "yes": "Yes", "no": "No",