Files
eip4-platform/转换产物-attach/schema/f4e6b354-3d54-4e3f-a1bf-46f33fe398a9.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

99 lines
2.8 KiB
JSON

{
"type" : "page",
"title" : "项目部未关联专业分包",
"body" : {
"type" : "crud",
"api" : "/api/flow/VIEW_PM_NOTRELATIONSUBPACKAGE_SEARCH",
"syncLocation" : false,
"selectable" : true,
"checkOnItemClick" : true,
"filter" : {
"title" : "查询",
"body" : [ {
"name" : "SUBPACKAGEPLANID",
"label" : "工作内容",
"type" : "picker",
"clearable" : true,
"source" : "/api/picker/aba9812f-7281-4665-9918-608a29960b01/list",
"labelField" : "_label",
"valueField" : "_id",
"modalMode" : "dialog",
"modalSize" : "lg",
"pickerSchema" : {
"mode" : "table",
"headerToolbar" : [ {
"type" : "search-box",
"name" : "q",
"placeholder" : "输入关键字搜索"
} ],
"footerToolbar" : [ "pagination" ]
}
} ]
},
"columns" : [ {
"name" : "VIEW_PM_NOTRELATIONSUBPACKAGE_ID",
"label" : "主键",
"width" : 200,
"toggled" : false
}, {
"name" : "PROJECTID_DISPLAY__",
"label" : "工程名称",
"width" : 320
}, {
"name" : "WORKCONTENT",
"label" : "工作内容",
"width" : 360
}, {
"name" : "SUBPACKAGEMONEY",
"label" : "金额(元)",
"width" : 120
}, {
"name" : "SUBPACKAGEPLANID",
"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/9b2cb73f-024f-4fe2-83b3-e60a24e94e84?format=amis",
"api" : {
"method" : "post",
"url" : "/api/flow/VIEW_PM_NOTRELATIONSUBPACKAGE_LOAD?__egtpl=9b2cb73f-024f-4fe2-83b3-e60a24e94e84",
"data" : {
"VIEW_PM_NOTRELATIONSUBPACKAGE_ID" : "${VIEW_PM_NOTRELATIONSUBPACKAGE_ID}"
},
"responseData" : {
"&" : "${result}"
}
}
},
"actions" : [ {
"type" : "button",
"label" : "保存",
"level" : "primary",
"actionType" : "submit",
"api" : "POST:/api/flow/VIEW_PM_NOTRELATIONSUBPACKAGE_UPDATE?__egtpl=9b2cb73f-024f-4fe2-83b3-e60a24e94e84",
"close" : true
}, {
"type" : "button",
"label" : "取消",
"actionType" : "close"
} ]
}
}, "pagination" ],
"primaryField" : "VIEW_PM_NOTRELATIONSUBPACKAGE_ID"
}
}