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>
98 lines
2.8 KiB
JSON
98 lines
2.8 KiB
JSON
{
|
|
"type" : "page",
|
|
"title" : "项目部污染源申报确认级别编辑",
|
|
"body" : {
|
|
"type" : "form",
|
|
"id" : "eip4-edit-form",
|
|
"title" : "",
|
|
"mode" : "horizontal",
|
|
"horizontal" : {
|
|
"leftFixed" : 120
|
|
},
|
|
"body" : [ {
|
|
"type" : "grid",
|
|
"columns" : [ {
|
|
"md" : 6,
|
|
"body" : [ {
|
|
"name" : "PROJECTID",
|
|
"label" : "工程名称",
|
|
"type" : "static",
|
|
"tpl" : "${PROJECTID_DISPLAY__ ? PROJECTID_DISPLAY__ : (PROJECTNAME ? PROJECTNAME : PROJECTID)}",
|
|
"value" : "${currentProject}"
|
|
} ]
|
|
}, {
|
|
"md" : 6,
|
|
"body" : [ {
|
|
"name" : "PROJECTORGID",
|
|
"label" : "分公司",
|
|
"type" : "static",
|
|
"tpl" : "${PROJECTORGID_DISPLAY__ ? PROJECTORGID_DISPLAY__ : (NAME ? NAME : PROJECTORGID)}"
|
|
} ]
|
|
} ]
|
|
}, {
|
|
"type" : "grid",
|
|
"columns" : [ {
|
|
"md" : 12,
|
|
"body" : [ {
|
|
"name" : "LISTS",
|
|
"label" : "清单",
|
|
"type" : "input-table",
|
|
"id" : "eg-LISTS",
|
|
"addable" : false,
|
|
"removable" : false,
|
|
"staticOn" : "${__readonly}",
|
|
"columns" : [ {
|
|
"name" : "POLLUTIONLISTNAME",
|
|
"label" : "作业过程或活动",
|
|
"type" : "tpl",
|
|
"tpl" : "${POLLUTIONLISTNAME_DISPLAY__ ? POLLUTIONLISTNAME_DISPLAY__ : POLLUTIONLISTNAME}",
|
|
"quickEdit" : false
|
|
}, {
|
|
"name" : "POLLUTIONPROPERTY",
|
|
"label" : "环境因素",
|
|
"quickEdit" : {
|
|
"name" : "POLLUTIONPROPERTY",
|
|
"required" : true,
|
|
"disabled" : true,
|
|
"type" : "input-text"
|
|
}
|
|
}, {
|
|
"name" : "TROUBLE",
|
|
"label" : "环境影响",
|
|
"quickEdit" : {
|
|
"name" : "TROUBLE",
|
|
"required" : true,
|
|
"disabled" : true,
|
|
"type" : "input-text"
|
|
}
|
|
}, {
|
|
"name" : "POLLUTIONGRADE",
|
|
"label" : "污染级别",
|
|
"quickEdit" : {
|
|
"name" : "POLLUTIONGRADE",
|
|
"required" : true,
|
|
"type" : "select",
|
|
"clearable" : true,
|
|
"source" : "/api/picker/PM_POLLUTIONRISKLEVEL/list?perPage=500"
|
|
}
|
|
}, {
|
|
"name" : "CONTROLMEASURE",
|
|
"label" : "建议控制措施",
|
|
"quickEdit" : {
|
|
"name" : "CONTROLMEASURE",
|
|
"disabled" : true,
|
|
"type" : "input-text"
|
|
}
|
|
} ],
|
|
"needConfirm" : false
|
|
} ]
|
|
} ]
|
|
}, {
|
|
"name" : "PM_PROJECTPOLLUTIONAPPLY_ID",
|
|
"label" : "主键",
|
|
"hidden" : true,
|
|
"type" : "input-text"
|
|
} ],
|
|
"actions" : [ ]
|
|
}
|
|
} |