Files
eip4-platform/转换产物-attach/schema/bd9b9e41-2dea-4650-a44b-0673443c8aa3.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

153 lines
3.7 KiB
JSON

{
"type" : "page",
"title" : "公司危险源清单项编辑",
"body" : {
"type" : "form",
"id" : "eip4-edit-form",
"title" : "",
"mode" : "horizontal",
"horizontal" : {
"leftFixed" : 120
},
"body" : [ {
"type" : "grid",
"columns" : [ {
"md" : 7,
"body" : [ {
"name" : "DANGERPROPERTY",
"label" : "危险危害因素",
"required" : true,
"type" : "input-text"
} ]
}, {
"md" : 5,
"body" : [ {
"name" : "TROUBLE",
"label" : "可能导致事故",
"required" : true,
"type" : "input-text"
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 7,
"body" : [ {
"name" : "DANGERSTATUS",
"label" : "状态",
"required" : true,
"type" : "select",
"clearable" : true,
"source" : "/api/poc/dict/DANGER_STATUS",
"value" : "1"
} ]
}, {
"md" : 5,
"body" : [ {
"name" : "TENSE",
"label" : "时态",
"type" : "select",
"clearable" : true,
"source" : "/api/poc/dict/DANGER_TENSE"
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 7,
"body" : [ {
"name" : "EVALUATIONMETHOD",
"label" : "评价方法",
"required" : true,
"type" : "select",
"clearable" : true,
"source" : "/api/poc/dict/evaluationmethod"
} ]
}, {
"md" : 5,
"body" : [ {
"name" : "DANGERGRADE",
"label" : "危险级别",
"required" : true,
"type" : "select",
"clearable" : true,
"source" : "/api/picker/PM_DANGERRISKLEVEL/list?perPage=500"
} ]
} ]
}, {
"name" : "test",
"label" : "test",
"disabled" : true,
"hidden" : true,
"type" : "input-text"
}, {
"type" : "grid",
"columns" : [ {
"md" : 5,
"body" : [ {
"name" : "SCORE",
"label" : "得分",
"disabled" : true,
"type" : "input-number",
"precision" : 2
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 12,
"body" : [ {
"name" : "LIST",
"label" : "分数项",
"type" : "input-table",
"id" : "eg-LIST",
"addable" : false,
"removable" : false,
"staticOn" : "${__readonly}",
"columns" : [ {
"name" : "MARK",
"label" : "标识",
"type" : "tpl",
"tpl" : "${MARK_DISPLAY__ ? MARK_DISPLAY__ : MARK}",
"quickEdit" : false
}, {
"name" : "SCORE",
"label" : "得分",
"quickEdit" : {
"name" : "SCORE",
"required" : true,
"type" : "input-number",
"precision" : 2
}
} ],
"needConfirm" : false
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 12,
"body" : [ {
"name" : "CONTROLMEASURE",
"label" : "建议控制措施",
"type" : "textarea"
} ]
} ]
}, {
"name" : "PM_DANGERLISTITEM_ID",
"label" : "主键",
"hidden" : true,
"type" : "input-text"
}, {
"name" : "DANGERID",
"label" : "作业过程或活动",
"required" : true,
"hidden" : true,
"type" : "tree-select",
"clearable" : true,
"source" : "/api/template/82b68117-5b61-4c9f-b188-4592782af30b/tree",
"searchable" : true
} ],
"actions" : [ ]
}
}