Files
eip4-platform/转换产物-attach/schema/0db4af06-5b4c-11e4-96f0-b77316a3f86a.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

140 lines
4.0 KiB
JSON

{
"type" : "page",
"title" : "我的发起任务",
"body" : {
"type" : "crud",
"api" : "/api/workflow/process/started-amis",
"syncLocation" : false,
"selectable" : true,
"checkOnItemClick" : true,
"filter" : {
"title" : "查询",
"body" : [ {
"name" : "TITLE",
"label" : "主题",
"type" : "input-text"
}, {
"name" : "PROCESSNAME",
"label" : "流程名称",
"type" : "input-text"
}, {
"name" : "INITUSERID",
"label" : "发起者",
"hidden" : true,
"type" : "input-text",
"value" : "${currentUser}"
}, {
"name" : "WFSTATUS",
"label" : "审批状态",
"type" : "select",
"clearable" : true,
"source" : "/api/poc/dict/WFSTATUS"
}, {
"name" : "STARTTIME",
"label" : "发起时间",
"type" : "input-datetime-range"
}, {
"name" : "ENDTIME",
"label" : "结束时间",
"type" : "input-datetime-range"
}, {
"name" : "ASSIGNEENAME",
"label" : "当前审批人",
"type" : "input-text"
} ]
},
"columns" : [ {
"name" : "VIEW_ACT_PROCESS_ID",
"label" : "主键",
"width" : 200,
"toggled" : false
}, {
"name" : "TITLE",
"label" : "主题",
"width" : 300
}, {
"name" : "PROCESSNAME",
"label" : "流程名称",
"width" : 150
}, {
"name" : "INITUSERID_DISPLAY__",
"label" : "发起者",
"width" : 80
}, {
"name" : "WFSTATUS",
"label" : "审批状态",
"width" : 80,
"type" : "mapping",
"map" : {
"1" : "未提交",
"2" : "处理中",
"3" : "通过",
"4" : "未通过",
"5" : "重新提交",
"6" : "作废"
}
}, {
"name" : "STARTTIME",
"label" : "发起时间",
"width" : 150,
"type" : "datetime",
"format" : "YYYY-MM-DD HH:mm",
"inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ"
}, {
"name" : "ENDTIME",
"label" : "结束时间",
"width" : 150,
"type" : "datetime",
"format" : "YYYY-MM-DD HH:mm",
"inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ"
}, {
"name" : "ASSIGNEENAME",
"label" : "当前审批人",
"width" : 100
} ],
"headerToolbar" : [ {
"type" : "button",
"id" : "查看详细",
"label" : "查看详细",
"icon" : "fa fa-search",
"disabledOn" : "${!selectedItems || selectedItems.length !== 1}",
"onEvent" : {
"click" : {
"actions" : [ {
"actionType" : "openApprovalDrawer",
"args" : {
"taskName" : "${selectedItems[0].TITLE || '任务查看详细'}",
"processInstanceId" : "${selectedItems[0].VIEW_ACT_PROCESS_ID}",
"businessKey" : "${selectedItems[0].businessKey || selectedItems[0].BUSINESSKEY || ''}",
"businessTable" : "${selectedItems[0].businessTable || selectedItems[0].BUSINESSTABLE || ''}",
"businessSummary" : "${selectedItems[0].businessSummary || {}}",
"readOnly" : true,
"mode" : "read"
}
} ]
}
}
}, {
"type" : "button",
"id" : "撤回",
"label" : "撤回",
"icon" : "fa fa-undo",
"level" : "warning",
"actionType" : "ajax",
"disabledOn" : "${!selectedItems || selectedItems.length !== 1}",
"confirmText" : "确认撤回选中的流程?",
"api" : {
"method" : "post",
"url" : "/api/workflow/process/${selectedItems[0].VIEW_ACT_PROCESS_ID}/withdraw",
"data" : {
"comment" : "主动召回",
"businessKey" : "${selectedItems[0].businessKey || selectedItems[0].BUSINESSKEY || ''}",
"tableName" : "${selectedItems[0].businessTable || selectedItems[0].BUSINESSTABLE || ''}"
}
},
"reload" : "my-started-process-crud"
}, "pagination" ],
"primaryField" : "VIEW_ACT_PROCESS_ID",
"id" : "my-started-process-crud"
}
}