PageBlueprint 加 RECIPE_MASTER_DETAIL 常量与可空 child 组件(14-arg, 保留 13-arg 兼容构造);新增 PageBlueprintChild record。 PageBlueprintCompiler.masterDetail 复用 maintenance 列表骨架, 新增/编辑表单内联 house-style input-table 子表(name=listColumn, quickEdit 控件),编辑表单 initApi 走 _LOAD 回显主+子行。 validate 接受 master-detail 并要求 child 非空/childTable/listColumn 非空/fields 非空。 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
227 lines
6.6 KiB
JSON
227 lines
6.6 KiB
JSON
{
|
|
"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" : [ ]
|
|
}
|
|
} |