{ "type" : "page", "title" : "施工方案审批-工程师(加机械合同)-未用", "body" : { "type" : "crud", "api" : "/api/flow/PM_PUB_CONSTRUCTIONSCHEMEAPPROVAL_SEARCH", "syncLocation" : false, "selectable" : true, "checkOnItemClick" : true, "filter" : { "title" : "查询", "body" : [ { "name" : "PROJECTNAMEID", "label" : "工程名称", "hidden" : true, "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" : "(分)公司", "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" : "REPORTCONTENT", "label" : "施工方案名称", "type" : "input-text" }, { "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" : 200 }, { "name" : "PROJECTID", "label" : "工程名称", "width" : 300 }, { "name" : "REPORTCONTENT", "label" : "施工方案名称", "width" : 200 }, { "name" : "LASTVERIFYDEPART", "label" : "最后审核部门", "width" : 100, "toggled" : false }, { "name" : "PROOFCOUNT", "label" : "论证记录数", "width" : 100 }, { "name" : "ITEMDATE", "label" : "提交日期", "width" : 80 }, { "name" : "UPDATEBY", "label" : "修改人", "width" : 100 }, { "name" : "TYPE", "label" : "方案类型", "width" : 80 }, { "name" : "STATUS", "label" : "审批状态", "width" : 80 }, { "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" : "添加", "level" : "primary", "actionType" : "dialog", "dialog" : { "type" : "dialog", "title" : "添加", "size" : "lg", "body" : { "type" : "service", "schemaApi" : "get:/api/page/schema/ec1dfc11-a9e4-472c-92e5-3694c19c0105?format=amis", "api" : { "method" : "get", "url" : "/api/form/VIEW_PM_CUSTOM_SZWJ/defaults?templateId=ec1dfc11-a9e4-472c-92e5-3694c19c0105" } }, "actions" : [ { "type" : "button", "label" : "保存", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/PM_PUB_CONSTRUCTIONSCHEMEAPPROVAL_ADD?__egtpl=ec1dfc11-a9e4-472c-92e5-3694c19c0105", "close" : true }, { "type" : "button", "label" : "保存并提交审批", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/PM_PUB_CONSTRUCTIONSCHEMEAPPROVAL_SAVE_AND_SUBMIT?__egtpl=ec1dfc11-a9e4-472c-92e5-3694c19c0105", "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/ec1dfc11-a9e4-472c-92e5-3694c19c0105?format=amis", "api" : { "method" : "post", "url" : "/api/flow/PM_PUB_CONSTRUCTIONSCHEMEAPPROVAL_LOAD?__egtpl=ec1dfc11-a9e4-472c-92e5-3694c19c0105", "data" : { "VIEW_PM_CUSTOM_SZWJ_ID" : "${VIEW_PM_CUSTOM_SZWJ_ID}" }, "responseData" : { "&" : "${result}" } } }, "actions" : [ { "type" : "button", "label" : "保存", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/PM_PUB_CONSTRUCTIONSCHEMEAPPROVAL_UPDATE?__egtpl=ec1dfc11-a9e4-472c-92e5-3694c19c0105", "close" : true }, { "type" : "button", "label" : "保存并提交审批", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/PM_PUB_CONSTRUCTIONSCHEMEAPPROVAL_SAVE_AND_SUBMIT?__egtpl=ec1dfc11-a9e4-472c-92e5-3694c19c0105", "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_CONSTRUCTIONSCHEMEAPPROVAL_DELETE", "data" : { "ids" : "${selectedItems|pick:VIEW_PM_CUSTOM_SZWJ_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/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" : "ajax", "api" : { "method" : "post", "url" : "/api/flow/PM_PUB_CONSTRUCTIONSCHEMEAPPROVAL_SUBMIT", "data" : { "VIEW_PM_CUSTOM_SZWJ_ID" : "${selectedItems[0].VIEW_PM_CUSTOM_SZWJ_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" : { "VIEW_PM_CUSTOM_SZWJ_ID" : "${selectedItems[0].VIEW_PM_CUSTOM_SZWJ_ID}" }, "body" : { "type" : "service", "schemaApi" : "get:/api/page/schema/42400b4d-52f7-42eb-8559-9b5e835af445?format=amis" }, "actions" : [ { "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/446ed4cb-f0cd-483e-ab51-f894aa34f86c?format=amis", "api" : { "method" : "post", "url" : "/api/flow/PM_PUB_CONSTRUCTIONSCHEMEAPPROVAL_LOAD?__egtpl=446ed4cb-f0cd-483e-ab51-f894aa34f86c", "data" : { "VIEW_PM_CUSTOM_SZWJ_ID" : "${VIEW_PM_CUSTOM_SZWJ_ID}" }, "responseData" : { "&" : "${result}" } }, "onEvent" : { "inited" : { "actions" : [ { "actionType" : "ajax", "api" : { "method" : "post", "url" : "/api/script/execute-template", "data" : { "seq" : 3, "item" : "${&}", "templateId" : "faa6a5b4-71ec-4b98-90aa-c33dd14611cb" } }, "outputVar" : "scriptResult3" }, { "actionType" : "replayScriptCommands", "args" : { "commands" : "${event.data.scriptResult3.commands}" } } ] } } }, "actions" : [ { "type" : "button", "label" : "保存", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/PM_PUB_CONSTRUCTIONSCHEMEAPPROVAL_UPDATE_SCHEMEDANGERRELATION?__egtpl=446ed4cb-f0cd-483e-ab51-f894aa34f86c", "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/90e92ae0-8de0-4818-895f-b7f3f5f88ce1?format=amis", "api" : { "method" : "post", "url" : "/api/flow/PM_PUB_CONSTRUCTIONSCHEMEAPPROVAL_LOAD?__egtpl=90e92ae0-8de0-4818-895f-b7f3f5f88ce1", "data" : { "VIEW_PM_CUSTOM_SZWJ_ID" : "${VIEW_PM_CUSTOM_SZWJ_ID}" }, "responseData" : { "&" : "${result}" } }, "onEvent" : { "inited" : { "actions" : [ { "actionType" : "ajax", "api" : { "method" : "post", "url" : "/api/script/execute-template", "data" : { "seq" : 4, "item" : "${&}", "templateId" : "faa6a5b4-71ec-4b98-90aa-c33dd14611cb" } }, "outputVar" : "scriptResult4" }, { "actionType" : "replayScriptCommands", "args" : { "commands" : "${event.data.scriptResult4.commands}" } } ] } } }, "actions" : [ { "type" : "button", "label" : "保存", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/PM_PUB_CONSTRUCTIONSCHEMEAPPROVAL_UPDATE_SCHEMEPOLLUTIONRELATION?__egtpl=90e92ae0-8de0-4818-895f-b7f3f5f88ce1", "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/1c1ec4cc-723a-4b95-ab20-3dbebde046fe?format=amis", "api" : { "method" : "post", "url" : "/api/flow/PM_PUB_CONSTRUCTIONSCHEMEAPPROVAL_LOAD?__egtpl=1c1ec4cc-723a-4b95-ab20-3dbebde046fe", "data" : { "VIEW_PM_CUSTOM_SZWJ_ID" : "${VIEW_PM_CUSTOM_SZWJ_ID}" }, "responseData" : { "&" : "${result}" } }, "onEvent" : { "inited" : { "actions" : [ { "actionType" : "ajax", "api" : { "method" : "post", "url" : "/api/script/execute-template", "data" : { "seq" : 5, "item" : "${&}", "templateId" : "faa6a5b4-71ec-4b98-90aa-c33dd14611cb" } }, "outputVar" : "scriptResult5" }, { "actionType" : "replayScriptCommands", "args" : { "commands" : "${event.data.scriptResult5.commands}" } } ] } } }, "actions" : [ { "type" : "button", "label" : "保存", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/PM_PUB_CONSTRUCTIONSCHEMEAPPROVAL_UPDATE_SCHEMEBIGDANGERRELATION?__egtpl=1c1ec4cc-723a-4b95-ab20-3dbebde046fe", "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" : { "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" } ] } }, { "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].VIEW_PM_CUSTOM_SZWJ_ID}", "businessTable" : "VIEW_PM_CUSTOM_SZWJ", "readOnly" : true, "mode" : "read" } } ] } } }, "pagination" ], "primaryField" : "VIEW_PM_CUSTOM_SZWJ_ID", "onEvent" : { "selectedChange" : { "actions" : [ { "actionType" : "ajax", "api" : { "method" : "post", "url" : "/api/script/execute-template", "data" : { "seq" : 2, "item" : "${event.data.selectedItems[0]}", "templateId" : "faa6a5b4-71ec-4b98-90aa-c33dd14611cb" } }, "outputVar" : "scriptResult2" }, { "actionType" : "replayScriptCommands", "args" : { "commands" : "${event.data.scriptResult2.commands}" } } ] }, "inited" : { "actions" : [ { "actionType" : "ajax", "api" : { "method" : "post", "url" : "/api/script/execute-template", "data" : { "seq" : 1, "item" : "${&}", "templateId" : "faa6a5b4-71ec-4b98-90aa-c33dd14611cb" } }, "outputVar" : "scriptResult1" }, { "actionType" : "replayScriptCommands", "args" : { "commands" : "${event.data.scriptResult1.commands}" } }, { "actionType" : "ajax", "api" : { "method" : "post", "url" : "/api/script/execute-template", "data" : { "seq" : 3, "item" : "${&}", "templateId" : "faa6a5b4-71ec-4b98-90aa-c33dd14611cb" } }, "outputVar" : "scriptResult3" }, { "actionType" : "replayScriptCommands", "args" : { "commands" : "${event.data.scriptResult3.commands}" } }, { "actionType" : "ajax", "api" : { "method" : "post", "url" : "/api/script/execute-template", "data" : { "seq" : 4, "item" : "${&}", "templateId" : "faa6a5b4-71ec-4b98-90aa-c33dd14611cb" } }, "outputVar" : "scriptResult4" }, { "actionType" : "replayScriptCommands", "args" : { "commands" : "${event.data.scriptResult4.commands}" } }, { "actionType" : "ajax", "api" : { "method" : "post", "url" : "/api/script/execute-template", "data" : { "seq" : 5, "item" : "${&}", "templateId" : "faa6a5b4-71ec-4b98-90aa-c33dd14611cb" } }, "outputVar" : "scriptResult5" }, { "actionType" : "replayScriptCommands", "args" : { "commands" : "${event.data.scriptResult5.commands}" } }, { "actionType" : "ajax", "api" : { "method" : "post", "url" : "/api/script/execute-template", "data" : { "seq" : 6, "item" : "${&}", "templateId" : "faa6a5b4-71ec-4b98-90aa-c33dd14611cb" } }, "outputVar" : "scriptResult6" }, { "actionType" : "replayScriptCommands", "args" : { "commands" : "${event.data.scriptResult6.commands}" } } ] } } } }