{ "type" : "page", "title" : "大事记", "body" : { "type" : "crud", "api" : "/api/flow/OA_MEMORABILIAINFO_SEARCH", "syncLocation" : false, "selectable" : true, "checkOnItemClick" : true, "filter" : { "title" : "查询", "body" : [ { "name" : "CAPTION", "label" : "标题", "type" : "input-text" }, { "name" : "HAPPENDATE", "label" : "发生日期", "type" : "input-date-range" }, { "name" : "ISSUER", "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" : "ISSUEDATE", "label" : "发布日期", "type" : "input-date-range" }, { "name" : "STATUS", "label" : "审批状态", "type" : "select", "clearable" : true, "source" : "/api/poc/dict/WFSTATUS" } ] }, "columns" : [ { "name" : "OA_MEMORABILIAINFO_ID", "label" : "主键", "width" : 200, "toggled" : false }, { "name" : "HAPPENDATE", "label" : "发生日期", "width" : 90, "type" : "date", "format" : "YYYY-MM-DD", "inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ" }, { "name" : "EVENTID_DISPLAY__", "label" : "主题", "width" : 250, "toggled" : false }, { "name" : "CAPTION", "label" : "标题", "width" : 400 }, { "name" : "ISSUER_DISPLAY__", "label" : "发布人", "width" : 80 }, { "name" : "ISSUEDATE", "label" : "发布日期", "width" : 90, "type" : "date", "format" : "YYYY-MM-DD", "inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ" }, { "name" : "CONTENT", "label" : "内容", "width" : 200, "toggled" : false }, { "name" : "STATUS", "label" : "审批状态", "width" : 80, "type" : "mapping", "map" : { "1" : "未提交", "2" : "处理中", "3" : "通过", "4" : "未通过", "5" : "重新提交", "6" : "作废" } } ], "headerToolbar" : [ { "type" : "button", "id" : "添加", "label" : "添加", "level" : "primary", "actionType" : "dialog", "dialog" : { "type" : "dialog", "title" : "添加", "size" : "lg", "body" : { "type" : "service", "schemaApi" : "get:/api/page/schema/2f79b899-e741-4142-9732-09467b4e12b7?format=amis", "api" : { "method" : "get", "url" : "/api/form/OA_MEMORABILIAINFO/defaults?templateId=2f79b899-e741-4142-9732-09467b4e12b7" } }, "actions" : [ { "type" : "button", "label" : "保存", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/OA_MEMORABILIAINFO_ADD?__egtpl=2f79b899-e741-4142-9732-09467b4e12b7", "close" : true }, { "type" : "button", "label" : "保存并提交审批", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/OA_MEMORABILIAINFO_ADDSUBMIT?__egtpl=2f79b899-e741-4142-9732-09467b4e12b7", "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/2f79b899-e741-4142-9732-09467b4e12b7?format=amis", "api" : { "method" : "post", "url" : "/api/flow/OA_MEMORABILIAINFO_LOAD?__egtpl=2f79b899-e741-4142-9732-09467b4e12b7", "data" : { "OA_MEMORABILIAINFO_ID" : "${OA_MEMORABILIAINFO_ID}" }, "responseData" : { "&" : "${result}" } } }, "actions" : [ { "type" : "button", "label" : "保存", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/OA_MEMORABILIAINFO_UPDATE?__egtpl=2f79b899-e741-4142-9732-09467b4e12b7", "close" : true }, { "type" : "button", "label" : "保存并提交审批", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/OA_MEMORABILIAINFO_ADDSUBMIT?__egtpl=2f79b899-e741-4142-9732-09467b4e12b7", "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_MEMORABILIAINFO_DELETE", "data" : { "ids" : "${selectedItems|pick:OA_MEMORABILIAINFO_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/2f79b899-e741-4142-9732-09467b4e12b7?format=amis", "static" : true, "api" : { "method" : "post", "url" : "/api/flow/OA_MEMORABILIAINFO_LOAD?__egtpl=2f79b899-e741-4142-9732-09467b4e12b7", "data" : { "OA_MEMORABILIAINFO_ID" : "${OA_MEMORABILIAINFO_ID}" }, "responseData" : { "&" : "${result}" } }, "onEvent" : { "inited" : { "actions" : [ { "actionType" : "ajax", "api" : { "method" : "post", "url" : "/api/script/execute-template", "data" : { "seq" : 1, "item" : "${&}", "templateId" : "480df2ac-043b-4f96-a8f1-6f815f7ef62d" } }, "outputVar" : "scriptResult1" }, { "actionType" : "replayScriptCommands", "args" : { "commands" : "${event.data.scriptResult1.commands}" } } ] } } } } }, { "type" : "button", "id" : "提交审批", "label" : "提交审批", "actionType" : "ajax", "api" : { "method" : "post", "url" : "/api/flow/OA_MEMORABILIAINFO_SUBMIT", "data" : { "OA_MEMORABILIAINFO_ID" : "${selectedItems[0].OA_MEMORABILIAINFO_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_MEMORABILIAINFO_ID}", "businessTable" : "OA_MEMORABILIAINFO", "readOnly" : true, "mode" : "read" } } ] } } }, "pagination" ], "primaryField" : "OA_MEMORABILIAINFO_ID", "onEvent" : { "inited" : { "actions" : [ { "actionType" : "ajax", "api" : { "method" : "post", "url" : "/api/script/execute-template", "data" : { "seq" : 1, "item" : "${&}", "templateId" : "480df2ac-043b-4f96-a8f1-6f815f7ef62d" } }, "outputVar" : "scriptResult1" }, { "actionType" : "replayScriptCommands", "args" : { "commands" : "${event.data.scriptResult1.commands}" } } ] } } } }