{ "type" : "page", "title" : "通知管理", "body" : { "type" : "crud", "api" : "/api/flow/OA_NOTICEMANAGE_SEARCH", "syncLocation" : false, "selectable" : true, "checkOnItemClick" : true, "filter" : { "title" : "查询", "body" : [ { "name" : "IMPORTANT", "label" : "重要级别", "type" : "select", "clearable" : true, "source" : "/api/poc/dict/Important" }, { "name" : "TITLE", "label" : "主题", "type" : "input-text" }, { "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" }, { "name" : "STATUS", "label" : "审批状态", "type" : "select", "clearable" : true, "source" : "/api/poc/dict/WFSTATUS" }, { "name" : "NOTICECONTENT", "label" : "内容", "hidden" : true, "type" : "input-text" } ] }, "columns" : [ { "name" : "OA_NOTICEMANAGE_ID", "label" : "主键", "width" : 200, "toggled" : false }, { "name" : "IMPORTANT", "label" : "重要级别", "width" : 80, "type" : "mapping", "map" : { "0" : "一般", "1" : "重要" } }, { "name" : "TITLE", "label" : "主题", "width" : 400 }, { "name" : "USER_ID_DISPLAY__", "label" : "拟稿人", "width" : 80 }, { "name" : "SAVETIME", "label" : "保存时间", "width" : 100, "type" : "datetime", "format" : "YYYY-MM-DD HH:mm", "inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ" }, { "name" : "STATUS", "label" : "审批状态", "width" : 80, "type" : "mapping", "map" : { "1" : "未提交", "2" : "处理中", "3" : "通过", "4" : "未通过", "5" : "重新提交", "6" : "作废" } }, { "name" : "NOTICEDRAFTPEOPLES", "label" : "通知接收人", "width" : 200, "toggled" : false }, { "name" : "ISSEND", "label" : "是否已发送", "width" : 50, "type" : "mapping", "map" : { "0" : "否", "1" : "是", "false" : "否", "true" : "是" } }, { "name" : "ISPLACE", "label" : "归档状态", "width" : 80, "type" : "mapping", "map" : { "0" : "未归档", "1" : "待归档", "2" : "已退档", "3" : "已归档" } } ], "headerToolbar" : [ { "type" : "button", "id" : "添加", "label" : "添加", "level" : "primary", "actionType" : "dialog", "dialog" : { "type" : "dialog", "title" : "添加", "size" : "lg", "body" : { "type" : "service", "schemaApi" : "get:/api/page/schema/20147656-840d-44d2-bda9-2cbf59d901fd?format=amis", "api" : { "method" : "get", "url" : "/api/form/OA_NOTICEMANAGE/defaults?templateId=20147656-840d-44d2-bda9-2cbf59d901fd" } }, "actions" : [ { "type" : "button", "label" : "保存", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/OA_NOTICEMANAGE_ADD?__egtpl=20147656-840d-44d2-bda9-2cbf59d901fd", "close" : true }, { "type" : "button", "label" : "保存并提交审批", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/OA_NOTICEMANAGE_ADD_AND_SUBMIT?__egtpl=20147656-840d-44d2-bda9-2cbf59d901fd", "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/20147656-840d-44d2-bda9-2cbf59d901fd?format=amis", "api" : { "method" : "post", "url" : "/api/flow/OA_NOTICEMANAGE_LOAD?__egtpl=20147656-840d-44d2-bda9-2cbf59d901fd", "data" : { "OA_NOTICEMANAGE_ID" : "${OA_NOTICEMANAGE_ID}" }, "responseData" : { "&" : "${result}" } } }, "actions" : [ { "type" : "button", "label" : "保存", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/OA_NOTICEMANAGE_UPDATE?__egtpl=20147656-840d-44d2-bda9-2cbf59d901fd", "close" : true }, { "type" : "button", "label" : "保存并提交审批", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/OA_NOTICEMANAGE_ADD_AND_SUBMIT?__egtpl=20147656-840d-44d2-bda9-2cbf59d901fd", "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_NOTICEMANAGE_DELETE", "data" : { "ids" : "${selectedItems|pick:OA_NOTICEMANAGE_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/232f6092-6b6f-460c-b174-d4a4671acaa2?format=amis", "static" : true, "api" : { "method" : "post", "url" : "/api/flow/OA_NOTICEMANAGE_LOAD?__egtpl=232f6092-6b6f-460c-b174-d4a4671acaa2", "data" : { "OA_NOTICEMANAGE_ID" : "${OA_NOTICEMANAGE_ID}" }, "responseData" : { "&" : "${result}" } }, "onEvent" : { "inited" : { "actions" : [ { "actionType" : "ajax", "api" : { "method" : "post", "url" : "/api/script/execute-template", "data" : { "seq" : 3, "item" : "${&}", "templateId" : "e732c4b0-2402-4e73-8cc4-786c8a8c52af" } }, "outputVar" : "scriptResult3" }, { "actionType" : "replayScriptCommands", "args" : { "commands" : "${event.data.scriptResult3.commands}" } } ] } } } } }, { "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/35e2bb54-93b2-4c0c-882f-68f5a7b26d11?format=amis", "static" : true, "api" : { "method" : "post", "url" : "/api/flow/OA_NOTICEMANAGE_LOAD?__egtpl=35e2bb54-93b2-4c0c-882f-68f5a7b26d11", "data" : { "OA_NOTICEMANAGE_ID" : "${OA_NOTICEMANAGE_ID}" }, "responseData" : { "&" : "${result}" } } } } }, { "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/9ff40661-40e0-4122-bb48-8a137c4d2fb7?format=amis", "api" : { "method" : "post", "url" : "/api/flow/OA_NOTICEMANAGE_LOAD_SENDNOTICE?__egtpl=9ff40661-40e0-4122-bb48-8a137c4d2fb7", "data" : { "OA_NOTICEMANAGE_ID" : "${OA_NOTICEMANAGE_ID}" }, "responseData" : { "&" : "${result}" } }, "onEvent" : { "inited" : { "actions" : [ { "actionType" : "ajax", "api" : { "method" : "post", "url" : "/api/script/execute-template", "data" : { "seq" : 1, "item" : "${&}", "templateId" : "e732c4b0-2402-4e73-8cc4-786c8a8c52af" } }, "outputVar" : "scriptResult1" }, { "actionType" : "replayScriptCommands", "args" : { "commands" : "${event.data.scriptResult1.commands}" } } ] } } }, "actions" : [ { "type" : "button", "label" : "发送", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/OA_NOTICEMANAGE_PUBLISH?__egtpl=9ff40661-40e0-4122-bb48-8a137c4d2fb7", "close" : true }, { "type" : "button", "label" : "取消", "actionType" : "close" } ] } }, { "type" : "button", "id" : "文件归档", "label" : "文件归档", "actionType" : "ajax", "disabled" : true, "confirmText" : "确认要发送归档吗?", "api" : { "method" : "post", "url" : "/api/flow/OA_NOTICEMANAGE_UPDATE_AC", "data" : { "OA_NOTICEMANAGE_ID" : "${selectedItems[0].OA_NOTICEMANAGE_ID}" } } }, { "type" : "button", "id" : "提交审批", "label" : "提交审批", "actionType" : "ajax", "api" : { "method" : "post", "url" : "/api/flow/OA_NOTICEMANAGE_SUBMIT", "data" : { "OA_NOTICEMANAGE_ID" : "${selectedItems[0].OA_NOTICEMANAGE_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_NOTICEMANAGE_ID}", "businessTable" : "OA_NOTICEMANAGE", "readOnly" : true, "mode" : "read" } } ] } } }, "pagination" ], "primaryField" : "OA_NOTICEMANAGE_ID", "onEvent" : { "selectedChange" : { "actions" : [ { "actionType" : "disabled", "componentId" : "文件归档" }, { "actionType" : "ajax", "api" : { "method" : "post", "url" : "/api/script/execute-template", "data" : { "seq" : 2, "item" : "${event.data.selectedItems[0]}", "templateId" : "e732c4b0-2402-4e73-8cc4-786c8a8c52af" } }, "outputVar" : "scriptResult2" }, { "actionType" : "replayScriptCommands", "args" : { "commands" : "${event.data.scriptResult2.commands}" } } ] }, "inited" : { "actions" : [ { "actionType" : "ajax", "api" : { "method" : "post", "url" : "/api/script/execute-template", "data" : { "seq" : 3, "item" : "${&}", "templateId" : "e732c4b0-2402-4e73-8cc4-786c8a8c52af" } }, "outputVar" : "scriptResult3" }, { "actionType" : "replayScriptCommands", "args" : { "commands" : "${event.data.scriptResult3.commands}" } }, { "actionType" : "ajax", "api" : { "method" : "post", "url" : "/api/script/execute-template", "data" : { "seq" : 1, "item" : "${&}", "templateId" : "e732c4b0-2402-4e73-8cc4-786c8a8c52af" } }, "outputVar" : "scriptResult1" }, { "actionType" : "replayScriptCommands", "args" : { "commands" : "${event.data.scriptResult1.commands}" } } ] } } } }