Files
eip4-platform/转换产物-attach/schema/ebbe89ae-2b40-44a2-88a0-e9906d740972.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

183 lines
4.5 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" : "DANGERLISTNAME",
"label" : "作业过程或活动",
"required" : true,
"type" : "tree-select",
"clearable" : true,
"source" : "/api/template/82b68117-5b61-4c9f-b188-4592782af30b/tree",
"searchable" : true
} ]
} ]
}, {
"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",
"value" : "1"
} ]
}, {
"md" : 5,
"body" : [ {
"name" : "DANGERGRADE",
"label" : "危险级别",
"required" : true,
"type" : "select",
"clearable" : true,
"source" : "/api/picker/PM_DANGERRISKLEVEL/list?perPage=500"
} ]
} ]
}, {
"name" : "test",
"label" : "test",
"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" : "SCORES",
"label" : "分数项",
"required" : true,
"type" : "input-table",
"id" : "eg-SCORES",
"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_PROJECTDANGERLISTITEM_ID",
"label" : "主键",
"hidden" : true,
"type" : "input-text"
}, {
"name" : "APPLYID",
"label" : "项目部危险源申报",
"hidden" : true,
"type" : "select",
"clearable" : true,
"searchable" : true,
"source" : "/api/picker//list?q=${term}&page=${page}&perPage=${perPage}"
}, {
"name" : "DISPOSE",
"label" : "是否处理",
"hidden" : true,
"type" : "select",
"clearable" : true,
"source" : "/api/poc/dict/YESNO",
"value" : "0"
}, {
"name" : "ISNEW",
"label" : "是否是新的危险源 ",
"hidden" : true,
"type" : "input-number",
"precision" : 0,
"step" : 1,
"value" : "1"
} ],
"actions" : [ ]
}
}