Files
eip4-platform/转换产物-attach/schema/b1112c6f-346a-4b20-bba5-2df7c19f7f6b.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

146 lines
4.1 KiB
JSON

{
"type" : "page",
"title" : "考核方案查看页面",
"body" : {
"type" : "form",
"id" : "eip4-edit-form",
"title" : "",
"mode" : "horizontal",
"horizontal" : {
"leftFixed" : 120
},
"body" : [ {
"type" : "group",
"body" : [ {
"name" : "NAME",
"label" : "方案名称",
"required" : true,
"disabled" : true,
"type" : "input-text"
}, {
"name" : "DEPART",
"label" : "制定部门",
"type" : "static",
"tpl" : "${DEPART_DISPLAY__ ? DEPART_DISPLAY__ : (NAME ? NAME : DEPART)}"
} ]
}, {
"type" : "group",
"body" : [ {
"name" : "CREATETIME",
"label" : "制定日期",
"required" : true,
"disabled" : true,
"type" : "input-date",
"value" : "${now}"
} ]
}, {
"name" : "REMARK",
"label" : "备注",
"disabled" : true,
"type" : "textarea"
}, {
"name" : "RECRUITPLANGUIDES",
"label" : "指标分值",
"required" : true,
"disabled" : true,
"type" : "input-table",
"id" : "eg-RECRUITPLANGUIDES",
"addable" : true,
"removable" : true,
"staticOn" : "${__readonly}",
"columns" : [ {
"name" : "GUIDECATEGORY",
"label" : "所属类别",
"quickEdit" : {
"name" : "GUIDECATEGORY",
"required" : true,
"disabled" : true,
"type" : "input-text",
"maxLength" : 30
}
}, {
"name" : "GUIDENAME",
"label" : "指标名称",
"quickEdit" : {
"name" : "GUIDENAME",
"required" : true,
"disabled" : true,
"type" : "input-text",
"maxLength" : 30
}
}, {
"name" : "SCORE",
"label" : "分值",
"quickEdit" : {
"name" : "SCORE",
"required" : true,
"type" : "input-number",
"precision" : 0,
"step" : 1,
"onEvent" : {
"change" : {
"actions" : [ {
"actionType" : "ajax",
"outputVar" : "egRow",
"args" : {
"api" : {
"method" : "post",
"url" : "/api/script/execute-editgrid-row",
"data" : {
"templateId" : "b1112c6f-346a-4b20-bba5-2df7c19f7f6b",
"editgridField" : "RECRUITPLANGUIDES",
"scriptKey" : "cb2967bf-494b-45e2-be2e-5454a648daf5",
"changedField" : "SCORE",
"row" : "${__rendererData}",
"parent" : {
"RECRUITPLANGUIDES" : "${__rendererData.RECRUITPLANGUIDES || RECRUITPLANGUIDES}"
}
}
}
}
}, {
"actionType" : "setValue",
"componentId" : "eg-RECRUITPLANGUIDES",
"args" : {
"index" : "${index}",
"value" : "${egRow.rowSetValues}"
}
}, {
"actionType" : "setValue",
"componentId" : "eip4-edit-form",
"args" : {
"value" : "${egRow.parentSetValues}"
}
} ]
}
}
}
} ],
"needConfirm" : false
}, {
"name" : "SCORE",
"label" : "总分",
"hidden" : true,
"type" : "input-number",
"precision" : 0,
"step" : 1
}, {
"name" : "DOCUMENT",
"label" : "附件",
"disabled" : true,
"type" : "input-file",
"receiver" : "/api/file/upload?tableName=HR_RECRUITEVALSCHEME&businessKey=${HR_RECRUITEVALSCHEME_ID}",
"downloadUrl" : "/api/file/${id}",
"multiple" : true,
"staticOn" : "${__readonly}",
"joinValues" : false,
"extractValue" : false
}, {
"name" : "HR_RECRUITEVALSCHEME_ID",
"label" : "主键",
"hidden" : true,
"type" : "input-text"
} ],
"actions" : [ ]
}
}