Files
eip4-platform/转换产物-attach/schema/0d674631-7a53-44b0-bb41-6aa201ede8ec.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

694 lines
20 KiB
JSON

{
"type" : "page",
"title" : "实名制项目基础信息",
"body" : {
"type" : "crud",
"api" : "/api/flow/GB_PROJECTINFO_SEARCH",
"syncLocation" : false,
"selectable" : true,
"checkOnItemClick" : true,
"filter" : {
"title" : "查询",
"body" : [ {
"name" : "PRJNUMBER",
"label" : "合同备案编号",
"type" : "input-text"
}, {
"name" : "PRJNAME",
"label" : "项目名称",
"type" : "input-text"
}, {
"name" : "COUNTY",
"label" : "项目所在区县",
"type" : "input-text"
}, {
"name" : "SSDQ",
"label" : "项目属地",
"type" : "input-text"
}, {
"name" : "PRJADRESS",
"label" : "项目地址",
"type" : "input-text"
}, {
"name" : "JZMJ",
"label" : "建筑面积(平方米)",
"type" : "input-number",
"precision" : 2
}, {
"name" : "GCZJ",
"label" : " 工程造价(万元)",
"type" : "input-number",
"precision" : 2
}, {
"name" : "JSDW",
"label" : "建设单位名称",
"type" : "input-text"
}, {
"name" : "JSDWZZJGDM",
"label" : "建设单位社会信用代码",
"type" : "input-text"
}, {
"name" : "JDWLXR",
"label" : "建设单位联系人",
"type" : "input-text"
}, {
"name" : "JSDWLXDH",
"label" : "建设单位联系电话",
"type" : "input-text"
}, {
"name" : "ISBD",
"label" : "是否标段",
"type" : "select",
"clearable" : true,
"source" : "/api/poc/dict/YESNO"
} ]
},
"columns" : [ {
"name" : "GB_PROJECTINFO_ID",
"label" : "主键",
"width" : 200,
"toggled" : false
}, {
"name" : "PRJNUMBER",
"label" : "合同备案编号",
"width" : 180
}, {
"name" : "PRJNAME",
"label" : "项目名称",
"width" : 200
}, {
"name" : "COUNTY",
"label" : "项目所在区县",
"width" : 100
}, {
"name" : "SSDQ",
"label" : "项目属地",
"width" : 100
}, {
"name" : "PRJADRESS",
"label" : "项目地址",
"width" : 200
}, {
"name" : "JZMJ",
"label" : "建筑面积(平方米)",
"width" : 100
}, {
"name" : "GCZJ",
"label" : " 工程造价(万元)",
"width" : 100
}, {
"name" : "JSDW",
"label" : "建设单位名称",
"width" : 200
}, {
"name" : "ENTERPRISEINFO",
"label" : "施工单位",
"width" : 200
}, {
"name" : "ISPHOTOCOMPARE",
"label" : "是否人证合一",
"width" : 100,
"type" : "mapping",
"map" : {
"0" : "否",
"1" : "是",
"false" : "否",
"true" : "是"
}
}, {
"name" : "ISACTIVE",
"label" : "是否有效",
"width" : 60,
"type" : "mapping",
"map" : {
"0" : "否",
"1" : "是",
"false" : "否",
"true" : "是"
}
}, {
"name" : "CREATETIME",
"label" : "创建时间",
"width" : 150,
"type" : "datetime",
"format" : "YYYY-MM-DD HH:mm",
"inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ"
}, {
"name" : "ISBD",
"label" : "是否标段",
"width" : 50,
"type" : "mapping",
"map" : {
"0" : "否",
"1" : "是",
"false" : "否",
"true" : "是"
}
} ],
"headerToolbar" : [ {
"type" : "button",
"id" : "添加",
"label" : "添加",
"level" : "primary",
"actionType" : "dialog",
"dialog" : {
"type" : "dialog",
"title" : "添加",
"size" : "lg",
"body" : {
"type" : "service",
"schemaApi" : "get:/api/page/schema/06159513-7b14-4cab-bea2-a5557fc5109d?format=amis",
"api" : {
"method" : "get",
"url" : "/api/form/GB_PROJECTINFO/defaults?templateId=06159513-7b14-4cab-bea2-a5557fc5109d"
}
},
"actions" : [ {
"type" : "button",
"label" : "保存",
"level" : "primary",
"actionType" : "submit",
"api" : "POST:/api/flow/GB_PROJECTINFO_ADD?__egtpl=06159513-7b14-4cab-bea2-a5557fc5109d",
"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/15df03f6-b0a5-4a9a-8ec8-23e27404b966?format=amis",
"api" : {
"method" : "post",
"url" : "/api/flow/GB_PROJECTINFO_LOAD?__egtpl=15df03f6-b0a5-4a9a-8ec8-23e27404b966",
"data" : {
"GB_PROJECTINFO_ID" : "${GB_PROJECTINFO_ID}"
},
"responseData" : {
"&" : "${result}"
}
}
},
"actions" : [ {
"type" : "button",
"label" : "保存",
"level" : "primary",
"actionType" : "submit",
"api" : "POST:/api/flow/GB_PROJECTINFO_UPDATE?__egtpl=15df03f6-b0a5-4a9a-8ec8-23e27404b966",
"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/15df03f6-b0a5-4a9a-8ec8-23e27404b966?format=amis",
"static" : true,
"api" : {
"method" : "post",
"url" : "/api/flow/GB_PROJECTINFO_LOAD?__egtpl=15df03f6-b0a5-4a9a-8ec8-23e27404b966",
"data" : {
"GB_PROJECTINFO_ID" : "${GB_PROJECTINFO_ID}"
},
"responseData" : {
"&" : "${result}"
}
}
}
}
}, {
"type" : "button",
"id" : "管理考勤机",
"label" : "管理考勤机",
"actionType" : "dialog",
"disabledOn" : "${!selectedItems || selectedItems.length === 0}",
"dialog" : {
"type" : "dialog",
"title" : "考勤机管理",
"size" : "lg",
"data" : {
"GB_PROJECTINFO_ID" : "${selectedItems[0].GB_PROJECTINFO_ID}"
},
"body" : {
"type" : "service",
"schemaApi" : "get:/api/page/schema/a90a5eb4-4d25-4898-822d-9ed157bce4de?format=amis"
},
"actions" : [ {
"type" : "button",
"label" : "关闭",
"actionType" : "close"
} ]
}
}, {
"type" : "button",
"id" : "管理项目人员",
"label" : "管理项目人员",
"actionType" : "dialog",
"disabledOn" : "${!selectedItems || selectedItems.length === 0}",
"dialog" : {
"type" : "dialog",
"title" : "项目人员管理",
"size" : "lg",
"data" : {
"GB_PROJECTINFO_ID" : "${selectedItems[0].GB_PROJECTINFO_ID}"
},
"body" : {
"type" : "service",
"schemaApi" : "get:/api/page/schema/8f22ba0d-60c3-4f5a-8548-ed21529b83a1?format=amis"
},
"actions" : [ {
"type" : "button",
"label" : "关闭",
"actionType" : "close"
} ]
}
}, {
"type" : "button",
"id" : "管理考勤数据",
"label" : "管理考勤数据",
"actionType" : "dialog",
"disabledOn" : "${!selectedItems || selectedItems.length === 0}",
"dialog" : {
"type" : "dialog",
"title" : "考勤数据管理",
"size" : "lg",
"data" : {
"GB_PROJECTINFO_ID" : "${selectedItems[0].GB_PROJECTINFO_ID}"
},
"body" : {
"type" : "service",
"schemaApi" : "get:/api/page/schema/443de175-138a-420b-bdbd-e23ab4350a60?format=amis"
},
"actions" : [ {
"type" : "button",
"label" : "关闭",
"actionType" : "close"
} ]
}
}, {
"type" : "button",
"id" : "查看进出次数和时长",
"label" : "查看进出次数和时长",
"actionType" : "dialog",
"disabledOn" : "${!selectedItems || selectedItems.length === 0}",
"dialog" : {
"type" : "dialog",
"title" : "查看进出次数和时长",
"size" : "lg",
"data" : {
"GB_PROJECTINFO_ID" : "${selectedItems[0].GB_PROJECTINFO_ID}"
},
"body" : {
"type" : "service",
"schemaApi" : "get:/api/page/schema/14089590-b8ab-442e-b00a-84117c2de4df?format=amis"
},
"actions" : [ {
"type" : "button",
"label" : "关闭",
"actionType" : "close"
} ]
}
}, {
"type" : "button",
"id" : "考勤情况统计图表",
"label" : "考勤情况统计图表",
"actionType" : "dialog",
"disabledOn" : "${!selectedItems || selectedItems.length === 0}",
"dialog" : {
"type" : "dialog",
"title" : "考勤情况统计图表",
"size" : "lg",
"data" : {
"GB_PROJECTINFO_ID" : "${selectedItems[0].GB_PROJECTINFO_ID}"
},
"body" : {
"type" : "service",
"schemaApi" : "get:/api/page/schema/f66296de-7f6a-4bfa-b06a-87fd93c1e465?format=amis"
},
"actions" : [ {
"type" : "button",
"label" : "关闭",
"actionType" : "close"
} ]
}
}, {
"type" : "button",
"id" : "管理显示屏",
"label" : "管理显示屏",
"actionType" : "dialog",
"disabledOn" : "${!selectedItems || selectedItems.length === 0}",
"dialog" : {
"type" : "dialog",
"title" : "实名制显示屏管理",
"size" : "lg",
"data" : {
"GB_PROJECTINFO_ID" : "${selectedItems[0].GB_PROJECTINFO_ID}"
},
"body" : {
"type" : "service",
"schemaApi" : "get:/api/page/schema/32d7107a-a08b-4cd3-aed2-7a40328a6da6?format=amis"
},
"actions" : [ {
"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/b0c54786-25f9-4ce1-b919-025651505360?format=amis",
"api" : {
"method" : "post",
"url" : "/api/flow/GB_PROJECTINFO_LOAD?__egtpl=b0c54786-25f9-4ce1-b919-025651505360",
"data" : {
"GB_PROJECTINFO_ID" : "${GB_PROJECTINFO_ID}"
},
"responseData" : {
"&" : "${result}"
}
}
},
"actions" : [ {
"type" : "button",
"label" : "保存",
"level" : "primary",
"actionType" : "submit",
"api" : "POST:/api/flow/GB_PROJECTINFO_UPDATE?__egtpl=b0c54786-25f9-4ce1-b919-025651505360",
"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" : {
"GB_PROJECTINFO_ID" : "${selectedItems[0].GB_PROJECTINFO_ID}"
},
"body" : {
"type" : "service",
"schemaApi" : "get:/api/page/schema/6bd7e62e-cfc2-44fd-86b7-278dcbb454ee?format=amis"
},
"actions" : [ {
"type" : "button",
"label" : "关闭",
"actionType" : "close"
} ]
}
}, {
"type" : "button",
"id" : "打印",
"label" : "打印",
"actionType" : "dialog",
"disabledOn" : "${!selectedItems || selectedItems.length === 0}",
"dialog" : {
"type" : "dialog",
"title" : "打印实名制登记表",
"size" : "lg",
"data" : {
"GB_PROJECTINFO_ID" : "${selectedItems[0].GB_PROJECTINFO_ID}"
},
"body" : {
"type" : "service",
"schemaApi" : "get:/api/page/schema/1cea766f-e5bb-4f4c-8cbf-fb262d9d21f7?format=amis"
},
"actions" : [ {
"type" : "button",
"label" : "关闭",
"actionType" : "close"
} ]
}
}, {
"type" : "button",
"id" : "采集还原",
"label" : "采集还原",
"actionType" : "ajax",
"confirmText" : "确认要还原采集信息吗?",
"api" : {
"method" : "post",
"url" : "/api/flow/GB_PRJ_WORKER_BATUPDATE",
"data" : {
"GB_PROJECTINFO_ID" : "${selectedItems[0].GB_PROJECTINFO_ID}"
}
},
"disabledOn" : "${!selectedItems || selectedItems.length === 0}"
}, {
"type" : "button",
"id" : "批量上传扬尘数据",
"label" : "批量上传扬尘数据",
"actionType" : "ajax",
"disabled" : true,
"confirmText" : "确认要上传此项目所有扬尘记录吗?",
"api" : {
"method" : "post",
"url" : "/api/flow/GB_KQTEMPCOUNT_BATSYNCSENNOR",
"data" : {
"GB_PROJECTINFO_ID" : "${selectedItems[0].GB_PROJECTINFO_ID}"
}
}
}, {
"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/abe17b41-f105-4fd8-a513-ab2aaa0a20d1?format=amis",
"api" : {
"method" : "post",
"url" : "/api/flow/GB_PROJECTINFO_LOAD?__egtpl=abe17b41-f105-4fd8-a513-ab2aaa0a20d1",
"data" : {
"GB_PROJECTINFO_ID" : "${GB_PROJECTINFO_ID}"
},
"responseData" : {
"&" : "${result}"
}
}
},
"actions" : [ {
"type" : "button",
"label" : "保存",
"level" : "primary",
"actionType" : "submit",
"api" : "POST:/api/flow/GB_PROJECTINFO_UPDATEBD?__egtpl=abe17b41-f105-4fd8-a513-ab2aaa0a20d1",
"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" : {
"GB_PROJECTINFO_ID" : "${selectedItems[0].GB_PROJECTINFO_ID}"
},
"body" : {
"type" : "service",
"schemaApi" : "get:/api/page/schema/5963e4b5-cd74-4e62-a227-de7d919f34b8?format=amis"
},
"actions" : [ {
"type" : "button",
"label" : "关闭",
"actionType" : "close"
} ]
}
}, {
"type" : "button",
"id" : "推送到智慧工地",
"label" : "推送到智慧工地",
"actionType" : "ajax",
"confirmText" : "确认要推送吗?",
"api" : {
"method" : "post",
"url" : "/api/flow/GB_PROJECTINFO_PUSHTOSMART",
"data" : {
"GB_PROJECTINFO_ID" : "${selectedItems[0].GB_PROJECTINFO_ID}"
}
},
"disabledOn" : "${!selectedItems || selectedItems.length === 0}"
}, "pagination" ],
"primaryField" : "GB_PROJECTINFO_ID",
"onEvent" : {
"selectedChange" : {
"actions" : [ {
"actionType" : "disabled",
"componentId" : "批量上传扬尘数据"
}, {
"actionType" : "ajax",
"api" : {
"method" : "post",
"url" : "/api/script/execute-template",
"data" : {
"seq" : 6,
"item" : "${event.data.selectedItems[0]}",
"templateId" : "0d674631-7a53-44b0-bb41-6aa201ede8ec"
}
},
"outputVar" : "scriptResult6"
}, {
"actionType" : "replayScriptCommands",
"args" : {
"commands" : "${event.data.scriptResult6.commands}"
}
} ]
},
"inited" : {
"actions" : [ {
"actionType" : "ajax",
"api" : {
"method" : "post",
"url" : "/api/script/execute-template",
"data" : {
"seq" : 4,
"item" : "${&}",
"templateId" : "0d674631-7a53-44b0-bb41-6aa201ede8ec"
}
},
"outputVar" : "scriptResult4"
}, {
"actionType" : "replayScriptCommands",
"args" : {
"commands" : "${event.data.scriptResult4.commands}"
}
}, {
"actionType" : "ajax",
"api" : {
"method" : "post",
"url" : "/api/script/execute-template",
"data" : {
"seq" : 2,
"item" : "${&}",
"templateId" : "0d674631-7a53-44b0-bb41-6aa201ede8ec"
}
},
"outputVar" : "scriptResult2"
}, {
"actionType" : "replayScriptCommands",
"args" : {
"commands" : "${event.data.scriptResult2.commands}"
}
}, {
"actionType" : "ajax",
"api" : {
"method" : "post",
"url" : "/api/script/execute-template",
"data" : {
"seq" : 3,
"item" : "${&}",
"templateId" : "0d674631-7a53-44b0-bb41-6aa201ede8ec"
}
},
"outputVar" : "scriptResult3"
}, {
"actionType" : "replayScriptCommands",
"args" : {
"commands" : "${event.data.scriptResult3.commands}"
}
}, {
"actionType" : "ajax",
"api" : {
"method" : "post",
"url" : "/api/script/execute-template",
"data" : {
"seq" : 1,
"item" : "${&}",
"templateId" : "0d674631-7a53-44b0-bb41-6aa201ede8ec"
}
},
"outputVar" : "scriptResult1"
}, {
"actionType" : "replayScriptCommands",
"args" : {
"commands" : "${event.data.scriptResult1.commands}"
}
}, {
"actionType" : "ajax",
"api" : {
"method" : "post",
"url" : "/api/script/execute-template",
"data" : {
"seq" : 5,
"item" : "${&}",
"templateId" : "0d674631-7a53-44b0-bb41-6aa201ede8ec"
}
},
"outputVar" : "scriptResult5"
}, {
"actionType" : "replayScriptCommands",
"args" : {
"commands" : "${event.data.scriptResult5.commands}"
}
} ]
}
}
}
}