Files
eip4-platform/转换产物-attach/schema/194a3c60-32f7-4b3a-81b6-fdc4ca397896.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

153 lines
4.3 KiB
JSON

{
"type" : "page",
"title" : "选择关联的重大危险源清单项",
"body" : {
"type" : "crud",
"api" : "/api/flow/PM_PUB_DANGERSUBDECLARE_SEARCH",
"syncLocation" : false,
"selectable" : true,
"checkOnItemClick" : true,
"filter" : {
"title" : "查询",
"body" : [ {
"name" : "PROJECTID",
"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" : "CODETYPE",
"label" : "事项名称",
"type" : "select",
"clearable" : true,
"source" : "/api/poc/dict/DangerSubType"
}, {
"name" : "DESCRIPTION",
"label" : "施工规模及主要施工方法",
"hidden" : true,
"type" : "input-text"
}, {
"name" : "CONTRACTBEGIN",
"label" : "预计施工开始日期",
"type" : "input-date-range"
}, {
"name" : "CONTRACTEND",
"label" : "预计施工结束日期",
"type" : "input-date-range"
}, {
"name" : "STAGE",
"label" : "阶段",
"type" : "select",
"clearable" : true,
"source" : "/api/poc/dict/DangerSubDeclare_stage"
}, {
"name" : "REMARK",
"label" : "备注",
"hidden" : true,
"type" : "input-text"
}, {
"name" : "STATUS",
"label" : "审批状态",
"type" : "select",
"clearable" : true,
"source" : "/api/poc/dict/WFSTATUS"
}, {
"name" : "LIST",
"label" : "内容",
"hidden" : true,
"type" : "select",
"multiple" : true,
"clearable" : true,
"searchable" : true,
"source" : "/api/picker//list?q=${term}&page=${page}&perPage=${perPage}"
} ]
},
"columns" : [ {
"name" : "PM_PUB_DANGERSUBDECLARE_ID",
"label" : "主键",
"width" : 200,
"toggled" : false
}, {
"name" : "PROJECTID_DISPLAY__",
"label" : "工程名称",
"width" : 200,
"toggled" : false
}, {
"name" : "CODETYPE",
"label" : "事项名称",
"width" : 200,
"type" : "mapping",
"map" : {
"10" : "基坑支护、降水工程",
"15" : "土方开挖工程",
"20" : "模板工程及支撑体系",
"25" : "起重吊装安装拆卸工程",
"30" : "脚手架工程",
"35" : "拆除、爆破工程",
"40" : "其他",
"50" : "深基坑工程(超过一定规模)",
"55" : "模板工程及支撑体系(超过一定规模)",
"60" : "起重吊装安装拆卸工程(超过一定规模)",
"65" : "脚手架工程(超过一定规模)",
"70" : "拆除、爆破工程(超过一定规模)",
"75" : "其他(超过一定规模)"
}
}, {
"name" : "DESCRIPTION",
"label" : "施工规模及主要施工方法",
"width" : 200
}, {
"name" : "CONTRACTBEGIN",
"label" : "预计施工开始日期",
"width" : 200,
"type" : "date",
"format" : "YYYY-MM-DD",
"inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ"
}, {
"name" : "CONTRACTEND",
"label" : "预计施工结束日期",
"width" : 200,
"type" : "date",
"format" : "YYYY-MM-DD",
"inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ"
}, {
"name" : "STAGE",
"label" : "阶段",
"width" : 200,
"type" : "mapping",
"map" : {
"0" : "未申报",
"1" : "已申报",
"2" : "已确认",
"3" : "已交底",
"4" : "已封闭"
}
}, {
"name" : "REMARK",
"label" : "备注",
"width" : 200,
"toggled" : false
}, {
"name" : "LIST",
"label" : "内容",
"width" : 200,
"toggled" : false
} ],
"headerToolbar" : [ "pagination" ],
"primaryField" : "PM_PUB_DANGERSUBDECLARE_ID"
}
}