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>
This commit is contained in:
215
转换产物-attach/schema/ee4b1f40-7d5a-4c66-b342-2574a10ffbfd.json
Normal file
215
转换产物-attach/schema/ee4b1f40-7d5a-4c66-b342-2574a10ffbfd.json
Normal file
@@ -0,0 +1,215 @@
|
||||
{
|
||||
"type" : "page",
|
||||
"title" : "大型设备管理",
|
||||
"body" : {
|
||||
"type" : "crud",
|
||||
"api" : "/api/flow/PM_BIGEQUIPMENT_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" : "MACHID",
|
||||
"label" : "设备名称",
|
||||
"type" : "picker",
|
||||
"clearable" : true,
|
||||
"source" : "/api/template/treegrid?treeRef=814d3da1-b354-4cd7-9ca5-e54e74849358&gridTable=PM_MACHINEREPOSITORY&rcol=RESOURCETYPEID&node=${RESOURCETYPEID}&MACHINECODE=${MACHINECODE}&page=${page}&perPage=${perPage}",
|
||||
"labelField" : "_label",
|
||||
"valueField" : "_id",
|
||||
"modalMode" : "dialog",
|
||||
"modalSize" : "lg",
|
||||
"pickerSchema" : {
|
||||
"mode" : "table",
|
||||
"filter" : {
|
||||
"title" : "",
|
||||
"body" : [ {
|
||||
"type" : "tree-select",
|
||||
"name" : "RESOURCETYPEID",
|
||||
"label" : "分类",
|
||||
"source" : "/api/template/814d3da1-b354-4cd7-9ca5-e54e74849358/tree",
|
||||
"searchable" : true,
|
||||
"clearable" : true
|
||||
}, {
|
||||
"type" : "input-text",
|
||||
"name" : "MACHINECODE",
|
||||
"label" : "名称",
|
||||
"clearable" : true
|
||||
} ]
|
||||
},
|
||||
"columns" : [ {
|
||||
"name" : "MACHINECODE",
|
||||
"label" : "机械编码",
|
||||
"width" : 200
|
||||
}, {
|
||||
"name" : "MACHINENAME",
|
||||
"label" : "机械名称",
|
||||
"width" : 200
|
||||
}, {
|
||||
"name" : "SPECIFICATIONS",
|
||||
"label" : "规格",
|
||||
"width" : 200
|
||||
}, {
|
||||
"name" : "UNIT_DISPLAY__",
|
||||
"label" : "计量单位",
|
||||
"width" : 200
|
||||
}, {
|
||||
"name" : "RESOURCETYPEID_DISPLAY__",
|
||||
"label" : "机械分类",
|
||||
"width" : 200
|
||||
} ],
|
||||
"footerToolbar" : [ "pagination" ]
|
||||
}
|
||||
}, {
|
||||
"name" : "MODEL",
|
||||
"label" : "设备型号",
|
||||
"type" : "input-text"
|
||||
}, {
|
||||
"name" : "APPLYUSER",
|
||||
"label" : "申请人",
|
||||
"type" : "picker",
|
||||
"clearable" : true,
|
||||
"source" : "/api/picker/76d2f950-ef40-4eff-89ec-98ad9a4976b9/list",
|
||||
"labelField" : "_label",
|
||||
"valueField" : "_id",
|
||||
"modalMode" : "dialog",
|
||||
"modalSize" : "lg",
|
||||
"pickerSchema" : {
|
||||
"mode" : "table",
|
||||
"headerToolbar" : [ {
|
||||
"type" : "search-box",
|
||||
"name" : "q",
|
||||
"placeholder" : "输入关键字搜索"
|
||||
} ],
|
||||
"footerToolbar" : [ "pagination" ]
|
||||
},
|
||||
"placeholder" : "请点击右侧的图标"
|
||||
}, {
|
||||
"name" : "TEXT",
|
||||
"label" : "内容",
|
||||
"type" : "input-text"
|
||||
}, {
|
||||
"name" : "STAGE",
|
||||
"label" : "阶段",
|
||||
"hidden" : true,
|
||||
"type" : "select",
|
||||
"clearable" : true,
|
||||
"source" : "/api/poc/dict/BIG_EN_STAGE",
|
||||
"value" : "1"
|
||||
} ]
|
||||
},
|
||||
"columns" : [ {
|
||||
"name" : "PM_BIGEQUIPMENT_ID",
|
||||
"label" : "主键",
|
||||
"width" : 200,
|
||||
"toggled" : false
|
||||
}, {
|
||||
"name" : "COMPANY_DISPLAY__",
|
||||
"label" : "分公司",
|
||||
"width" : 200
|
||||
}, {
|
||||
"name" : "PROJECTID_DISPLAY__",
|
||||
"label" : "工程名称",
|
||||
"width" : 200
|
||||
}, {
|
||||
"name" : "MACHID_DISPLAY__",
|
||||
"label" : "设备名称",
|
||||
"width" : 200
|
||||
}, {
|
||||
"name" : "MODEL",
|
||||
"label" : "设备型号",
|
||||
"width" : 200
|
||||
}, {
|
||||
"name" : "APPLYUSER_DISPLAY__",
|
||||
"label" : "申请人",
|
||||
"width" : 200,
|
||||
"toggled" : false
|
||||
}, {
|
||||
"name" : "TEXT",
|
||||
"label" : "内容",
|
||||
"width" : 200,
|
||||
"toggled" : false
|
||||
}, {
|
||||
"name" : "STAGE",
|
||||
"label" : "阶段",
|
||||
"width" : 200,
|
||||
"type" : "mapping",
|
||||
"map" : {
|
||||
"1" : "申请",
|
||||
"2" : "基础方案",
|
||||
"3" : "拆装方案",
|
||||
"4" : "基础验收",
|
||||
"5" : "安装与验收",
|
||||
"6" : "设备检测"
|
||||
},
|
||||
"toggled" : false
|
||||
} ],
|
||||
"headerToolbar" : [ {
|
||||
"type" : "button",
|
||||
"id" : "打印",
|
||||
"label" : "打印",
|
||||
"actionType" : "dialog",
|
||||
"disabledOn" : "${!selectedItems || selectedItems.length === 0}",
|
||||
"dialog" : {
|
||||
"type" : "dialog",
|
||||
"title" : "大型设备管理打印",
|
||||
"size" : "lg",
|
||||
"data" : {
|
||||
"PM_BIGEQUIPMENT_ID" : "${selectedItems[0].PM_BIGEQUIPMENT_ID}"
|
||||
},
|
||||
"body" : {
|
||||
"type" : "service",
|
||||
"schemaApi" : "get:/api/page/schema/73ecbd14-41f1-4fa1-a830-18e7e20ef50b?format=amis"
|
||||
},
|
||||
"actions" : [ {
|
||||
"type" : "button",
|
||||
"label" : "关闭",
|
||||
"actionType" : "close"
|
||||
} ]
|
||||
}
|
||||
}, "pagination" ],
|
||||
"primaryField" : "PM_BIGEQUIPMENT_ID",
|
||||
"onEvent" : {
|
||||
"inited" : {
|
||||
"actions" : [ {
|
||||
"actionType" : "ajax",
|
||||
"api" : {
|
||||
"method" : "post",
|
||||
"url" : "/api/script/execute-template",
|
||||
"data" : {
|
||||
"seq" : 1,
|
||||
"item" : "${&}",
|
||||
"templateId" : "ee4b1f40-7d5a-4c66-b342-2574a10ffbfd"
|
||||
}
|
||||
},
|
||||
"outputVar" : "scriptResult1"
|
||||
}, {
|
||||
"actionType" : "replayScriptCommands",
|
||||
"args" : {
|
||||
"commands" : "${event.data.scriptResult1.commands}"
|
||||
}
|
||||
} ]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user