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:
363
转换产物-attach/schema/38bebdb5-ebd4-4fdc-b1e6-e676ba7c4c2a.json
Normal file
363
转换产物-attach/schema/38bebdb5-ebd4-4fdc-b1e6-e676ba7c4c2a.json
Normal file
@@ -0,0 +1,363 @@
|
||||
{
|
||||
"type" : "page",
|
||||
"title" : "业绩库",
|
||||
"body" : {
|
||||
"type" : "crud",
|
||||
"api" : "/api/flow/PM_SPIDER_PROJECT_SEARCH",
|
||||
"syncLocation" : false,
|
||||
"selectable" : true,
|
||||
"checkOnItemClick" : true,
|
||||
"filter" : {
|
||||
"title" : "查询",
|
||||
"body" : [ {
|
||||
"name" : "PROJECTNAME",
|
||||
"label" : "工程名称",
|
||||
"type" : "input-text"
|
||||
}, {
|
||||
"name" : "BUILDUNIT",
|
||||
"label" : "建设单位",
|
||||
"type" : "input-text"
|
||||
}, {
|
||||
"name" : "CONSTRUCTIONUNIT",
|
||||
"label" : "施工单位",
|
||||
"type" : "input-text"
|
||||
}, {
|
||||
"name" : "EACHDISTRICT",
|
||||
"label" : "所属地区",
|
||||
"type" : "input-text"
|
||||
}, {
|
||||
"name" : "STARTDATE",
|
||||
"label" : "开工日期",
|
||||
"type" : "input-date-range"
|
||||
}, {
|
||||
"name" : "ENDDATE",
|
||||
"label" : "竣工日期",
|
||||
"type" : "input-date-range"
|
||||
}, {
|
||||
"name" : "Z1",
|
||||
"label" : "造价(万元)(大于)",
|
||||
"type" : "input-number",
|
||||
"precision" : 4
|
||||
}, {
|
||||
"name" : "M2",
|
||||
"label" : "单体建筑面积(平方米)",
|
||||
"type" : "input-number",
|
||||
"precision" : 2
|
||||
}, {
|
||||
"name" : "M1",
|
||||
"label" : "建筑面积(大于)",
|
||||
"type" : "input-number",
|
||||
"precision" : 2
|
||||
}, {
|
||||
"name" : "PROJECTMANAGER",
|
||||
"label" : "项目负责人",
|
||||
"type" : "input-text"
|
||||
}, {
|
||||
"name" : "PROJECTTYPE",
|
||||
"label" : "工程类型",
|
||||
"type" : "select",
|
||||
"clearable" : true,
|
||||
"source" : "/api/poc/dict/PM_SPIDER_PROJECT_TYPE"
|
||||
}, {
|
||||
"name" : "D2",
|
||||
"label" : "单跨跨度(大于)",
|
||||
"type" : "input-number",
|
||||
"precision" : 2
|
||||
}, {
|
||||
"name" : "CREATETIME",
|
||||
"label" : "创建时间",
|
||||
"type" : "input-date-range"
|
||||
}, {
|
||||
"name" : "UPDATETIME",
|
||||
"label" : "修改时间",
|
||||
"type" : "input-date-range"
|
||||
}, {
|
||||
"name" : "UNITCATEGROY_1",
|
||||
"label" : "专业组别(等于)",
|
||||
"type" : "picker",
|
||||
"clearable" : true,
|
||||
"multiple" : true,
|
||||
"overflowConfig" : {
|
||||
"displayPosition" : [ "select" ],
|
||||
"maxTagCount" : 1
|
||||
},
|
||||
"source" : "/api/picker/d95ca843-50c1-4830-9c7e-f411c7c6992b/list",
|
||||
"labelField" : "_label",
|
||||
"valueField" : "_id",
|
||||
"modalMode" : "dialog",
|
||||
"modalSize" : "lg",
|
||||
"pickerSchema" : {
|
||||
"mode" : "table",
|
||||
"headerToolbar" : [ {
|
||||
"type" : "search-box",
|
||||
"name" : "q",
|
||||
"placeholder" : "输入关键字搜索"
|
||||
} ],
|
||||
"footerToolbar" : [ "pagination" ]
|
||||
}
|
||||
}, {
|
||||
"name" : "H1",
|
||||
"label" : "高度(小于)",
|
||||
"hidden" : true,
|
||||
"type" : "input-number",
|
||||
"precision" : 2
|
||||
}, {
|
||||
"name" : "H2",
|
||||
"label" : "高度(大于)",
|
||||
"type" : "input-number",
|
||||
"precision" : 2
|
||||
}, {
|
||||
"name" : "D1",
|
||||
"label" : "但跨跨度(小于)",
|
||||
"hidden" : true,
|
||||
"type" : "input-number",
|
||||
"precision" : 2
|
||||
}, {
|
||||
"name" : "F1",
|
||||
"label" : "附件更新",
|
||||
"type" : "checkbox",
|
||||
"value" : "0"
|
||||
}, {
|
||||
"name" : "REMARKS",
|
||||
"label" : "备注",
|
||||
"type" : "input-text"
|
||||
} ]
|
||||
},
|
||||
"columns" : [ {
|
||||
"name" : "PM_SPIDER_PROJECT_ID",
|
||||
"label" : "主键",
|
||||
"width" : 200,
|
||||
"toggled" : false
|
||||
}, {
|
||||
"name" : "PROJECTNAME",
|
||||
"label" : "工程名称",
|
||||
"width" : 380
|
||||
}, {
|
||||
"name" : "PROJECTTYPE",
|
||||
"label" : "工程类型",
|
||||
"width" : 140,
|
||||
"type" : "mapping",
|
||||
"map" : {
|
||||
"0" : "房屋建筑工程",
|
||||
"1" : "建筑装饰专业",
|
||||
"2" : "园林绿化专业",
|
||||
"3" : "市政公用工程",
|
||||
"4" : "园林古建专业"
|
||||
}
|
||||
}, {
|
||||
"name" : "BUILDUNIT",
|
||||
"label" : "建设单位",
|
||||
"width" : 200
|
||||
}, {
|
||||
"name" : "CONSTRUCTIONUNITID_DISPLAY__",
|
||||
"label" : "施工单位",
|
||||
"width" : 200
|
||||
}, {
|
||||
"name" : "UNITCATEGROY",
|
||||
"label" : "专业组别",
|
||||
"width" : 150
|
||||
}, {
|
||||
"name" : "CONSTRUCTIONUNIT",
|
||||
"label" : "施工单位",
|
||||
"width" : 200,
|
||||
"toggled" : false
|
||||
}, {
|
||||
"name" : "PROJECTCOST",
|
||||
"label" : "工程造价(万元)",
|
||||
"width" : 140
|
||||
}, {
|
||||
"name" : "STARTDATE",
|
||||
"label" : "开工日期",
|
||||
"width" : 150,
|
||||
"type" : "date",
|
||||
"format" : "YYYY-MM-DD",
|
||||
"inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ",
|
||||
"toggled" : false
|
||||
}, {
|
||||
"name" : "ENDDATE",
|
||||
"label" : "竣工日期",
|
||||
"width" : 140,
|
||||
"type" : "date",
|
||||
"format" : "YYYY-MM-DD",
|
||||
"inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ"
|
||||
}, {
|
||||
"name" : "EACHDISTRICT",
|
||||
"label" : "所属地区",
|
||||
"width" : 120,
|
||||
"toggled" : false
|
||||
}, {
|
||||
"name" : "PROJECTMANAGER",
|
||||
"label" : "项目负责人",
|
||||
"width" : 100
|
||||
}, {
|
||||
"name" : "CONSTRUCTIONAREA",
|
||||
"label" : "面积(平方米)",
|
||||
"width" : 150
|
||||
}, {
|
||||
"name" : "MONOMERBUILDINGAREA",
|
||||
"label" : "单体建筑面积(平方米)",
|
||||
"width" : 200,
|
||||
"toggled" : false
|
||||
}, {
|
||||
"name" : "HEIGHT",
|
||||
"label" : "高度",
|
||||
"width" : 80
|
||||
}, {
|
||||
"name" : "SPAN",
|
||||
"label" : "单跨跨度",
|
||||
"width" : 80
|
||||
}, {
|
||||
"name" : "CREATETIME",
|
||||
"label" : "创建时间",
|
||||
"width" : 180,
|
||||
"type" : "datetime",
|
||||
"format" : "YYYY-MM-DD HH:mm",
|
||||
"inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ"
|
||||
}, {
|
||||
"name" : "UPDATETIME",
|
||||
"label" : "修改时间",
|
||||
"width" : 180,
|
||||
"type" : "datetime",
|
||||
"format" : "YYYY-MM-DD HH:mm",
|
||||
"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]}"
|
||||
},
|
||||
"body" : {
|
||||
"type" : "service",
|
||||
"schemaApi" : "get:/api/page/schema/307717c0-ee95-4abc-bab4-9a85ff182d5d?format=amis",
|
||||
"api" : {
|
||||
"method" : "post",
|
||||
"url" : "/api/flow/PM_SPIDER_PROJECT_LOAD?__egtpl=307717c0-ee95-4abc-bab4-9a85ff182d5d",
|
||||
"data" : {
|
||||
"PM_SPIDER_PROJECT_ID" : "${PM_SPIDER_PROJECT_ID}"
|
||||
},
|
||||
"responseData" : {
|
||||
"&" : "${result}"
|
||||
}
|
||||
},
|
||||
"onEvent" : {
|
||||
"inited" : {
|
||||
"actions" : [ {
|
||||
"actionType" : "ajax",
|
||||
"api" : {
|
||||
"method" : "post",
|
||||
"url" : "/api/script/execute-template",
|
||||
"data" : {
|
||||
"seq" : 1,
|
||||
"item" : "${&}",
|
||||
"templateId" : "38bebdb5-ebd4-4fdc-b1e6-e676ba7c4c2a"
|
||||
}
|
||||
},
|
||||
"outputVar" : "scriptResult1"
|
||||
}, {
|
||||
"actionType" : "replayScriptCommands",
|
||||
"args" : {
|
||||
"commands" : "${event.data.scriptResult1.commands}"
|
||||
}
|
||||
} ]
|
||||
}
|
||||
}
|
||||
},
|
||||
"actions" : [ {
|
||||
"type" : "button",
|
||||
"label" : "保存",
|
||||
"level" : "primary",
|
||||
"actionType" : "submit",
|
||||
"api" : "POST:/api/flow/PM_SPIDER_PROJECT_UPDATE?__egtpl=307717c0-ee95-4abc-bab4-9a85ff182d5d",
|
||||
"close" : true
|
||||
}, {
|
||||
"type" : "button",
|
||||
"label" : "取消",
|
||||
"actionType" : "close"
|
||||
} ]
|
||||
}
|
||||
}, {
|
||||
"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/307717c0-ee95-4abc-bab4-9a85ff182d5d?format=amis",
|
||||
"static" : true,
|
||||
"api" : {
|
||||
"method" : "post",
|
||||
"url" : "/api/flow/PM_SPIDER_PROJECT_LOAD?__egtpl=307717c0-ee95-4abc-bab4-9a85ff182d5d",
|
||||
"data" : {
|
||||
"PM_SPIDER_PROJECT_ID" : "${PM_SPIDER_PROJECT_ID}"
|
||||
},
|
||||
"responseData" : {
|
||||
"&" : "${result}"
|
||||
}
|
||||
},
|
||||
"onEvent" : {
|
||||
"inited" : {
|
||||
"actions" : [ {
|
||||
"actionType" : "ajax",
|
||||
"api" : {
|
||||
"method" : "post",
|
||||
"url" : "/api/script/execute-template",
|
||||
"data" : {
|
||||
"seq" : 1,
|
||||
"item" : "${&}",
|
||||
"templateId" : "38bebdb5-ebd4-4fdc-b1e6-e676ba7c4c2a"
|
||||
}
|
||||
},
|
||||
"outputVar" : "scriptResult1"
|
||||
}, {
|
||||
"actionType" : "replayScriptCommands",
|
||||
"args" : {
|
||||
"commands" : "${event.data.scriptResult1.commands}"
|
||||
}
|
||||
} ]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}, "pagination" ],
|
||||
"primaryField" : "PM_SPIDER_PROJECT_ID",
|
||||
"onEvent" : {
|
||||
"inited" : {
|
||||
"actions" : [ {
|
||||
"actionType" : "ajax",
|
||||
"api" : {
|
||||
"method" : "post",
|
||||
"url" : "/api/script/execute-template",
|
||||
"data" : {
|
||||
"seq" : 1,
|
||||
"item" : "${&}",
|
||||
"templateId" : "38bebdb5-ebd4-4fdc-b1e6-e676ba7c4c2a"
|
||||
}
|
||||
},
|
||||
"outputVar" : "scriptResult1"
|
||||
}, {
|
||||
"actionType" : "replayScriptCommands",
|
||||
"args" : {
|
||||
"commands" : "${event.data.scriptResult1.commands}"
|
||||
}
|
||||
} ]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user