Files
eip4-platform/转换产物-attach/schema/c804608f-eed6-45f6-accc-16414ff41e32.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

129 lines
3.4 KiB
JSON

{
"type" : "page",
"title" : "培训结果登记",
"body" : {
"type" : "crud",
"api" : "/api/flow/HR_TRAIN_PLAN_SEARCH_PASS",
"syncLocation" : false,
"selectable" : true,
"checkOnItemClick" : true,
"filter" : {
"title" : "查询",
"body" : [ {
"name" : "NAME",
"label" : "计划名称",
"type" : "input-text"
}, {
"name" : "COURSETYPE",
"label" : "培训课程",
"type" : "select",
"clearable" : true,
"source" : "/api/poc/dict/HR_TRIAN_COURSETYPE"
}, {
"name" : "CREATETIME",
"label" : "制定日期",
"type" : "input-date-range"
}, {
"name" : "DO_STATUS",
"label" : "执行状态",
"type" : "select",
"clearable" : true,
"source" : "/api/poc/dict/HR_PLAN_DOSTATUS"
} ]
},
"columns" : [ {
"name" : "HR_TRAIN_PLAN_ID",
"label" : "主键",
"width" : 200,
"toggled" : false
}, {
"name" : "NAME",
"label" : "计划名称",
"width" : 200
}, {
"name" : "DEPART_ID_DISPLAY__",
"label" : "计划部门",
"width" : 200
}, {
"name" : "PRINCIPAL_DISPLAY__",
"label" : "负责人",
"width" : 70
}, {
"name" : "COURSETYPE",
"label" : "培训课程",
"width" : 100,
"type" : "mapping",
"map" : {
"1" : "建造师注册证",
"3" : "ABC三类人员证",
"4" : "技术工人证",
"5" : "十大员",
"6" : "职称",
"100" : "其他"
}
}, {
"name" : "CREATEBY_DISPLAY__",
"label" : "制定人",
"width" : 70
}, {
"name" : "CREATETIME",
"label" : "制定日期",
"width" : 100,
"type" : "datetime",
"format" : "YYYY-MM-DD HH:mm",
"inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ"
}, {
"name" : "DO_STATUS",
"label" : "执行状态",
"width" : 70,
"type" : "mapping",
"map" : {
"1" : "执行中",
"2" : "已执行",
"3" : "未执行"
}
} ],
"headerToolbar" : [ {
"type" : "button",
"id" : "培训记录",
"label" : "培训记录",
"actionType" : "dialog",
"disabledOn" : "${!selectedItems || selectedItems.length === 0}",
"dialog" : {
"type" : "dialog",
"title" : "培训记录",
"size" : "lg",
"data" : {
"&" : "${selectedItems[0]}"
},
"body" : {
"type" : "service",
"schemaApi" : "get:/api/page/schema/043ca17e-900d-44b6-aef4-e3bac9c2076c?format=amis",
"api" : {
"method" : "post",
"url" : "/api/flow/HR_TRAIN_RECORD_LOAD_BY_PLANINFOID?__egtpl=043ca17e-900d-44b6-aef4-e3bac9c2076c",
"data" : {
"HR_TRAIN_PLAN_ID" : "${HR_TRAIN_PLAN_ID}"
},
"responseData" : {
"&" : "${result}"
}
}
},
"actions" : [ {
"type" : "button",
"label" : "保存",
"level" : "primary",
"actionType" : "submit",
"api" : "POST:/api/flow/HR_TRAIN_RECORD_ADD?__egtpl=043ca17e-900d-44b6-aef4-e3bac9c2076c",
"close" : true
}, {
"type" : "button",
"label" : "取消",
"actionType" : "close"
} ]
}
}, "pagination" ],
"primaryField" : "HR_TRAIN_PLAN_ID"
}
}