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:
163
转换产物-attach/schema/6a43fcd4-87a4-4e1a-a673-912f67188662.json
Normal file
163
转换产物-attach/schema/6a43fcd4-87a4-4e1a-a673-912f67188662.json
Normal file
@@ -0,0 +1,163 @@
|
||||
{
|
||||
"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/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}"
|
||||
} ]
|
||||
}, {
|
||||
"md" : 6,
|
||||
"body" : [ {
|
||||
"name" : "AUTHORITIES",
|
||||
"label" : "主管部门",
|
||||
"required" : true,
|
||||
"type" : "input-text"
|
||||
} ]
|
||||
} ]
|
||||
}, {
|
||||
"type" : "grid",
|
||||
"columns" : [ {
|
||||
"md" : 6,
|
||||
"body" : [ {
|
||||
"name" : "WORKSUBCONID",
|
||||
"label" : "劳务队组名称",
|
||||
"required" : true,
|
||||
"type" : "picker",
|
||||
"clearable" : true,
|
||||
"source" : "/api/picker/7cab9bb2-fd28-447c-90ee-209c84dec44f/list",
|
||||
"labelField" : "_label",
|
||||
"valueField" : "_id",
|
||||
"modalMode" : "dialog",
|
||||
"modalSize" : "lg",
|
||||
"pickerSchema" : {
|
||||
"mode" : "table",
|
||||
"headerToolbar" : [ {
|
||||
"type" : "search-box",
|
||||
"name" : "q",
|
||||
"placeholder" : "输入关键字搜索"
|
||||
} ],
|
||||
"footerToolbar" : [ "pagination" ]
|
||||
}
|
||||
} ]
|
||||
} ]
|
||||
}, {
|
||||
"type" : "grid",
|
||||
"columns" : [ {
|
||||
"md" : 12,
|
||||
"body" : [ {
|
||||
"name" : "LISTS",
|
||||
"label" : "LISTS",
|
||||
"required" : true,
|
||||
"type" : "input-table",
|
||||
"id" : "eg-LISTS",
|
||||
"addable" : true,
|
||||
"removable" : true,
|
||||
"staticOn" : "${__readonly}",
|
||||
"columns" : [ {
|
||||
"name" : "PROJECTNAME",
|
||||
"label" : "单位工程",
|
||||
"quickEdit" : {
|
||||
"name" : "PROJECTNAME",
|
||||
"required" : true,
|
||||
"type" : "input-text"
|
||||
}
|
||||
}, {
|
||||
"name" : "WORKSUBCONTENT",
|
||||
"label" : "劳务分包内容",
|
||||
"quickEdit" : {
|
||||
"name" : "WORKSUBCONTENT",
|
||||
"type" : "input-text"
|
||||
}
|
||||
}, {
|
||||
"name" : "DAYTIME",
|
||||
"label" : "工期(天)",
|
||||
"quickEdit" : {
|
||||
"name" : "DAYTIME",
|
||||
"type" : "input-number",
|
||||
"precision" : 0,
|
||||
"step" : 1
|
||||
}
|
||||
}, {
|
||||
"name" : "QUALITYCONDITION",
|
||||
"label" : "质量情况",
|
||||
"quickEdit" : {
|
||||
"name" : "QUALITYCONDITION",
|
||||
"type" : "input-text"
|
||||
}
|
||||
}, {
|
||||
"name" : "SAFETYCONDITION",
|
||||
"label" : "安全情况",
|
||||
"quickEdit" : {
|
||||
"name" : "SAFETYCONDITION",
|
||||
"type" : "input-text"
|
||||
}
|
||||
}, {
|
||||
"name" : "AUTHENTICATOR",
|
||||
"label" : "证明人",
|
||||
"type" : "tpl",
|
||||
"tpl" : "${AUTHENTICATOR_DISPLAY__ ? AUTHENTICATOR_DISPLAY__ : AUTHENTICATOR}",
|
||||
"quickEdit" : false
|
||||
} ],
|
||||
"needConfirm" : false
|
||||
} ]
|
||||
} ]
|
||||
}, {
|
||||
"type" : "grid",
|
||||
"columns" : [ {
|
||||
"md" : 12,
|
||||
"body" : [ {
|
||||
"name" : "DOCUMENT",
|
||||
"label" : "附件",
|
||||
"type" : "input-file",
|
||||
"receiver" : "/api/file/upload?tableName=PM_WORK_SUBCON_ASSESS&businessKey=${PM_WORK_SUBCON_ASSESS_ID}",
|
||||
"downloadUrl" : "/api/file/${id}",
|
||||
"multiple" : true,
|
||||
"staticOn" : "${__readonly}",
|
||||
"joinValues" : false,
|
||||
"extractValue" : false
|
||||
} ]
|
||||
} ]
|
||||
}, {
|
||||
"name" : "PM_WORK_SUBCON_ASSESS_ID",
|
||||
"label" : "主键",
|
||||
"hidden" : true,
|
||||
"type" : "input-text"
|
||||
}, {
|
||||
"name" : "",
|
||||
"label" : "",
|
||||
"type" : "input-text",
|
||||
"hidden" : true
|
||||
} ],
|
||||
"actions" : [ ]
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user