Files
eip4-platform/转换产物-attach/schema/958a9e49-0520-4887-babc-415fb9f07875.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

299 lines
9.7 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" : "APPLYNO",
"label" : "表单号",
"required" : true,
"type" : "input-text"
} ]
}, {
"md" : 6,
"body" : [ {
"name" : "APPLYUSER",
"label" : "申请人",
"type" : "static",
"tpl" : "${APPLYUSER_DISPLAY__ ? APPLYUSER_DISPLAY__ : (DISPLAYNAME ? DISPLAYNAME : APPLYUSER)}",
"value" : "${currentUser}"
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 6,
"body" : [ {
"name" : "APPLYDATE",
"label" : "申请日期",
"required" : true,
"type" : "input-date",
"value" : "${now}"
} ]
}, {
"md" : 6,
"body" : [ {
"name" : "ADJUSTMENTDATE",
"label" : "调资日期",
"required" : true,
"type" : "input-date",
"value" : "${now}"
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 6,
"body" : [ {
"name" : "TYPE",
"label" : "调整类型",
"required" : true,
"type" : "select",
"clearable" : true,
"source" : "/api/poc/dict/HR_PAYADJUSTMENT_TYPE"
} ]
}, {
"md" : 6,
"body" : [ {
"name" : "PAYGRADE",
"label" : "薪资等级",
"type" : "select",
"clearable" : true,
"source" : "/api/poc/dict/HR_PAY_GRADE"
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 12,
"body" : [ {
"name" : "DETAILS",
"label" : "调整明细",
"required" : true,
"type" : "input-table",
"id" : "eg-DETAILS",
"addable" : true,
"removable" : true,
"staticOn" : "${__readonly}",
"columns" : [ {
"name" : "USERID",
"label" : "员工",
"quickEdit" : {
"name" : "USERID",
"required" : true,
"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" : "请点击右侧的图标",
"onEvent" : {
"change" : {
"actions" : [ {
"actionType" : "ajax",
"outputVar" : "egRow",
"args" : {
"api" : {
"method" : "post",
"url" : "/api/script/execute-editgrid-row",
"data" : {
"templateId" : "958a9e49-0520-4887-babc-415fb9f07875",
"editgridField" : "DETAILS",
"scriptKey" : "348ce26f-e28a-4c6c-a48d-d6f3cd5b1d84",
"changedField" : "USERID",
"row" : "${__rendererData}",
"parent" : {
"DETAILS" : "${__rendererData.DETAILS || DETAILS}"
}
}
}
}
}, {
"actionType" : "setValue",
"componentId" : "eg-DETAILS",
"args" : {
"index" : "${index}",
"value" : "${egRow.rowSetValues}"
}
}, {
"actionType" : "setValue",
"componentId" : "eip4-edit-form",
"args" : {
"value" : "${egRow.parentSetValues}"
}
} ]
}
}
}
}, {
"name" : "PAYSCHEMEID",
"label" : "薪资方案",
"quickEdit" : {
"name" : "PAYSCHEMEID",
"required" : true,
"type" : "picker",
"clearable" : true,
"source" : "/api/picker/9d690abb-916b-427c-9bd6-4a8001ac0813/list",
"labelField" : "_label",
"valueField" : "_id",
"modalMode" : "dialog",
"modalSize" : "lg",
"pickerSchema" : {
"mode" : "table",
"headerToolbar" : [ {
"type" : "search-box",
"name" : "q",
"placeholder" : "输入关键字搜索"
} ],
"footerToolbar" : [ "pagination" ]
},
"onEvent" : {
"change" : {
"actions" : [ {
"actionType" : "ajax",
"outputVar" : "egRow",
"args" : {
"api" : {
"method" : "post",
"url" : "/api/script/execute-editgrid-row",
"data" : {
"templateId" : "958a9e49-0520-4887-babc-415fb9f07875",
"editgridField" : "DETAILS",
"scriptKey" : "debe8715-4001-4239-ad75-f44ed4fced21",
"changedField" : "PAYSCHEMEID",
"row" : "${__rendererData}",
"parent" : {
"DETAILS" : "${__rendererData.DETAILS || DETAILS}"
}
}
}
}
}, {
"actionType" : "setValue",
"componentId" : "eg-DETAILS",
"args" : {
"index" : "${index}",
"value" : "${egRow.rowSetValues}"
}
}, {
"actionType" : "setValue",
"componentId" : "eip4-edit-form",
"args" : {
"value" : "${egRow.parentSetValues}"
}
} ]
}
}
}
}, {
"name" : "PAYITEMID",
"label" : "薪资项目",
"quickEdit" : {
"name" : "PAYITEMID",
"required" : true,
"type" : "picker",
"clearable" : true,
"source" : "/api/picker/00f6638e-72c7-4834-96ff-904935375951/list",
"labelField" : "_label",
"valueField" : "_id",
"modalMode" : "dialog",
"modalSize" : "lg",
"pickerSchema" : {
"mode" : "table",
"headerToolbar" : [ {
"type" : "search-box",
"name" : "q",
"placeholder" : "输入关键字搜索"
} ],
"footerToolbar" : [ "pagination" ]
},
"onEvent" : {
"change" : {
"actions" : [ {
"actionType" : "ajax",
"outputVar" : "egRow",
"args" : {
"api" : {
"method" : "post",
"url" : "/api/script/execute-editgrid-row",
"data" : {
"templateId" : "958a9e49-0520-4887-babc-415fb9f07875",
"editgridField" : "DETAILS",
"scriptKey" : "debe8715-4001-4239-ad75-f44ed4fced21",
"changedField" : "PAYITEMID",
"row" : "${__rendererData}",
"parent" : {
"DETAILS" : "${__rendererData.DETAILS || DETAILS}"
}
}
}
}
}, {
"actionType" : "setValue",
"componentId" : "eg-DETAILS",
"args" : {
"index" : "${index}",
"value" : "${egRow.rowSetValues}"
}
}, {
"actionType" : "setValue",
"componentId" : "eip4-edit-form",
"args" : {
"value" : "${egRow.parentSetValues}"
}
} ]
}
}
}
}, {
"name" : "BEFOREMONEY",
"label" : "调整前值",
"quickEdit" : {
"name" : "BEFOREMONEY",
"disabled" : true,
"type" : "input-number",
"precision" : 2
}
}, {
"name" : "AFTERMONEY",
"label" : "调整后值",
"quickEdit" : {
"name" : "AFTERMONEY",
"required" : true,
"type" : "input-number",
"precision" : 2
}
} ],
"needConfirm" : false
} ]
} ]
}, {
"name" : "HR_PAYADJUSTMENT_ID",
"label" : "主键",
"hidden" : true,
"type" : "input-text"
} ],
"actions" : [ ]
}
}