Files
eip4-platform/转换产物-attach/schema/1e9bcd2c-e1e2-4e35-a21a-a5c26b17741e.json
zhengwr 8fe377b0c8 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>
2026-06-20 15:16:30 +08:00

317 lines
8.5 KiB
JSON

{
"type" : "page",
"title" : "江苏省中标公告",
"body" : {
"type" : "crud",
"api" : "/api/flow/PM_SPIDER_JSBIDWIN_SEARCH",
"syncLocation" : false,
"selectable" : true,
"checkOnItemClick" : true,
"filter" : {
"title" : "查询",
"body" : [ {
"name" : "PROJECTNAME",
"label" : "项目名称",
"type" : "input-text"
}, {
"name" : "PROJECTNUM",
"label" : "项目编号",
"type" : "input-text"
}, {
"name" : "BIDNUMBER",
"label" : "标段编号",
"type" : "input-text"
}, {
"name" : "BIDNAME",
"label" : "标段名称",
"type" : "input-text"
}, {
"name" : "BUILDUNIT",
"label" : "建设单位",
"type" : "input-text"
}, {
"name" : "PROJECTTYPE",
"label" : "项目类型",
"type" : "input-text"
}, {
"name" : "CONTRACTTYPE",
"label" : "发包类型",
"type" : "input-text"
}, {
"name" : "BIDCOMPANY",
"label" : "中标公司",
"type" : "input-text"
}, {
"name" : "PROFESSIONALGROUP",
"label" : "专业组别",
"type" : "input-text"
}, {
"name" : "PROJECTMANAGER",
"label" : "项目经理",
"type" : "input-text"
}, {
"name" : "BIDDATE",
"label" : "中标日期",
"type" : "input-date-range"
}, {
"name" : "PRECOMPLETIONDATE",
"label" : "预计竣工日期",
"type" : "input-date-range"
}, {
"name" : "BIDPRICE",
"label" : "中标价(万元)",
"hidden" : true,
"type" : "input-number",
"precision" : 2
}, {
"name" : "BIDTIME",
"label" : "中标工期(天)",
"hidden" : true,
"type" : "input-number",
"precision" : 2
}, {
"name" : "LOCATION",
"label" : "工程地点",
"hidden" : true,
"type" : "input-text"
}, {
"name" : "GSURL",
"label" : "中标公告链接",
"hidden" : true,
"type" : "input-text"
}, {
"name" : "BIDPRICES",
"label" : "中标价(万元)>=",
"type" : "input-number",
"precision" : 2
}, {
"name" : "REMARK_LIST",
"label" : "备注",
"type" : "input-text"
}, {
"name" : "CREATETIME",
"label" : "创建时间",
"type" : "input-date-range"
}, {
"name" : "UPDATETIME",
"label" : "修改时间",
"type" : "input-date-range"
} ]
},
"columns" : [ {
"name" : "PM_SPIDER_JSBIDWIN_ID",
"label" : "主键",
"width" : 200,
"toggled" : false
}, {
"name" : "PROJECTNAME",
"label" : "项目名称",
"width" : 300
}, {
"name" : "PROJECTNUM",
"label" : "项目编号",
"width" : 200,
"toggled" : false
}, {
"name" : "BIDNUMBER",
"label" : "标段编号",
"width" : 200,
"toggled" : false
}, {
"name" : "BIDNAME",
"label" : "标段名称",
"width" : 300
}, {
"name" : "BUILDUNIT",
"label" : "建设单位",
"width" : 200,
"toggled" : false
}, {
"name" : "PROJECTTYPE",
"label" : "项目类型",
"width" : 100
}, {
"name" : "CONTRACTTYPE",
"label" : "发包类型",
"width" : 100
}, {
"name" : "BIDCOMPANY",
"label" : "中标公司",
"width" : 200
}, {
"name" : "PROFESSIONALGROUP",
"label" : "专业组别",
"width" : 200
}, {
"name" : "PROJECTMANAGER",
"label" : "项目经理",
"width" : 60
}, {
"name" : "BIDDATE",
"label" : "中标日期",
"width" : 120,
"type" : "date",
"format" : "YYYY-MM-DD",
"inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ"
}, {
"name" : "PRECOMPLETIONDATE",
"label" : "预计竣工日期",
"width" : 120,
"type" : "date",
"format" : "YYYY-MM-DD",
"inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ"
}, {
"name" : "BIDPRICE",
"label" : "中标价(万元)",
"width" : 100
}, {
"name" : "BIDTIME",
"label" : "中标工期(天)",
"width" : 80
}, {
"name" : "LOCATION",
"label" : "工程地点",
"width" : 200,
"toggled" : false
}, {
"name" : "GSURL",
"label" : "中标公告链接",
"width" : 200,
"toggled" : false
}, {
"name" : "REMARK_LIST",
"label" : "备注",
"width" : 200
}, {
"name" : "CREATETIME",
"label" : "创建时间",
"width" : 120,
"type" : "datetime",
"format" : "YYYY-MM-DD HH:mm",
"inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ"
}, {
"name" : "UPDATETIME",
"label" : "修改时间",
"width" : 120,
"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/7d297971-5c39-4e65-9c37-3d1129b32b27?format=amis",
"api" : {
"method" : "post",
"url" : "/api/flow/PM_SPIDER_JSBIDWIN_LOAD?__egtpl=7d297971-5c39-4e65-9c37-3d1129b32b27",
"data" : {
"PM_SPIDER_JSBIDWIN_ID" : "${PM_SPIDER_JSBIDWIN_ID}"
},
"responseData" : {
"&" : "${result}"
}
}
},
"actions" : [ {
"type" : "button",
"label" : "保存",
"level" : "primary",
"actionType" : "submit",
"api" : "POST:/api/flow/PM_SPIDER_JSBIDWIN_UPDATE?__egtpl=7d297971-5c39-4e65-9c37-3d1129b32b27",
"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/7d297971-5c39-4e65-9c37-3d1129b32b27?format=amis",
"static" : true,
"api" : {
"method" : "post",
"url" : "/api/flow/PM_SPIDER_JSBIDWIN_LOAD?__egtpl=7d297971-5c39-4e65-9c37-3d1129b32b27",
"data" : {
"PM_SPIDER_JSBIDWIN_ID" : "${PM_SPIDER_JSBIDWIN_ID}"
},
"responseData" : {
"&" : "${result}"
}
},
"onEvent" : {
"inited" : {
"actions" : [ {
"actionType" : "ajax",
"api" : {
"method" : "post",
"url" : "/api/script/execute-template",
"data" : {
"seq" : 1,
"item" : "${&}",
"templateId" : "1e9bcd2c-e1e2-4e35-a21a-a5c26b17741e"
}
},
"outputVar" : "scriptResult1"
}, {
"actionType" : "replayScriptCommands",
"args" : {
"commands" : "${event.data.scriptResult1.commands}"
}
} ]
}
}
}
}
}, "pagination" ],
"primaryField" : "PM_SPIDER_JSBIDWIN_ID",
"onEvent" : {
"inited" : {
"actions" : [ {
"actionType" : "ajax",
"api" : {
"method" : "post",
"url" : "/api/script/execute-template",
"data" : {
"seq" : 1,
"item" : "${&}",
"templateId" : "1e9bcd2c-e1e2-4e35-a21a-a5c26b17741e"
}
},
"outputVar" : "scriptResult1"
}, {
"actionType" : "replayScriptCommands",
"args" : {
"commands" : "${event.data.scriptResult1.commands}"
}
} ]
}
}
}
}