Files
eip4-platform/转换产物-attach/schema/87d88bba-5ed1-4835-8e22-393e08ee4c93.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

95 lines
2.6 KiB
JSON

{
"type" : "page",
"title" : "选择关联的危险源清单项",
"body" : {
"type" : "crud",
"api" : "/api/flow/PM_SCHEMEDANGERRELATION_PROJECTDANGERLISTITEM_SEARCH",
"syncLocation" : false,
"selectable" : true,
"checkOnItemClick" : true,
"filter" : {
"title" : "查询",
"body" : [ {
"name" : "DANGERLISTNAME",
"label" : "作业过程或活动",
"type" : "tree-select",
"clearable" : true,
"source" : "/api/template/82b68117-5b61-4c9f-b188-4592782af30b/tree",
"searchable" : true
}, {
"name" : "DANGERPROPERTY",
"label" : "危险危害因素",
"type" : "input-text"
}, {
"name" : "TROUBLE",
"label" : "可能导致事故、事件",
"type" : "input-text"
}, {
"name" : "DANGERGRADE",
"label" : "危险级别",
"type" : "picker",
"clearable" : true,
"source" : "/api/picker/7a4ca3c1-8ab7-4786-8b36-5c623d06bc4c/list",
"labelField" : "_label",
"valueField" : "_id",
"modalMode" : "dialog",
"modalSize" : "lg",
"pickerSchema" : {
"mode" : "table",
"headerToolbar" : [ {
"type" : "search-box",
"name" : "q",
"placeholder" : "输入关键字搜索"
} ],
"footerToolbar" : [ "pagination" ]
}
}, {
"name" : "STAGE",
"label" : "阶段",
"type" : "select",
"clearable" : true,
"source" : "/api/poc/dict/PROJECT_D_P_STAGE"
} ]
},
"columns" : [ {
"name" : "PM_PROJECTDANGERLISTITEM_ID",
"label" : "主键",
"width" : 200,
"toggled" : false
}, {
"name" : "PROJECTID",
"label" : "工程名称",
"width" : 200,
"toggled" : false
}, {
"name" : "DANGERLISTNAME_DISPLAY__",
"label" : "作业过程或活动",
"width" : 200
}, {
"name" : "DANGERPROPERTY",
"label" : "危险危害因素",
"width" : 200
}, {
"name" : "TROUBLE",
"label" : "可能导致事故、事件",
"width" : 200
}, {
"name" : "DANGERGRADE_DISPLAY__",
"label" : "危险级别",
"width" : 200
}, {
"name" : "STAGE",
"label" : "阶段",
"width" : 200,
"type" : "mapping",
"map" : {
"1" : "已识别",
"2" : "方案已审批",
"3" : "已交底",
"4" : "已封闭"
}
} ],
"headerToolbar" : [ "pagination" ],
"primaryField" : "PM_PROJECTDANGERLISTITEM_ID"
}
}