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:
477
转换产物-attach/schema/081c1fef-9b3c-489f-b467-b866ace68ca5.json
Normal file
477
转换产物-attach/schema/081c1fef-9b3c-489f-b467-b866ace68ca5.json
Normal file
@@ -0,0 +1,477 @@
|
||||
{
|
||||
"type" : "page",
|
||||
"title" : "施工方案审批",
|
||||
"body" : {
|
||||
"type" : "crud",
|
||||
"api" : "/api/flow/PM_PUB_CONSTRUCTIONSCHEMEAPPROVAL_SEARCH",
|
||||
"syncLocation" : false,
|
||||
"selectable" : true,
|
||||
"checkOnItemClick" : true,
|
||||
"filter" : {
|
||||
"title" : "查询",
|
||||
"body" : [ {
|
||||
"name" : "FILIALE",
|
||||
"label" : "(分)公司",
|
||||
"type" : "picker",
|
||||
"clearable" : true,
|
||||
"source" : "/api/picker/1a998b23-371d-4ebb-911f-6465a56a6809/list",
|
||||
"labelField" : "_label",
|
||||
"valueField" : "_id",
|
||||
"modalMode" : "dialog",
|
||||
"modalSize" : "lg",
|
||||
"pickerSchema" : {
|
||||
"mode" : "table",
|
||||
"headerToolbar" : [ {
|
||||
"type" : "search-box",
|
||||
"name" : "q",
|
||||
"placeholder" : "输入关键字搜索"
|
||||
} ],
|
||||
"footerToolbar" : [ "pagination" ]
|
||||
}
|
||||
}, {
|
||||
"name" : "PROJECTNAMEID",
|
||||
"label" : "工程名称",
|
||||
"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}"
|
||||
}, {
|
||||
"name" : "CATEGORY",
|
||||
"label" : "项目类别",
|
||||
"type" : "select",
|
||||
"clearable" : true,
|
||||
"source" : "/api/poc/dict/PM_PROJECT_CATEGORY"
|
||||
}, {
|
||||
"name" : "REPORTCONTENT",
|
||||
"label" : "施工方案名称",
|
||||
"type" : "input-text"
|
||||
}, {
|
||||
"name" : "ITEMDATE",
|
||||
"label" : "提交日期",
|
||||
"type" : "input-date-range"
|
||||
}, {
|
||||
"name" : "TYPE",
|
||||
"label" : "方案类型",
|
||||
"type" : "select",
|
||||
"clearable" : true,
|
||||
"source" : "/api/poc/dict/PM_constructionSchemeType"
|
||||
}, {
|
||||
"name" : "STATUS",
|
||||
"label" : "审批状态",
|
||||
"type" : "select",
|
||||
"clearable" : true,
|
||||
"source" : "/api/poc/dict/WFSTATUS"
|
||||
} ]
|
||||
},
|
||||
"columns" : [ {
|
||||
"name" : "PM_PUB_CONSTRUCTIONSCHEMEAPPROVAL_ID",
|
||||
"label" : "主键",
|
||||
"width" : 200,
|
||||
"toggled" : false
|
||||
}, {
|
||||
"name" : "FILIALE_DISPLAY__",
|
||||
"label" : "(分)公司",
|
||||
"width" : 130
|
||||
}, {
|
||||
"name" : "PROJECTID_DISPLAY__",
|
||||
"label" : "工程名称",
|
||||
"width" : 300
|
||||
}, {
|
||||
"name" : "CATEGORY",
|
||||
"label" : "项目类别",
|
||||
"width" : 70,
|
||||
"type" : "mapping",
|
||||
"map" : {
|
||||
"1" : "Ⅰ类工程",
|
||||
"2" : "Ⅱ类工程",
|
||||
"3" : "Ⅲ类工程"
|
||||
}
|
||||
}, {
|
||||
"name" : "REPORTCONTENT",
|
||||
"label" : "施工方案名称",
|
||||
"width" : 180
|
||||
}, {
|
||||
"name" : "LASTVERIFYDEPART",
|
||||
"label" : "最后审核部门",
|
||||
"width" : 100,
|
||||
"type" : "mapping",
|
||||
"map" : {
|
||||
"1" : "集团公司技术部",
|
||||
"2" : "集团公司总工程师"
|
||||
}
|
||||
}, {
|
||||
"name" : "ITEMDATE",
|
||||
"label" : "提交日期",
|
||||
"width" : 80,
|
||||
"type" : "date",
|
||||
"format" : "YYYY-MM-DD",
|
||||
"inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ"
|
||||
}, {
|
||||
"name" : "TYPE",
|
||||
"label" : "方案类型",
|
||||
"width" : 80,
|
||||
"type" : "mapping",
|
||||
"map" : {
|
||||
"0" : "质量类",
|
||||
"7" : "技术核定单",
|
||||
"2" : "安全类",
|
||||
"3" : "开工报告、管理人员名单",
|
||||
"4" : "施工许可证、安监、质监申报",
|
||||
"1" : "桩基、围护、幕墙类"
|
||||
}
|
||||
}, {
|
||||
"name" : "STATUS",
|
||||
"label" : "审批状态",
|
||||
"width" : 70,
|
||||
"type" : "mapping",
|
||||
"map" : {
|
||||
"1" : "未提交",
|
||||
"2" : "处理中",
|
||||
"3" : "通过",
|
||||
"4" : "未通过",
|
||||
"5" : "重新提交",
|
||||
"6" : "作废"
|
||||
}
|
||||
}, {
|
||||
"name" : "ENDTIME",
|
||||
"label" : "审批通过时间",
|
||||
"width" : 120,
|
||||
"type" : "datetime",
|
||||
"format" : "YYYY-MM-DD HH:mm",
|
||||
"inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ"
|
||||
}, {
|
||||
"name" : "ITEMBRANCH",
|
||||
"label" : "项目部名称",
|
||||
"width" : 200,
|
||||
"toggled" : false
|
||||
}, {
|
||||
"name" : "ITEMMANAGER_DISPLAY__",
|
||||
"label" : "项目经理",
|
||||
"width" : 200,
|
||||
"toggled" : false
|
||||
}, {
|
||||
"name" : "DEPARTCONTENT",
|
||||
"label" : "分公司审核意见",
|
||||
"width" : 200,
|
||||
"toggled" : false
|
||||
}, {
|
||||
"name" : "DEPARTBRANCH",
|
||||
"label" : "分公司审核部门",
|
||||
"width" : 200,
|
||||
"toggled" : false
|
||||
}, {
|
||||
"name" : "DEPARTUSER_DISPLAY__",
|
||||
"label" : "分公司审核人",
|
||||
"width" : 200,
|
||||
"toggled" : false
|
||||
}, {
|
||||
"name" : "DEPARTDATE",
|
||||
"label" : "分公司审核日期",
|
||||
"width" : 200,
|
||||
"type" : "date",
|
||||
"format" : "YYYY-MM-DD",
|
||||
"inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ",
|
||||
"toggled" : false
|
||||
}, {
|
||||
"name" : "COMPANYCONTENT",
|
||||
"label" : "集团公司审核意见",
|
||||
"width" : 200,
|
||||
"toggled" : false
|
||||
}, {
|
||||
"name" : "COMPANYBRANCH",
|
||||
"label" : "集团公司审核部门",
|
||||
"width" : 200,
|
||||
"toggled" : false
|
||||
}, {
|
||||
"name" : "COMPANYUSER_DISPLAY__",
|
||||
"label" : "集团公司审核人",
|
||||
"width" : 200,
|
||||
"toggled" : false
|
||||
}, {
|
||||
"name" : "COMPANYDATE",
|
||||
"label" : "集团公司审核日期",
|
||||
"width" : 200,
|
||||
"type" : "date",
|
||||
"format" : "YYYY-MM-DD",
|
||||
"inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ",
|
||||
"toggled" : false
|
||||
}, {
|
||||
"name" : "ENGINEERCONTENT",
|
||||
"label" : "总工程师审核意见",
|
||||
"width" : 200,
|
||||
"toggled" : false
|
||||
}, {
|
||||
"name" : "ENGINEER_DISPLAY__",
|
||||
"label" : "总工程师",
|
||||
"width" : 200,
|
||||
"toggled" : false
|
||||
}, {
|
||||
"name" : "ENGINNERDATE",
|
||||
"label" : "总工程师审核日期",
|
||||
"width" : 200,
|
||||
"type" : "date",
|
||||
"format" : "YYYY-MM-DD",
|
||||
"inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ",
|
||||
"toggled" : false
|
||||
}, {
|
||||
"name" : "QUALITYDEPART",
|
||||
"label" : "质量审核部门",
|
||||
"width" : 200,
|
||||
"toggled" : false
|
||||
}, {
|
||||
"name" : "QUALITYDEPARTUSER_DISPLAY__",
|
||||
"label" : "质量审核人",
|
||||
"width" : 200,
|
||||
"toggled" : false
|
||||
}, {
|
||||
"name" : "QUALITYDEPARTDATE",
|
||||
"label" : "质量审核日期",
|
||||
"width" : 200,
|
||||
"type" : "date",
|
||||
"format" : "YYYY-MM-DD",
|
||||
"inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ",
|
||||
"toggled" : false
|
||||
}, {
|
||||
"name" : "SAFEDEPART",
|
||||
"label" : "安全审核部门",
|
||||
"width" : 200,
|
||||
"toggled" : false
|
||||
}, {
|
||||
"name" : "SAFEDEPARTUSER_DISPLAY__",
|
||||
"label" : "安全审核人",
|
||||
"width" : 200,
|
||||
"toggled" : false
|
||||
}, {
|
||||
"name" : "SAFEDEPARTDATE",
|
||||
"label" : "安全审核日期",
|
||||
"width" : 200,
|
||||
"type" : "date",
|
||||
"format" : "YYYY-MM-DD",
|
||||
"inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ",
|
||||
"toggled" : false
|
||||
} ],
|
||||
"headerToolbar" : [ {
|
||||
"type" : "button",
|
||||
"id" : "添加",
|
||||
"label" : "添加",
|
||||
"level" : "primary",
|
||||
"actionType" : "dialog",
|
||||
"dialog" : {
|
||||
"type" : "dialog",
|
||||
"title" : "添加",
|
||||
"size" : "lg",
|
||||
"body" : {
|
||||
"type" : "service",
|
||||
"schemaApi" : "get:/api/page/schema/69ff81e5-58af-454c-8ea4-c2d92b07c1e8?format=amis",
|
||||
"api" : {
|
||||
"method" : "get",
|
||||
"url" : "/api/form/PM_PUB_CONSTRUCTIONSCHEMEAPPROVAL/defaults?templateId=69ff81e5-58af-454c-8ea4-c2d92b07c1e8"
|
||||
}
|
||||
},
|
||||
"actions" : [ {
|
||||
"type" : "button",
|
||||
"label" : "保存",
|
||||
"level" : "primary",
|
||||
"actionType" : "submit",
|
||||
"api" : "POST:/api/flow/PM_PUB_CONSTRUCTIONSCHEMEAPPROVAL_ADD?__egtpl=69ff81e5-58af-454c-8ea4-c2d92b07c1e8",
|
||||
"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]}"
|
||||
},
|
||||
"body" : {
|
||||
"type" : "service",
|
||||
"schemaApi" : "get:/api/page/schema/69ff81e5-58af-454c-8ea4-c2d92b07c1e8?format=amis",
|
||||
"api" : {
|
||||
"method" : "post",
|
||||
"url" : "/api/flow/PM_PUB_CONSTRUCTIONSCHEMEAPPROVAL_LOAD?__egtpl=69ff81e5-58af-454c-8ea4-c2d92b07c1e8",
|
||||
"data" : {
|
||||
"PM_PUB_CONSTRUCTIONSCHEMEAPPROVAL_ID" : "${PM_PUB_CONSTRUCTIONSCHEMEAPPROVAL_ID}"
|
||||
},
|
||||
"responseData" : {
|
||||
"&" : "${result}"
|
||||
}
|
||||
}
|
||||
},
|
||||
"actions" : [ {
|
||||
"type" : "button",
|
||||
"label" : "保存",
|
||||
"level" : "primary",
|
||||
"actionType" : "submit",
|
||||
"api" : "POST:/api/flow/PM_PUB_CONSTRUCTIONSCHEMEAPPROVAL_UPDATE?__egtpl=69ff81e5-58af-454c-8ea4-c2d92b07c1e8",
|
||||
"close" : true
|
||||
}, {
|
||||
"type" : "button",
|
||||
"label" : "取消",
|
||||
"actionType" : "close"
|
||||
} ]
|
||||
}
|
||||
}, {
|
||||
"type" : "button",
|
||||
"id" : "删除",
|
||||
"label" : "删除",
|
||||
"level" : "danger",
|
||||
"actionType" : "ajax",
|
||||
"disabledOn" : "${!selectedItems || selectedItems.length === 0}",
|
||||
"confirmText" : "确认要删除此记录吗?",
|
||||
"api" : {
|
||||
"method" : "post",
|
||||
"url" : "/api/flow/PM_PUB_CONSTRUCTIONSCHEMEAPPROVAL_DELETE",
|
||||
"data" : {
|
||||
"ids" : "${selectedItems|pick:PM_PUB_CONSTRUCTIONSCHEMEAPPROVAL_ID|join:','}"
|
||||
}
|
||||
}
|
||||
}, {
|
||||
"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/3cd94dae-d03d-46be-b6dd-3e4c447ca2ba?format=amis",
|
||||
"static" : true,
|
||||
"api" : {
|
||||
"method" : "post",
|
||||
"url" : "/api/flow/PM_PUB_CONSTRUCTIONSCHEMEAPPROVAL_LOAD?__egtpl=3cd94dae-d03d-46be-b6dd-3e4c447ca2ba",
|
||||
"data" : {
|
||||
"PM_PUB_CONSTRUCTIONSCHEMEAPPROVAL_ID" : "${PM_PUB_CONSTRUCTIONSCHEMEAPPROVAL_ID}"
|
||||
},
|
||||
"responseData" : {
|
||||
"&" : "${result}"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}, {
|
||||
"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/a38f4e08-fc82-4670-855a-bd9059fae0ce?format=amis",
|
||||
"static" : true,
|
||||
"api" : {
|
||||
"method" : "post",
|
||||
"url" : "/api/flow/PM_PUB_CONSTRUCTIONSCHEMEAPPROVAL_LOAD?__egtpl=a38f4e08-fc82-4670-855a-bd9059fae0ce",
|
||||
"data" : {
|
||||
"PM_PUB_CONSTRUCTIONSCHEMEAPPROVAL_ID" : "${PM_PUB_CONSTRUCTIONSCHEMEAPPROVAL_ID}"
|
||||
},
|
||||
"responseData" : {
|
||||
"&" : "${result}"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}, {
|
||||
"type" : "button",
|
||||
"id" : "打印",
|
||||
"label" : "打印",
|
||||
"actionType" : "dialog",
|
||||
"disabledOn" : "${!selectedItems || selectedItems.length === 0}",
|
||||
"dialog" : {
|
||||
"type" : "dialog",
|
||||
"title" : "施工方案打印",
|
||||
"size" : "lg",
|
||||
"data" : {
|
||||
"PM_PUB_CONSTRUCTIONSCHEMEAPPROVAL_ID" : "${selectedItems[0].PM_PUB_CONSTRUCTIONSCHEMEAPPROVAL_ID}"
|
||||
},
|
||||
"body" : {
|
||||
"type" : "service",
|
||||
"schemaApi" : "get:/api/page/schema/226a5d15-392d-4a0d-9718-0d1437f311ca?format=amis"
|
||||
},
|
||||
"actions" : [ {
|
||||
"type" : "button",
|
||||
"label" : "关闭",
|
||||
"actionType" : "close"
|
||||
} ]
|
||||
}
|
||||
}, "pagination" ],
|
||||
"primaryField" : "PM_PUB_CONSTRUCTIONSCHEMEAPPROVAL_ID",
|
||||
"onEvent" : {
|
||||
"inited" : {
|
||||
"actions" : [ {
|
||||
"actionType" : "ajax",
|
||||
"api" : {
|
||||
"method" : "post",
|
||||
"url" : "/api/script/execute-template",
|
||||
"data" : {
|
||||
"seq" : 1,
|
||||
"item" : "${&}",
|
||||
"templateId" : "081c1fef-9b3c-489f-b467-b866ace68ca5"
|
||||
}
|
||||
},
|
||||
"outputVar" : "scriptResult1"
|
||||
}, {
|
||||
"actionType" : "replayScriptCommands",
|
||||
"args" : {
|
||||
"commands" : "${event.data.scriptResult1.commands}"
|
||||
}
|
||||
}, {
|
||||
"actionType" : "ajax",
|
||||
"api" : {
|
||||
"method" : "post",
|
||||
"url" : "/api/script/execute-template",
|
||||
"data" : {
|
||||
"seq" : 2,
|
||||
"item" : "${&}",
|
||||
"templateId" : "081c1fef-9b3c-489f-b467-b866ace68ca5"
|
||||
}
|
||||
},
|
||||
"outputVar" : "scriptResult2"
|
||||
}, {
|
||||
"actionType" : "replayScriptCommands",
|
||||
"args" : {
|
||||
"commands" : "${event.data.scriptResult2.commands}"
|
||||
}
|
||||
} ]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user