Files
eip4-platform/转换产物-attach/schema/23d93ba0-b106-4113-9cf6-2d8afbcdcd49.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

129 lines
3.2 KiB
JSON

{
"type" : "page",
"title" : "大型设备管理查看历史记录",
"body" : {
"type" : "crud",
"api" : "/api/flow/PM_BIGEQUIPMENT_SEARCH",
"syncLocation" : false,
"selectable" : true,
"checkOnItemClick" : true,
"filter" : {
"title" : "查询",
"body" : [ {
"name" : "TEXT",
"label" : "内容",
"type" : "input-text"
}, {
"name" : "CREATETIME",
"label" : "申请日期",
"type" : "input-date-range"
}, {
"name" : "STAGE",
"label" : "阶段",
"hidden" : true,
"type" : "select",
"clearable" : true,
"source" : "/api/poc/dict/BIG_EN_STAGE",
"value" : "6"
}, {
"name" : "FLOWID",
"label" : "流程",
"hidden" : true,
"type" : "input-text"
} ]
},
"columns" : [ {
"name" : "PM_BIGEQUIPMENT_ID",
"label" : "主键",
"width" : 200,
"toggled" : false
}, {
"name" : "PROJECTID_DISPLAY__",
"label" : "工程名称",
"width" : 200,
"toggled" : false
}, {
"name" : "MACHID_DISPLAY__",
"label" : "设备名称",
"width" : 200
}, {
"name" : "MODEL",
"label" : "设备型号",
"width" : 200
}, {
"name" : "APPLYUSER_DISPLAY__",
"label" : "申请人",
"width" : 200
}, {
"name" : "TEXT",
"label" : "内容",
"width" : 200
}, {
"name" : "STAGE",
"label" : "阶段",
"width" : 200,
"type" : "mapping",
"map" : {
"1" : "申请",
"2" : "基础方案",
"3" : "拆装方案",
"4" : "基础验收",
"5" : "安装与验收",
"6" : "设备检测"
},
"toggled" : false
}, {
"name" : "CREATETIME",
"label" : "申请日期",
"width" : 200,
"type" : "datetime",
"format" : "YYYY-MM-DD HH:mm",
"inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ"
}, {
"name" : "STATUS",
"label" : "审批状态",
"width" : 200,
"type" : "mapping",
"map" : {
"1" : "未提交",
"2" : "处理中",
"3" : "通过",
"4" : "未通过",
"5" : "重新提交",
"6" : "作废"
}
} ],
"headerToolbar" : [ {
"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/5cf5ed63-6380-4036-96ff-dbccc4251464?format=amis",
"static" : true,
"api" : {
"method" : "post",
"url" : "/api/flow/PM_BIGEQUIPMENT_LOAD?__egtpl=5cf5ed63-6380-4036-96ff-dbccc4251464",
"data" : {
"PM_BIGEQUIPMENT_ID" : "${PM_BIGEQUIPMENT_ID}"
},
"responseData" : {
"&" : "${result}"
}
}
}
}
}, "pagination" ],
"primaryField" : "PM_BIGEQUIPMENT_ID"
}
}