Files
eip4-platform/转换产物-attach/schema/8a244846-3b2c-4091-8d5a-b38d3090b327.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

133 lines
3.7 KiB
JSON

{
"type" : "page",
"title" : "社保管理批量编辑页面",
"body" : {
"type" : "form",
"id" : "eip4-edit-form",
"title" : "",
"mode" : "horizontal",
"horizontal" : {
"leftFixed" : 120
},
"body" : [ {
"type" : "flex",
"justify" : "flex-start",
"alignItems" : "center",
"style" : {
"paddingLeft" : "120px",
"marginBottom" : "4px"
},
"items" : [ {
"name" : "SELECT",
"label" : "选择",
"type" : "button",
"level" : "primary",
"actionType" : "dialog",
"dialog" : {
"type" : "dialog",
"id" : "egadddlgSELECT",
"title" : "",
"size" : "lg",
"body" : {
"type" : "crud",
"api" : "/api/picker/4982d448-a9d4-493e-9e1d-ebcd3c7dfcd6/list",
"mode" : "table",
"syncLocation" : false,
"selectable" : true,
"multiple" : true,
"keepItemSelectionOnPageChange" : true,
"primaryField" : "_id",
"labelField" : "_label",
"headerToolbar" : [ {
"type" : "search-box",
"placeholder" : "输入关键字搜索",
"name" : "q"
} ],
"footerToolbar" : [ "pagination" ],
"onEvent" : {
"selectedChange" : {
"actions" : [ {
"actionType" : "setValue",
"componentId" : "egadddlgSELECT",
"args" : {
"value" : {
"__egpicked" : "${event.data.selectedItems}"
}
}
} ]
}
}
},
"actions" : [ {
"type" : "button",
"label" : "取消",
"actionType" : "close"
}, {
"type" : "button",
"label" : "确定",
"level" : "primary",
"onEvent" : {
"click" : {
"actions" : [ {
"actionType" : "addItem",
"componentId" : "eg-HR_EMPLOYEES",
"args" : {
"item" : "${ARRAYMAP(__egpicked, item => ({HR_EMPLOYEE_ID: item.HR_EMPLOYEE_ID, HR_EMPLOYEE_ID_DISPLAY__: item._label, USERID: item.USERID, SOCIA: item.SOCIA}))}"
}
}, {
"actionType" : "closeDialog"
} ]
}
}
} ]
},
"hiddenOn" : "${__readonly}"
} ]
}, {
"name" : "HR_EMPLOYEES",
"label" : "人员信息",
"required" : true,
"type" : "input-table",
"id" : "eg-HR_EMPLOYEES",
"addable" : false,
"removable" : true,
"staticOn" : "${__readonly}",
"columns" : [ {
"name" : "USERID",
"label" : "系统用户",
"type" : "tpl",
"tpl" : "${USERID_DISPLAY__ ? USERID_DISPLAY__ : USERID}",
"quickEdit" : false
}, {
"name" : "SOCIA",
"label" : "社保编号",
"quickEdit" : {
"name" : "SOCIA",
"disabled" : true,
"type" : "input-text"
}
} ],
"needConfirm" : false
}, {
"type" : "group",
"body" : [ {
"name" : "BASEFEEMONTH",
"label" : "月缴费基数",
"required" : true,
"type" : "input-number",
"precision" : 0,
"min" : 0.0,
"max" : 9.999999999E9
} ]
}, {
"name" : "VIEW_HR_SOCIALSECURITY_ID",
"label" : "主键",
"hidden" : true,
"type" : "input-text"
}, {
"type" : "group",
"body" : [ ]
} ],
"actions" : [ ]
}
}