{ "type": "page", "title": "办公用品领用申请(P4-5 脚本挂回 e2e)", "body": { "type": "form", "title": "", "wrapWithPanel": false, "api": "/api/entity/OA_OFFICE_COLLARAPPLY/save", "body": [ { "type": "input-text", "name": "STORE_ID", "label": "仓库", "id": "STORE_ID" }, { "type": "input-text", "name": "OLD_STORE_ID", "label": "原仓库(脚本回填)", "id": "OLD_STORE_ID" } ], "onEvent": { "change": { "actions": [ { "actionType": "ajax", "api": { "method": "post", "url": "/api/script/execute-template", "data": { "templateId": "021e3ba7-e03a-412a-9f0e-c20ef440a885", "seq": 2, "item": "${&}" } }, "outputVar": "scriptResult2" }, { "actionType": "replayScriptCommands", "args": { "commands": "${event.data.scriptResult2.commands}" } } ] } } } }