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:
150
转换产物-attach/schema/c72f0f1e-b3ad-440e-8439-f292473957c6.json
Normal file
150
转换产物-attach/schema/c72f0f1e-b3ad-440e-8439-f292473957c6.json
Normal file
@@ -0,0 +1,150 @@
|
||||
{
|
||||
"type" : "page",
|
||||
"title" : "入围登记",
|
||||
"body" : {
|
||||
"type" : "crud",
|
||||
"api" : "/api/flow/PM_SELECTEDREGISTER_SEARCH",
|
||||
"syncLocation" : false,
|
||||
"selectable" : true,
|
||||
"checkOnItemClick" : true,
|
||||
"filter" : {
|
||||
"title" : "查询",
|
||||
"body" : [ {
|
||||
"name" : "PROJECTID",
|
||||
"label" : "工程名称",
|
||||
"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}"
|
||||
}, {
|
||||
"name" : "ISSELECTED",
|
||||
"label" : "是否入围",
|
||||
"type" : "select",
|
||||
"clearable" : true,
|
||||
"source" : "/api/poc/dict/YESNO"
|
||||
}, {
|
||||
"name" : "REGISTERDATE",
|
||||
"label" : "登记日期",
|
||||
"type" : "input-date-range"
|
||||
}, {
|
||||
"name" : "BIDOPENINGDATUM",
|
||||
"label" : "开标需要资料",
|
||||
"hidden" : true,
|
||||
"type" : "input-text"
|
||||
}, {
|
||||
"name" : "NOTSELECTEDREASON",
|
||||
"label" : "未入围原因",
|
||||
"hidden" : true,
|
||||
"type" : "input-text"
|
||||
}, {
|
||||
"name" : "REGISTERPERSON",
|
||||
"label" : "登记人",
|
||||
"hidden" : true,
|
||||
"type" : "picker",
|
||||
"clearable" : true,
|
||||
"source" : "/api/picker/76d2f950-ef40-4eff-89ec-98ad9a4976b9/list",
|
||||
"labelField" : "_label",
|
||||
"valueField" : "_id",
|
||||
"modalMode" : "dialog",
|
||||
"modalSize" : "lg",
|
||||
"pickerSchema" : {
|
||||
"mode" : "table",
|
||||
"headerToolbar" : [ {
|
||||
"type" : "search-box",
|
||||
"name" : "q",
|
||||
"placeholder" : "输入关键字搜索"
|
||||
} ],
|
||||
"footerToolbar" : [ "pagination" ]
|
||||
},
|
||||
"placeholder" : "请点击右侧的图标"
|
||||
} ]
|
||||
},
|
||||
"columns" : [ {
|
||||
"name" : "PM_SELECTEDREGISTER_ID",
|
||||
"label" : "主键",
|
||||
"width" : 200,
|
||||
"toggled" : false
|
||||
}, {
|
||||
"name" : "PROJECTID_DISPLAY__",
|
||||
"label" : "工程名称",
|
||||
"width" : 200
|
||||
}, {
|
||||
"name" : "ISSELECTED",
|
||||
"label" : "是否入围",
|
||||
"width" : 200,
|
||||
"type" : "mapping",
|
||||
"map" : {
|
||||
"0" : "否",
|
||||
"1" : "是",
|
||||
"false" : "否",
|
||||
"true" : "是"
|
||||
}
|
||||
}, {
|
||||
"name" : "BIDOPENINGDATUM",
|
||||
"label" : "开标需要资料",
|
||||
"width" : 200,
|
||||
"toggled" : false
|
||||
}, {
|
||||
"name" : "NOTSELECTEDREASON",
|
||||
"label" : "未入围原因",
|
||||
"width" : 200,
|
||||
"toggled" : false
|
||||
}, {
|
||||
"name" : "REGISTERPERSON_DISPLAY__",
|
||||
"label" : "登记人",
|
||||
"width" : 200
|
||||
}, {
|
||||
"name" : "REGISTERDATE",
|
||||
"label" : "登记日期",
|
||||
"width" : 200,
|
||||
"type" : "date",
|
||||
"format" : "YYYY-MM-DD",
|
||||
"inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ"
|
||||
} ],
|
||||
"headerToolbar" : [ {
|
||||
"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/d6807cc4-e210-4b9b-b79d-71dd6e44a8d2?format=amis",
|
||||
"static" : true,
|
||||
"api" : {
|
||||
"method" : "post",
|
||||
"url" : "/api/flow/PM_SELECTEDREGISTER_LOAD?__egtpl=d6807cc4-e210-4b9b-b79d-71dd6e44a8d2",
|
||||
"data" : {
|
||||
"PM_SELECTEDREGISTER_ID" : "${PM_SELECTEDREGISTER_ID}"
|
||||
},
|
||||
"responseData" : {
|
||||
"&" : "${result}"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}, "pagination" ],
|
||||
"primaryField" : "PM_SELECTEDREGISTER_ID"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user