Files
eip4-platform/转换产物-attach/schema/24567fde-d99d-4e8a-840f-e5ab9d219e41.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

119 lines
3.5 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" : "PAYSUMMONEY",
"label" : "付款总额",
"disabled" : true,
"type" : "input-number",
"precision" : 2
} ]
}, {
"md" : 8,
"body" : [ {
"name" : "CAPITAL",
"label" : "大写",
"disabled" : true,
"type" : "input-text"
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 12,
"body" : [ {
"name" : "PAYDETAILS",
"label" : "付款提醒明细",
"required" : true,
"type" : "input-table",
"id" : "eg-PAYDETAILS",
"addable" : true,
"removable" : true,
"staticOn" : "${__readonly}",
"columns" : [ {
"name" : "PAYCONTENT",
"label" : "付款内容",
"quickEdit" : {
"name" : "PAYCONTENT",
"required" : true,
"type" : "input-text"
}
}, {
"name" : "PAYMONEY",
"label" : "付款金额",
"quickEdit" : {
"name" : "PAYMONEY",
"required" : true,
"type" : "input-number",
"precision" : 2,
"onEvent" : {
"change" : {
"actions" : [ {
"actionType" : "ajax",
"outputVar" : "egRow",
"args" : {
"api" : {
"method" : "post",
"url" : "/api/script/execute-editgrid-row",
"data" : {
"templateId" : "24567fde-d99d-4e8a-840f-e5ab9d219e41",
"editgridField" : "PAYDETAILS",
"scriptKey" : "5bddeb1c-4cb2-457d-bad6-7fa5654afea7",
"changedField" : "PAYMONEY",
"row" : "${__rendererData}",
"parent" : {
"PAYDETAILS" : "${__rendererData.PAYDETAILS || PAYDETAILS}"
}
}
}
}
}, {
"actionType" : "setValue",
"componentId" : "eg-PAYDETAILS",
"args" : {
"index" : "${index}",
"value" : "${egRow.rowSetValues}"
}
}, {
"actionType" : "setValue",
"componentId" : "eip4-edit-form",
"args" : {
"value" : "${egRow.parentSetValues}"
}
} ]
}
}
}
}, {
"name" : "REMINDDATE",
"label" : "提醒日期",
"quickEdit" : {
"name" : "REMINDDATE",
"required" : true,
"type" : "input-date"
}
} ],
"needConfirm" : false
} ]
} ]
}, {
"name" : "PM_LAWMANAGEMENT_ID",
"label" : "主键",
"hidden" : true,
"type" : "input-text"
} ],
"actions" : [ ]
}
}