Files
eip4-platform/转换产物-attach/schema/4298bf3e-730b-466c-81e4-6d082ed7a799.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

323 lines
10 KiB
JSON

{
"type" : "page",
"title" : "福利保险类别编辑页面",
"body" : {
"type" : "form",
"id" : "eip4-edit-form",
"title" : "",
"mode" : "horizontal",
"horizontal" : {
"leftFixed" : 120
},
"body" : [ {
"type" : "grid",
"columns" : [ {
"md" : 4,
"body" : [ {
"name" : "CATEGORYTYPE",
"label" : "福利保险类型",
"required" : true,
"type" : "select",
"clearable" : true,
"source" : "/api/poc/dict/HR_WELFARE_TYPE"
} ]
}, {
"md" : 4,
"body" : [ {
"name" : "NAME",
"label" : "名称",
"required" : true,
"type" : "input-text"
} ]
}, {
"md" : 4,
"body" : [ {
"name" : "ACCURACY",
"label" : "精度",
"type" : "input-number",
"precision" : 0,
"step" : 1,
"value" : "2"
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 4,
"body" : [ {
"name" : "ROUNDTYPE",
"label" : "舍入类型",
"required" : true,
"type" : "select",
"clearable" : true,
"source" : "/api/poc/dict/HR_WELFARE_ROUNDTYPE",
"value" : "3"
} ]
}, {
"md" : 4,
"body" : [ {
"name" : "ROUNDVALUE",
"label" : "舍入值",
"type" : "input-number",
"precision" : 0,
"step" : 1,
"min" : 0.0,
"max" : 9.0,
"value" : "5"
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 12,
"body" : [ {
"name" : "REMARK",
"label" : "描述",
"type" : "textarea"
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 12,
"body" : [ {
"name" : "WELFARECATEGORYCITYID",
"label" : "福利保险类别_各城市设置",
"required" : true,
"type" : "input-table",
"id" : "eg-WELFARECATEGORYCITYID",
"addable" : true,
"removable" : true,
"staticOn" : "${__readonly}",
"columns" : [ {
"name" : "PROVINCE",
"label" : "省份",
"quickEdit" : {
"name" : "PROVINCE",
"type" : "select",
"clearable" : true,
"source" : "/api/poc/dict/HR_WELFARE_PROVINCE",
"onEvent" : {
"change" : {
"actions" : [ {
"actionType" : "ajax",
"outputVar" : "egRow",
"args" : {
"api" : {
"method" : "post",
"url" : "/api/script/execute-editgrid-row",
"data" : {
"templateId" : "4298bf3e-730b-466c-81e4-6d082ed7a799",
"editgridField" : "WELFARECATEGORYCITYID",
"scriptKey" : "51b8cb18-7fb0-4250-be52-3bdc2488a28c",
"changedField" : "PROVINCE",
"row" : "${__rendererData}",
"parent" : {
"WELFARECATEGORYCITYID" : "${__rendererData.WELFARECATEGORYCITYID || WELFARECATEGORYCITYID}"
}
}
}
}
}, {
"actionType" : "setValue",
"componentId" : "eg-WELFARECATEGORYCITYID",
"args" : {
"index" : "${index}",
"value" : "${egRow.rowSetValues}"
}
}, {
"actionType" : "setValue",
"componentId" : "eip4-edit-form",
"args" : {
"value" : "${egRow.parentSetValues}"
}
} ]
}
}
}
}, {
"name" : "CITYS",
"label" : "市",
"quickEdit" : {
"name" : "CITYS",
"required" : true,
"type" : "select",
"clearable" : true,
"source" : "/api/poc/dict/HR_WELFARECATEGORY_SEARCHCITY",
"onEvent" : {
"change" : {
"actions" : [ {
"actionType" : "ajax",
"outputVar" : "egRow",
"args" : {
"api" : {
"method" : "post",
"url" : "/api/script/execute-editgrid-row",
"data" : {
"templateId" : "4298bf3e-730b-466c-81e4-6d082ed7a799",
"editgridField" : "WELFARECATEGORYCITYID",
"scriptKey" : "80dabb30-af89-4e4a-a821-2270687f80e9",
"changedField" : "CITYS",
"row" : "${__rendererData}",
"parent" : {
"WELFARECATEGORYCITYID" : "${__rendererData.WELFARECATEGORYCITYID || WELFARECATEGORYCITYID}"
}
}
}
}
}, {
"actionType" : "setValue",
"componentId" : "eg-WELFARECATEGORYCITYID",
"args" : {
"index" : "${index}",
"value" : "${egRow.rowSetValues}"
}
}, {
"actionType" : "setValue",
"componentId" : "eip4-edit-form",
"args" : {
"value" : "${egRow.parentSetValues}"
}
} ]
}
}
}
}, {
"name" : "CONUTYS",
"label" : "区县",
"quickEdit" : {
"name" : "CONUTYS",
"type" : "select",
"clearable" : true,
"source" : "/api/poc/dict/HR_WELFARECATEGORY_SEARCHCONUTY",
"onEvent" : {
"change" : {
"actions" : [ {
"actionType" : "ajax",
"outputVar" : "egRow",
"args" : {
"api" : {
"method" : "post",
"url" : "/api/script/execute-editgrid-row",
"data" : {
"templateId" : "4298bf3e-730b-466c-81e4-6d082ed7a799",
"editgridField" : "WELFARECATEGORYCITYID",
"scriptKey" : "f478eaf9-3018-4d86-9713-bb445324e02d",
"changedField" : "CONUTYS",
"row" : "${__rendererData}",
"parent" : {
"WELFARECATEGORYCITYID" : "${__rendererData.WELFARECATEGORYCITYID || WELFARECATEGORYCITYID}"
}
}
}
}
}, {
"actionType" : "setValue",
"componentId" : "eg-WELFARECATEGORYCITYID",
"args" : {
"index" : "${index}",
"value" : "${egRow.rowSetValues}"
}
}, {
"actionType" : "setValue",
"componentId" : "eip4-edit-form",
"args" : {
"value" : "${egRow.parentSetValues}"
}
} ]
}
}
}
}, {
"name" : "STARTYEAR",
"label" : "开始年",
"quickEdit" : {
"name" : "STARTYEAR",
"required" : true,
"type" : "input-number",
"precision" : 0,
"step" : 1
}
}, {
"name" : "STARTMONTH",
"label" : "开始月",
"quickEdit" : {
"name" : "STARTMONTH",
"required" : true,
"type" : "input-number",
"precision" : 0,
"step" : 1,
"min" : 1.0,
"max" : 12.0
}
}, {
"name" : "ENDYEAR",
"label" : "结束年",
"quickEdit" : {
"name" : "ENDYEAR",
"type" : "input-number",
"precision" : 0,
"step" : 1
}
}, {
"name" : "ENDMONTH",
"label" : "结束月",
"quickEdit" : {
"name" : "ENDMONTH",
"type" : "input-number",
"precision" : 0,
"step" : 1,
"min" : 1.0,
"max" : 12.0
}
}, {
"name" : "BASEONLINE",
"label" : "缴费基数上限",
"quickEdit" : {
"name" : "BASEONLINE",
"type" : "input-number",
"precision" : 2
}
}, {
"name" : "BASEOFFLINE",
"label" : "缴费基数下限",
"quickEdit" : {
"name" : "BASEOFFLINE",
"type" : "input-number",
"precision" : 2
}
}, {
"name" : "LASTSTARTYEAR",
"label" : "上年薪资开始年",
"quickEdit" : {
"name" : "LASTSTARTYEAR",
"required" : true,
"type" : "input-number",
"precision" : 0,
"step" : 1
}
}, {
"name" : "LASTSTARTMONTH",
"label" : "上年薪资开始月",
"quickEdit" : {
"name" : "LASTSTARTMONTH",
"required" : true,
"type" : "input-number",
"precision" : 0,
"step" : 1,
"min" : 1.0,
"max" : 12.0
}
} ],
"needConfirm" : false
} ]
} ]
}, {
"name" : "HR_WELFARECATEGORY_ID",
"label" : "主键",
"hidden" : true,
"type" : "input-text"
} ],
"actions" : [ ]
}
}