Files
eip4-platform/转换产物-attach/schema/9b2cb73f-024f-4fe2-83b3-e60a24e94e84.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

122 lines
3.3 KiB
JSON

{
"type" : "page",
"title" : "项目未关联专业分包编辑",
"body" : {
"type" : "form",
"id" : "eip4-edit-form",
"title" : "",
"mode" : "horizontal",
"horizontal" : {
"leftFixed" : 120
},
"body" : [ {
"type" : "grid",
"columns" : [ {
"md" : 4,
"body" : [ {
"name" : "PROJECTID",
"label" : "工程名称",
"type" : "static",
"tpl" : "${PROJECTID_DISPLAY__ ? PROJECTID_DISPLAY__ : (PROJECTNAME ? PROJECTNAME : PROJECTID)}",
"value" : "${currentProject}"
} ]
}, {
"md" : 4,
"body" : [ {
"name" : "WORKCONTENT",
"label" : "工作内容",
"disabled" : true,
"type" : "input-text"
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 4,
"body" : [ {
"name" : "SUBPACKAGEMONEY",
"label" : "金额(元)",
"required" : true,
"type" : "input-number",
"precision" : 2
} ]
}, {
"md" : 4,
"body" : [ {
"name" : "UNITINFOID",
"label" : "专业分包方",
"required" : true,
"type" : "picker",
"clearable" : true,
"source" : "/api/picker/1e44957d-45a4-4f2a-8148-014955f444e6/list",
"labelField" : "_label",
"valueField" : "_id",
"modalMode" : "dialog",
"modalSize" : "lg",
"pickerSchema" : {
"mode" : "table",
"headerToolbar" : [ {
"type" : "search-box",
"name" : "q",
"placeholder" : "输入关键字搜索"
} ],
"footerToolbar" : [ "pagination" ]
}
} ]
} ]
}, {
"name" : "ADD",
"label" : "添加",
"hidden" : true,
"type" : "input-text",
"value" : "1"
}, {
"type" : "grid",
"columns" : [ {
"md" : 4,
"body" : [ {
"name" : "CONTRACTID",
"label" : "专业分包合同名称",
"required" : true,
"disabled" : true,
"type" : "select",
"clearable" : true,
"source" : "/api/picker/PM_SPECIALTYSUBCONTRACTREGISTER/list?perPage=500"
} ]
}, {
"md" : 4,
"body" : [ {
"name" : "CONTRACTMONEY",
"label" : "合同价款(元)",
"type" : "input-number",
"precision" : 2
} ]
} ]
}, {
"name" : "SUBPACKAGEPLANID",
"label" : "工作内容",
"hidden" : true,
"type" : "static",
"tpl" : "${SUBPACKAGEPLANID_DISPLAY__ ? SUBPACKAGEPLANID_DISPLAY__ : (WORKCONTENT ? WORKCONTENT : SUBPACKAGEPLANID)}"
}, {
"name" : "RELATIONID",
"label" : "项目劳务合同关联",
"hidden" : true,
"type" : "select",
"clearable" : true,
"searchable" : true,
"source" : "/api/picker//list?q=${term}&page=${page}&perPage=${perPage}"
}, {
"name" : "VIEW_PM_NOTRELATIONSUBPACKAGE_ID",
"label" : "主键",
"hidden" : true,
"type" : "input-text"
}, {
"name" : "OLDUNITINFOID",
"label" : "原选中专业分包方",
"hidden" : true,
"type" : "input-text"
} ],
"actions" : [ ]
}
}