{ "type" : "page", "title" : "文件阅读", "body" : { "type" : "crud", "api" : "/api/flow/VIEW_OA_FILETOME_SEARCH", "syncLocation" : false, "selectable" : true, "checkOnItemClick" : true, "filter" : { "title" : "查询", "body" : [ { "name" : "FILENUMBER", "label" : "文件编号", "type" : "input-text" }, { "name" : "FILENAME", "label" : "文件名称", "type" : "input-text" }, { "name" : "FILETYPE", "label" : "文件类型", "type" : "select", "clearable" : true, "source" : "/api/poc/dict/OA_FILE_TYPE" }, { "name" : "FILECLASS", "label" : "文件类别", "type" : "input-text" }, { "name" : "SIGNTYPE", "label" : "字号类别", "type" : "select", "clearable" : true, "source" : "/api/poc/dict/OA_FILESEND_SIGNTYPE" }, { "name" : "DESPATCHDATE", "label" : "分发日期", "type" : "input-date-range" }, { "name" : "ISREAD", "label" : "是否阅读", "type" : "select", "clearable" : true, "source" : "/api/poc/dict/YESNO" }, { "name" : "ISUSED", "label" : "是否有效", "type" : "select", "clearable" : true, "source" : "/api/poc/dict/OA_FILERECEIVE_ZUOFEI" } ] }, "columns" : [ { "name" : "FILENUMBER", "label" : "文件编号", "width" : 150 }, { "name" : "FILENAME", "label" : "文件名称", "width" : 260 }, { "name" : "FILECLASS", "label" : "文件类别", "width" : 50 }, { "name" : "FILETYPE", "label" : "文件类型", "width" : 50, "type" : "mapping", "map" : { "1" : " ", "2" : "工程管理", "3" : "财税管理", "4" : "人事、劳务", "5" : "会议通知", "6" : "经营、造价", "7" : "其他" } }, { "name" : "SIGNTYPE", "label" : "字号类别", "width" : 50, "type" : "mapping", "map" : { "1" : "董字号", "2" : "工字号", "3" : "经字号", "4" : "党字号", "5" : "安字号", "6" : "联合行文" } }, { "name" : "DISPATHHOSTUSER_DISPLAY__", "label" : "分发人", "width" : 80 }, { "name" : "DESPATCHDATE", "label" : "分发日期", "width" : 100, "type" : "date", "format" : "YYYY-MM-DD", "inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ" }, { "name" : "ISREAD", "label" : "是否阅读", "width" : 80, "type" : "mapping", "map" : { "0" : "否", "1" : "是" } }, { "name" : "FILECONTENT", "label" : "文件内容", "width" : 100, "toggled" : false }, { "name" : "DESPATCHSUGGESTION", "label" : "分发意见", "width" : 100, "toggled" : false }, { "name" : "RECEIVER_DISPLAY__", "label" : "接收人", "width" : 100, "toggled" : false }, { "name" : "VIEW_OA_FILETOME_ID", "label" : "主键", "width" : 100, "toggled" : false }, { "name" : "ISUSED", "label" : "是否有效", "width" : 80, "type" : "mapping", "map" : { "1" : "有效", "2" : "无效" } } ], "headerToolbar" : [ { "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/0a828ee3-1f61-4cfa-940c-546dc8f23499?format=amis", "api" : { "method" : "post", "url" : "/api/flow/VIEW_OA_FILETOME_LOAD?__egtpl=0a828ee3-1f61-4cfa-940c-546dc8f23499", "data" : { "VIEW_OA_FILETOME_ID" : "${VIEW_OA_FILETOME_ID}" }, "responseData" : { "&" : "${result}" } } }, "actions" : [ { "type" : "button", "label" : "阅读", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/OA_FILERECEIVEUSER_UPDATE?__egtpl=0a828ee3-1f61-4cfa-940c-546dc8f23499", "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/9d952bc6-0cec-4a70-b1e2-c570852df524?format=amis", "api" : { "method" : "post", "url" : "/api/flow/VIEW_OA_FILETOME_LOAD?__egtpl=9d952bc6-0cec-4a70-b1e2-c570852df524", "data" : { "VIEW_OA_FILETOME_ID" : "${VIEW_OA_FILETOME_ID}" }, "responseData" : { "&" : "${result}" } } }, "actions" : [ { "type" : "button", "label" : "保存", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/OA_FILE_DESPATCH?__egtpl=9d952bc6-0cec-4a70-b1e2-c570852df524", "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/36d55de5-7cec-4095-8040-04f284b4ccfe?format=amis", "api" : { "method" : "post", "url" : "/api/flow/VIEW_OA_FILETOME_LOAD?__egtpl=36d55de5-7cec-4095-8040-04f284b4ccfe", "data" : { "VIEW_OA_FILETOME_ID" : "${VIEW_OA_FILETOME_ID}" }, "responseData" : { "&" : "${result}" } } }, "actions" : [ { "type" : "button", "label" : "保存", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/OA_FILERECEIVEUNDERTAKESITUATION_ADD?__egtpl=36d55de5-7cec-4095-8040-04f284b4ccfe", "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]}", "__readonly" : true }, "body" : { "type" : "service", "schemaApi" : "get:/api/page/schema/75e5abf1-a0c3-4504-ae23-43bc31712b51?format=amis", "static" : true, "api" : { "method" : "post", "url" : "/api/flow/VIEW_OA_FILETOME_LOAD_LIST?__egtpl=75e5abf1-a0c3-4504-ae23-43bc31712b51", "data" : { "VIEW_OA_FILETOME_ID" : "${VIEW_OA_FILETOME_ID}" }, "responseData" : { "&" : "${result}" } } } } }, { "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/1086518d-53aa-4e9e-9e46-2d4c917dd434?format=amis", "static" : true, "api" : { "method" : "post", "url" : "/api/flow/VIEW_OA_FILETOME_LOAD_LIST2?__egtpl=1086518d-53aa-4e9e-9e46-2d4c917dd434", "data" : { "VIEW_OA_FILETOME_ID" : "${VIEW_OA_FILETOME_ID}" }, "responseData" : { "&" : "${result}" } } } } }, "pagination" ], "primaryField" : "VIEW_OA_FILETOME_ID", "onEvent" : { "selectedChange" : { "actions" : [ { "actionType" : "ajax", "api" : { "method" : "post", "url" : "/api/script/execute-template", "data" : { "seq" : 1, "item" : "${event.data.selectedItems[0]}", "templateId" : "a5996b8a-baa2-41d2-bcc3-3729eee00f41" } }, "outputVar" : "scriptResult1" }, { "actionType" : "replayScriptCommands", "args" : { "commands" : "${event.data.scriptResult1.commands}" } } ] } } } }