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>
119 lines
2.9 KiB
JSON
119 lines
2.9 KiB
JSON
{
|
|
"type" : "page",
|
|
"title" : "机械设备检查明细编辑页面",
|
|
"body" : {
|
|
"type" : "form",
|
|
"id" : "eip4-edit-form",
|
|
"title" : "",
|
|
"mode" : "horizontal",
|
|
"horizontal" : {
|
|
"leftFixed" : 120
|
|
},
|
|
"body" : [ {
|
|
"type" : "group",
|
|
"body" : [ {
|
|
"name" : "DEVICEID",
|
|
"label" : "机械名称",
|
|
"required" : true,
|
|
"type" : "picker",
|
|
"clearable" : true,
|
|
"source" : "/api/picker/a0999644-8dbd-446e-ae38-6a207bf69665/list",
|
|
"labelField" : "_label",
|
|
"valueField" : "_id",
|
|
"modalMode" : "dialog",
|
|
"modalSize" : "lg",
|
|
"pickerSchema" : {
|
|
"mode" : "table",
|
|
"headerToolbar" : [ {
|
|
"type" : "search-box",
|
|
"name" : "q",
|
|
"placeholder" : "输入关键字搜索"
|
|
} ],
|
|
"footerToolbar" : [ "pagination" ]
|
|
}
|
|
}, {
|
|
"name" : "EQUIPMENTNO",
|
|
"label" : "机械编号",
|
|
"disabled" : true,
|
|
"type" : "input-text",
|
|
"maxLength" : 50
|
|
} ]
|
|
}, {
|
|
"type" : "group",
|
|
"body" : [ {
|
|
"name" : "TECHNOLOGYCOND",
|
|
"label" : "技术状况",
|
|
"type" : "input-text",
|
|
"maxLength" : 50
|
|
}, {
|
|
"name" : "CROSSWORK",
|
|
"label" : "十字作业",
|
|
"type" : "input-text",
|
|
"maxLength" : 50
|
|
} ]
|
|
}, {
|
|
"type" : "group",
|
|
"body" : [ {
|
|
"name" : "ELECTRICANDGUARD",
|
|
"label" : "电气及防护装置",
|
|
"type" : "input-text",
|
|
"maxLength" : 50
|
|
}, {
|
|
"name" : "COMPOSITEJUDGE",
|
|
"label" : "综合评议",
|
|
"required" : true,
|
|
"type" : "input-number",
|
|
"precision" : 0,
|
|
"step" : 1,
|
|
"min" : 0,
|
|
"max" : 15,
|
|
"value" : "0"
|
|
} ]
|
|
}, {
|
|
"type" : "group",
|
|
"body" : [ {
|
|
"name" : "STANDARD",
|
|
"label" : "标准分",
|
|
"disabled" : true,
|
|
"type" : "input-number",
|
|
"precision" : 0,
|
|
"step" : 1,
|
|
"value" : "85"
|
|
}, {
|
|
"name" : "SUBSTRACTSCORE",
|
|
"label" : "扣分",
|
|
"required" : true,
|
|
"type" : "input-number",
|
|
"precision" : 0,
|
|
"step" : 1,
|
|
"min" : 0,
|
|
"max" : 100,
|
|
"value" : "0"
|
|
} ]
|
|
}, {
|
|
"type" : "group",
|
|
"body" : [ {
|
|
"name" : "REALSCORE",
|
|
"label" : "实得分",
|
|
"required" : true,
|
|
"type" : "input-number",
|
|
"precision" : 0,
|
|
"step" : 1,
|
|
"min" : 0,
|
|
"max" : 100,
|
|
"value" : "0"
|
|
} ]
|
|
}, {
|
|
"name" : "PM_EQUIPMENTMACHINEDETAIL_ID",
|
|
"label" : "主键",
|
|
"hidden" : true,
|
|
"type" : "input-text"
|
|
}, {
|
|
"name" : "MACHINEREVIEWID",
|
|
"label" : "机械设备检查",
|
|
"hidden" : true,
|
|
"type" : "input-text"
|
|
} ],
|
|
"actions" : [ ]
|
|
}
|
|
} |