{ "type" : "page", "title" : "派车打印", "body" : { "type" : "crud", "api" : "/api/flow/OA_VEHICLESEND_SEARCH", "syncLocation" : false, "selectable" : true, "checkOnItemClick" : true, "filter" : { "title" : "查询", "body" : [ { "name" : "VEHICLEID", "label" : "车牌号", "type" : "select", "clearable" : true, "searchable" : true, "source" : "/api/picker//list?q=${term}&page=${page}&perPage=${perPage}" }, { "name" : "DRIVERID", "label" : "驾驶员", "type" : "select", "clearable" : true, "searchable" : true, "source" : "/api/picker//list?q=${term}&page=${page}&perPage=${perPage}" }, { "name" : "OUTWARDRUNDATE", "label" : "实际出车时间", "type" : "input-datetime" }, { "name" : "RETURNDATE", "label" : "预计归车时间", "type" : "input-datetime" }, { "name" : "ACTUALRETURNDATE", "label" : "实际归车时间", "type" : "input-datetime" }, { "name" : "DESTINATION", "label" : "目的地", "type" : "input-text" }, { "name" : "OPERATOR", "label" : "派车人", "type" : "select", "clearable" : true, "searchable" : true, "source" : "/api/picker//list?q=${term}&page=${page}&perPage=${perPage}" }, { "name" : "SENDDATE", "label" : "派车时间", "type" : "input-datetime" } ] }, "columns" : [ { "name" : "OA_VEHICLESEND_ID", "label" : "主键", "width" : 200, "toggled" : false }, { "name" : "VEHICLEID_DISPLAY__", "label" : "车牌号", "width" : 200 }, { "name" : "DRIVERID_DISPLAY__", "label" : "驾驶员", "width" : 200 }, { "name" : "OUTWARDRUNDATE", "label" : "实际出车时间", "width" : 200, "type" : "datetime", "format" : "YYYY-MM-DD HH:mm", "inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ" }, { "name" : "RETURNDATE", "label" : "预计归车时间", "width" : 200, "type" : "datetime", "format" : "YYYY-MM-DD HH:mm", "inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ" }, { "name" : "ACTUALRETURNDATE", "label" : "实际归车时间", "width" : 200, "type" : "datetime", "format" : "YYYY-MM-DD HH:mm", "inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ" }, { "name" : "DESTINATION", "label" : "目的地", "width" : 200 }, { "name" : "OPERATOR_DISPLAY__", "label" : "派车人", "width" : 200 }, { "name" : "SENDDATE", "label" : "派车时间", "width" : 200, "type" : "datetime", "format" : "YYYY-MM-DD HH:mm", "inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ" } ], "headerToolbar" : [ { "type" : "button", "id" : "派车单打印", "label" : "派车单打印", "actionType" : "dialog", "disabledOn" : "${!selectedItems || selectedItems.length === 0}", "dialog" : { "type" : "dialog", "title" : "派车单打印", "size" : "lg", "data" : { "OA_VEHICLESEND_ID" : "${selectedItems[0].OA_VEHICLESEND_ID}" }, "body" : { "type" : "service", "schemaApi" : "get:/api/page/schema/a14ba65e-bb81-42a6-bb6b-f30d57c9097a?format=amis" }, "actions" : [ { "type" : "button", "label" : "关闭", "actionType" : "close" } ] } }, "pagination" ], "primaryField" : "OA_VEHICLESEND_ID", "onEvent" : { "inited" : { "actions" : [ { "actionType" : "ajax", "api" : { "method" : "post", "url" : "/api/script/execute-template", "data" : { "seq" : 1, "item" : "${&}", "templateId" : "8dffec90-31f2-4799-a429-8aa765e84911" } }, "outputVar" : "scriptResult1" }, { "actionType" : "replayScriptCommands", "args" : { "commands" : "${event.data.scriptResult1.commands}" } } ] } } } }