{ "type" : "page", "title" : "填写用车申请", "body" : { "type" : "form", "title" : "", "mode" : "horizontal", "horizontal" : { "leftFixed" : 120 }, "body" : [ { "type" : "grid", "columns" : [ { "md" : 6, "body" : [ { "name" : "VEHICLEID", "label" : "车牌号", "type" : "picker", "clearable" : true, "source" : "/api/picker/94ba4c35-9b9d-4476-bab4-c7677bf813f2/list", "labelField" : "_label", "valueField" : "_id", "modalMode" : "dialog", "modalSize" : "lg", "pickerSchema" : { "mode" : "table", "headerToolbar" : [ { "type" : "search-box", "name" : "q", "placeholder" : "输入关键字搜索" } ], "footerToolbar" : [ "pagination" ] } } ] }, { "md" : 6, "body" : [ { "name" : "VEHICLETYPEID", "label" : "车辆类型", "disabled" : true, "type" : "input-text" } ] } ] }, { "type" : "grid", "columns" : [ { "md" : 6, "body" : [ { "name" : "BURDEN", "label" : "核定载客人数/载货量", "disabled" : true, "type" : "input-number", "precision" : 0, "step" : 1 } ] }, { "md" : 6, "body" : [ { "name" : "TRANSPORTATION", "label" : "目的地距离", "required" : true, "type" : "select", "clearable" : true, "source" : "/api/poc/dict/OA_VEHICLEAPPLICATION_TRANSRANGE", "value" : "1" } ] } ] }, { "type" : "grid", "columns" : [ { "md" : 6, "body" : [ { "name" : "PROPOSER", "label" : "申请人", "type" : "static", "tpl" : "${PROPOSER_DISPLAY__ ? PROPOSER_DISPLAY__ : (DISPLAYNAME ? DISPLAYNAME : PROPOSER)}", "value" : "${currentUser}" } ] }, { "md" : 6, "body" : [ { "name" : "APPLICATIONDATE", "label" : "申请日期", "required" : true, "disabled" : true, "type" : "input-date", "value" : "${now}" } ] } ] }, { "type" : "grid", "columns" : [ { "md" : 6, "body" : [ { "name" : "DEPARTS", "label" : "用车部门", "required" : true, "type" : "tree-select", "clearable" : true, "multiple" : true, "overflowConfig" : { "displayPosition" : [ "select" ], "maxTagCount" : 1 }, "source" : "/api/template/138b7ca7-befb-4a0c-bfc6-ed8fb4d4e434/tree", "searchable" : true, "onlyLeaf" : true } ] }, { "md" : 6, "body" : [ { "name" : "USERS", "label" : "使用人", "required" : true, "type" : "picker", "clearable" : true, "multiple" : true, "overflowConfig" : { "displayPosition" : [ "select" ], "maxTagCount" : 1 }, "source" : "/api/picker/76d2f950-ef40-4eff-89ec-98ad9a4976b9/list", "labelField" : "_label", "valueField" : "_id", "modalMode" : "dialog", "modalSize" : "lg", "pickerSchema" : { "mode" : "table", "headerToolbar" : [ { "type" : "search-box", "name" : "q", "placeholder" : "输入关键字搜索" } ], "footerToolbar" : [ "pagination" ] }, "placeholder" : "请点击右侧的图标" } ] } ] }, { "type" : "grid", "columns" : [ { "md" : 6, "body" : [ { "name" : "OUTWARDRUNDATE", "label" : "预计出车时间", "required" : true, "type" : "input-datetime" } ] }, { "md" : 6, "body" : [ { "name" : "RETURNDATE", "label" : "预计归车时间", "required" : true, "type" : "input-datetime" } ] } ] }, { "type" : "grid", "columns" : [ { "md" : 12, "body" : [ { "name" : "DESTINATION", "label" : "目的地", "required" : true, "type" : "input-text" } ] } ] }, { "type" : "grid", "columns" : [ { "md" : 12, "body" : [ { "name" : "MATTER", "label" : "出车事由", "type" : "textarea" } ] } ] }, { "name" : "OA_VEHICLEAPPLICATION_ID", "label" : "主键", "hidden" : true, "type" : "input-text" }, { "name" : "ALLOCATIONSTATUS", "label" : "派车情况", "required" : true, "hidden" : true, "type" : "select", "clearable" : true, "source" : "/api/poc/dict/allocationStatus", "value" : "1" }, { "name" : "A", "label" : "A", "hidden" : true, "type" : "input-text", "value" : "1" } ], "actions" : [ { "type" : "button", "label" : "保存", "level" : "primary", "actionType" : "ajax", "api" : "POST:/api/flow/OA_VEHICLEAPPLICATION_ADD", "data" : { "&" : "${&}" } }, { "type" : "button", "label" : "保存并提交审批", "level" : "primary", "actionType" : "ajax", "api" : "POST:/api/flow/OA_VEHICLEAPPLICATION_SAVE_AND_SUBMIT", "data" : { "&" : "${&}" } } ] } }