{ "type" : "page", "title" : "安全隐患整改通知单-项目部", "body" : { "type" : "crud", "api" : "/api/flow/PM_PUB_SAFETYRECTIFICATION_SEARCH_TWO", "syncLocation" : false, "selectable" : true, "checkOnItemClick" : true, "filter" : { "title" : "查询", "body" : [ { "name" : "PROJECTNAMEID", "label" : "工程名称", "type" : "static", "tpl" : "${PROJECTNAMEID_DISPLAY__ ? PROJECTNAMEID_DISPLAY__ : (PROJECTNAME ? PROJECTNAME : PROJECTNAMEID)}", "value" : "${currentProject}" }, { "name" : "STATUS", "label" : "审批状态", "type" : "select", "clearable" : true, "source" : "/api/poc/dict/WFSTATUS" }, { "name" : "RECORDNO", "label" : "编号", "type" : "input-text" }, { "name" : "SECURITYRISK", "label" : "存在安全隐患", "type" : "input-text" }, { "name" : "FILIALE", "label" : "(分)公司", "hidden" : true, "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" : "PROSUBCONID", "label" : "受查劳务队组", "hidden" : true, "type" : "picker", "clearable" : true, "source" : "/api/picker/587eb790-330f-4cae-a547-4839756de943/list", "labelField" : "_label", "valueField" : "_id", "modalMode" : "dialog", "modalSize" : "lg", "pickerSchema" : { "mode" : "table", "headerToolbar" : [ { "type" : "search-box", "name" : "q", "placeholder" : "输入关键字搜索" } ], "footerToolbar" : [ "pagination" ] } }, { "name" : "INSPECTIONUNIT", "label" : "检查单位", "hidden" : true, "type" : "input-text" }, { "name" : "ISSUER", "label" : "签发人", "hidden" : true, "type" : "input-text" }, { "name" : "VERIFICATIONDEPART", "label" : "验证部门", "hidden" : true, "type" : "select", "clearable" : true, "source" : "/api/poc/dict/PM_safety_verificationDepart" }, { "name" : "RECTIFICATIONREQUESTS", "label" : "整改要求", "hidden" : true, "type" : "select", "clearable" : true, "source" : "/api/poc/dict/PM_safety_rectificationRequests" }, { "name" : "RECTIFICATIONLEADER", "label" : "整改负责人", "hidden" : true, "type" : "picker", "clearable" : true, "source" : "/api/picker/76d2f950-ef40-4eff-89ec-98ad9a4976b9/list", "labelField" : "_label", "valueField" : "_id", "modalMode" : "dialog", "modalSize" : "lg", "pickerSchema" : { "mode" : "table", "headerToolbar" : [ { "type" : "search-box", "name" : "q", "placeholder" : "输入关键字搜索" } ], "footerToolbar" : [ "pagination" ] }, "placeholder" : "请点击右侧的图标" }, { "name" : "INSPECTIONDATE", "label" : "检查日期", "hidden" : true, "type" : "input-date" }, { "name" : "ISSUEDATE", "label" : "签发日期", "hidden" : true, "type" : "input-date" }, { "name" : "REVIEWREPORT", "label" : "复查报告", "hidden" : true, "type" : "input-text" }, { "name" : "REVIEWSITUATION", "label" : "复查情况", "hidden" : true, "type" : "input-text" }, { "name" : "REVIEWER", "label" : "复查人", "hidden" : true, "type" : "picker", "clearable" : true, "source" : "/api/picker/76d2f950-ef40-4eff-89ec-98ad9a4976b9/list", "labelField" : "_label", "valueField" : "_id", "modalMode" : "dialog", "modalSize" : "lg", "pickerSchema" : { "mode" : "table", "headerToolbar" : [ { "type" : "search-box", "name" : "q", "placeholder" : "输入关键字搜索" } ], "footerToolbar" : [ "pagination" ] }, "placeholder" : "请点击右侧的图标" }, { "name" : "ISSAFE", "label" : "整改级别", "hidden" : true, "type" : "select", "clearable" : true, "source" : "/api/poc/dict/PM_safety_isSafe" } ] }, "columns" : [ { "name" : "PM_PUB_SAFETYRECTIFICATION_ID", "label" : "主键", "width" : 200, "toggled" : false }, { "name" : "ISSAFE", "label" : "检查级别", "width" : 80, "type" : "mapping", "map" : { "0" : "项目部", "1" : "公司" } }, { "name" : "RECORDNO", "label" : "编号", "width" : 150 }, { "name" : "SECURITYRISK", "label" : "存在安全隐患", "width" : 200 }, { "name" : "RECTIFICATIONLEADER_DISPLAY__", "label" : "整改负责人", "width" : 80 }, { "name" : "ISREVIEW", "label" : "是否已复查", "width" : 80, "type" : "mapping", "map" : { "0" : "否", "1" : "是", "false" : "否", "true" : "是" } }, { "name" : "STATUS", "label" : "审批状态", "width" : 80, "type" : "mapping", "map" : { "1" : "未提交", "2" : "处理中", "3" : "通过", "4" : "未通过", "5" : "重新提交", "6" : "作废" } }, { "name" : "UPDATEBY_DISPLAY__", "label" : "修改人", "width" : 80 }, { "name" : "FILIALE_DISPLAY__", "label" : "(分)公司", "width" : 150, "toggled" : false }, { "name" : "PROJECTID_DISPLAY__", "label" : "受查工程项目", "width" : 200, "toggled" : false }, { "name" : "PROSUBCONID_DISPLAY__", "label" : "受查劳务队组", "width" : 200, "toggled" : false }, { "name" : "INSPECTIONUNIT", "label" : "检查单位", "width" : 200, "toggled" : false }, { "name" : "ISSUER_DISPLAY__", "label" : "签发人", "width" : 100, "toggled" : false }, { "name" : "ISSUEDATE", "label" : "签发日期", "width" : 80, "type" : "date", "format" : "YYYY-MM-DD", "inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ", "toggled" : false }, { "name" : "VERIFICATIONDEPART", "label" : "验证部门", "width" : 200, "type" : "mapping", "map" : { "1" : "集团公司", "0" : "项目部" }, "toggled" : false }, { "name" : "RECTIFICATIONREQUESTS", "label" : "整改要求", "width" : 200, "type" : "mapping", "map" : { "1" : "停工整改", "2" : "限期整改" }, "toggled" : false }, { "name" : "INSPECTIONDATE", "label" : "检查日期", "width" : 200, "type" : "date", "format" : "YYYY-MM-DD", "inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ", "toggled" : false }, { "name" : "REVIEWREPORT", "label" : "复查报告", "width" : 200, "toggled" : false }, { "name" : "REVIEWSITUATION", "label" : "复查情况", "width" : 200, "toggled" : false }, { "name" : "REVIEWER_DISPLAY__", "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/8adaf985-e329-4b8a-a7a0-f40a21db6f1a?format=amis", "api" : { "method" : "get", "url" : "/api/form/PM_PUB_SAFETYRECTIFICATION/defaults?templateId=8adaf985-e329-4b8a-a7a0-f40a21db6f1a" } }, "actions" : [ { "type" : "button", "label" : "保存", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/PM_PUB_SAFETYRECTIFICATION_ADD?__egtpl=8adaf985-e329-4b8a-a7a0-f40a21db6f1a", "close" : true }, { "type" : "button", "label" : "保存并提交审批", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/PM_PUB_SAFETYRECTIFICATION_SAVE_AND_SUBMIT?__egtpl=8adaf985-e329-4b8a-a7a0-f40a21db6f1a", "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/8adaf985-e329-4b8a-a7a0-f40a21db6f1a?format=amis", "api" : { "method" : "post", "url" : "/api/flow/PM_PUB_SAFETYRECTIFICATION_LOAD?__egtpl=8adaf985-e329-4b8a-a7a0-f40a21db6f1a", "data" : { "PM_PUB_SAFETYRECTIFICATION_ID" : "${PM_PUB_SAFETYRECTIFICATION_ID}" }, "responseData" : { "&" : "${result}" } } }, "actions" : [ { "type" : "button", "label" : "保存", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/PM_PUB_SAFETYRECTIFICATION_UPDATE?__egtpl=8adaf985-e329-4b8a-a7a0-f40a21db6f1a", "close" : true }, { "type" : "button", "label" : "保存并提交审批", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/PM_PUB_SAFETYRECTIFICATION_SAVE_AND_SUBMIT?__egtpl=8adaf985-e329-4b8a-a7a0-f40a21db6f1a", "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_SAFETYRECTIFICATION_DELETE", "data" : { "ids" : "${selectedItems|pick:PM_PUB_SAFETYRECTIFICATION_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/ad66ac80-e32f-443b-ae89-b5e0e1ce76fc?format=amis", "static" : true, "api" : { "method" : "post", "url" : "/api/flow/PM_PUB_SAFETYRECTIFICATION_LOAD?__egtpl=ad66ac80-e32f-443b-ae89-b5e0e1ce76fc", "data" : { "PM_PUB_SAFETYRECTIFICATION_ID" : "${PM_PUB_SAFETYRECTIFICATION_ID}" }, "responseData" : { "&" : "${result}" } } } } }, { "type" : "button", "id" : "提交审批", "label" : "提交审批", "actionType" : "ajax", "disabled" : true, "api" : { "method" : "post", "url" : "/api/flow/PM_PUB_SAFETYRECTIFICATION_SUBMIT", "data" : { "PM_PUB_SAFETYRECTIFICATION_ID" : "${selectedItems[0].PM_PUB_SAFETYRECTIFICATION_ID}" } } }, { "type" : "button", "id" : "打印", "label" : "打印", "actionType" : "dialog", "disabledOn" : "${!selectedItems || selectedItems.length === 0}", "dialog" : { "type" : "dialog", "title" : "安全隐患整改通知单打印", "size" : "lg", "data" : { "PM_PUB_SAFETYRECTIFICATION_ID" : "${selectedItems[0].PM_PUB_SAFETYRECTIFICATION_ID}" }, "body" : { "type" : "service", "schemaApi" : "get:/api/page/schema/9834aecd-0c6c-4cdd-97fb-4cf628107fbf?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_SAFETYRECTIFICATION_ID}", "businessTable" : "PM_PUB_SAFETYRECTIFICATION", "readOnly" : true, "mode" : "read" } } ] } } }, "pagination" ], "primaryField" : "PM_PUB_SAFETYRECTIFICATION_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" : "e3bb82b6-6806-41b5-b266-2899d8cee1aa" } }, "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" : "e3bb82b6-6806-41b5-b266-2899d8cee1aa" } }, "outputVar" : "scriptResult2" }, { "actionType" : "replayScriptCommands", "args" : { "commands" : "${event.data.scriptResult2.commands}" } } ] } } } }