fix: use native ERP product search
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"$schema": "https://local.lwltapi/schemas/ltjt_form_mapping.schema.json",
|
||||
"mapping_version": "2026-08-11.team_order_batch_create.orders_adds.v0.2",
|
||||
"status": "live_batch_requery_and_suffix_override_repeatedly_validated_0.5.81_candidate",
|
||||
"mapping_version": "2026-09-02.team_order_batch_create.orders_adds.v0.3",
|
||||
"status": "native_nonempty_product_search_live_verified_release_gated_0.5.165",
|
||||
"source": {
|
||||
"schema": "schemas/standard_system_operation.schema.json",
|
||||
"action": "team_order_batch_create"
|
||||
@@ -20,7 +20,7 @@
|
||||
{ "step": 1, "operation": "open_native_batch_entry", "description": "在独立团订单列表打开批量下单功能。" },
|
||||
{ "step": 2, "operation": "set_date_range", "source": "data.recurrence.start_date/end_date", "targets": ["Riqi1", "Riqi2"] },
|
||||
{ "step": 3, "operation": "resolve_booking_customer", "source": "data.customer.keyword || data.customer.name", "target": "zutuanshe", "setval_targets": ["zutuansheid", "zutuanshe", "lianxiren", "zutuanshegzr"], "rule": "exact/unique normalized matching first; if those fail, all recognizable source-region tokens may select only one current ERP customer name", "unique_required": true },
|
||||
{ "step": 4, "operation": "resolve_and_select_product", "source": "data.product.keyword || data.product.name", "search_target": "S_chanpinming", "radio_target": "cp_id", "side_effect": "page set_th fills tuanxuhao1/tuanxuhao2", "unique_required": true },
|
||||
{ "step": 4, "operation": "resolve_and_select_product", "source": "data.product.keyword || data.product.name", "search_target": "S_chanpinming", "radio_target": "cp_id", "side_effect": "page set_th fills tuanxuhao1/tuanxuhao2", "unique_required": true, "fallback": "match loaded candidates first; if unresolved, issue the native non-empty product-name query after stripping only a trailing numeric duration, then match locally; retain one empty-query compatibility reload; never choose the first row" },
|
||||
{ "step": 5, "operation": "conditionally_apply_explicit_order_suffix", "source": "data.order_number.suffix", "target": "tuanxuhao2", "rule": "ordinary Agent output leaves this absent; when a host/business system explicitly supplies it, apply only after product set_th and require exact persistence before payload approval" },
|
||||
{ "step": 6, "operation": "record_source_region_context", "source": "the final uniquely resolved ERP product/customer candidate names plus optional source_region context", "rule": "source-region context is report-only; product and customer candidates are resolved independently and a mismatch never blocks DoInfoJHs" },
|
||||
{ "step": 7, "operation": "set_passenger_counts", "targets": ["darenshu", "xiaorenshu", "ertrenshu", "yingrenshu", "quanrenshu"], "side_effect": "GetVisitorsHtml()" },
|
||||
@@ -42,7 +42,8 @@
|
||||
"product": {
|
||||
"search_field": "S_chanpinming",
|
||||
"radio_name": "cp_id",
|
||||
"match_order": ["exact_row_text", "unique_contiguous", "unique_tokenized_contains"],
|
||||
"match_order": ["unique_contiguous", "unique_name_duration_tokens", "unique_ordered_tokens"],
|
||||
"native_query_policy": "submit the complete product name unchanged, or strip a trailing numeric duration shorthand before querying; await native Ajax and match returned candidates locally; use one empty query only as the final compatibility reload",
|
||||
"ambiguous_or_empty": "block",
|
||||
"context": "customer selection must be applied before product query"
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user