{ "type" : "page", "title" : "季度检查整改", "body" : { "type" : "crud", "api" : "/api/flow/PM_PUB_CHECKQUARTER_QUARTER_SEARCH", "syncLocation" : false, "selectable" : true, "checkOnItemClick" : true, "filter" : { "title" : "查询", "body" : [ { "name" : "PROJECTID", "label" : "工程名称", "type" : "picker", "clearable" : true, "source" : "/api/picker/07eef963-fd17-42a5-997c-219f0ec18cff/list", "labelField" : "_label", "valueField" : "_id", "modalMode" : "dialog", "modalSize" : "lg", "pickerSchema" : { "mode" : "table", "headerToolbar" : [ { "type" : "search-box", "name" : "q", "placeholder" : "输入关键字搜索" } ], "footerToolbar" : [ "pagination" ] }, "value" : "${currentProject}" }, { "name" : "FILIALE", "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" ] } }, { "name" : "CHECKYEAR", "label" : "检查年份", "type" : "input-number", "precision" : 0, "step" : 1 }, { "name" : "CHECKMONTHQUARTERLY", "label" : "检查季度", "type" : "select", "clearable" : true }, { "name" : "STATUS", "label" : "审批状态", "type" : "select", "clearable" : true, "source" : "/api/poc/dict/WFSTATUS" } ] }, "columns" : [ { "name" : "PM_PUB_CHECKQUARTER_ID", "label" : "主键", "width" : 200, "toggled" : false }, { "name" : "FILIALE_DISPLAY__", "label" : "(分)公司", "width" : 180 }, { "name" : "PROJECTID_DISPLAY__", "label" : "工程名称", "width" : 380 }, { "name" : "CHECKYEARMOTN", "label" : "检查年月", "width" : 100, "toggled" : false }, { "name" : "CHECKYEARQUA", "label" : "检查年份季度", "width" : 120 }, { "name" : "AUTHENTICATIONDATE", "label" : "验证日期", "width" : 100, "type" : "date", "format" : "YYYY-MM-DD", "inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ" }, { "name" : "STATUS", "label" : "审批状态", "width" : 100, "type" : "mapping", "map" : { "1" : "未提交", "2" : "处理中", "3" : "通过", "4" : "未通过", "5" : "重新提交", "6" : "作废" } }, { "name" : "CHECKYEAR", "label" : "检查年分", "width" : 200, "toggled" : false }, { "name" : "CHECKMONTHQUARTERLY", "label" : "检查月份/季度", "width" : 200, "toggled" : false }, { "name" : "RECTIFYSTARTDATE", "label" : "整改开始日期", "width" : 200, "type" : "date", "format" : "YYYY-MM-DD", "inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ", "toggled" : false }, { "name" : "RECTIFYENDDATE", "label" : "整改结束日期", "width" : 200, "type" : "date", "format" : "YYYY-MM-DD", "inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ", "toggled" : false }, { "name" : "RECTIFICATION", "label" : "整改记录", "width" : 200, "toggled" : false }, { "name" : "RECTIFICATIONLEADER_DISPLAY__", "label" : "整改提交人", "width" : 200, "toggled" : false }, { "name" : "RECTIFICATIONDATE", "label" : "整改提交日期", "width" : 200, "type" : "date", "format" : "YYYY-MM-DD", "inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ", "toggled" : false }, { "name" : "AUTHENTICATIONRESULTS", "label" : "验证记录", "width" : 200, "toggled" : false }, { "name" : "AUTHENTICATIONTOR_DISPLAY__", "label" : "验证人", "width" : 200, "toggled" : false }, { "name" : "ISRECTIFICATION", "label" : "是否整改", "width" : 200, "type" : "mapping", "map" : { "0" : "否", "1" : "是", "false" : "否", "true" : "是" }, "toggled" : false }, { "name" : "AUTHENTICATIONPART", "label" : "验证部门", "width" : 200, "type" : "mapping", "map" : { "1" : "技术、质量类", "2" : "安全、文明类" }, "toggled" : false }, { "name" : "ANNALPERSON_DISPLAY__", "label" : "填单人", "width" : 200, "toggled" : false }, { "name" : "CHECKRECORDID_DISPLAY__", "label" : "检查记录编号", "width" : 200, "toggled" : false }, { "name" : "CHECKDATETYPE", "label" : "检查月份/季度", "width" : 200, "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/b82f1145-51d2-409a-aff6-b15545aec039?format=amis", "api" : { "method" : "get", "url" : "/api/form/PM_PUB_CHECKQUARTER/defaults?templateId=b82f1145-51d2-409a-aff6-b15545aec039" } }, "actions" : [ { "type" : "button", "label" : "保存", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/PM_PUB_CHECKQUARTER_QUARTER_ADD?__egtpl=b82f1145-51d2-409a-aff6-b15545aec039", "close" : true }, { "type" : "button", "label" : "保存并提交审批", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/PM_PUB_CHECKQUARTER_QUARTER_SAVE_AND_SUBMIT?__egtpl=b82f1145-51d2-409a-aff6-b15545aec039", "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/b82f1145-51d2-409a-aff6-b15545aec039?format=amis", "api" : { "method" : "post", "url" : "/api/flow/PM_PUB_CHECKQUARTER_LOAD?__egtpl=b82f1145-51d2-409a-aff6-b15545aec039", "data" : { "PM_PUB_CHECKQUARTER_ID" : "${PM_PUB_CHECKQUARTER_ID}" }, "responseData" : { "&" : "${result}" } }, "onEvent" : { "inited" : { "actions" : [ { "actionType" : "ajax", "api" : { "method" : "post", "url" : "/api/script/execute-template", "data" : { "seq" : 2, "item" : "${&}", "templateId" : "6c11d228-a9d7-43de-85e4-d56e43cad10c" } }, "outputVar" : "scriptResult2" }, { "actionType" : "replayScriptCommands", "args" : { "commands" : "${event.data.scriptResult2.commands}" } } ] } } }, "actions" : [ { "type" : "button", "label" : "保存", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/PM_PUB_CHECKQUARTER_QUARTER_UPDATE?__egtpl=b82f1145-51d2-409a-aff6-b15545aec039", "close" : true }, { "type" : "button", "label" : "保存并提交审批", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/PM_PUB_CHECKQUARTER_QUARTER_SAVE_AND_SUBMIT?__egtpl=b82f1145-51d2-409a-aff6-b15545aec039", "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/PM_PUB_CHECKQUARTER_QUARTER_DELETE", "data" : { "ids" : "${selectedItems|pick:PM_PUB_CHECKQUARTER_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/93239294-7134-44da-b70f-ae2091557b92?format=amis", "static" : true, "api" : { "method" : "post", "url" : "/api/flow/PM_PUB_CHECKQUARTER_LOAD?__egtpl=93239294-7134-44da-b70f-ae2091557b92", "data" : { "PM_PUB_CHECKQUARTER_ID" : "${PM_PUB_CHECKQUARTER_ID}" }, "responseData" : { "&" : "${result}" } } } } }, { "type" : "button", "id" : "提交审批", "label" : "提交审批", "actionType" : "ajax", "api" : { "method" : "post", "url" : "/api/flow/PM_PUB_CHECKQUARTER_QUARTER_SUBMIT", "data" : { "PM_PUB_CHECKQUARTER_ID" : "${selectedItems[0].PM_PUB_CHECKQUARTER_ID}" } }, "disabledOn" : "${!selectedItems || selectedItems.length === 0 || (selectedItems[0].STATUS && selectedItems[0].STATUS != 1 && selectedItems[0].STATUS != 4 && selectedItems[0].STATUS != 5)}" }, { "type" : "button", "id" : "打印", "label" : "打印", "actionType" : "dialog", "disabledOn" : "${!selectedItems || selectedItems.length === 0}", "dialog" : { "type" : "dialog", "title" : "季度检查整改打印", "size" : "lg", "data" : { "PM_PUB_CHECKQUARTER_ID" : "${selectedItems[0].PM_PUB_CHECKQUARTER_ID}" }, "body" : { "type" : "service", "schemaApi" : "get:/api/page/schema/2b6e5a4b-a3d6-4121-947e-cc534a658d78?format=amis" }, "actions" : [ { "type" : "button", "label" : "关闭", "actionType" : "close" } ] } }, { "type" : "button", "id" : "查看审批", "label" : "查看审批", "icon" : "fa fa-search", "disabledOn" : "${!selectedItems || selectedItems.length === 0}", "onEvent" : { "click" : { "actions" : [ { "actionType" : "openApprovalDrawer", "args" : { "taskName" : "审批详情", "processInstanceId" : "${selectedItems[0].processInstanceId || selectedItems[0].PROCESSINSTANCEID || ''}", "businessKey" : "${selectedItems[0].PM_PUB_CHECKQUARTER_ID}", "businessTable" : "PM_PUB_CHECKQUARTER", "readOnly" : true, "mode" : "read" } } ] } } }, "pagination" ], "primaryField" : "PM_PUB_CHECKQUARTER_ID", "onEvent" : { "inited" : { "actions" : [ { "actionType" : "ajax", "api" : { "method" : "post", "url" : "/api/script/execute-template", "data" : { "seq" : 1, "item" : "${&}", "templateId" : "6c11d228-a9d7-43de-85e4-d56e43cad10c" } }, "outputVar" : "scriptResult1" }, { "actionType" : "replayScriptCommands", "args" : { "commands" : "${event.data.scriptResult1.commands}" } }, { "actionType" : "ajax", "api" : { "method" : "post", "url" : "/api/script/execute-template", "data" : { "seq" : 2, "item" : "${&}", "templateId" : "6c11d228-a9d7-43de-85e4-d56e43cad10c" } }, "outputVar" : "scriptResult2" }, { "actionType" : "replayScriptCommands", "args" : { "commands" : "${event.data.scriptResult2.commands}" } }, { "actionType" : "ajax", "api" : { "method" : "post", "url" : "/api/script/execute-template", "data" : { "seq" : 4, "item" : "${&}", "templateId" : "6c11d228-a9d7-43de-85e4-d56e43cad10c" } }, "outputVar" : "scriptResult4" }, { "actionType" : "replayScriptCommands", "args" : { "commands" : "${event.data.scriptResult4.commands}" } } ] } } } }