Files
eip4-platform/转换产物-attach/schema/e429ba9a-1def-4d3b-a58f-368a4cb48272.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

247 lines
7.1 KiB
JSON

{
"type" : "page",
"title" : "实名制项目数据初始化",
"body" : {
"type" : "crud",
"api" : "/api/flow/GB_PROJECTCREATE_SEARCH",
"syncLocation" : false,
"selectable" : true,
"checkOnItemClick" : true,
"filter" : {
"title" : "查询",
"body" : [ {
"name" : "DATANUMBER",
"label" : "数据指纹",
"type" : "input-text"
}, {
"name" : "PRJNUMBER",
"label" : "合同备案编号",
"type" : "input-text"
} ]
},
"columns" : [ {
"name" : "GB_PROJECTCREATE_ID",
"label" : "主键",
"width" : 200,
"toggled" : false
}, {
"name" : "PRJNAME",
"label" : "工程名称",
"width" : 200
}, {
"name" : "DATANUMBER",
"label" : "数据指纹",
"width" : 200
}, {
"name" : "PRJNUMBER",
"label" : "合同备案编号",
"width" : 200
}, {
"name" : "DEVICETYPE",
"label" : "设备型号",
"width" : 100,
"type" : "mapping",
"map" : {
"1" : "第一代",
"2" : "第二代",
"4" : "建造师新款"
}
}, {
"name" : "APITYPE",
"label" : "接口类型",
"width" : 100,
"type" : "mapping",
"map" : {
"1" : "群耀接口",
"2" : "联通接口",
"3" : "群耀接口2.2",
"4" : "自用接口"
}
}, {
"name" : "ISONLYFACE",
"label" : "是否只允许人脸",
"width" : 100,
"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/e937ea7d-6254-43d3-892f-c7a94637262d?format=amis",
"api" : {
"method" : "get",
"url" : "/api/form/GB_PROJECTCREATE/defaults?templateId=e937ea7d-6254-43d3-892f-c7a94637262d"
}
},
"actions" : [ {
"type" : "button",
"label" : "保存",
"level" : "primary",
"actionType" : "submit",
"api" : "POST:/api/flow/GB_PROJECTCREATE_ADD?__egtpl=e937ea7d-6254-43d3-892f-c7a94637262d",
"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/e937ea7d-6254-43d3-892f-c7a94637262d?format=amis",
"api" : {
"method" : "post",
"url" : "/api/flow/GB_PROJECTCREATE_LOAD?__egtpl=e937ea7d-6254-43d3-892f-c7a94637262d",
"data" : {
"GB_PROJECTCREATE_ID" : "${GB_PROJECTCREATE_ID}"
},
"responseData" : {
"&" : "${result}"
}
}
},
"actions" : [ {
"type" : "button",
"label" : "保存",
"level" : "primary",
"actionType" : "submit",
"api" : "POST:/api/flow/GB_PROJECTCREATE_UPDATE?__egtpl=e937ea7d-6254-43d3-892f-c7a94637262d",
"close" : true
}, {
"type" : "button",
"label" : "取消",
"actionType" : "close"
} ]
}
}, {
"type" : "button",
"id" : "删除",
"label" : "删除",
"level" : "danger",
"actionType" : "ajax",
"disabledOn" : "${!selectedItems || selectedItems.length === 0}",
"confirmText" : "确认要删除此记录吗?",
"api" : {
"method" : "post",
"url" : "/api/flow/GB_PROJECTCREATE_DELETE",
"data" : {
"ids" : "${selectedItems|pick:GB_PROJECTCREATE_ID|join:','}"
}
}
}, {
"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/e937ea7d-6254-43d3-892f-c7a94637262d?format=amis",
"static" : true,
"api" : {
"method" : "post",
"url" : "/api/flow/GB_PROJECTCREATE_LOAD?__egtpl=e937ea7d-6254-43d3-892f-c7a94637262d",
"data" : {
"GB_PROJECTCREATE_ID" : "${GB_PROJECTCREATE_ID}"
},
"responseData" : {
"&" : "${result}"
}
}
}
}
}, {
"type" : "button",
"id" : "一键初始化",
"label" : "一键初始化",
"actionType" : "ajax",
"confirmText" : "确认要初始化工程吗?",
"api" : {
"method" : "post",
"url" : "/api/flow/GB_PROJECTCREATE_EXCUTE",
"data" : {
"GB_PROJECTCREATE_ID" : "${selectedItems[0].GB_PROJECTCREATE_ID}"
}
},
"disabledOn" : "${!selectedItems || selectedItems.length === 0}"
}, {
"type" : "button",
"id" : "初始化公司",
"label" : "初始化公司",
"actionType" : "ajax",
"confirmText" : "确认要初始化公司吗?",
"api" : {
"method" : "post",
"url" : "/api/flow/GB_PROJECTCREATE_EXCUTE2",
"data" : {
"GB_PROJECTCREATE_ID" : "${selectedItems[0].GB_PROJECTCREATE_ID}"
}
},
"disabledOn" : "${!selectedItems || selectedItems.length === 0}"
}, {
"type" : "button",
"id" : "初始化人员",
"label" : "初始化人员",
"actionType" : "ajax",
"confirmText" : "确认要初始化人员吗?",
"api" : {
"method" : "post",
"url" : "/api/flow/GB_PROJECTCREATE_EXCUTE3",
"data" : {
"GB_PROJECTCREATE_ID" : "${selectedItems[0].GB_PROJECTCREATE_ID}"
}
},
"disabledOn" : "${!selectedItems || selectedItems.length === 0}"
}, {
"type" : "button",
"id" : "初始化项目用工人员",
"label" : "初始化项目用工人员",
"actionType" : "ajax",
"confirmText" : "确认要删除此记录吗?",
"api" : {
"method" : "post",
"url" : "/api/flow/GB_PROJECTCREATE_EXCUTE4",
"data" : {
"GB_PROJECTCREATE_ID" : "${selectedItems[0].GB_PROJECTCREATE_ID}"
}
},
"disabledOn" : "${!selectedItems || selectedItems.length === 0}"
}, "pagination" ],
"primaryField" : "GB_PROJECTCREATE_ID"
}
}