{ "type" : "page", "title" : "印章外带登记", "body" : { "type" : "crud", "api" : "/api/flow/OA_SEALBRINGOUTREGISTER_SEARCH", "syncLocation" : false, "selectable" : true, "checkOnItemClick" : true, "filter" : { "title" : "查询", "body" : [ { "name" : "COLLARDEPART", "label" : "领用部门", "type" : "tree-select", "clearable" : true, "source" : "/api/template/138b7ca7-befb-4a0c-bfc6-ed8fb4d4e434/tree", "searchable" : true, "onlyLeaf" : true }, { "name" : "BRINGOUTDATE", "label" : "外带日期", "type" : "input-date-range" }, { "name" : "LEDGERID", "label" : "印章名称", "type" : "input-text" }, { "name" : "ISBACK", "label" : "是否归还", "type" : "select", "clearable" : true, "source" : "/api/poc/dict/YESNO" } ] }, "columns" : [ { "name" : "OA_SEALBRINGOUTREGISTER_ID", "label" : "外带印章", "width" : 120, "toggled" : false }, { "name" : "COLLAR_NAME_DISPLAY__", "label" : "领用人", "width" : 80 }, { "name" : "COLLARDEPART_DISPLAY__", "label" : "领用部门", "width" : 80 }, { "name" : "SEALDETAILS", "label" : "外带印章", "width" : 120 }, { "name" : "BRINGOUTDATE", "label" : "外带日期", "width" : 80, "type" : "date", "format" : "YYYY-MM-DD", "inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ" }, { "name" : "EXPECTEDRETURNDATE", "label" : "预计归还日期", "width" : 80, "type" : "date", "format" : "YYYY-MM-DD", "inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ" }, { "name" : "ACTUALRETURNDATE", "label" : "实际归还日期", "width" : 80, "type" : "date", "format" : "YYYY-MM-DD", "inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ" }, { "name" : "BRINGOUTADDRESS", "label" : "外带地点", "width" : 100, "toggled" : false }, { "name" : "BRINGOUTREASON", "label" : "外带事由", "width" : 300 }, { "name" : "SEALCOUNT", "label" : "盖章文件份数", "width" : 100, "toggled" : false }, { "name" : "BRINGOUTREGISTERNAME_DISPLAY__", "label" : "外带登记人", "width" : 100, "toggled" : false }, { "name" : "BRINGOUTREGISTERDATE", "label" : "外带登记日期", "width" : 100, "type" : "date", "format" : "YYYY-MM-DD", "inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ", "toggled" : false }, { "name" : "RETURNREGISTERNAME_DISPLAY__", "label" : "归还登记人", "width" : 100, "toggled" : false }, { "name" : "RETURNREGISTERDATE", "label" : "归还登记日期", "width" : 100, "type" : "date", "format" : "YYYY-MM-DD", "inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ", "toggled" : false }, { "name" : "REMARK", "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/00367d0f-87c0-4197-b72a-cca623ec7ecf?format=amis", "api" : { "method" : "get", "url" : "/api/form/OA_SEALBRINGOUTREGISTER/defaults?templateId=00367d0f-87c0-4197-b72a-cca623ec7ecf" } }, "actions" : [ { "type" : "button", "label" : "保存", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/OA_SEALBRINGOUTREGISTER_ADD?__egtpl=00367d0f-87c0-4197-b72a-cca623ec7ecf", "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/a0130d43-cd22-42d7-a3b7-a64ce345eb37?format=amis", "api" : { "method" : "post", "url" : "/api/flow/OA_SEALBRINGOUTREGISTER_LOAD?__egtpl=a0130d43-cd22-42d7-a3b7-a64ce345eb37", "data" : { "OA_SEALBRINGOUTREGISTER_ID" : "${OA_SEALBRINGOUTREGISTER_ID}" }, "responseData" : { "&" : "${result}" } }, "onEvent" : { "inited" : { "actions" : [ { "actionType" : "ajax", "api" : { "method" : "post", "url" : "/api/script/execute-template", "data" : { "seq" : 1, "item" : "${&}", "templateId" : "f93fee15-6259-4b0e-91a6-045dc97d5fb8" } }, "outputVar" : "scriptResult1" }, { "actionType" : "replayScriptCommands", "args" : { "commands" : "${event.data.scriptResult1.commands}" } } ] } } }, "actions" : [ { "type" : "button", "label" : "保存", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/OA_SEALBRINGOUTREGISTER_UPDATE?__egtpl=a0130d43-cd22-42d7-a3b7-a64ce345eb37", "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_SEALBRINGOUTREGISTER_DELETE", "data" : { "ids" : "${selectedItems|pick:OA_SEALBRINGOUTREGISTER_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/a0130d43-cd22-42d7-a3b7-a64ce345eb37?format=amis", "static" : true, "api" : { "method" : "post", "url" : "/api/flow/OA_SEALBRINGOUTREGISTER_LOAD?__egtpl=a0130d43-cd22-42d7-a3b7-a64ce345eb37", "data" : { "OA_SEALBRINGOUTREGISTER_ID" : "${OA_SEALBRINGOUTREGISTER_ID}" }, "responseData" : { "&" : "${result}" } }, "onEvent" : { "inited" : { "actions" : [ { "actionType" : "ajax", "api" : { "method" : "post", "url" : "/api/script/execute-template", "data" : { "seq" : 1, "item" : "${&}", "templateId" : "f93fee15-6259-4b0e-91a6-045dc97d5fb8" } }, "outputVar" : "scriptResult1" }, { "actionType" : "replayScriptCommands", "args" : { "commands" : "${event.data.scriptResult1.commands}" } } ] } } } } }, { "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/403304b2-65e8-4318-ba7c-b35916406d17?format=amis", "api" : { "method" : "post", "url" : "/api/flow/OA_SEALBRINGOUTREGISTER_LOAD_ACTUALRETURNDATE?__egtpl=403304b2-65e8-4318-ba7c-b35916406d17", "data" : { "OA_SEALBRINGOUTREGISTER_ID" : "${OA_SEALBRINGOUTREGISTER_ID}" }, "responseData" : { "&" : "${result}" } } }, "actions" : [ { "type" : "button", "label" : "保存", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/OA_SEALBRINGOUTREGISTER_UPDATE_ACTUALRETURNDATE?__egtpl=403304b2-65e8-4318-ba7c-b35916406d17", "close" : true }, { "type" : "button", "label" : "取消", "actionType" : "close" } ] } }, "pagination" ], "primaryField" : "OA_SEALBRINGOUTREGISTER_ID", "onEvent" : { "inited" : { "actions" : [ { "actionType" : "ajax", "api" : { "method" : "post", "url" : "/api/script/execute-template", "data" : { "seq" : 1, "item" : "${&}", "templateId" : "f93fee15-6259-4b0e-91a6-045dc97d5fb8" } }, "outputVar" : "scriptResult1" }, { "actionType" : "replayScriptCommands", "args" : { "commands" : "${event.data.scriptResult1.commands}" } } ] } } } }