{ "type" : "page", "title" : "企业证书管理台帐", "body" : { "type" : "crud", "api" : "/api/flow/OA_ENTERPRISECERTIFICATE_SEARCH", "syncLocation" : false, "selectable" : true, "checkOnItemClick" : true, "filter" : { "title" : "查询", "body" : [ { "name" : "NAME", "label" : "证书名称", "type" : "input-text" }, { "name" : "EC_TYPE", "label" : "证书类型", "type" : "select", "clearable" : true, "source" : "/api/picker/OA_EC_TYPE/list?perPage=500" }, { "name" : "LICENCEISSUINGDATE", "label" : "发证日期", "type" : "input-date-range" }, { "name" : "CARDORGID", "label" : "证书所属(分)公司", "type" : "picker", "clearable" : true, "source" : "/api/picker/1a998b23-371d-4ebb-911f-6465a56a6809/list", "labelField" : "_label", "valueField" : "_id", "modalMode" : "dialog", "modalSize" : "lg", "pickerSchema" : { "mode" : "table", "headerToolbar" : [ { "type" : "search-box", "name" : "q", "placeholder" : "输入关键字搜索" } ], "footerToolbar" : [ "pagination" ] } } ] }, "columns" : [ { "name" : "CARDORGID_DISPLAY__", "label" : "证书所属(分)公司", "width" : 200 }, { "name" : "NAME", "label" : "证书名称", "width" : 100 }, { "name" : "UNIT", "label" : "单位", "width" : 100, "type" : "mapping", "map" : { "1" : "原件", "2" : "正本", "3" : "副本", "4" : "中文", "5" : "英文" } }, { "name" : "SERIALNUMBER", "label" : "证书编号", "width" : 100 }, { "name" : "REGISTERNUMBER", "label" : "注册号", "width" : 100 }, { "name" : "EC_TYPE_DISPLAY__", "label" : "证书类型", "width" : 100 }, { "name" : "LICENCEISSUINGDATE", "label" : "发证日期", "width" : 100, "type" : "date", "format" : "YYYY-MM-DD", "inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ" }, { "name" : "INDATE", "label" : "有效期至", "width" : 100, "type" : "date", "format" : "YYYY-MM-DD", "inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ" }, { "name" : "LICENCEISSUINGAUTHORITY", "label" : "发证单位", "width" : 100 }, { "name" : "KEEPER_DISPLAY__", "label" : "保管人", "width" : 100 }, { "name" : "KEEPINGDEPARTMENT_DISPLAY__", "label" : "保管部门", "width" : 100 }, { "name" : "ISLEND", "label" : "是否借出", "width" : 80, "type" : "mapping", "map" : { "0" : "否", "1" : "是" } }, { "name" : "DOCUMENT", "label" : "附件", "width" : 50 }, { "name" : "REMARKS", "label" : "备注", "width" : 100, "toggled" : false }, { "name" : "OA_ENTERPRISECERTIFICATE_ID", "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/c28b1da3-318a-4fec-80d4-ace0f948cb70?format=amis", "api" : { "method" : "get", "url" : "/api/form/OA_ENTERPRISECERTIFICATE/defaults?templateId=c28b1da3-318a-4fec-80d4-ace0f948cb70" } }, "actions" : [ { "type" : "button", "label" : "保存", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/OA_ENTERPRISECERTIFICATE_ADD?__egtpl=c28b1da3-318a-4fec-80d4-ace0f948cb70", "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/c28b1da3-318a-4fec-80d4-ace0f948cb70?format=amis", "api" : { "method" : "post", "url" : "/api/flow/OA_ENTERPRISECERTIFICATE_LOAD?__egtpl=c28b1da3-318a-4fec-80d4-ace0f948cb70", "data" : { "OA_ENTERPRISECERTIFICATE_ID" : "${OA_ENTERPRISECERTIFICATE_ID}" }, "responseData" : { "&" : "${result}" } } }, "actions" : [ { "type" : "button", "label" : "保存", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/OA_ENTERPRISECERTIFICATE_UPDATE?__egtpl=c28b1da3-318a-4fec-80d4-ace0f948cb70", "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_ENTERPRISECERTIFICATE_DELETE", "data" : { "ids" : "${selectedItems|pick:OA_ENTERPRISECERTIFICATE_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/c28b1da3-318a-4fec-80d4-ace0f948cb70?format=amis", "static" : true, "api" : { "method" : "post", "url" : "/api/flow/OA_ENTERPRISECERTIFICATE_LOAD?__egtpl=c28b1da3-318a-4fec-80d4-ace0f948cb70", "data" : { "OA_ENTERPRISECERTIFICATE_ID" : "${OA_ENTERPRISECERTIFICATE_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/78b85a27-7b9e-45bc-b2a3-483ad07b7872?format=amis", "static" : true, "api" : { "method" : "post", "url" : "/api/flow/OA_ENTERPRISECERTIFICATE_LOAD?__egtpl=78b85a27-7b9e-45bc-b2a3-483ad07b7872", "data" : { "OA_ENTERPRISECERTIFICATE_ID" : "${OA_ENTERPRISECERTIFICATE_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/fa2622f3-a333-400e-a1c3-4ee3d151c604?format=amis", "static" : true, "api" : { "method" : "post", "url" : "/api/flow/OA_ENTERPRISECERTIFICATE_LOAD?__egtpl=fa2622f3-a333-400e-a1c3-4ee3d151c604", "data" : { "OA_ENTERPRISECERTIFICATE_ID" : "${OA_ENTERPRISECERTIFICATE_ID}" }, "responseData" : { "&" : "${result}" } }, "onEvent" : { "inited" : { "actions" : [ { "actionType" : "ajax", "api" : { "method" : "post", "url" : "/api/script/execute-template", "data" : { "seq" : 1, "item" : "${&}", "templateId" : "79cbbe9b-3543-41b7-b463-fd6326592362" } }, "outputVar" : "scriptResult1" }, { "actionType" : "replayScriptCommands", "args" : { "commands" : "${event.data.scriptResult1.commands}" } } ] } } } } }, "pagination" ], "primaryField" : "OA_ENTERPRISECERTIFICATE_ID", "onEvent" : { "inited" : { "actions" : [ { "actionType" : "ajax", "api" : { "method" : "post", "url" : "/api/script/execute-template", "data" : { "seq" : 1, "item" : "${&}", "templateId" : "79cbbe9b-3543-41b7-b463-fd6326592362" } }, "outputVar" : "scriptResult1" }, { "actionType" : "replayScriptCommands", "args" : { "commands" : "${event.data.scriptResult1.commands}" } } ] } } } }