Files
eip4-platform/转换产物-attach/schema/017d6c4c-d84f-40c3-bf70-73e83c41fc23.json
zhengwr 8fe377b0c8 feat(blueprint): master-detail-v1 编译器分支 + PageBlueprintChild
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>
2026-06-20 15:16:30 +08:00

264 lines
7.3 KiB
JSON

{
"type" : "page",
"title" : "人事变动-离职",
"body" : {
"type" : "crud",
"api" : "/api/flow/HR_LOGDIMISSION_SEARCH",
"syncLocation" : false,
"selectable" : true,
"checkOnItemClick" : true,
"filter" : {
"title" : "查询",
"body" : [ {
"name" : "FORMNO",
"label" : "编号",
"type" : "input-text"
}, {
"name" : "EMPLOYEE",
"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" : "EMPLOYEENUM",
"label" : "工号",
"type" : "input-text"
}, {
"name" : "DEPART",
"label" : "部门",
"type" : "tree-select",
"clearable" : true,
"source" : "/api/template/138b7ca7-befb-4a0c-bfc6-ed8fb4d4e434/tree",
"searchable" : true,
"onlyLeaf" : true
}, {
"name" : "JOB",
"label" : "岗位",
"type" : "tree-select",
"clearable" : true,
"source" : "/api/template/feeee51d-d41b-410b-b7a4-67d61ec8c4df/tree",
"searchable" : true,
"onlyLeaf" : true
}, {
"name" : "INSUREDS",
"label" : "参保退保",
"type" : "picker",
"clearable" : true,
"multiple" : true,
"overflowConfig" : {
"displayPosition" : [ "select" ],
"maxTagCount" : 1
},
"source" : "/api/picker/0f95521e-5eb2-455f-9cbd-d9a8a5de8d11/list",
"labelField" : "_label",
"valueField" : "_id",
"modalMode" : "dialog",
"modalSize" : "lg",
"pickerSchema" : {
"mode" : "table",
"headerToolbar" : [ {
"type" : "search-box",
"name" : "q",
"placeholder" : "输入关键字搜索"
} ],
"footerToolbar" : [ "pagination" ]
}
}, {
"name" : "LEAVEDATE",
"label" : "离职日期",
"type" : "input-date-range"
}, {
"name" : "LEAVEREASON",
"label" : "离职方式",
"type" : "select",
"clearable" : true,
"source" : "/api/poc/dict/HR_EMPLOYEE_LEAVEREASON_TYPE"
}, {
"name" : "REMARK",
"label" : "备注",
"type" : "input-text"
} ]
},
"columns" : [ {
"name" : "HR_LOGDIMISSION_ID",
"label" : "主键",
"width" : 200,
"toggled" : false
}, {
"name" : "FORMNO",
"label" : "编号",
"width" : 80
}, {
"name" : "EMPLOYEENUM",
"label" : "工号",
"width" : 50
}, {
"name" : "EMPLOYEE_DISPLAY__",
"label" : "姓名",
"width" : 80
}, {
"name" : "DEPART",
"label" : "部门",
"width" : 150
}, {
"name" : "JOB",
"label" : "岗位",
"width" : 180
}, {
"name" : "INSUREDSTEXT",
"label" : "参保退保",
"width" : 200
}, {
"name" : "LEAVEDATE",
"label" : "离职日期",
"width" : 80,
"type" : "date",
"format" : "YYYY-MM-DD",
"inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ"
}, {
"name" : "LEAVEREASON",
"label" : "离职方式",
"width" : 60,
"type" : "mapping",
"map" : {
"1" : "辞职",
"2" : "辞退"
}
} ],
"headerToolbar" : [ {
"type" : "button",
"id" : "添加",
"label" : "添加",
"level" : "primary",
"actionType" : "dialog",
"dialog" : {
"type" : "dialog",
"title" : "添加",
"size" : "lg",
"body" : {
"type" : "service",
"schemaApi" : "get:/api/page/schema/2cfa152e-15e1-4998-8156-0737539f01b3?format=amis",
"api" : {
"method" : "get",
"url" : "/api/form/HR_LOGDIMISSION/defaults?templateId=2cfa152e-15e1-4998-8156-0737539f01b3"
}
},
"actions" : [ {
"type" : "button",
"label" : "保存",
"level" : "primary",
"actionType" : "submit",
"api" : "POST:/api/flow/HR_LOGDIMISSION_ADD?__egtpl=2cfa152e-15e1-4998-8156-0737539f01b3",
"close" : true
}, {
"type" : "button",
"label" : "取消",
"actionType" : "close"
} ]
}
}, {
"type" : "button",
"id" : "退回",
"label" : "退回",
"actionType" : "ajax",
"confirmText" : "退回将更新员工为“在职”状态,是否继续?",
"api" : {
"method" : "post",
"url" : "/api/flow/HR_LOGDIMISSION_DELETE",
"data" : {
"HR_LOGDIMISSION_ID" : "${selectedItems[0].HR_LOGDIMISSION_ID}"
}
},
"disabledOn" : "${!selectedItems || selectedItems.length === 0}"
}, {
"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/f965d063-d21e-429e-b172-df8b08e01df5?format=amis",
"static" : true,
"api" : {
"method" : "post",
"url" : "/api/flow/HR_LOGDIMISSION_LOAD?__egtpl=f965d063-d21e-429e-b172-df8b08e01df5",
"data" : {
"HR_LOGDIMISSION_ID" : "${HR_LOGDIMISSION_ID}"
},
"responseData" : {
"&" : "${result}"
}
}
}
}
}, {
"type" : "button",
"id" : "打印",
"label" : "打印",
"actionType" : "dialog",
"disabledOn" : "${!selectedItems || selectedItems.length === 0}",
"dialog" : {
"type" : "dialog",
"title" : "离职证明打印",
"size" : "lg",
"data" : {
"HR_LOGDIMISSION_ID" : "${selectedItems[0].HR_LOGDIMISSION_ID}"
},
"body" : {
"type" : "service",
"schemaApi" : "get:/api/page/schema/91bac31b-3dc0-44a9-b6ea-36c3e847ff81?format=amis"
},
"actions" : [ {
"type" : "button",
"label" : "关闭",
"actionType" : "close"
} ]
}
}, "pagination" ],
"primaryField" : "HR_LOGDIMISSION_ID",
"onEvent" : {
"inited" : {
"actions" : [ {
"actionType" : "ajax",
"api" : {
"method" : "post",
"url" : "/api/script/execute-template",
"data" : {
"seq" : 1,
"item" : "${&}",
"templateId" : "017d6c4c-d84f-40c3-bf70-73e83c41fc23"
}
},
"outputVar" : "scriptResult1"
}, {
"actionType" : "replayScriptCommands",
"args" : {
"commands" : "${event.data.scriptResult1.commands}"
}
} ]
}
}
}
}