{ "type" : "page", "title" : "收文拟稿归档", "body" : { "type" : "crud", "api" : "/api/flow/OA_FILERECEIVE_SEARCH", "syncLocation" : false, "selectable" : true, "checkOnItemClick" : true, "filter" : { "title" : "查询", "body" : [ { "name" : "FILE_NUMBER", "label" : "文件编号", "type" : "input-text" }, { "name" : "FILE_NAME", "label" : "文件名称", "type" : "input-text" }, { "name" : "FILE_TYPE", "label" : "文件类型", "type" : "select", "clearable" : true, "source" : "/api/poc/dict/OA_FILE_TYPE" }, { "name" : "STATUS", "label" : "审批状态", "type" : "select", "clearable" : true, "source" : "/api/poc/dict/WFSTATUS" }, { "name" : "ISPROVIDE", "label" : "是否分发", "type" : "select", "clearable" : true, "source" : "/api/poc/dict/YESNO" }, { "name" : "ISPLACE", "label" : "归档状态", "hidden" : true, "type" : "select", "clearable" : true, "source" : "/api/poc/dict/SYS_FILINGUP_STATUS", "value" : "1" }, { "name" : "RECEIVED_TIME", "label" : "收文日期", "type" : "input-date-range" }, { "name" : "RECORDDATE", "label" : "登记时间", "type" : "input-datetime-range" } ] }, "columns" : [ { "name" : "FILE_NUMBER", "label" : "文件编号", "width" : 100 }, { "name" : "FILE_NAME", "label" : "文件名称", "width" : 150 }, { "name" : "SOURCE_UNIT", "label" : "来文单位", "width" : 260 }, { "name" : "FILE_TYPE", "label" : "文件类型", "width" : 80, "type" : "mapping", "map" : { "1" : " ", "2" : "工程管理", "3" : "财税管理", "4" : "人事、劳务", "5" : "会议通知", "6" : "经营、造价", "7" : "其他" } }, { "name" : "RECEIVED_TIME", "label" : "收文日期 ", "width" : 100, "type" : "date", "format" : "YYYY-MM-DD", "inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ" }, { "name" : "RECORDDATE", "label" : "登记日期", "width" : 100, "type" : "date", "format" : "YYYY-MM-DD", "inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ" }, { "name" : "STATUS", "label" : "审批状态", "width" : 80, "type" : "mapping", "map" : { "1" : "未提交", "2" : "处理中", "3" : "通过", "4" : "未通过", "5" : "重新提交", "6" : "作废" } }, { "name" : "ISPROVIDE", "label" : "是否分发", "width" : 80, "type" : "mapping", "map" : { "0" : "否", "1" : "是" } }, { "name" : "ISPLACE", "label" : "归档状态", "width" : 80, "type" : "mapping", "map" : { "0" : "未归档", "1" : "待归档", "2" : "已退档", "3" : "已归档" } }, { "name" : "RECEIVED_USER_DISPLAY__", "label" : "收文人", "width" : 100, "toggled" : false }, { "name" : "RECEIVED_TIME", "label" : "收文日期", "width" : 100, "type" : "date", "format" : "YYYY-MM-DD", "inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ", "toggled" : false }, { "name" : "REGISTRANT_DISPLAY__", "label" : "登记人", "width" : 100, "toggled" : false }, { "name" : "NUMBER", "label" : "份数", "width" : 100, "toggled" : false }, { "name" : "FILECONTENT", "label" : "文件内容", "width" : 100, "toggled" : false }, { "name" : "REMARK", "label" : "备注", "width" : 100, "toggled" : false }, { "name" : "OA_FILERECEIVE_ID", "label" : "主键", "width" : 100, "toggled" : false } ], "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/bb6033d5-b61b-44f5-8f63-756316a6f799?format=amis", "api" : { "method" : "post", "url" : "/api/flow/OA_FILERECEIVE_FILINGUP_LOAD?__egtpl=bb6033d5-b61b-44f5-8f63-756316a6f799", "data" : { "OA_FILERECEIVE_ID" : "${OA_FILERECEIVE_ID}" }, "responseData" : { "&" : "${result}" } } }, "actions" : [ { "type" : "button", "label" : "保存", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/OA_FILERECEIVE_FILINGUP_SAVE?__egtpl=bb6033d5-b61b-44f5-8f63-756316a6f799", "close" : true }, { "type" : "button", "label" : "取消", "actionType" : "close" } ] } }, { "type" : "button", "id" : "退档", "label" : "退档", "actionType" : "ajax", "disabled" : true, "confirmText" : "确认要退档该记录吗?", "api" : { "method" : "post", "url" : "/api/flow/OA_FILERECEIVE_BACK", "data" : { "OA_FILERECEIVE_ID" : "${selectedItems[0].OA_FILERECEIVE_ID}" } } }, "pagination" ], "primaryField" : "OA_FILERECEIVE_ID", "onEvent" : { "selectedChange" : { "actions" : [ { "actionType" : "disabled", "componentId" : "退档" }, { "actionType" : "ajax", "api" : { "method" : "post", "url" : "/api/script/execute-template", "data" : { "seq" : 1, "item" : "${event.data.selectedItems[0]}", "templateId" : "e8c5f997-5316-443a-9a24-0b446329b17c" } }, "outputVar" : "scriptResult1" }, { "actionType" : "replayScriptCommands", "args" : { "commands" : "${event.data.scriptResult1.commands}" } } ] } } } }