Files
eip4-platform/转换产物-attach/schema/c3d10a37-a373-4a1e-9c4f-b6e66672547c.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

265 lines
7.4 KiB
JSON

{
"type" : "page",
"title" : "安全日志-审批",
"body" : {
"type" : "crud",
"api" : "/api/flow/PM_SECURITYDIARY_SEARCH",
"syncLocation" : false,
"selectable" : true,
"checkOnItemClick" : true,
"filter" : {
"title" : "查询",
"body" : [ {
"name" : "PROJECTID",
"label" : "单项工程",
"type" : "select",
"clearable" : true,
"searchable" : true,
"source" : "/api/picker//list?q=${term}&page=${page}&perPage=${perPage}",
"value" : "${currentProject}"
}, {
"name" : "UNITID",
"label" : "单位工程",
"type" : "select",
"clearable" : true,
"searchable" : true,
"source" : "/api/picker//list?q=${term}&page=${page}&perPage=${perPage}"
}, {
"name" : "DIARYDATE",
"label" : "日期",
"type" : "input-date-range"
}, {
"name" : "DAYWEATHER",
"label" : "白天天气",
"type" : "input-text"
}, {
"name" : "NIGHTWEATHER",
"label" : "夜晚天气",
"type" : "input-text"
}, {
"name" : "DAYWIND",
"label" : "白天风力",
"type" : "input-text"
}, {
"name" : "NIGHTWIND",
"label" : "夜晚风力",
"type" : "input-text"
}, {
"name" : "DAYTEMPERATURE",
"label" : "白天温度",
"type" : "input-text"
}, {
"name" : "NIGHTTEMPERATURE",
"label" : "夜晚温度",
"type" : "input-text"
}, {
"name" : "DAYREMARK",
"label" : "白天备注",
"type" : "input-text"
}, {
"name" : "NIGHTREMARK",
"label" : "夜晚备注",
"type" : "input-text"
}, {
"name" : "REMARK",
"label" : "内容",
"type" : "input-text"
}, {
"name" : "STATUS",
"label" : "审批状态",
"type" : "select",
"clearable" : true,
"searchable" : true,
"source" : "/api/picker//list?q=${term}&page=${page}&perPage=${perPage}"
} ]
},
"columns" : [ {
"name" : "PM_SECURITYDIARY_ID",
"label" : "主键",
"width" : 200,
"toggled" : false
}, {
"name" : "PROJECTID_DISPLAY__",
"label" : "单项工程",
"width" : 200,
"toggled" : false
}, {
"name" : "PROJECTNAME",
"label" : "单项工程",
"width" : 200
}, {
"name" : "UNITID_DISPLAY__",
"label" : "单位工程",
"width" : 200
}, {
"name" : "DIARYDATE",
"label" : "日期",
"width" : 100,
"type" : "date",
"format" : "YYYY-MM-DD",
"inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ"
}, {
"name" : "DAYWEATHER",
"label" : "白天天气",
"width" : 80
}, {
"name" : "NIGHTWEATHER",
"label" : "夜晚天气",
"width" : 80
}, {
"name" : "DAYWIND",
"label" : "白天风力",
"width" : 80
}, {
"name" : "NIGHTWIND",
"label" : "夜晚风力",
"width" : 80
}, {
"name" : "DAYTEMPERATURE",
"label" : "白天温度",
"width" : 80
}, {
"name" : "NIGHTTEMPERATURE",
"label" : "夜晚温度",
"width" : 80
}, {
"name" : "DAYREMARK",
"label" : "白天备注",
"width" : 80,
"toggled" : false
}, {
"name" : "NIGHTREMARK",
"label" : "夜晚备注",
"width" : 80,
"toggled" : false
}, {
"name" : "REMARK",
"label" : "内容",
"width" : 200
}, {
"name" : "STATUS",
"label" : "审批状态",
"width" : 100,
"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/af5e84e8-6280-4e2e-9e7a-6ad1089ee9fa?format=amis",
"static" : true,
"api" : {
"method" : "post",
"url" : "/api/flow/PM_SECURITYDIARY_LOAD?__egtpl=af5e84e8-6280-4e2e-9e7a-6ad1089ee9fa",
"data" : {
"PM_SECURITYDIARY_ID" : "${PM_SECURITYDIARY_ID}"
},
"responseData" : {
"&" : "${result}"
}
},
"onEvent" : {
"inited" : {
"actions" : [ {
"actionType" : "ajax",
"api" : {
"method" : "post",
"url" : "/api/script/execute-template",
"data" : {
"seq" : 1,
"item" : "${&}",
"templateId" : "c3d10a37-a373-4a1e-9c4f-b6e66672547c"
}
},
"outputVar" : "scriptResult1"
}, {
"actionType" : "replayScriptCommands",
"args" : {
"commands" : "${event.data.scriptResult1.commands}"
}
} ]
}
}
}
}
}, {
"type" : "button",
"id" : "提交审批",
"label" : "提交审批",
"actionType" : "ajax",
"confirmText" : "确定要提交修改申请吗?",
"api" : {
"method" : "post",
"url" : "/api/flow/PM_SECURITYDIARY_SUBMIT",
"data" : {
"PM_SECURITYDIARY_ID" : "${selectedItems[0].PM_SECURITYDIARY_ID}"
}
},
"disabledOn" : "${!selectedItems || selectedItems.length === 0 || (selectedItems[0].STATUS && selectedItems[0].STATUS != 1 && selectedItems[0].STATUS != 4 && selectedItems[0].STATUS != 5)}"
}, {
"type" : "button",
"id" : "查看审批",
"label" : "查看审批",
"icon" : "fa fa-search",
"disabledOn" : "${!selectedItems || selectedItems.length === 0}",
"onEvent" : {
"click" : {
"actions" : [ {
"actionType" : "openApprovalDrawer",
"args" : {
"taskName" : "审批详情",
"processInstanceId" : "${selectedItems[0].processInstanceId || selectedItems[0].PROCESSINSTANCEID || ''}",
"businessKey" : "${selectedItems[0].PM_SECURITYDIARY_ID}",
"businessTable" : "PM_SECURITYDIARY",
"readOnly" : true,
"mode" : "read"
}
} ]
}
}
}, "pagination" ],
"primaryField" : "PM_SECURITYDIARY_ID",
"onEvent" : {
"inited" : {
"actions" : [ {
"actionType" : "ajax",
"api" : {
"method" : "post",
"url" : "/api/script/execute-template",
"data" : {
"seq" : 1,
"item" : "${&}",
"templateId" : "c3d10a37-a373-4a1e-9c4f-b6e66672547c"
}
},
"outputVar" : "scriptResult1"
}, {
"actionType" : "replayScriptCommands",
"args" : {
"commands" : "${event.data.scriptResult1.commands}"
}
} ]
}
}
}
}