{ "type" : "page", "title" : "考勤结果编辑界面", "body" : { "type" : "form", "id" : "eip4-edit-form", "title" : "", "mode" : "horizontal", "horizontal" : { "leftFixed" : 120 }, "body" : [ { "type" : "grid", "columns" : [ { "md" : 6, "body" : [ { "name" : "USERID", "label" : "姓名", "required" : true, "type" : "picker", "clearable" : true, "source" : "/api/picker/1b6820ad-bc7c-4eef-ac63-652cdf52c75f/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" : "ATTENDDATE", "label" : "考勤日期", "required" : true, "type" : "input-date" } ] } ] }, { "type" : "grid", "columns" : [ { "md" : 6, "body" : [ { "name" : "DAYOFWEEK", "label" : "星期", "disabled" : true, "type" : "input-text" } ] } ] }, { "type" : "grid", "columns" : [ { "md" : 12, "body" : [ { "name" : "ATTENDDETAILS", "label" : "考勤结果明细", "required" : true, "type" : "input-table", "id" : "eg-ATTENDDETAILS", "addable" : true, "removable" : true, "staticOn" : "${__readonly}", "columns" : [ { "name" : "CHECKATTENDANCESTATE", "label" : "考勤状态", "quickEdit" : { "name" : "CHECKATTENDANCESTATE", "required" : true, "type" : "select", "clearable" : true, "source" : "/api/poc/dict/HR_CHECKATTENDANCESTATE", "onEvent" : { "change" : { "actions" : [ { "actionType" : "ajax", "outputVar" : "egRow", "args" : { "api" : { "method" : "post", "url" : "/api/script/execute-editgrid-row", "data" : { "templateId" : "a81b939f-d2b4-46ae-9220-5abbdadb7be5", "editgridField" : "ATTENDDETAILS", "scriptKey" : "b432fe08-8387-4d63-a6f6-b8a7f95b0456", "changedField" : "CHECKATTENDANCESTATE", "row" : "${__rendererData}", "parent" : { "ATTENDDETAILS" : "${__rendererData.ATTENDDETAILS || ATTENDDETAILS}" } } } } }, { "actionType" : "setValue", "componentId" : "eg-ATTENDDETAILS", "args" : { "index" : "${index}", "value" : "${egRow.rowSetValues}" } }, { "actionType" : "setValue", "componentId" : "eip4-edit-form", "args" : { "value" : "${egRow.parentSetValues}" } } ] } } } }, { "name" : "TIMES", "label" : "时间", "quickEdit" : { "name" : "TIMES", "required" : true, "type" : "input-number", "precision" : 1 } }, { "name" : "UNITNAME", "label" : "单位", "quickEdit" : { "name" : "UNITNAME", "disabled" : true, "type" : "input-text" } } ], "needConfirm" : false } ] } ] }, { "type" : "grid", "columns" : [ { "md" : 12, "body" : [ { "name" : "CHECKINOUTDETAILS", "label" : "打卡记录明细", "disabled" : true, "type" : "input-table", "id" : "eg-CHECKINOUTDETAILS", "addable" : true, "removable" : true, "staticOn" : "${__readonly}", "columns" : [ { "name" : "CHECKTIME", "label" : "打卡时间", "quickEdit" : { "name" : "CHECKTIME", "required" : true, "type" : "input-datetime" } }, { "name" : "CHECKTYPE", "label" : "打卡类型", "quickEdit" : { "name" : "CHECKTYPE", "type" : "select", "clearable" : true, "source" : "/api/poc/dict/CHECKTYPE" } } ], "needConfirm" : false } ] } ] }, { "type" : "grid", "columns" : [ { "md" : 12, "body" : [ { "name" : "NOWORKSDETAILS", "label" : "休假出差外出明细", "disabled" : true, "type" : "input-table", "id" : "eg-NOWORKSDETAILS", "addable" : true, "removable" : true, "staticOn" : "${__readonly}", "columns" : [ { "name" : "ATTENDS", "label" : "类型", "quickEdit" : { "name" : "ATTENDS", "type" : "input-text" } }, { "name" : "BEGINTIME", "label" : "开始时间", "quickEdit" : { "name" : "BEGINTIME", "type" : "input-datetime" } }, { "name" : "ENDTIME", "label" : "结束时间", "quickEdit" : { "name" : "ENDTIME", "type" : "input-datetime" } }, { "name" : "TRAVELSTATE", "label" : "是否备案", "quickEdit" : { "name" : "TRAVELSTATE", "type" : "select", "clearable" : true, "source" : "/api/poc/dict/HR_HOLIDAYSTATUS" } } ], "needConfirm" : false } ] } ] }, { "name" : "HR_ATTENDLOG_ID", "label" : "主键", "hidden" : true, "type" : "input-text" } ], "actions" : [ ] } }