Files
eip4-platform/转换产物-attach/schema/0670aaf9-a045-450d-9ebc-06f3ac36ca19.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

237 lines
6.4 KiB
JSON

{
"type" : "page",
"title" : "投标关系(所有)",
"body" : {
"type" : "crud",
"api" : "/api/flow/PM_BIDRELATIONSHIP_SEARCH",
"syncLocation" : false,
"selectable" : true,
"checkOnItemClick" : true,
"filter" : {
"title" : "查询",
"body" : [ {
"name" : "PROJECTID",
"label" : "项目ID",
"hidden" : true,
"type" : "select",
"clearable" : true,
"searchable" : true,
"source" : "/api/picker//list?q=${term}&page=${page}&perPage=${perPage}"
}, {
"name" : "COMPANYID",
"label" : "单位ID",
"hidden" : true,
"type" : "select",
"clearable" : true,
"searchable" : true,
"source" : "/api/picker//list?q=${term}&page=${page}&perPage=${perPage}"
}, {
"name" : "BIDQUOTATION",
"label" : "投标报价 (万元)",
"hidden" : true,
"type" : "input-text"
}, {
"name" : "PRIZE",
"label" : "奖项",
"hidden" : true,
"type" : "input-text"
}, {
"name" : "TOTALSCORE",
"label" : "总分",
"hidden" : true,
"type" : "input-text"
}, {
"name" : "QUOTATIONSCORE",
"label" : "报价得分",
"hidden" : true,
"type" : "input-text"
}, {
"name" : "TECHNICALMARKSCORE",
"label" : "技术标得分",
"hidden" : true,
"type" : "input-text"
}, {
"name" : "REASONABLEDEDUCTION",
"label" : "合理性扣分",
"hidden" : true,
"type" : "input-text"
}, {
"name" : "AWARDPOINTS",
"label" : "奖项分",
"hidden" : true,
"type" : "input-text"
}, {
"name" : "SORT",
"label" : "排序",
"hidden" : true,
"type" : "input-number",
"precision" : 0,
"step" : 1
} ]
},
"columns" : [ {
"name" : "PM_BIDRELATIONSHIP_ID",
"label" : "主键",
"width" : 200,
"toggled" : false
}, {
"name" : "PROJECTID_DISPLAY__",
"label" : "项目名称",
"width" : 500
}, {
"name" : "COMPANYID_DISPLAY__",
"label" : "单位名称",
"width" : 350
}, {
"name" : "BIDQUOTATION",
"label" : "投标报价 (万元)",
"width" : 100
}, {
"name" : "PRIZE",
"label" : "奖项",
"width" : 80
}, {
"name" : "TOTALSCORE",
"label" : "总分",
"width" : 80
}, {
"name" : "QUOTATIONSCORE",
"label" : "报价得分",
"width" : 80
}, {
"name" : "TECHNICALMARKSCORE",
"label" : "技术标得分",
"width" : 80
}, {
"name" : "REASONABLEDEDUCTION",
"label" : "合理性扣分",
"width" : 80
}, {
"name" : "AWARDPOINTS",
"label" : "奖项分",
"width" : 80
}, {
"name" : "SORT",
"label" : "排序",
"width" : 80
} ],
"headerToolbar" : [ {
"type" : "button",
"id" : "新增",
"label" : "新增",
"level" : "primary",
"actionType" : "dialog",
"dialog" : {
"type" : "dialog",
"title" : "新增",
"size" : "lg",
"body" : {
"type" : "service",
"schemaApi" : "get:/api/page/schema/f4078175-a20f-4c9f-8e98-8e19d5d5b618?format=amis",
"api" : {
"method" : "get",
"url" : "/api/form/PM_BIDRELATIONSHIP/defaults?templateId=f4078175-a20f-4c9f-8e98-8e19d5d5b618"
}
},
"actions" : [ {
"type" : "button",
"label" : "保存",
"level" : "primary",
"actionType" : "submit",
"api" : "POST:/api/flow/PM_BIDRELATIONSHIP_ADD?__egtpl=f4078175-a20f-4c9f-8e98-8e19d5d5b618",
"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/f4078175-a20f-4c9f-8e98-8e19d5d5b618?format=amis",
"api" : {
"method" : "post",
"url" : "/api/flow/PM_BIDRELATIONSHIP_LOAD?__egtpl=f4078175-a20f-4c9f-8e98-8e19d5d5b618",
"data" : {
"PM_BIDRELATIONSHIP_ID" : "${PM_BIDRELATIONSHIP_ID}"
},
"responseData" : {
"&" : "${result}"
}
}
},
"actions" : [ {
"type" : "button",
"label" : "保存",
"level" : "primary",
"actionType" : "submit",
"api" : "POST:/api/flow/PM_BIDRELATIONSHIP_UPDATE?__egtpl=f4078175-a20f-4c9f-8e98-8e19d5d5b618",
"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" : {
"PM_BIDRELATIONSHIP_ID" : "${selectedItems[0].PM_BIDRELATIONSHIP_ID}"
},
"body" : {
"type" : "service",
"schemaApi" : "get:/api/page/schema/0bdeae44-1dfe-430f-a30c-6a1fc620b059?format=amis"
},
"actions" : [ {
"type" : "button",
"label" : "关闭",
"actionType" : "close"
} ]
}
}, "pagination" ],
"primaryField" : "PM_BIDRELATIONSHIP_ID",
"onEvent" : {
"inited" : {
"actions" : [ {
"actionType" : "ajax",
"api" : {
"method" : "post",
"url" : "/api/script/execute-template",
"data" : {
"seq" : 1,
"item" : "${&}",
"templateId" : "0670aaf9-a045-450d-9ebc-06f3ac36ca19"
}
},
"outputVar" : "scriptResult1"
}, {
"actionType" : "replayScriptCommands",
"args" : {
"commands" : "${event.data.scriptResult1.commands}"
}
} ]
}
}
}
}