{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://local.lwltapi/schemas/orders_adds_form_schema.json", "title": "LTJT Native Team Batch Order Form", "description": "Observed native independent-team batch order form on the logged-in LWLT ERP deployment.", "type": "object", "additionalProperties": false, "required": ["page", "form", "submit", "fields", "cycle_shortcuts"], "properties": { "page": { "type": "object", "required": ["path"], "properties": { "path": { "const": "/System/Business/orders_adds.asp" }, "entry": { "const": "OPEN_ProEdits() from the independent-team order list" } }, "additionalProperties": false }, "form": { "type": "object", "required": ["id", "name", "method", "action"], "properties": { "id": { "const": "InfoForm1" }, "name": { "const": "InfoForm1" }, "method": { "const": "post" }, "action": { "const": "/System/DAT/orders.asp?Act=DoInfoJHs" }, "observed_control_count": { "type": "integer", "minimum": 1 } }, "additionalProperties": false }, "submit": { "type": "object", "required": ["endpoint", "payload_prefix", "response_type"], "properties": { "endpoint": { "const": "/System/DAT/orders.asp" }, "action": { "const": "DoInfoJHs" }, "payload_prefix": { "const": "Act=DoInfoJHs&" }, "response_type": { "const": "script" }, "write_preflight": { "const": "intercept native SubmitInfoForm before network" }, "live_write": { "const": "approved payload hash and field-count match only" } }, "additionalProperties": false }, "fields": { "type": "object", "additionalProperties": false, "required": [ "Riqi1", "Riqi2", "zutuanshe", "zutuansheid", "zutuanshegzr", "lianxiren", "S_chanpinming", "cp_id", "tuanxuhao1", "tuanxuhao2", "darenshu", "xiaorenshu", "ertrenshu", "yingrenshu", "quanrenshu", "xiaoshouren", "keyuandi", "frenshu0", "frenshu1", "frenshu2", "frenshu3", "frenshu4", "frenshu5", "frenshu6", "zhouqi", "zhidingzhouqi" ], "properties": { "Riqi1": { "type": "string", "description": "批量发团日期范围起始值,ERP 接受 YYYY-M-D。" }, "Riqi2": { "type": "string", "description": "批量发团日期范围结束值,ERP 接受 YYYY-M-D。" }, "zutuanshe": { "type": "string", "description": "页面 SelectBox 显示客户名称。" }, "zutuansheid": { "type": "string", "description": "SelectBox 关联客户 ID,由页面映射填入。" }, "zutuanshegzr": { "type": "string", "description": "SelectBox 关联负责人,由页面映射填入。" }, "lianxiren": { "type": "string", "description": "SelectBox 关联联系人,由页面映射填入。" }, "S_chanpinming": { "type": "string", "description": "产品搜索关键字。" }, "cp_id": { "type": "string", "description": "实际产品单选值;使用 cp_id,不得误写为旧单页的 cpid。" }, "tuanxuhao1": { "type": "string", "description": "产品点选后的团号前缀。" }, "tuanxuhao2": { "type": "string", "description": "产品点选后的团号规则/后缀。" }, "darenshu": { "type": "integer", "minimum": 0 }, "xiaorenshu": { "type": "integer", "minimum": 0 }, "ertrenshu": { "type": "integer", "minimum": 0 }, "yingrenshu": { "type": "integer", "minimum": 0 }, "quanrenshu": { "type": "integer", "minimum": 0 }, "xiaoshouren": { "type": "string" }, "keyuandi": { "type": "string" }, "frenshu0": { "type": "integer", "minimum": 0, "description": "SGL 单房。" }, "frenshu1": { "type": "integer", "minimum": 0, "description": "TWN 标间。" }, "frenshu2": { "type": "integer", "minimum": 0, "description": "TRP 三人间。" }, "frenshu3": { "type": "integer", "minimum": 0, "description": "DBL 双卧大床房。" }, "frenshu4": { "type": "integer", "minimum": 0 }, "frenshu5": { "type": "integer", "minimum": 0 }, "frenshu6": { "type": "integer", "minimum": 0, "description": "sum_fang() 计算的用房总数。" }, "zhouqi": { "type": "array", "items": { "type": "string" }, "description": "All、1/2/3/4/5/6/0、d1d/d3d... 快捷周期值。" }, "zhidingzhouqi": { "type": "array", "items": { "type": "string" }, "description": "显式日期枚举值;每个日期只选择一个重复节点。" } } }, "cycle_shortcuts": { "type": "object", "additionalProperties": false, "required": ["daily", "weekly", "odd_days", "even_days"], "properties": { "daily": { "const": ["All"] }, "weekly": { "const": { "monday": "1", "tuesday": "2", "wednesday": "3", "thursday": "4", "friday": "5", "saturday": "6", "sunday": "0" } }, "odd_days": { "const": ["d1d", "d3d", "d5d", "d7d", "d9d"] }, "even_days": { "const": ["d2d", "d4d", "d6d", "d8d", "d0d"] } } } } }