Files
eip4-platform/转换产物-attach/schema/370be16b-b9f0-41d7-a5d6-f764634df5ba.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

207 lines
6.4 KiB
JSON

{
"type" : "page",
"title" : "清单费率组配置",
"body" : {
"type" : "grid",
"columns" : [ {
"md" : 3,
"body" : {
"type" : "input-tree",
"name" : "tree",
"showOutline" : true,
"initiallyOpen" : true,
"virtualThreshold" : 100000,
"className" : "eip4-treegrid-tree",
"id" : "treegrid_tree",
"source" : "/api/template/fc6cf547-5739-4c57-b41d-3df1a84ea47b/tree"
}
}, {
"md" : 9,
"body" : {
"type" : "crud",
"id" : "treegrid_crud",
"syncLocation" : false,
"api" : "/api/template/treegrid?treeRef=fc6cf547-5739-4c57-b41d-3df1a84ea47b&gridTable=PM_CBUDGETLIST&rcol=FEERATEGROUPID&node=${tree}&page=${page}&perPage=${perPage}",
"selectable" : true,
"checkOnItemClick" : true,
"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/cbdb98ad-6943-4e07-adca-d0d7e64f5d19?format=amis",
"api" : {
"method" : "post",
"url" : "/api/flow/PM_CBUDGETLIST_LOAD?__egtpl=cbdb98ad-6943-4e07-adca-d0d7e64f5d19",
"data" : {
"PM_CBUDGETLIST_ID" : "${PM_CBUDGETLIST_ID}"
},
"responseData" : {
"&" : "${result}"
}
}
},
"actions" : [ {
"type" : "button",
"label" : "保存",
"level" : "primary",
"actionType" : "submit",
"api" : "POST:/api/flow/PM_CBUDGETLIST_UPDATE?__egtpl=cbdb98ad-6943-4e07-adca-d0d7e64f5d19",
"close" : true
}, {
"type" : "button",
"label" : "取消",
"actionType" : "close"
} ]
}
}, {
"type" : "button",
"id" : "查看",
"label" : "查看",
"actionType" : "dialog",
"disabledOn" : "${!selectedItems || selectedItems.length === 0}",
"dialog" : {
"type" : "dialog",
"title" : "查看",
"size" : "lg",
"data" : {
"&" : "${selectedItems[0]}",
"__readonly" : true
},
"body" : {
"type" : "service",
"schemaApi" : "get:/api/page/schema/cbdb98ad-6943-4e07-adca-d0d7e64f5d19?format=amis",
"static" : true,
"api" : {
"method" : "post",
"url" : "/api/flow/PM_CBUDGETLIST_LOAD?__egtpl=cbdb98ad-6943-4e07-adca-d0d7e64f5d19",
"data" : {
"PM_CBUDGETLIST_ID" : "${PM_CBUDGETLIST_ID}"
},
"responseData" : {
"&" : "${result}"
}
}
}
}
}, "pagination" ],
"primaryField" : "PM_CBUDGETLIST_ID",
"filter" : {
"title" : "查询",
"body" : [ {
"name" : "PROJECTID",
"label" : "工程名称",
"type" : "picker",
"clearable" : true,
"source" : "/api/picker/07eef963-fd17-42a5-997c-219f0ec18cff/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" : "static",
"tpl" : "${BUDGETUNITID_DISPLAY__ ? BUDGETUNITID_DISPLAY__ : (BUDGETUNITNAME ? BUDGETUNITNAME : BUDGETUNITID)}"
} ]
},
"columns" : [ {
"name" : "PM_CBUDGETLIST_ID",
"label" : "主键",
"width" : 200,
"toggled" : false
}, {
"name" : "PROJECTID_DISPLAY__",
"label" : "工程名称",
"width" : 200,
"toggled" : false
}, {
"name" : "BUDGETUNITID_DISPLAY__",
"label" : "预算单元",
"width" : 150
}, {
"name" : "LISTNO",
"label" : "清单编码",
"width" : 100
}, {
"name" : "LISTNAME",
"label" : "清单名称",
"width" : 200
}, {
"name" : "LISTTRAIT",
"label" : "项目特征",
"width" : 500
}, {
"name" : "CALCRULES",
"label" : "计算规则",
"width" : 200,
"toggled" : false
}, {
"name" : "UNITLISTID_DISPLAY__",
"label" : "单位",
"width" : 200,
"toggled" : false
}, {
"name" : "COMPREHENSIVEUNITPRICE",
"label" : "综合单价(元)",
"width" : 100
}, {
"name" : "LABOURCOSTS",
"label" : "单价组成-人工费",
"width" : 200,
"toggled" : false
}, {
"name" : "MATERIALCOSTS",
"label" : "单价组成-材料费",
"width" : 200,
"toggled" : false
}, {
"name" : "MACHINERYCOSTS",
"label" : "单价组成-机械费",
"width" : 200,
"toggled" : false
}, {
"name" : "MANAGEMENTEXPENSE",
"label" : "单价组成-管理费",
"width" : 200,
"toggled" : false
}, {
"name" : "DROFIT",
"label" : "单价组成-利润",
"width" : 200,
"toggled" : false
}, {
"name" : "ISLIST",
"label" : "是否清单",
"width" : 200,
"type" : "mapping",
"map" : {
"0" : "否",
"1" : "是"
},
"toggled" : false
} ]
}
} ]
}
}