Files
eip4-platform/转换产物-attach/schema/bf969d57-0f4d-4995-a05a-6c3a82ea4988.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

330 lines
8.1 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" : "ORGID",
"label" : "单位名称",
"type" : "static",
"tpl" : "${ORGID_DISPLAY__ ? ORGID_DISPLAY__ : (NAME ? NAME : ORGID)}"
} ]
}, {
"md" : 6,
"body" : [ {
"name" : "EXAMINATIONSCORE",
"label" : "考试成绩",
"required" : true,
"type" : "input-number",
"precision" : 2,
"min" : 0,
"max" : 100.0
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 6,
"body" : [ {
"name" : "PROJECTID",
"label" : "工程名称",
"required" : true,
"type" : "picker",
"clearable" : true,
"source" : "/api/picker/07eef963-fd17-42a5-997c-219f0ec18cff/list",
"labelField" : "_label",
"valueField" : "_id",
"modalMode" : "dialog",
"modalSize" : "lg",
"pickerSchema" : {
"mode" : "table",
"headerToolbar" : [ {
"type" : "search-box",
"name" : "q",
"placeholder" : "输入关键字搜索"
} ],
"footerToolbar" : [ "pagination" ]
},
"value" : "${currentProject}"
} ]
}, {
"md" : 6,
"body" : [ {
"name" : "INTOPROJECTDATE",
"label" : "进项目日期",
"required" : true,
"type" : "input-date",
"value" : "${now}"
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 6,
"body" : [ {
"name" : "NAME",
"label" : "姓名",
"required" : true,
"type" : "input-text"
} ]
}, {
"md" : 6,
"body" : [ {
"name" : "GENDER",
"label" : "性别",
"required" : true,
"type" : "select",
"clearable" : true,
"source" : "/api/poc/dict/SEX",
"value" : "1"
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 6,
"body" : [ {
"name" : "IDNUMBER",
"label" : "身份证号",
"required" : true,
"type" : "input-text",
"maxLength" : 50
} ]
}, {
"md" : 6,
"body" : [ {
"name" : "JOBS",
"label" : "工种",
"required" : true,
"type" : "input-text"
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 6,
"body" : [ {
"name" : "SENIORITY",
"label" : "工龄(年) ",
"type" : "input-number",
"precision" : 0,
"step" : 1,
"min" : 0,
"max" : 100
} ]
}, {
"md" : 6,
"body" : [ {
"name" : "TESTDATE",
"label" : "考试日期",
"required" : true,
"type" : "input-date",
"value" : "${now}"
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 6,
"body" : [ {
"name" : "DATEOFBIRTH",
"label" : "出生年月日",
"type" : "input-date"
} ]
}, {
"md" : 6,
"body" : [ {
"name" : "HOMEPHONE",
"label" : "家庭电话",
"type" : "input-text"
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 6,
"body" : [ {
"name" : "CONTACTADDRESS",
"label" : "联系地址",
"type" : "input-text"
} ]
}, {
"md" : 6,
"body" : [ {
"name" : "DEPARTMENT",
"label" : "部门",
"type" : "input-text"
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 6,
"body" : [ {
"name" : "EMERGENCYCONTACT",
"label" : "紧急联系人",
"required" : true,
"type" : "input-text"
} ]
}, {
"md" : 6,
"body" : [ {
"name" : "CONTACTPHONE",
"label" : "联系人电话",
"required" : true,
"type" : "input-text"
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 6,
"body" : [ {
"name" : "PHYSICALCONDITION",
"label" : "身体状况",
"required" : true,
"type" : "input-text"
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 6,
"body" : [ {
"name" : "BRANCHEDUCATEDSIGNATURE",
"label" : "(分)公司级受教育人",
"type" : "input-text"
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 6,
"body" : [ {
"name" : "BRANCHEDUCATEDDATE",
"label" : "(分)公司级受教育日期",
"type" : "input-date"
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 6,
"body" : [ {
"name" : "PROJDEPARTEDUCATEDSIGNATURE",
"label" : "项目部级受教育人",
"type" : "input-text"
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 6,
"body" : [ {
"name" : "PROJDEPARTEDUCATEDDATE",
"label" : "项目部级受教育日期",
"type" : "input-date"
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 6,
"body" : [ {
"name" : "GRADEEDUCATEDSIGNATURE",
"label" : "班组级受教育人",
"type" : "input-text"
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 6,
"body" : [ {
"name" : "GRADEEDUCATEDDATE",
"label" : "班组级受教育日期",
"type" : "input-date"
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 12,
"body" : [ {
"name" : "DOCUMENT",
"label" : "附件",
"type" : "input-file",
"receiver" : "/api/file/upload?tableName=PM_PUB_SAFETYEDUCATION&businessKey=${PM_PUB_SAFETYEDUCATION_ID}",
"downloadUrl" : "/api/file/${id}",
"multiple" : true,
"staticOn" : "${__readonly}",
"joinValues" : false,
"extractValue" : false
} ]
} ]
}, {
"name" : "PM_PUB_SAFETYEDUCATION_ID",
"label" : "主键",
"hidden" : true,
"type" : "input-text"
}, {
"name" : "BRANCHEDUCATESIGNATURE",
"label" : "(分)公司级教育人",
"type" : "input-text",
"hidden" : true
}, {
"name" : "BRANCHEDUCATEDATE",
"label" : "(分)公司级教育日期",
"type" : "input-date",
"hidden" : true
}, {
"name" : "PROJDEPARTEDUCATESIGNATURE",
"label" : "项目部级教育人",
"type" : "picker",
"clearable" : true,
"source" : "/api/picker/76d2f950-ef40-4eff-89ec-98ad9a4976b9/list",
"labelField" : "_label",
"valueField" : "_id",
"modalMode" : "dialog",
"modalSize" : "lg",
"pickerSchema" : {
"mode" : "table",
"headerToolbar" : [ {
"type" : "search-box",
"name" : "q",
"placeholder" : "输入关键字搜索"
} ],
"footerToolbar" : [ "pagination" ]
},
"placeholder" : "请点击右侧的图标",
"value" : "${currentUser}",
"hidden" : true
}, {
"name" : "PROJDEPARTEDUCATEDATE",
"label" : "项目部级教育人日期",
"type" : "input-date",
"hidden" : true
}, {
"name" : "GRADEEDUCATESIGNATURE",
"label" : "班组级教育人",
"type" : "input-text",
"hidden" : true
}, {
"name" : "GRADEEDUCATEDATE",
"label" : "班组级教育日期",
"type" : "input-date",
"hidden" : true
} ],
"actions" : [ ]
}
}