Files
eip4-platform/转换产物-attach/schema/27f4b131-9021-4f1e-9b31-dda229b7009e.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

114 lines
3.4 KiB
JSON

{
"type" : "page",
"title" : "企业证书借用管理模式配置",
"body" : {
"type" : "crud",
"api" : "/api/flow/OA_EC_BORROWCONFIG_SEARCH",
"syncLocation" : false,
"selectable" : true,
"checkOnItemClick" : true,
"columns" : [ {
"name" : "ISMUSTFILLINBORROWAPPLY",
"label" : "借用企业证书前是否需填写借用申请单",
"width" : 400,
"type" : "mapping",
"map" : {
"0" : "否",
"1" : "是",
"false" : "否",
"true" : "是"
}
}, {
"name" : "OA_EC_BORROWCONFIG_ID",
"label" : "主键",
"width" : 200,
"toggled" : false
} ],
"headerToolbar" : [ {
"type" : "button",
"id" : "企业证书借用管理模式配置",
"label" : "企业证书借用管理模式配置",
"actionType" : "dialog",
"disabledOn" : "${!selectedItems || selectedItems.length === 0}",
"dialog" : {
"type" : "dialog",
"title" : "企业证书借用管理模式配置",
"size" : "lg",
"data" : {
"&" : "${selectedItems[0]}"
},
"body" : {
"type" : "service",
"schemaApi" : "get:/api/page/schema/d5227dcf-f477-4aa1-96b3-49ffa43a41c3?format=amis",
"api" : {
"method" : "post",
"url" : "/api/flow/OA_EC_BORROWCONFIG_LOAD?__egtpl=d5227dcf-f477-4aa1-96b3-49ffa43a41c3",
"data" : {
"OA_EC_BORROWCONFIG_ID" : "${OA_EC_BORROWCONFIG_ID}"
},
"responseData" : {
"&" : "${result}"
}
},
"onEvent" : {
"inited" : {
"actions" : [ {
"actionType" : "ajax",
"api" : {
"method" : "post",
"url" : "/api/script/execute-template",
"data" : {
"seq" : 1,
"item" : "${&}",
"templateId" : "27f4b131-9021-4f1e-9b31-dda229b7009e"
}
},
"outputVar" : "scriptResult1"
}, {
"actionType" : "replayScriptCommands",
"args" : {
"commands" : "${event.data.scriptResult1.commands}"
}
} ]
}
}
},
"actions" : [ {
"type" : "button",
"label" : "保存",
"level" : "primary",
"actionType" : "submit",
"api" : "POST:/api/flow/OA_EC_BORROWCONFIG_UPDATE?__egtpl=d5227dcf-f477-4aa1-96b3-49ffa43a41c3",
"close" : true
}, {
"type" : "button",
"label" : "取消",
"actionType" : "close"
} ]
}
}, "pagination" ],
"primaryField" : "OA_EC_BORROWCONFIG_ID",
"onEvent" : {
"inited" : {
"actions" : [ {
"actionType" : "ajax",
"api" : {
"method" : "post",
"url" : "/api/script/execute-template",
"data" : {
"seq" : 1,
"item" : "${&}",
"templateId" : "27f4b131-9021-4f1e-9b31-dda229b7009e"
}
},
"outputVar" : "scriptResult1"
}, {
"actionType" : "replayScriptCommands",
"args" : {
"commands" : "${event.data.scriptResult1.commands}"
}
} ]
}
}
}
}