Files
eip4-platform/转换产物-attach/schema/556df137-65f0-4f92-beda-8539234f6f83.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

257 lines
7.1 KiB
JSON

{
"type" : "page",
"title" : "施工预算定额编辑页面",
"body" : {
"type" : "form",
"id" : "eip4-edit-form",
"title" : "",
"mode" : "horizontal",
"horizontal" : {
"leftFixed" : 120
},
"body" : [ {
"type" : "grid",
"columns" : [ {
"md" : 6,
"body" : [ {
"name" : "QUOTANO",
"label" : "定额编码",
"required" : true,
"type" : "input-text"
} ]
}, {
"md" : 6,
"body" : [ {
"name" : "QUOTANAME",
"label" : "定额名称",
"required" : true,
"type" : "input-text"
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 6,
"body" : [ {
"name" : "UNITLISTID",
"label" : "单位",
"required" : true,
"type" : "select",
"clearable" : true,
"source" : "/api/picker/PM_UNITLIST/list?perPage=500"
} ]
}, {
"md" : 6,
"body" : [ {
"name" : "QUOTACONTENT",
"label" : "工程量",
"required" : true,
"type" : "input-number",
"precision" : 2
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 12,
"body" : [ {
"name" : "MATE_LIST",
"label" : "资源",
"required" : true,
"type" : "input-table",
"id" : "eg-MATE_LIST",
"addable" : true,
"removable" : true,
"staticOn" : "${__readonly}",
"columns" : [ {
"name" : "RCJTYPE",
"label" : "资源类型",
"quickEdit" : {
"name" : "RCJTYPE",
"disabled" : true,
"type" : "select",
"clearable" : true,
"source" : "/api/poc/dict/RCJHZ_RCJTYPE"
}
}, {
"name" : "UNITLISTID",
"label" : "单位",
"quickEdit" : {
"name" : "UNITLISTID",
"disabled" : true,
"type" : "select",
"clearable" : true,
"source" : "/api/picker/PM_UNITLIST/list?perPage=500"
}
}, {
"name" : "UNITPRICE",
"label" : "单价",
"quickEdit" : {
"name" : "UNITPRICE",
"required" : true,
"type" : "input-number",
"precision" : 2
}
}, {
"name" : "PROJECTRCJID",
"label" : "资源",
"quickEdit" : {
"name" : "PROJECTRCJID",
"required" : true,
"type" : "picker",
"clearable" : true,
"source" : "/api/picker/c40ebf73-5b8c-492b-b3a5-bfa15c7cf28b/list",
"labelField" : "_label",
"valueField" : "_id",
"modalMode" : "dialog",
"modalSize" : "lg",
"pickerSchema" : {
"mode" : "table",
"headerToolbar" : [ {
"type" : "search-box",
"name" : "q",
"placeholder" : "输入关键字搜索"
} ],
"footerToolbar" : [ "pagination" ]
},
"onEvent" : {
"change" : {
"actions" : [ {
"actionType" : "ajax",
"outputVar" : "egRow",
"args" : {
"api" : {
"method" : "post",
"url" : "/api/script/execute-editgrid-row",
"data" : {
"templateId" : "556df137-65f0-4f92-beda-8539234f6f83",
"editgridField" : "MATE_LIST",
"scriptKey" : "5f24decb-72b6-4491-908f-0762ce8c532c",
"changedField" : "PROJECTRCJID",
"row" : "${__rendererData}",
"parent" : {
"MATE_LIST" : "${__rendererData.MATE_LIST || MATE_LIST}"
}
}
}
}
}, {
"actionType" : "setValue",
"componentId" : "eg-MATE_LIST",
"args" : {
"index" : "${index}",
"value" : "${egRow.rowSetValues}"
}
}, {
"actionType" : "setValue",
"componentId" : "eip4-edit-form",
"args" : {
"value" : "${egRow.parentSetValues}"
}
} ]
}
}
}
}, {
"name" : "RCJCONTENT",
"label" : "含量",
"quickEdit" : {
"name" : "RCJCONTENT",
"required" : true,
"type" : "input-number",
"precision" : 2
}
} ],
"needConfirm" : false
} ]
} ]
}, {
"name" : "PM_CBUDGETQUOTA_ID",
"label" : "主键",
"hidden" : true,
"type" : "input-text"
}, {
"name" : "BUDGETUNITID",
"label" : "预算单元",
"hidden" : true,
"type" : "input-text"
}, {
"name" : "CBUDGETLISTID",
"label" : "清单名称",
"hidden" : true,
"type" : "input-text"
}, {
"name" : "UNITPRICE",
"label" : "单价",
"required" : true,
"disabled" : true,
"type" : "input-number",
"precision" : 2,
"hidden" : true
}, {
"name" : "LABOURCOSTS",
"label" : "人工费",
"required" : true,
"hidden" : true,
"type" : "input-number",
"precision" : 2,
"value" : "0"
}, {
"name" : "MATERIALCOSTS",
"label" : "材料费",
"required" : true,
"hidden" : true,
"type" : "input-number",
"precision" : 2,
"value" : "0"
}, {
"name" : "MACHINERYCOSTS",
"label" : "机械费",
"required" : true,
"hidden" : true,
"type" : "input-number",
"precision" : 2,
"value" : "0"
}, {
"name" : "MANAGEMENTEXPENSE",
"label" : "管理费",
"required" : true,
"hidden" : true,
"type" : "input-number",
"precision" : 2,
"value" : "0"
}, {
"name" : "DROFIT",
"label" : "利润",
"required" : true,
"hidden" : true,
"type" : "input-number",
"precision" : 2,
"value" : "0"
}, {
"name" : "VALENCE",
"label" : "合价",
"required" : true,
"hidden" : true,
"type" : "input-number",
"precision" : 2,
"value" : "0"
}, {
"name" : "ISLIST",
"label" : "是否清单",
"required" : true,
"hidden" : true,
"type" : "input-number",
"precision" : 0,
"step" : 1,
"value" : "1"
}, {
"name" : "PROJECTID",
"label" : "工程名称",
"hidden" : true,
"type" : "input-text",
"value" : "${currentUser}"
} ],
"actions" : [ ]
}
}