Files
eip4-platform/转换产物-attach/schema/1fb4cff1-60f7-447c-82eb-1f443bbf423d.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

277 lines
7.8 KiB
JSON

{
"type" : "page",
"title" : "专业分包商基础配置",
"body" : {
"type" : "crud",
"api" : "/api/flow/PM_SPECIALTY_BASICCONFIG_SEARCH",
"syncLocation" : false,
"selectable" : true,
"checkOnItemClick" : true,
"filter" : {
"title" : "查询",
"body" : [ {
"name" : "CONFIGITEM",
"label" : "配置项",
"type" : "select",
"clearable" : true,
"source" : "/api/poc/dict/Pm_Specialty_Basiconfig_item"
}, {
"name" : "RESEARCHAPPRAISALITEM",
"label" : "指标项",
"type" : "input-text"
}, {
"name" : "OPTIONS",
"label" : "操作选项",
"type" : "select",
"clearable" : true,
"source" : "/api/poc/dict/Pm_Specialty_Basiconfig__options"
}, {
"name" : "SORTID",
"label" : "排序号",
"hidden" : true,
"type" : "input-number",
"precision" : 0,
"step" : 1
}, {
"name" : "DESCRIPTION",
"label" : "描述",
"hidden" : true,
"type" : "input-text"
}, {
"name" : "RESEARCHAPPRAISALRESULTS",
"label" : "调查/评价结果",
"hidden" : true,
"type" : "select",
"multiple" : true,
"clearable" : true,
"searchable" : true,
"source" : "/api/picker//list?q=${term}&page=${page}&perPage=${perPage}"
}, {
"name" : "STATE",
"label" : "状态",
"type" : "select",
"clearable" : true,
"source" : "/api/poc/dict/Pm_Specialty_Basiconfig_status"
} ]
},
"columns" : [ {
"name" : "PM_SPECIALTY_BASICCONFIG_ID",
"label" : "主键",
"width" : 200,
"toggled" : false
}, {
"name" : "SORTID",
"label" : "排序号",
"width" : 50
}, {
"name" : "CONFIGITEM",
"label" : "配置项",
"width" : 100,
"type" : "mapping",
"map" : {
"1" : "专业分包商调查",
"2" : "专业分包商评价"
}
}, {
"name" : "RESEARCHAPPRAISALITEM",
"label" : "指标项",
"width" : 400
}, {
"name" : "OPTIONS",
"label" : "操作选项",
"width" : 80,
"type" : "mapping",
"map" : {
"1" : "单选",
"2" : "多选"
}
}, {
"name" : "DESCRIPTION",
"label" : "描述",
"width" : 200
}, {
"name" : "STATE",
"label" : "状态",
"width" : 80,
"type" : "mapping",
"map" : {
"1" : "启用",
"2" : "停用"
}
} ],
"headerToolbar" : [ {
"type" : "button",
"id" : "添加",
"label" : "添加",
"level" : "primary",
"actionType" : "dialog",
"dialog" : {
"type" : "dialog",
"title" : "添加",
"size" : "lg",
"body" : {
"type" : "service",
"schemaApi" : "get:/api/page/schema/e7adf969-4dd3-4f43-975a-ab23e3cf21fc?format=amis",
"api" : {
"method" : "get",
"url" : "/api/form/PM_SPECIALTY_BASICCONFIG/defaults?templateId=e7adf969-4dd3-4f43-975a-ab23e3cf21fc"
}
},
"actions" : [ {
"type" : "button",
"label" : "保存",
"level" : "primary",
"actionType" : "submit",
"api" : "POST:/api/flow/PM_SPECIALTY_BASICCONFIG_ADD?__egtpl=e7adf969-4dd3-4f43-975a-ab23e3cf21fc",
"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/e7adf969-4dd3-4f43-975a-ab23e3cf21fc?format=amis",
"api" : {
"method" : "post",
"url" : "/api/flow/PM_SPECIALTY_BASICCONFIG_LOAD?__egtpl=e7adf969-4dd3-4f43-975a-ab23e3cf21fc",
"data" : {
"PM_SPECIALTY_BASICCONFIG_ID" : "${PM_SPECIALTY_BASICCONFIG_ID}"
},
"responseData" : {
"&" : "${result}"
}
}
},
"actions" : [ {
"type" : "button",
"label" : "保存",
"level" : "primary",
"actionType" : "submit",
"api" : "POST:/api/flow/PM_SPECIALTY_BASICCONFIG_UPDATE?__egtpl=e7adf969-4dd3-4f43-975a-ab23e3cf21fc",
"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/PM_SPECIALTY_BASICCONFIG_DELETE",
"data" : {
"ids" : "${selectedItems|pick:PM_SPECIALTY_BASICCONFIG_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/e7adf969-4dd3-4f43-975a-ab23e3cf21fc?format=amis",
"static" : true,
"api" : {
"method" : "post",
"url" : "/api/flow/PM_SPECIALTY_BASICCONFIG_LOAD?__egtpl=e7adf969-4dd3-4f43-975a-ab23e3cf21fc",
"data" : {
"PM_SPECIALTY_BASICCONFIG_ID" : "${PM_SPECIALTY_BASICCONFIG_ID}"
},
"responseData" : {
"&" : "${result}"
}
}
}
}
}, {
"type" : "button",
"id" : "启用",
"label" : "启用",
"actionType" : "ajax",
"disabled" : true,
"confirmText" : "确认要启用此配置吗?",
"api" : {
"method" : "post",
"url" : "/api/flow/PM_SPECIALTY_BASICCONFIG_enable",
"data" : {
"PM_SPECIALTY_BASICCONFIG_ID" : "${selectedItems[0].PM_SPECIALTY_BASICCONFIG_ID}"
}
}
}, {
"type" : "button",
"id" : "停用",
"label" : "停用",
"actionType" : "ajax",
"disabled" : true,
"confirmText" : "确认要停用此配置吗?",
"api" : {
"method" : "post",
"url" : "/api/flow/PM_SPECIALTY_BASICCONFIG_disable",
"data" : {
"PM_SPECIALTY_BASICCONFIG_ID" : "${selectedItems[0].PM_SPECIALTY_BASICCONFIG_ID}"
}
}
}, "pagination" ],
"primaryField" : "PM_SPECIALTY_BASICCONFIG_ID",
"onEvent" : {
"selectedChange" : {
"actions" : [ {
"actionType" : "disabled",
"componentId" : "启用"
}, {
"actionType" : "disabled",
"componentId" : "停用"
}, {
"actionType" : "ajax",
"api" : {
"method" : "post",
"url" : "/api/script/execute-template",
"data" : {
"seq" : 1,
"item" : "${event.data.selectedItems[0]}",
"templateId" : "1fb4cff1-60f7-447c-82eb-1f443bbf423d"
}
},
"outputVar" : "scriptResult1"
}, {
"actionType" : "replayScriptCommands",
"args" : {
"commands" : "${event.data.scriptResult1.commands}"
}
} ]
}
}
}
}