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>
472 lines
13 KiB
JSON
472 lines
13 KiB
JSON
{
|
|
"type" : "page",
|
|
"title" : "公告管理",
|
|
"body" : {
|
|
"type" : "crud",
|
|
"api" : "/api/flow/OA_BULLETINMANAGE_SEARCH",
|
|
"syncLocation" : false,
|
|
"selectable" : true,
|
|
"checkOnItemClick" : true,
|
|
"filter" : {
|
|
"title" : "查询",
|
|
"body" : [ {
|
|
"name" : "TITLE",
|
|
"label" : "主题",
|
|
"type" : "input-text"
|
|
}, {
|
|
"name" : "IMPORTANT",
|
|
"label" : "重要级别",
|
|
"hidden" : true,
|
|
"type" : "select",
|
|
"clearable" : true,
|
|
"source" : "/api/poc/dict/Important"
|
|
}, {
|
|
"name" : "USER_ID",
|
|
"label" : "拟稿人",
|
|
"hidden" : true,
|
|
"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" : "SAVETIME",
|
|
"label" : "保存时间",
|
|
"hidden" : true,
|
|
"type" : "input-datetime-range"
|
|
}, {
|
|
"name" : "STATUS",
|
|
"label" : "审批状态",
|
|
"type" : "select",
|
|
"clearable" : true,
|
|
"source" : "/api/poc/dict/WFSTATUS"
|
|
}, {
|
|
"name" : "ISSEND",
|
|
"label" : "是否发布",
|
|
"hidden" : true,
|
|
"type" : "select",
|
|
"clearable" : true,
|
|
"source" : "/api/poc/dict/YESNO"
|
|
}, {
|
|
"name" : "ISSHOW",
|
|
"label" : "显示/隐藏",
|
|
"hidden" : true,
|
|
"type" : "select",
|
|
"clearable" : true,
|
|
"source" : "/api/poc/dict/YESNO"
|
|
}, {
|
|
"name" : "ISDEL",
|
|
"label" : "是否删除",
|
|
"required" : true,
|
|
"hidden" : true,
|
|
"type" : "select",
|
|
"clearable" : true,
|
|
"source" : "/api/poc/dict/YESNO",
|
|
"value" : "0"
|
|
} ]
|
|
},
|
|
"columns" : [ {
|
|
"name" : "TITLE",
|
|
"label" : "主题",
|
|
"width" : 220
|
|
}, {
|
|
"name" : "STATUS",
|
|
"label" : "审批状态",
|
|
"width" : 80,
|
|
"type" : "mapping",
|
|
"map" : {
|
|
"1" : "未提交",
|
|
"2" : "处理中",
|
|
"3" : "通过",
|
|
"4" : "未通过",
|
|
"5" : "重新提交",
|
|
"6" : "作废"
|
|
}
|
|
}, {
|
|
"name" : "ISSEND",
|
|
"label" : "是否发布",
|
|
"width" : 100,
|
|
"type" : "mapping",
|
|
"map" : {
|
|
"0" : "否",
|
|
"1" : "是"
|
|
}
|
|
}, {
|
|
"name" : "ISSHOW",
|
|
"label" : "显示/隐藏",
|
|
"width" : 100,
|
|
"type" : "mapping",
|
|
"map" : {
|
|
"1" : "显示",
|
|
"0" : "隐藏"
|
|
}
|
|
}, {
|
|
"name" : "USERSEND_ID_DISPLAY__",
|
|
"label" : "发布人",
|
|
"width" : 100
|
|
}, {
|
|
"name" : "SENDTIME",
|
|
"label" : "发布时间",
|
|
"width" : 115,
|
|
"type" : "datetime",
|
|
"format" : "YYYY-MM-DD HH:mm",
|
|
"inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ"
|
|
}, {
|
|
"name" : "ISPLACE",
|
|
"label" : "归档状态",
|
|
"width" : 80,
|
|
"type" : "mapping",
|
|
"map" : {
|
|
"0" : "未归档",
|
|
"1" : "待归档",
|
|
"2" : "已退档",
|
|
"3" : "已归档"
|
|
}
|
|
}, {
|
|
"name" : "IMPORTANT",
|
|
"label" : "重要级别",
|
|
"width" : 80,
|
|
"type" : "mapping",
|
|
"map" : {
|
|
"0" : "一般",
|
|
"1" : "重要"
|
|
},
|
|
"toggled" : false
|
|
}, {
|
|
"name" : "USER_ID_DISPLAY__",
|
|
"label" : "拟稿人",
|
|
"width" : 100,
|
|
"toggled" : false
|
|
}, {
|
|
"name" : "SAVETIME",
|
|
"label" : "保存时间",
|
|
"width" : 120,
|
|
"type" : "datetime",
|
|
"format" : "YYYY-MM-DD HH:mm",
|
|
"inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ",
|
|
"toggled" : false
|
|
}, {
|
|
"name" : "ISDEL",
|
|
"label" : "是否删除",
|
|
"width" : 100,
|
|
"type" : "mapping",
|
|
"map" : {
|
|
"0" : "否",
|
|
"1" : "是"
|
|
},
|
|
"toggled" : false
|
|
}, {
|
|
"name" : "OA_BULLETINMANAGE_ID",
|
|
"label" : "主键",
|
|
"width" : 100,
|
|
"toggled" : false
|
|
} ],
|
|
"headerToolbar" : [ {
|
|
"type" : "button",
|
|
"id" : "添加",
|
|
"label" : "添加",
|
|
"level" : "primary",
|
|
"actionType" : "dialog",
|
|
"dialog" : {
|
|
"type" : "dialog",
|
|
"title" : "添加",
|
|
"size" : "lg",
|
|
"body" : {
|
|
"type" : "service",
|
|
"schemaApi" : "get:/api/page/schema/51d404ff-ff95-4fb7-9fab-5ae8370ed550?format=amis",
|
|
"api" : {
|
|
"method" : "get",
|
|
"url" : "/api/form/OA_BULLETINMANAGE/defaults?templateId=51d404ff-ff95-4fb7-9fab-5ae8370ed550"
|
|
}
|
|
},
|
|
"actions" : [ {
|
|
"type" : "button",
|
|
"label" : "保存",
|
|
"level" : "primary",
|
|
"actionType" : "submit",
|
|
"api" : "POST:/api/flow/OA_BULLETINMANAGE_ADD?__egtpl=51d404ff-ff95-4fb7-9fab-5ae8370ed550",
|
|
"close" : true
|
|
}, {
|
|
"type" : "button",
|
|
"label" : "保存并提交审批",
|
|
"level" : "primary",
|
|
"actionType" : "submit",
|
|
"api" : "POST:/api/flow/OA_BULLETINMANAGE_ADD_AND_SUBMIT?__egtpl=51d404ff-ff95-4fb7-9fab-5ae8370ed550",
|
|
"close" : true
|
|
}, {
|
|
"type" : "button",
|
|
"label" : "取消",
|
|
"actionType" : "close"
|
|
} ]
|
|
}
|
|
}, {
|
|
"type" : "button",
|
|
"id" : "修改",
|
|
"label" : "修改",
|
|
"actionType" : "dialog",
|
|
"disabledOn" : "${!selectedItems || selectedItems.length === 0}",
|
|
"dialog" : {
|
|
"type" : "dialog",
|
|
"title" : "修改",
|
|
"size" : "lg",
|
|
"data" : {
|
|
"&" : "${selectedItems[0]}"
|
|
},
|
|
"body" : {
|
|
"type" : "service",
|
|
"schemaApi" : "get:/api/page/schema/51d404ff-ff95-4fb7-9fab-5ae8370ed550?format=amis",
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/flow/OA_BULLETINMANAGE_LOAD?__egtpl=51d404ff-ff95-4fb7-9fab-5ae8370ed550",
|
|
"data" : {
|
|
"OA_BULLETINMANAGE_ID" : "${OA_BULLETINMANAGE_ID}"
|
|
},
|
|
"responseData" : {
|
|
"&" : "${result}"
|
|
}
|
|
}
|
|
},
|
|
"actions" : [ {
|
|
"type" : "button",
|
|
"label" : "保存",
|
|
"level" : "primary",
|
|
"actionType" : "submit",
|
|
"api" : "POST:/api/flow/OA_BULLETINMANAGE_UPDATE?__egtpl=51d404ff-ff95-4fb7-9fab-5ae8370ed550",
|
|
"close" : true
|
|
}, {
|
|
"type" : "button",
|
|
"label" : "保存并提交审批",
|
|
"level" : "primary",
|
|
"actionType" : "submit",
|
|
"api" : "POST:/api/flow/OA_BULLETINMANAGE_ADD_AND_SUBMIT?__egtpl=51d404ff-ff95-4fb7-9fab-5ae8370ed550",
|
|
"close" : true
|
|
}, {
|
|
"type" : "button",
|
|
"label" : "取消",
|
|
"actionType" : "close"
|
|
} ]
|
|
}
|
|
}, {
|
|
"type" : "button",
|
|
"id" : "删除",
|
|
"label" : "删除",
|
|
"level" : "danger",
|
|
"actionType" : "ajax",
|
|
"disabledOn" : "${!selectedItems || selectedItems.length === 0}",
|
|
"confirmText" : "确认要删除此记录吗?",
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/flow/OA_BULLETINMANAGE_DELETE",
|
|
"data" : {
|
|
"ids" : "${selectedItems|pick:OA_BULLETINMANAGE_ID|join:','}"
|
|
}
|
|
}
|
|
}, {
|
|
"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/51d404ff-ff95-4fb7-9fab-5ae8370ed550?format=amis",
|
|
"static" : true,
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/flow/OA_BULLETINMANAGE_LOAD?__egtpl=51d404ff-ff95-4fb7-9fab-5ae8370ed550",
|
|
"data" : {
|
|
"OA_BULLETINMANAGE_ID" : "${OA_BULLETINMANAGE_ID}"
|
|
},
|
|
"responseData" : {
|
|
"&" : "${result}"
|
|
}
|
|
},
|
|
"onEvent" : {
|
|
"inited" : {
|
|
"actions" : [ {
|
|
"actionType" : "ajax",
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/script/execute-template",
|
|
"data" : {
|
|
"seq" : 2,
|
|
"item" : "${&}",
|
|
"templateId" : "78d7a97c-19fe-433c-8781-afdf87e8b128"
|
|
}
|
|
},
|
|
"outputVar" : "scriptResult2"
|
|
}, {
|
|
"actionType" : "replayScriptCommands",
|
|
"args" : {
|
|
"commands" : "${event.data.scriptResult2.commands}"
|
|
}
|
|
} ]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}, {
|
|
"type" : "button",
|
|
"id" : "发布",
|
|
"label" : "发布",
|
|
"actionType" : "ajax",
|
|
"disabled" : true,
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/flow/OA_BULLETINMANAGE_PUBLISH",
|
|
"data" : {
|
|
"OA_BULLETINMANAGE_ID" : "${selectedItems[0].OA_BULLETINMANAGE_ID}"
|
|
}
|
|
}
|
|
}, {
|
|
"type" : "button",
|
|
"id" : "显示",
|
|
"label" : "显示",
|
|
"actionType" : "ajax",
|
|
"disabled" : true,
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/flow/OA_BULLETINMANAGE_ISSHOW",
|
|
"data" : {
|
|
"OA_BULLETINMANAGE_ID" : "${selectedItems[0].OA_BULLETINMANAGE_ID}"
|
|
}
|
|
}
|
|
}, {
|
|
"type" : "button",
|
|
"id" : "隐藏",
|
|
"label" : "隐藏",
|
|
"actionType" : "ajax",
|
|
"disabled" : true,
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/flow/OA_BULLETINMANAGE_HIDE",
|
|
"data" : {
|
|
"OA_BULLETINMANAGE_ID" : "${selectedItems[0].OA_BULLETINMANAGE_ID}"
|
|
}
|
|
}
|
|
}, {
|
|
"type" : "button",
|
|
"id" : "文件归档",
|
|
"label" : "文件归档",
|
|
"actionType" : "ajax",
|
|
"disabled" : true,
|
|
"confirmText" : "确认要发送归档吗?",
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/flow/OA_BULLETINMANAGE_UPDATE_AC",
|
|
"data" : {
|
|
"OA_BULLETINMANAGE_ID" : "${selectedItems[0].OA_BULLETINMANAGE_ID}"
|
|
}
|
|
}
|
|
}, {
|
|
"type" : "button",
|
|
"id" : "提交审批",
|
|
"label" : "提交审批",
|
|
"actionType" : "ajax",
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/flow/OA_BULLETINMANAGE_SUBMIT",
|
|
"data" : {
|
|
"OA_BULLETINMANAGE_ID" : "${selectedItems[0].OA_BULLETINMANAGE_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].OA_BULLETINMANAGE_ID}",
|
|
"businessTable" : "OA_BULLETINMANAGE",
|
|
"readOnly" : true,
|
|
"mode" : "read"
|
|
}
|
|
} ]
|
|
}
|
|
}
|
|
}, "pagination" ],
|
|
"primaryField" : "OA_BULLETINMANAGE_ID",
|
|
"onEvent" : {
|
|
"selectedChange" : {
|
|
"actions" : [ {
|
|
"actionType" : "disabled",
|
|
"componentId" : "发布"
|
|
}, {
|
|
"actionType" : "disabled",
|
|
"componentId" : "显示"
|
|
}, {
|
|
"actionType" : "disabled",
|
|
"componentId" : "隐藏"
|
|
}, {
|
|
"actionType" : "disabled",
|
|
"componentId" : "文件归档"
|
|
}, {
|
|
"actionType" : "ajax",
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/script/execute-template",
|
|
"data" : {
|
|
"seq" : 1,
|
|
"item" : "${event.data.selectedItems[0]}",
|
|
"templateId" : "78d7a97c-19fe-433c-8781-afdf87e8b128"
|
|
}
|
|
},
|
|
"outputVar" : "scriptResult1"
|
|
}, {
|
|
"actionType" : "replayScriptCommands",
|
|
"args" : {
|
|
"commands" : "${event.data.scriptResult1.commands}"
|
|
}
|
|
} ]
|
|
},
|
|
"inited" : {
|
|
"actions" : [ {
|
|
"actionType" : "ajax",
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/script/execute-template",
|
|
"data" : {
|
|
"seq" : 2,
|
|
"item" : "${&}",
|
|
"templateId" : "78d7a97c-19fe-433c-8781-afdf87e8b128"
|
|
}
|
|
},
|
|
"outputVar" : "scriptResult2"
|
|
}, {
|
|
"actionType" : "replayScriptCommands",
|
|
"args" : {
|
|
"commands" : "${event.data.scriptResult2.commands}"
|
|
}
|
|
} ]
|
|
}
|
|
}
|
|
}
|
|
} |