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>
210 lines
5.8 KiB
JSON
210 lines
5.8 KiB
JSON
{
|
|
"type" : "page",
|
|
"title" : "人事变动-职位任免",
|
|
"body" : {
|
|
"type" : "crud",
|
|
"api" : "/api/flow/HR_LOGAPPOINT_SEARCH",
|
|
"syncLocation" : false,
|
|
"selectable" : true,
|
|
"checkOnItemClick" : true,
|
|
"filter" : {
|
|
"title" : "查询",
|
|
"body" : [ {
|
|
"name" : "EMPLOYEEID",
|
|
"label" : "员工姓名",
|
|
"type" : "picker",
|
|
"clearable" : true,
|
|
"source" : "/api/picker/4982d448-a9d4-493e-9e1d-ebcd3c7dfcd6/list",
|
|
"labelField" : "_label",
|
|
"valueField" : "_id",
|
|
"modalMode" : "dialog",
|
|
"modalSize" : "lg",
|
|
"pickerSchema" : {
|
|
"mode" : "table",
|
|
"headerToolbar" : [ {
|
|
"type" : "search-box",
|
|
"name" : "q",
|
|
"placeholder" : "输入关键字搜索"
|
|
} ],
|
|
"footerToolbar" : [ "pagination" ]
|
|
}
|
|
}, {
|
|
"name" : "JOB",
|
|
"label" : "岗位",
|
|
"type" : "input-text"
|
|
}, {
|
|
"name" : "STARTDATE",
|
|
"label" : "开始日期",
|
|
"type" : "input-date-range"
|
|
}, {
|
|
"name" : "ENDDATE",
|
|
"label" : "结束日期",
|
|
"type" : "input-date-range"
|
|
}, {
|
|
"name" : "REMARK",
|
|
"label" : "备注",
|
|
"type" : "input-text"
|
|
}, {
|
|
"name" : "TYPE",
|
|
"label" : "任免类别",
|
|
"type" : "select",
|
|
"clearable" : true,
|
|
"source" : "/api/poc/dict/hr_employee_change_type"
|
|
} ]
|
|
},
|
|
"columns" : [ {
|
|
"name" : "HR_LOGAPPOINT_ID",
|
|
"label" : "主键",
|
|
"width" : 200,
|
|
"toggled" : false
|
|
}, {
|
|
"name" : "EMPLOYEENUM",
|
|
"label" : "工号",
|
|
"width" : 80
|
|
}, {
|
|
"name" : "EMPLOYEEID_DISPLAY__",
|
|
"label" : "姓名",
|
|
"width" : 80
|
|
}, {
|
|
"name" : "TYPE",
|
|
"label" : "任免类别",
|
|
"width" : 80,
|
|
"type" : "mapping",
|
|
"map" : {
|
|
"1" : "任职",
|
|
"2" : "免职"
|
|
}
|
|
}, {
|
|
"name" : "JOB",
|
|
"label" : "岗位",
|
|
"width" : 180
|
|
}, {
|
|
"name" : "STARTDATE",
|
|
"label" : "开始日期",
|
|
"width" : 80,
|
|
"type" : "date",
|
|
"format" : "YYYY-MM-DD",
|
|
"inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ"
|
|
}, {
|
|
"name" : "ENDDATE",
|
|
"label" : "结束日期",
|
|
"width" : 80,
|
|
"type" : "date",
|
|
"format" : "YYYY-MM-DD",
|
|
"inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ"
|
|
}, {
|
|
"name" : "REMARK",
|
|
"label" : "备注",
|
|
"width" : 200
|
|
} ],
|
|
"headerToolbar" : [ {
|
|
"type" : "button",
|
|
"id" : "任职",
|
|
"label" : "任职",
|
|
"level" : "primary",
|
|
"actionType" : "dialog",
|
|
"dialog" : {
|
|
"type" : "dialog",
|
|
"title" : "任职",
|
|
"size" : "lg",
|
|
"body" : {
|
|
"type" : "service",
|
|
"schemaApi" : "get:/api/page/schema/9dc12ca5-b3c5-4fd4-a4ad-b292f8625379?format=amis",
|
|
"api" : {
|
|
"method" : "get",
|
|
"url" : "/api/form/HR_LOGAPPOINT/defaults?templateId=9dc12ca5-b3c5-4fd4-a4ad-b292f8625379"
|
|
}
|
|
},
|
|
"actions" : [ {
|
|
"type" : "button",
|
|
"label" : "保存",
|
|
"level" : "primary",
|
|
"actionType" : "submit",
|
|
"api" : "POST:/api/flow/HR_LOGAPPOINT_ADD_ADD?__egtpl=9dc12ca5-b3c5-4fd4-a4ad-b292f8625379",
|
|
"close" : true
|
|
}, {
|
|
"type" : "button",
|
|
"label" : "取消",
|
|
"actionType" : "close"
|
|
} ]
|
|
}
|
|
}, {
|
|
"type" : "button",
|
|
"id" : "免职",
|
|
"label" : "免职",
|
|
"level" : "primary",
|
|
"actionType" : "dialog",
|
|
"dialog" : {
|
|
"type" : "dialog",
|
|
"title" : "免职",
|
|
"size" : "lg",
|
|
"body" : {
|
|
"type" : "service",
|
|
"schemaApi" : "get:/api/page/schema/5b5f69e5-3ee8-4909-825c-d56aab0277ff?format=amis",
|
|
"api" : {
|
|
"method" : "get",
|
|
"url" : "/api/form/HR_LOGAPPOINT/defaults?templateId=5b5f69e5-3ee8-4909-825c-d56aab0277ff"
|
|
}
|
|
},
|
|
"actions" : [ {
|
|
"type" : "button",
|
|
"label" : "保存",
|
|
"level" : "primary",
|
|
"actionType" : "submit",
|
|
"api" : "POST:/api/flow/HR_LOGAPPOINT_ADD_DEL?__egtpl=5b5f69e5-3ee8-4909-825c-d56aab0277ff",
|
|
"close" : true
|
|
}, {
|
|
"type" : "button",
|
|
"label" : "取消",
|
|
"actionType" : "close"
|
|
} ]
|
|
}
|
|
}, {
|
|
"type" : "button",
|
|
"id" : "删除",
|
|
"label" : "删除",
|
|
"level" : "danger",
|
|
"actionType" : "ajax",
|
|
"disabledOn" : "${!selectedItems || selectedItems.length === 0}",
|
|
"confirmText" : "此操作仅删除当前记录,如果需要免职请使用免职功能,如果需要任职请使用任职功能!",
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/flow/HR_LOGAPPOINT_DELETE",
|
|
"data" : {
|
|
"ids" : "${selectedItems|pick:HR_LOGAPPOINT_ID|join:','}"
|
|
}
|
|
}
|
|
}, {
|
|
"type" : "button",
|
|
"id" : "查看",
|
|
"label" : "查看",
|
|
"actionType" : "dialog",
|
|
"disabledOn" : "${!selectedItems || selectedItems.length === 0}",
|
|
"dialog" : {
|
|
"type" : "dialog",
|
|
"title" : "查看",
|
|
"size" : "lg",
|
|
"data" : {
|
|
"&" : "${selectedItems[0]}",
|
|
"__readonly" : true
|
|
},
|
|
"body" : {
|
|
"type" : "service",
|
|
"schemaApi" : "get:/api/page/schema/b6a648ce-4164-4e70-b536-a54ed55dd097?format=amis",
|
|
"static" : true,
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/flow/HR_LOGAPPOINT_LOAD?__egtpl=b6a648ce-4164-4e70-b536-a54ed55dd097",
|
|
"data" : {
|
|
"HR_LOGAPPOINT_ID" : "${HR_LOGAPPOINT_ID}"
|
|
},
|
|
"responseData" : {
|
|
"&" : "${result}"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}, "pagination" ],
|
|
"primaryField" : "HR_LOGAPPOINT_ID"
|
|
}
|
|
} |