{ "type" : "page", "title" : "借阅历史管理", "body" : { "type" : "crud", "api" : "/api/flow/DM_ARCHIVESBORROW_SEARCH", "syncLocation" : false, "selectable" : true, "checkOnItemClick" : true, "filter" : { "title" : "查询", "body" : [ { "name" : "NO", "label" : "编号", "type" : "input-text" }, { "name" : "NAME", "label" : "文件题名", "type" : "input-text" }, { "name" : "BACKTIME", "label" : "预计归还日期", "type" : "input-date-range" }, { "name" : "REMARK", "label" : "借阅事由", "type" : "input-text" }, { "name" : "STATUS", "label" : "审批状态", "type" : "select", "clearable" : true, "source" : "/api/poc/dict/WFSTATUS" }, { "name" : "CREATEBY", "label" : "借阅人", "type" : "picker", "clearable" : true, "source" : "/api/picker/1b6820ad-bc7c-4eef-ac63-652cdf52c75f/list", "labelField" : "_label", "valueField" : "_id", "modalMode" : "dialog", "modalSize" : "lg", "pickerSchema" : { "mode" : "table", "headerToolbar" : [ { "type" : "search-box", "name" : "q", "placeholder" : "输入关键字搜索" } ], "footerToolbar" : [ "pagination" ] } }, { "name" : "APPLYSTATUS", "label" : "借阅状态", "type" : "select", "clearable" : true, "source" : "/api/poc/dict/DM_ARCHIVESBORROW_BORROWSTATUS" } ] }, "columns" : [ { "name" : "DM_ARCHIVESBORROW_ID", "label" : "主键", "width" : 200, "toggled" : false }, { "name" : "NOVIEW", "label" : "编号", "width" : 200 }, { "name" : "ARCHIVEID_DISPLAY__", "label" : "档案", "width" : 200 }, { "name" : "BACKTIME", "label" : "预计归还日期", "width" : 200, "type" : "date", "format" : "YYYY-MM-DD", "inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ" }, { "name" : "REMARK", "label" : "借阅事由", "width" : 200 }, { "name" : "CREATEBY_DISPLAY__", "label" : "借阅人", "width" : 200 }, { "name" : "APPLYSTATUS", "label" : "借阅状态", "width" : 200, "type" : "mapping", "map" : { "1" : "待审核", "2" : "已借阅", "3" : "已归还" } }, { "name" : "STATUS", "label" : "审批状态", "width" : 200, "type" : "mapping", "map" : { "1" : "未提交", "2" : "处理中", "3" : "通过", "4" : "未通过", "5" : "重新提交", "6" : "作废" } } ], "headerToolbar" : [ { "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/184f7b23-e45d-4dae-8a78-d1e8bd7b324c?format=amis", "static" : true, "api" : { "method" : "post", "url" : "/api/flow/DM_ARCHIVESBORROW_LOAD?__egtpl=184f7b23-e45d-4dae-8a78-d1e8bd7b324c", "data" : { "DM_ARCHIVESBORROW_ID" : "${DM_ARCHIVESBORROW_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/184f7b23-e45d-4dae-8a78-d1e8bd7b324c?format=amis", "api" : { "method" : "post", "url" : "/api/flow/DM_ARCHIVESBORROW_LOAD?__egtpl=184f7b23-e45d-4dae-8a78-d1e8bd7b324c", "data" : { "DM_ARCHIVESBORROW_ID" : "${DM_ARCHIVESBORROW_ID}" }, "responseData" : { "&" : "${result}" } }, "onEvent" : { "inited" : { "actions" : [ { "actionType" : "ajax", "api" : { "method" : "post", "url" : "/api/script/execute-template", "data" : { "seq" : 2, "item" : "${&}", "templateId" : "abe4ec54-2087-4b77-9f2c-629614ea927f" } }, "outputVar" : "scriptResult2" }, { "actionType" : "replayScriptCommands", "args" : { "commands" : "${event.data.scriptResult2.commands}" } } ] } } }, "actions" : [ { "type" : "button", "label" : "确认归还", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/DM_ARCHIVESBORROW_UPDATEIMPORT?__egtpl=184f7b23-e45d-4dae-8a78-d1e8bd7b324c", "close" : true }, { "type" : "button", "label" : "取消", "actionType" : "close" } ] } }, "pagination" ], "primaryField" : "DM_ARCHIVESBORROW_ID", "onEvent" : { "selectedChange" : { "actions" : [ { "actionType" : "ajax", "api" : { "method" : "post", "url" : "/api/script/execute-template", "data" : { "seq" : 1, "item" : "${event.data.selectedItems[0]}", "templateId" : "abe4ec54-2087-4b77-9f2c-629614ea927f" } }, "outputVar" : "scriptResult1" }, { "actionType" : "replayScriptCommands", "args" : { "commands" : "${event.data.scriptResult1.commands}" } } ] }, "inited" : { "actions" : [ { "actionType" : "ajax", "api" : { "method" : "post", "url" : "/api/script/execute-template", "data" : { "seq" : 2, "item" : "${&}", "templateId" : "abe4ec54-2087-4b77-9f2c-629614ea927f" } }, "outputVar" : "scriptResult2" }, { "actionType" : "replayScriptCommands", "args" : { "commands" : "${event.data.scriptResult2.commands}" } } ] } } } }