{ "type" : "page", "title" : "分包单位安全考核-公司", "body" : { "type" : "crud", "api" : "/api/flow/PM_PUB_SAFETYASSESSMENT_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" : "ORGID", "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" : "SUPPLIERID", "label" : "分包单位名称", "type" : "picker", "clearable" : true, "source" : "/api/picker/1e44957d-45a4-4f2a-8148-014955f444e6/list", "labelField" : "_label", "valueField" : "_id", "modalMode" : "dialog", "modalSize" : "lg", "pickerSchema" : { "mode" : "table", "headerToolbar" : [ { "type" : "search-box", "name" : "q", "placeholder" : "输入关键字搜索" } ], "footerToolbar" : [ "pagination" ] } }, { "name" : "LICENSENUMBER", "label" : "安全生产许可证号", "hidden" : true, "type" : "input-text" }, { "name" : "ASSESSMENT", "label" : "项目部评定情况", "hidden" : true, "type" : "select", "clearable" : true, "source" : "/api/poc/dict/PM_safety_ assessment" }, { "name" : "STATUS", "label" : "审批状态", "type" : "select", "clearable" : true, "source" : "/api/poc/dict/WFSTATUS" }, { "name" : "TOTRIALDATE", "label" : "送审日期", "hidden" : true, "type" : "input-date-range" }, { "name" : "IDENTIFICATIONRESULTS", "label" : "鉴定结果", "hidden" : true, "type" : "select", "clearable" : true, "source" : "/api/poc/dict/PM_safety_identificationResults" }, { "name" : "ASSESSDATE", "label" : "考核日期", "hidden" : true, "type" : "input-date-range" } ] }, "columns" : [ { "name" : "PM_PUB_SAFETYASSESSMENT_ID", "label" : "主键", "width" : 200, "toggled" : false }, { "name" : "SUPPLIERID_DISPLAY__", "label" : "分包单位名称", "width" : 200 }, { "name" : "ORGID_DISPLAY__", "label" : "考核单位", "width" : 200 }, { "name" : "PROJECTID_DISPLAY__", "label" : "工程名称", "width" : 200 }, { "name" : "ASSESSMENT", "label" : "项目部评定情况", "width" : 100, "type" : "mapping", "map" : { "1" : "优良", "2" : "合格", "3" : "不合格" } }, { "name" : "IDENTIFICATIONRESULTS", "label" : "鉴定结果", "width" : 100, "type" : "mapping", "map" : { "1" : "推荐使用", "2" : "不同意使用" } }, { "name" : "LICENSENUMBER", "label" : "安全生产许可证号", "width" : 150, "toggled" : false }, { "name" : "SUBPROJECTCONTENTS", "label" : "分包工程内容", "width" : 200, "toggled" : false }, { "name" : "TOTRIALDATE", "label" : "送审日期", "width" : 80, "type" : "date", "format" : "YYYY-MM-DD", "inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ" }, { "name" : "ASSESSDATE", "label" : "考核日期", "width" : 200, "type" : "date", "format" : "YYYY-MM-DD", "inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ", "toggled" : false }, { "name" : "MANAGERCHARGER_DISPLAY__", "label" : "生产经理(主管)", "width" : 200, "toggled" : false }, { "name" : "PRODUCTMANAGERID", "label" : "生产经理", "width" : 200, "toggled" : false }, { "name" : "ASSESSMENTOR", "label" : "项目部评定人员", "width" : 200, "toggled" : false }, { "name" : "STATUS", "label" : "审批状态", "width" : 80, "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/24e605b7-afbe-4165-8c1d-72919bc1ef7b?format=amis", "static" : true, "api" : { "method" : "post", "url" : "/api/flow/PM_PUB_SAFETYASSESSMENT_LOAD?__egtpl=24e605b7-afbe-4165-8c1d-72919bc1ef7b", "data" : { "PM_PUB_SAFETYASSESSMENT_ID" : "${PM_PUB_SAFETYASSESSMENT_ID}" }, "responseData" : { "&" : "${result}" } } } } }, { "type" : "button", "id" : "打印", "label" : "打印", "actionType" : "dialog", "disabledOn" : "${!selectedItems || selectedItems.length === 0}", "dialog" : { "type" : "dialog", "title" : "分包单位安全考核打印", "size" : "lg", "data" : { "PM_PUB_SAFETYASSESSMENT_ID" : "${selectedItems[0].PM_PUB_SAFETYASSESSMENT_ID}" }, "body" : { "type" : "service", "schemaApi" : "get:/api/page/schema/1f7e3fa2-e0be-473e-8db3-2e91b8680695?format=amis" }, "actions" : [ { "type" : "button", "label" : "关闭", "actionType" : "close" } ] } }, "pagination" ], "primaryField" : "PM_PUB_SAFETYASSESSMENT_ID", "onEvent" : { "inited" : { "actions" : [ { "actionType" : "ajax", "api" : { "method" : "post", "url" : "/api/script/execute-template", "data" : { "seq" : 1, "item" : "${&}", "templateId" : "6c1fa61e-0b5b-4d37-8d76-3624e6412dd3" } }, "outputVar" : "scriptResult1" }, { "actionType" : "replayScriptCommands", "args" : { "commands" : "${event.data.scriptResult1.commands}" } } ] } } } }