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>
This commit is contained in:
356
转换产物-attach/schema/d1566dc8-d2ed-4f83-a117-14bc96d5ebd3.json
Normal file
356
转换产物-attach/schema/d1566dc8-d2ed-4f83-a117-14bc96d5ebd3.json
Normal file
@@ -0,0 +1,356 @@
|
||||
{
|
||||
"type" : "page",
|
||||
"title" : "项目成本拆分计划编辑",
|
||||
"body" : {
|
||||
"type" : "form",
|
||||
"id" : "eip4-edit-form",
|
||||
"title" : "",
|
||||
"mode" : "horizontal",
|
||||
"horizontal" : {
|
||||
"leftFixed" : 120
|
||||
},
|
||||
"body" : [ {
|
||||
"type" : "grid",
|
||||
"columns" : [ {
|
||||
"md" : 6,
|
||||
"body" : [ {
|
||||
"name" : "PROJECTID",
|
||||
"label" : "工程名称",
|
||||
"required" : true,
|
||||
"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}"
|
||||
} ]
|
||||
}, {
|
||||
"md" : 6,
|
||||
"body" : [ {
|
||||
"name" : "BUDGETUNITID",
|
||||
"label" : "预算单元",
|
||||
"required" : true,
|
||||
"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" : "BUTTON",
|
||||
"label" : "BUTTON",
|
||||
"hidden" : true,
|
||||
"type" : "input-text"
|
||||
}, {
|
||||
"type" : "grid",
|
||||
"columns" : [ {
|
||||
"md" : 6,
|
||||
"body" : [ {
|
||||
"name" : "ISCONTAINCHANGE",
|
||||
"label" : "是否包含变更",
|
||||
"type" : "checkbox"
|
||||
} ]
|
||||
} ]
|
||||
}, {
|
||||
"type" : "grid",
|
||||
"columns" : [ {
|
||||
"md" : 12,
|
||||
"body" : [ {
|
||||
"name" : "SUBS",
|
||||
"label" : "SUBS",
|
||||
"disabled" : true,
|
||||
"type" : "input-table",
|
||||
"id" : "eg-SUBS",
|
||||
"addable" : false,
|
||||
"removable" : false,
|
||||
"staticOn" : "${__readonly}",
|
||||
"columns" : [ {
|
||||
"name" : "SUBPACKAGE",
|
||||
"label" : "分包名称",
|
||||
"quickEdit" : {
|
||||
"name" : "SUBPACKAGE",
|
||||
"type" : "select",
|
||||
"clearable" : true,
|
||||
"source" : "/api/poc/dict/specialtySubCategory"
|
||||
}
|
||||
}, {
|
||||
"name" : "SUBPACKAGEMONEY",
|
||||
"label" : "分包金额(元)",
|
||||
"quickEdit" : {
|
||||
"name" : "SUBPACKAGEMONEY",
|
||||
"required" : true,
|
||||
"type" : "input-number",
|
||||
"precision" : 2
|
||||
}
|
||||
} ],
|
||||
"needConfirm" : false
|
||||
} ]
|
||||
} ]
|
||||
}, {
|
||||
"type" : "grid",
|
||||
"columns" : [ {
|
||||
"md" : 12,
|
||||
"body" : [ {
|
||||
"name" : "LABORS",
|
||||
"label" : "劳务计划",
|
||||
"disabled" : true,
|
||||
"type" : "input-table",
|
||||
"id" : "eg-LABORS",
|
||||
"addable" : false,
|
||||
"removable" : false,
|
||||
"staticOn" : "${__readonly}",
|
||||
"columns" : [ {
|
||||
"name" : "RESOURCEID",
|
||||
"label" : "工种",
|
||||
"quickEdit" : {
|
||||
"name" : "RESOURCEID",
|
||||
"type" : "picker",
|
||||
"clearable" : true,
|
||||
"source" : "/api/picker/51f36129-57c5-494a-a48d-9787498e903f/list",
|
||||
"labelField" : "_label",
|
||||
"valueField" : "_id",
|
||||
"modalMode" : "dialog",
|
||||
"modalSize" : "lg",
|
||||
"pickerSchema" : {
|
||||
"mode" : "table",
|
||||
"headerToolbar" : [ {
|
||||
"type" : "search-box",
|
||||
"name" : "q",
|
||||
"placeholder" : "输入关键字搜索"
|
||||
} ],
|
||||
"footerToolbar" : [ "pagination" ]
|
||||
}
|
||||
}
|
||||
}, {
|
||||
"name" : "WORKLOAD",
|
||||
"label" : "工程量",
|
||||
"quickEdit" : {
|
||||
"name" : "WORKLOAD",
|
||||
"type" : "input-number",
|
||||
"precision" : 2
|
||||
}
|
||||
}, {
|
||||
"name" : "UNITPRICE",
|
||||
"label" : "单价(元)",
|
||||
"quickEdit" : {
|
||||
"name" : "UNITPRICE",
|
||||
"type" : "input-number",
|
||||
"precision" : 2
|
||||
}
|
||||
}, {
|
||||
"name" : "TOTALPRICE",
|
||||
"label" : "合价(元)",
|
||||
"quickEdit" : {
|
||||
"name" : "TOTALPRICE",
|
||||
"type" : "input-number",
|
||||
"precision" : 2
|
||||
}
|
||||
} ],
|
||||
"needConfirm" : false
|
||||
} ]
|
||||
} ]
|
||||
}, {
|
||||
"type" : "grid",
|
||||
"columns" : [ {
|
||||
"md" : 12,
|
||||
"body" : [ {
|
||||
"name" : "MATERIALS",
|
||||
"label" : "材料计划",
|
||||
"disabled" : true,
|
||||
"type" : "input-table",
|
||||
"id" : "eg-MATERIALS",
|
||||
"addable" : false,
|
||||
"removable" : false,
|
||||
"staticOn" : "${__readonly}",
|
||||
"columns" : [ {
|
||||
"name" : "RESOURCEID",
|
||||
"label" : "材料",
|
||||
"quickEdit" : {
|
||||
"name" : "RESOURCEID",
|
||||
"type" : "picker",
|
||||
"clearable" : true,
|
||||
"source" : "/api/picker/43ae5d09-2c7a-40e4-a635-88f1c54fa6d6/list",
|
||||
"labelField" : "_label",
|
||||
"valueField" : "_id",
|
||||
"modalMode" : "dialog",
|
||||
"modalSize" : "lg",
|
||||
"pickerSchema" : {
|
||||
"mode" : "table",
|
||||
"headerToolbar" : [ {
|
||||
"type" : "search-box",
|
||||
"name" : "q",
|
||||
"placeholder" : "输入关键字搜索"
|
||||
} ],
|
||||
"footerToolbar" : [ "pagination" ]
|
||||
}
|
||||
}
|
||||
}, {
|
||||
"name" : "WORKLOAD",
|
||||
"label" : "工程量",
|
||||
"quickEdit" : {
|
||||
"name" : "WORKLOAD",
|
||||
"type" : "input-number",
|
||||
"precision" : 2
|
||||
}
|
||||
}, {
|
||||
"name" : "UNITPRICE",
|
||||
"label" : "单价(元)",
|
||||
"quickEdit" : {
|
||||
"name" : "UNITPRICE",
|
||||
"type" : "input-number",
|
||||
"precision" : 2
|
||||
}
|
||||
}, {
|
||||
"name" : "TOTALPRICE",
|
||||
"label" : "合价(元)",
|
||||
"quickEdit" : {
|
||||
"name" : "TOTALPRICE",
|
||||
"type" : "input-number",
|
||||
"precision" : 2
|
||||
}
|
||||
} ],
|
||||
"needConfirm" : false
|
||||
} ]
|
||||
} ]
|
||||
}, {
|
||||
"type" : "grid",
|
||||
"columns" : [ {
|
||||
"md" : 12,
|
||||
"body" : [ {
|
||||
"name" : "MACHINERYS",
|
||||
"label" : "机械计划",
|
||||
"disabled" : true,
|
||||
"type" : "input-table",
|
||||
"id" : "eg-MACHINERYS",
|
||||
"addable" : false,
|
||||
"removable" : false,
|
||||
"staticOn" : "${__readonly}",
|
||||
"columns" : [ {
|
||||
"name" : "RESOURCEID",
|
||||
"label" : "机械",
|
||||
"quickEdit" : {
|
||||
"name" : "RESOURCEID",
|
||||
"type" : "picker",
|
||||
"clearable" : true,
|
||||
"source" : "/api/picker/97c6e430-b274-4003-82b7-7b14ee2a7fc3/list",
|
||||
"labelField" : "_label",
|
||||
"valueField" : "_id",
|
||||
"modalMode" : "dialog",
|
||||
"modalSize" : "lg",
|
||||
"pickerSchema" : {
|
||||
"mode" : "table",
|
||||
"headerToolbar" : [ {
|
||||
"type" : "search-box",
|
||||
"name" : "q",
|
||||
"placeholder" : "输入关键字搜索"
|
||||
} ],
|
||||
"footerToolbar" : [ "pagination" ]
|
||||
}
|
||||
}
|
||||
}, {
|
||||
"name" : "WORKLOAD",
|
||||
"label" : "工程量",
|
||||
"quickEdit" : {
|
||||
"name" : "WORKLOAD",
|
||||
"type" : "input-number",
|
||||
"precision" : 2
|
||||
}
|
||||
}, {
|
||||
"name" : "UNITPRICE",
|
||||
"label" : "单价(元)",
|
||||
"quickEdit" : {
|
||||
"name" : "UNITPRICE",
|
||||
"type" : "input-number",
|
||||
"precision" : 2
|
||||
}
|
||||
}, {
|
||||
"name" : "TOTALPRICE",
|
||||
"label" : "合价(元)",
|
||||
"quickEdit" : {
|
||||
"name" : "TOTALPRICE",
|
||||
"type" : "input-number",
|
||||
"precision" : 2
|
||||
}
|
||||
} ],
|
||||
"needConfirm" : false
|
||||
} ]
|
||||
} ]
|
||||
}, {
|
||||
"type" : "grid",
|
||||
"columns" : [ {
|
||||
"md" : 12,
|
||||
"body" : [ {
|
||||
"name" : "OTHERS",
|
||||
"label" : "其他费用计划",
|
||||
"disabled" : true,
|
||||
"type" : "input-table",
|
||||
"id" : "eg-OTHERS",
|
||||
"addable" : false,
|
||||
"removable" : false,
|
||||
"staticOn" : "${__readonly}",
|
||||
"columns" : [ {
|
||||
"name" : "RESOURCEID",
|
||||
"label" : "费用项",
|
||||
"quickEdit" : {
|
||||
"name" : "RESOURCEID",
|
||||
"type" : "picker",
|
||||
"clearable" : true,
|
||||
"source" : "/api/picker/0211a0e2-2073-4b24-b59f-e6757e5dcff0/list",
|
||||
"labelField" : "_label",
|
||||
"valueField" : "_id",
|
||||
"modalMode" : "dialog",
|
||||
"modalSize" : "lg",
|
||||
"pickerSchema" : {
|
||||
"mode" : "table",
|
||||
"headerToolbar" : [ {
|
||||
"type" : "search-box",
|
||||
"name" : "q",
|
||||
"placeholder" : "输入关键字搜索"
|
||||
} ],
|
||||
"footerToolbar" : [ "pagination" ]
|
||||
}
|
||||
}
|
||||
}, {
|
||||
"name" : "TOTALPRICE",
|
||||
"label" : "合价(元)",
|
||||
"quickEdit" : {
|
||||
"name" : "TOTALPRICE",
|
||||
"type" : "input-number",
|
||||
"precision" : 2
|
||||
}
|
||||
} ],
|
||||
"needConfirm" : false
|
||||
} ]
|
||||
} ]
|
||||
}, {
|
||||
"name" : "PM_PROJECTCOSTSPLIT_ID",
|
||||
"label" : "主键",
|
||||
"hidden" : true,
|
||||
"type" : "input-text"
|
||||
} ],
|
||||
"actions" : [ ]
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user