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>
152 lines
4.9 KiB
JSON
152 lines
4.9 KiB
JSON
{
|
|
"type" : "page",
|
|
"title" : "待办任务",
|
|
"body" : {
|
|
"type" : "crud",
|
|
"api" : "/api/workflow/tasks/todo-amis",
|
|
"syncLocation" : false,
|
|
"selectable" : true,
|
|
"checkOnItemClick" : true,
|
|
"filter" : {
|
|
"title" : "查询",
|
|
"body" : [ {
|
|
"name" : "TITLE",
|
|
"label" : "主题",
|
|
"type" : "input-text"
|
|
}, {
|
|
"name" : "PROCESSNAME",
|
|
"label" : "流程名称",
|
|
"type" : "input-text"
|
|
}, {
|
|
"name" : "TASKNAME",
|
|
"label" : "任务名称",
|
|
"type" : "input-text"
|
|
}, {
|
|
"name" : "STARTTIME",
|
|
"label" : "任务发起时间",
|
|
"type" : "input-datetime-range"
|
|
}, {
|
|
"name" : "INITUSERID",
|
|
"label" : "流程发起者",
|
|
"type" : "picker",
|
|
"clearable" : true,
|
|
"source" : "/api/picker/090981ba-0c10-4d84-92dc-80e226594480/list",
|
|
"labelField" : "_label",
|
|
"valueField" : "_id",
|
|
"modalMode" : "dialog",
|
|
"modalSize" : "lg",
|
|
"pickerSchema" : {
|
|
"mode" : "table",
|
|
"headerToolbar" : [ {
|
|
"type" : "search-box",
|
|
"name" : "q",
|
|
"placeholder" : "输入关键字搜索"
|
|
} ],
|
|
"footerToolbar" : [ "pagination" ]
|
|
},
|
|
"placeholder" : "请点击右侧的图标"
|
|
}, {
|
|
"name" : "INITUSERORGID",
|
|
"label" : "发起者所属分公司",
|
|
"type" : "picker",
|
|
"clearable" : true,
|
|
"source" : "/api/picker/1a998b23-371d-4ebb-911f-6465a56a6809/list",
|
|
"labelField" : "_label",
|
|
"valueField" : "_id",
|
|
"modalMode" : "dialog",
|
|
"modalSize" : "lg",
|
|
"pickerSchema" : {
|
|
"mode" : "table",
|
|
"headerToolbar" : [ {
|
|
"type" : "search-box",
|
|
"name" : "q",
|
|
"placeholder" : "输入关键字搜索"
|
|
} ],
|
|
"footerToolbar" : [ "pagination" ]
|
|
}
|
|
} ]
|
|
},
|
|
"columns" : [ {
|
|
"name" : "VIEW_ACT_RU_TASK_ID",
|
|
"label" : "主键",
|
|
"width" : 200,
|
|
"toggled" : false
|
|
}, {
|
|
"name" : "TITLE",
|
|
"label" : "主题",
|
|
"width" : 500
|
|
}, {
|
|
"name" : "PROCESSNAME",
|
|
"label" : "流程名称",
|
|
"width" : 150
|
|
}, {
|
|
"name" : "TASKNAME",
|
|
"label" : "任务名称",
|
|
"width" : 150
|
|
}, {
|
|
"name" : "INITUSERORGID_DISPLAY__",
|
|
"label" : "发起者所属分公司",
|
|
"width" : 150
|
|
}, {
|
|
"name" : "INITUSERID_DISPLAY__",
|
|
"label" : "流程发起者",
|
|
"width" : 80
|
|
}, {
|
|
"name" : "STARTTIME",
|
|
"label" : "任务发起时间",
|
|
"width" : 150,
|
|
"type" : "datetime",
|
|
"format" : "YYYY-MM-DD HH:mm",
|
|
"inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ"
|
|
} ],
|
|
"headerToolbar" : [ {
|
|
"type" : "button",
|
|
"id" : "查看详细",
|
|
"label" : "查看详细",
|
|
"icon" : "fa fa-search",
|
|
"disabledOn" : "${!selectedItems || selectedItems.length !== 1}",
|
|
"onEvent" : {
|
|
"click" : {
|
|
"actions" : [ {
|
|
"actionType" : "openApprovalDrawer",
|
|
"args" : {
|
|
"taskId" : "${selectedItems[0].VIEW_ACT_RU_TASK_ID}",
|
|
"taskName" : "${selectedItems[0].TASKNAME || selectedItems[0].TASK_NAME || selectedItems[0].TITLE || ''}",
|
|
"processInstanceId" : "${selectedItems[0].processInstanceId || selectedItems[0].PROCESSINSTANCEID || ''}",
|
|
"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-edit",
|
|
"disabledOn" : "${!selectedItems || selectedItems.length !== 1}",
|
|
"onEvent" : {
|
|
"click" : {
|
|
"actions" : [ {
|
|
"actionType" : "openApprovalDrawer",
|
|
"args" : {
|
|
"taskId" : "${selectedItems[0].VIEW_ACT_RU_TASK_ID}",
|
|
"taskName" : "${selectedItems[0].TASKNAME || selectedItems[0].TASK_NAME || selectedItems[0].TITLE || ''}",
|
|
"processInstanceId" : "${selectedItems[0].processInstanceId || selectedItems[0].PROCESSINSTANCEID || ''}",
|
|
"businessKey" : "${selectedItems[0].businessKey || selectedItems[0].BUSINESSKEY || ''}",
|
|
"businessTable" : "${selectedItems[0].businessTable || selectedItems[0].BUSINESSTABLE || ''}",
|
|
"businessSummary" : "${selectedItems[0].businessSummary || {}}",
|
|
"readOnly" : false,
|
|
"mode" : "handle"
|
|
}
|
|
} ]
|
|
}
|
|
},
|
|
"level" : "primary"
|
|
}, "pagination" ],
|
|
"primaryField" : "VIEW_ACT_RU_TASK_ID"
|
|
}
|
|
} |