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:
180
转换产物-attach/schema/1f13f729-0dc3-46c1-aab0-d0ef1ccf67a5.json
Normal file
180
转换产物-attach/schema/1f13f729-0dc3-46c1-aab0-d0ef1ccf67a5.json
Normal file
@@ -0,0 +1,180 @@
|
||||
{
|
||||
"type" : "page",
|
||||
"title" : "评标结果公示(业绩库导航)",
|
||||
"body" : {
|
||||
"type" : "crud",
|
||||
"api" : "/api/flow/PM_PUBLICOFBID_SEARCH",
|
||||
"syncLocation" : false,
|
||||
"selectable" : true,
|
||||
"checkOnItemClick" : true,
|
||||
"filter" : {
|
||||
"title" : "查询",
|
||||
"body" : [ {
|
||||
"name" : "PROJECTNAME",
|
||||
"label" : "项目名称",
|
||||
"type" : "input-text"
|
||||
}, {
|
||||
"name" : "CONSTRUCTIONUNIT",
|
||||
"label" : "建设单位",
|
||||
"type" : "input-text"
|
||||
}, {
|
||||
"name" : "AFFILIATEDAREA",
|
||||
"label" : "所属地区",
|
||||
"type" : "input-text"
|
||||
}, {
|
||||
"name" : "TYPEOFBIDDING",
|
||||
"label" : "招标类型",
|
||||
"type" : "input-text"
|
||||
}, {
|
||||
"name" : "RELEASEBEGINDATE",
|
||||
"label" : "发布起日期",
|
||||
"type" : "input-date-range"
|
||||
}, {
|
||||
"name" : "RELEASEENDDATE",
|
||||
"label" : "发布止日期",
|
||||
"type" : "input-date-range"
|
||||
}, {
|
||||
"name" : "PM_BIDDERSPERFORMANCEID",
|
||||
"label" : "传参",
|
||||
"hidden" : true,
|
||||
"type" : "input-text"
|
||||
} ]
|
||||
},
|
||||
"columns" : [ {
|
||||
"name" : "PM_PUBLICOFBID_ID",
|
||||
"label" : "主键",
|
||||
"width" : 200,
|
||||
"toggled" : false
|
||||
}, {
|
||||
"name" : "URL",
|
||||
"label" : "详情",
|
||||
"width" : 200,
|
||||
"toggled" : false
|
||||
}, {
|
||||
"name" : "PROJECTNAME",
|
||||
"label" : "项目名称",
|
||||
"width" : 400
|
||||
}, {
|
||||
"name" : "CONSTRUCTIONUNIT",
|
||||
"label" : "建设单位",
|
||||
"width" : 300
|
||||
}, {
|
||||
"name" : "AFFILIATEDAREA",
|
||||
"label" : "所属地区",
|
||||
"width" : 200
|
||||
}, {
|
||||
"name" : "TYPEOFBIDDING",
|
||||
"label" : "招标类型",
|
||||
"width" : 200
|
||||
}, {
|
||||
"name" : "BIDMONEY",
|
||||
"label" : "投标报价(万元)",
|
||||
"width" : 200
|
||||
}, {
|
||||
"name" : "RELEASEBEGINDATE",
|
||||
"label" : "发布起日期",
|
||||
"width" : 200,
|
||||
"type" : "date",
|
||||
"format" : "YYYY-MM-DD",
|
||||
"inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ"
|
||||
}, {
|
||||
"name" : "RELEASEENDDATE",
|
||||
"label" : "发布止日期",
|
||||
"width" : 200,
|
||||
"type" : "date",
|
||||
"format" : "YYYY-MM-DD",
|
||||
"inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ"
|
||||
}, {
|
||||
"name" : "REMARKS",
|
||||
"label" : "添加备注",
|
||||
"width" : 200,
|
||||
"toggled" : false
|
||||
}, {
|
||||
"name" : "ZBURL",
|
||||
"label" : "招标公告链接",
|
||||
"width" : 200,
|
||||
"toggled" : false
|
||||
}, {
|
||||
"name" : "ZBREALURL",
|
||||
"label" : "招标公告链接(手动添加)",
|
||||
"width" : 200,
|
||||
"toggled" : false
|
||||
} ],
|
||||
"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/f7c48973-adb9-4162-8054-762fd1278e5a?format=amis",
|
||||
"static" : true,
|
||||
"api" : {
|
||||
"method" : "post",
|
||||
"url" : "/api/flow/PM_PUBLICOFBID_LOAD?__egtpl=f7c48973-adb9-4162-8054-762fd1278e5a",
|
||||
"data" : {
|
||||
"PM_PUBLICOFBID_ID" : "${PM_PUBLICOFBID_ID}"
|
||||
},
|
||||
"responseData" : {
|
||||
"&" : "${result}"
|
||||
}
|
||||
},
|
||||
"onEvent" : {
|
||||
"inited" : {
|
||||
"actions" : [ {
|
||||
"actionType" : "ajax",
|
||||
"api" : {
|
||||
"method" : "post",
|
||||
"url" : "/api/script/execute-template",
|
||||
"data" : {
|
||||
"seq" : 1,
|
||||
"item" : "${&}",
|
||||
"templateId" : "1f13f729-0dc3-46c1-aab0-d0ef1ccf67a5"
|
||||
}
|
||||
},
|
||||
"outputVar" : "scriptResult1"
|
||||
}, {
|
||||
"actionType" : "replayScriptCommands",
|
||||
"args" : {
|
||||
"commands" : "${event.data.scriptResult1.commands}"
|
||||
}
|
||||
} ]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}, "pagination" ],
|
||||
"primaryField" : "PM_PUBLICOFBID_ID",
|
||||
"onEvent" : {
|
||||
"inited" : {
|
||||
"actions" : [ {
|
||||
"actionType" : "ajax",
|
||||
"api" : {
|
||||
"method" : "post",
|
||||
"url" : "/api/script/execute-template",
|
||||
"data" : {
|
||||
"seq" : 1,
|
||||
"item" : "${&}",
|
||||
"templateId" : "1f13f729-0dc3-46c1-aab0-d0ef1ccf67a5"
|
||||
}
|
||||
},
|
||||
"outputVar" : "scriptResult1"
|
||||
}, {
|
||||
"actionType" : "replayScriptCommands",
|
||||
"args" : {
|
||||
"commands" : "${event.data.scriptResult1.commands}"
|
||||
}
|
||||
} ]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user