Files
eip4-platform/转换产物-attach/schema/2d365472-15ac-40e3-905a-a6b3b8632620.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

233 lines
6.4 KiB
JSON

{
"type" : "page",
"title" : "施工清单分包计划",
"body" : {
"type" : "crud",
"api" : "/api/flow/PM_CBUDGETLIST_SEARCH",
"syncLocation" : false,
"selectable" : true,
"checkOnItemClick" : true,
"filter" : {
"title" : "查询",
"body" : [ {
"name" : "PROJECTID",
"label" : "工程名称",
"type" : "picker",
"clearable" : true,
"source" : "/api/picker/66e57e6d-0cbb-40cf-8b84-c512345734b7/list",
"labelField" : "_label",
"valueField" : "_id",
"modalMode" : "dialog",
"modalSize" : "lg",
"pickerSchema" : {
"mode" : "table",
"headerToolbar" : [ {
"type" : "search-box",
"name" : "q",
"placeholder" : "输入关键字搜索"
} ],
"footerToolbar" : [ "pagination" ]
},
"value" : "${currentProject}"
}, {
"name" : "BUDGETUNITID",
"label" : "预算单元",
"type" : "picker",
"clearable" : true,
"source" : "/api/picker/f959d91b-b013-423f-addf-767a82a3fce3/list",
"labelField" : "_label",
"valueField" : "_id",
"modalMode" : "dialog",
"modalSize" : "lg",
"pickerSchema" : {
"mode" : "table",
"headerToolbar" : [ {
"type" : "search-box",
"name" : "q",
"placeholder" : "输入关键字搜索"
} ],
"footerToolbar" : [ "pagination" ]
}
}, {
"name" : "LISTNO",
"label" : "清单编码",
"type" : "input-text"
}, {
"name" : "LISTNAME",
"label" : "清单名称",
"type" : "input-text"
}, {
"name" : "SUBNAME",
"label" : "计划分包",
"type" : "select",
"clearable" : true,
"source" : "/api/poc/dict/specialtySubCategory"
} ]
},
"columns" : [ {
"name" : "PM_CBUDGETLIST_ID",
"label" : "主键",
"width" : 200,
"toggled" : false
}, {
"name" : "BUDGETUNITID_DISPLAY__",
"label" : "预算单元",
"width" : 350
}, {
"name" : "LISTNO",
"label" : "清单编码",
"width" : 150
}, {
"name" : "LISTNAME",
"label" : "清单名称",
"width" : 200
}, {
"name" : "LISTTRAIT",
"label" : "项目特征",
"width" : 500
}, {
"name" : "UNITLISTID_DISPLAY__",
"label" : "单位",
"width" : 60
}, {
"name" : "ENGINEERINGQUANTITY",
"label" : "工程量",
"width" : 150
}, {
"name" : "COMPREHENSIVEUNITPRICE",
"label" : "综合单价",
"width" : 150
}, {
"name" : "COMPREHENSIVEVALENCE",
"label" : "综合合价",
"width" : 150
}, {
"name" : "ISLIST",
"label" : "是否清单",
"width" : 80,
"type" : "mapping",
"map" : {
"0" : "否",
"1" : "是"
}
}, {
"name" : "SUBPACKAGE",
"label" : "计划分包",
"width" : 100,
"type" : "mapping",
"map" : {
"1" : "门窗",
"2" : "幕墙",
"3" : "防水",
"4" : "消防",
"5" : "保温",
"6" : "钢结构",
"7" : "机电安装",
"8" : "地基基础",
"9" : "园林绿化",
"10" : "其它",
"11" : "人防"
}
} ],
"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/c02c1429-c28a-4c1c-b371-eba8cb846867?format=amis",
"api" : {
"method" : "post",
"url" : "/api/flow/PM_CBUDGETSUBPLAN_LOADBYLIST?__egtpl=c02c1429-c28a-4c1c-b371-eba8cb846867",
"data" : {
"PM_CBUDGETLIST_ID" : "${PM_CBUDGETLIST_ID}"
},
"responseData" : {
"&" : "${result}"
}
},
"onEvent" : {
"inited" : {
"actions" : [ {
"actionType" : "ajax",
"api" : {
"method" : "post",
"url" : "/api/script/execute-template",
"data" : {
"seq" : 1,
"item" : "${&}",
"templateId" : "2d365472-15ac-40e3-905a-a6b3b8632620"
}
},
"outputVar" : "scriptResult1"
}, {
"actionType" : "replayScriptCommands",
"args" : {
"commands" : "${event.data.scriptResult1.commands}"
}
} ]
}
}
},
"actions" : [ {
"type" : "button",
"label" : "保存",
"level" : "primary",
"actionType" : "submit",
"api" : "POST:/api/flow/PM_CBUDGETSUBPLAN_ADDUPDATE?__egtpl=c02c1429-c28a-4c1c-b371-eba8cb846867",
"close" : true
}, {
"type" : "button",
"label" : "取消",
"actionType" : "close"
} ]
}
}, {
"type" : "button",
"id" : "删除分包",
"label" : "删除分包",
"actionType" : "ajax",
"confirmText" : "确认要删除此分包吗?",
"api" : {
"method" : "post",
"url" : "/api/flow/PM_CBUDGETSUBPLAN_DELETE",
"data" : {
"PM_CBUDGETLIST_ID" : "${selectedItems[0].PM_CBUDGETLIST_ID}"
}
},
"disabledOn" : "${!selectedItems || selectedItems.length === 0}"
}, "pagination" ],
"primaryField" : "PM_CBUDGETLIST_ID",
"onEvent" : {
"inited" : {
"actions" : [ {
"actionType" : "ajax",
"api" : {
"method" : "post",
"url" : "/api/script/execute-template",
"data" : {
"seq" : 1,
"item" : "${&}",
"templateId" : "2d365472-15ac-40e3-905a-a6b3b8632620"
}
},
"outputVar" : "scriptResult1"
}, {
"actionType" : "replayScriptCommands",
"args" : {
"commands" : "${event.data.scriptResult1.commands}"
}
} ]
}
}
}
}