{ "type" : "page", "title" : "施工方案审批(加机械合同)-未用", "body" : { "type" : "crud", "api" : "/api/flow/PM_PUB_CONSTRUCTIONSCHEMEAPPROVAL_SEARCH", "syncLocation" : false, "selectable" : true, "checkOnItemClick" : true, "filter" : { "title" : "查询", "body" : [ { "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" : "PROJECTNAMEID", "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" : "CATEGORY", "label" : "项目类别", "type" : "select", "clearable" : true, "source" : "/api/poc/dict/PM_PROJECT_CATEGORY" }, { "name" : "REPORTCONTENT", "label" : "施工方案名称", "type" : "input-text" }, { "name" : "ITEMDATE", "label" : "提交日期", "type" : "input-date-range" }, { "name" : "TYPE", "label" : "方案类型", "type" : "select", "clearable" : true, "source" : "/api/poc/dict/PM_constructionSchemeType" }, { "name" : "STATUS", "label" : "审批状态", "type" : "select", "clearable" : true, "source" : "/api/poc/dict/WFSTATUS" } ] }, "columns" : [ { "name" : "PM_PUB_CONSTRUCTIONSCHEMEAPPROVAL_ID", "label" : "主键", "width" : 200, "toggled" : false }, { "name" : "FILIALE", "label" : "(分)公司", "width" : 130 }, { "name" : "PROJECTID", "label" : "工程名称", "width" : 300 }, { "name" : "CATEGORY", "label" : "项目类别", "width" : 70 }, { "name" : "REPORTCONTENT", "label" : "施工方案名称", "width" : 180 }, { "name" : "LASTVERIFYDEPART", "label" : "最后审核部门", "width" : 100 }, { "name" : "ITEMDATE", "label" : "提交日期", "width" : 80 }, { "name" : "TYPE", "label" : "方案类型", "width" : 80 }, { "name" : "STATUS", "label" : "审批状态", "width" : 70 }, { "name" : "ENDTIME", "label" : "审批通过时间", "width" : 120 }, { "name" : "ITEMBRANCH", "label" : "项目部名称", "width" : 200, "toggled" : false }, { "name" : "ITEMMANAGER", "label" : "项目经理", "width" : 200, "toggled" : false }, { "name" : "DEPARTCONTENT", "label" : "分公司审核意见", "width" : 200, "toggled" : false }, { "name" : "DEPARTBRANCH", "label" : "分公司审核部门", "width" : 200, "toggled" : false }, { "name" : "DEPARTUSER", "label" : "分公司审核人", "width" : 200, "toggled" : false }, { "name" : "DEPARTDATE", "label" : "分公司审核日期", "width" : 200, "toggled" : false }, { "name" : "COMPANYCONTENT", "label" : "集团公司审核意见", "width" : 200, "toggled" : false }, { "name" : "COMPANYBRANCH", "label" : "集团公司审核部门", "width" : 200, "toggled" : false }, { "name" : "COMPANYUSER", "label" : "集团公司审核人", "width" : 200, "toggled" : false }, { "name" : "COMPANYDATE", "label" : "集团公司审核日期", "width" : 200, "toggled" : false }, { "name" : "ENGINEERCONTENT", "label" : "总工程师审核意见", "width" : 200, "toggled" : false }, { "name" : "ENGINEER", "label" : "总工程师", "width" : 200, "toggled" : false }, { "name" : "ENGINNERDATE", "label" : "总工程师审核日期", "width" : 200, "toggled" : false }, { "name" : "QUALITYDEPART", "label" : "质量审核部门", "width" : 200, "toggled" : false }, { "name" : "QUALITYDEPARTUSER", "label" : "质量审核人", "width" : 200, "toggled" : false }, { "name" : "QUALITYDEPARTDATE", "label" : "质量审核日期", "width" : 200, "toggled" : false }, { "name" : "SAFEDEPART", "label" : "安全审核部门", "width" : 200, "toggled" : false }, { "name" : "SAFEDEPARTUSER", "label" : "安全审核人", "width" : 200, "toggled" : false }, { "name" : "SAFEDEPARTDATE", "label" : "安全审核日期", "width" : 200, "toggled" : false } ], "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/8ff03376-449a-41e7-8b2e-52da631bd072?format=amis", "static" : true, "api" : { "method" : "post", "url" : "/api/flow/PM_PUB_CONSTRUCTIONSCHEMEAPPROVAL_LOAD?__egtpl=8ff03376-449a-41e7-8b2e-52da631bd072", "data" : { "VIEW_PM_CUSTOM_SZWJ_ID" : "${VIEW_PM_CUSTOM_SZWJ_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/25c550af-5fed-455b-90dc-908679d79b5d?format=amis", "static" : true, "api" : { "method" : "post", "url" : "/api/flow/PM_PUB_CONSTRUCTIONSCHEMEAPPROVAL_LOAD?__egtpl=25c550af-5fed-455b-90dc-908679d79b5d", "data" : { "VIEW_PM_CUSTOM_SZWJ_ID" : "${VIEW_PM_CUSTOM_SZWJ_ID}" }, "responseData" : { "&" : "${result}" } } } } }, { "type" : "button", "id" : "打印", "label" : "打印", "actionType" : "dialog", "disabledOn" : "${!selectedItems || selectedItems.length === 0}", "dialog" : { "type" : "dialog", "title" : "施工方案打印", "size" : "lg", "data" : { "VIEW_PM_CUSTOM_SZWJ_ID" : "${selectedItems[0].VIEW_PM_CUSTOM_SZWJ_ID}" }, "body" : { "type" : "service", "schemaApi" : "get:/api/page/schema/226a5d15-392d-4a0d-9718-0d1437f311ca?format=amis" }, "actions" : [ { "type" : "button", "label" : "关闭", "actionType" : "close" } ] } }, "pagination" ], "primaryField" : "VIEW_PM_CUSTOM_SZWJ_ID", "onEvent" : { "inited" : { "actions" : [ { "actionType" : "ajax", "api" : { "method" : "post", "url" : "/api/script/execute-template", "data" : { "seq" : 1, "item" : "${&}", "templateId" : "a679aa6f-12d2-4b6f-9e57-414a635bed0c" } }, "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" : "a679aa6f-12d2-4b6f-9e57-414a635bed0c" } }, "outputVar" : "scriptResult2" }, { "actionType" : "replayScriptCommands", "args" : { "commands" : "${event.data.scriptResult2.commands}" } } ] } } } }