{ "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" : "(分)公司", "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" : "ORGIDLIST", "label" : "(分)公司", "hidden" : true, "type" : "picker", "clearable" : true, "multiple" : true, "overflowConfig" : { "displayPosition" : [ "select" ], "maxTagCount" : 1 }, "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" : "工程名称", "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" : "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_DISPLAY__", "label" : "(分)公司", "width" : 200 }, { "name" : "PROJECTID_DISPLAY__", "label" : "工程名称", "width" : 300 }, { "name" : "REPORTCONTENT", "label" : "施工方案名称", "width" : 200 }, { "name" : "LASTVERIFYDEPART", "label" : "最后审核部门", "width" : 100, "type" : "mapping", "map" : { "1" : "集团公司技术部", "2" : "集团公司总工程师" }, "toggled" : false }, { "name" : "PROOFCOUNT", "label" : "论证记录数", "width" : 100 }, { "name" : "ITEMDATE", "label" : "提交日期", "width" : 80, "type" : "date", "format" : "YYYY-MM-DD", "inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ" }, { "name" : "UPDATEBY_DISPLAY__", "label" : "修改人", "width" : 100 }, { "name" : "TYPE", "label" : "方案类型", "width" : 80, "type" : "mapping", "map" : { "0" : "质量类", "7" : "技术核定单", "2" : "安全类", "3" : "开工报告、管理人员名单", "4" : "施工许可证、安监、质监申报", "1" : "桩基、围护、幕墙类" } }, { "name" : "STATUS", "label" : "审批状态", "width" : 80, "type" : "mapping", "map" : { "1" : "未提交", "2" : "处理中", "3" : "通过", "4" : "未通过", "5" : "重新提交", "6" : "作废" } }, { "name" : "ITEMBRANCH", "label" : "项目部名称", "width" : 200, "toggled" : false }, { "name" : "ITEMMANAGER_DISPLAY__", "label" : "项目经理", "width" : 200, "toggled" : false }, { "name" : "DEPARTCONTENT", "label" : "分公司审核意见", "width" : 200, "toggled" : false }, { "name" : "DEPARTBRANCH", "label" : "分公司审核部门", "width" : 200, "toggled" : false }, { "name" : "DEPARTUSER_DISPLAY__", "label" : "分公司审核人", "width" : 200, "toggled" : false }, { "name" : "DEPARTDATE", "label" : "分公司审核日期", "width" : 200, "type" : "date", "format" : "YYYY-MM-DD", "inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ", "toggled" : false }, { "name" : "COMPANYCONTENT", "label" : "集团公司审核意见", "width" : 200, "toggled" : false }, { "name" : "COMPANYBRANCH", "label" : "集团公司审核部门", "width" : 200, "toggled" : false }, { "name" : "COMPANYUSER_DISPLAY__", "label" : "集团公司审核人", "width" : 200, "toggled" : false }, { "name" : "COMPANYDATE", "label" : "集团公司审核日期", "width" : 200, "type" : "date", "format" : "YYYY-MM-DD", "inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ", "toggled" : false }, { "name" : "ENGINEERCONTENT", "label" : "总工程师审核意见", "width" : 200, "toggled" : false }, { "name" : "ENGINEER_DISPLAY__", "label" : "总工程师", "width" : 200, "toggled" : false }, { "name" : "ENGINNERDATE", "label" : "总工程师审核日期", "width" : 200, "type" : "date", "format" : "YYYY-MM-DD", "inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ", "toggled" : false }, { "name" : "QUALITYDEPART", "label" : "质量审核部门", "width" : 200, "toggled" : false }, { "name" : "QUALITYDEPARTUSER_DISPLAY__", "label" : "质量审核人", "width" : 200, "toggled" : false }, { "name" : "QUALITYDEPARTDATE", "label" : "质量审核日期", "width" : 200, "type" : "date", "format" : "YYYY-MM-DD", "inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ", "toggled" : false }, { "name" : "SAFEDEPART", "label" : "安全审核部门", "width" : 200, "toggled" : false }, { "name" : "SAFEDEPARTUSER_DISPLAY__", "label" : "安全审核人", "width" : 200, "toggled" : false }, { "name" : "SAFEDEPARTDATE", "label" : "安全审核日期", "width" : 200, "type" : "date", "format" : "YYYY-MM-DD", "inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ", "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/bab03856-e624-4684-9f5f-129315707d4a?format=amis", "api" : { "method" : "get", "url" : "/api/form/PM_PUB_CONSTRUCTIONSCHEMEAPPROVAL/defaults?templateId=bab03856-e624-4684-9f5f-129315707d4a" } }, "actions" : [ { "type" : "button", "label" : "保存", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/PM_PUB_CONSTRUCTIONSCHEMEAPPROVAL_ADD?__egtpl=bab03856-e624-4684-9f5f-129315707d4a", "close" : true }, { "type" : "button", "label" : "保存并提交审批", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/PM_PUB_CONSTRUCTIONSCHEMEAPPROVAL_SAVE_AND_SUBMIT?__egtpl=bab03856-e624-4684-9f5f-129315707d4a", "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/bab03856-e624-4684-9f5f-129315707d4a?format=amis", "api" : { "method" : "post", "url" : "/api/flow/PM_PUB_CONSTRUCTIONSCHEMEAPPROVAL_LOAD?__egtpl=bab03856-e624-4684-9f5f-129315707d4a", "data" : { "PM_PUB_CONSTRUCTIONSCHEMEAPPROVAL_ID" : "${PM_PUB_CONSTRUCTIONSCHEMEAPPROVAL_ID}" }, "responseData" : { "&" : "${result}" } } }, "actions" : [ { "type" : "button", "label" : "保存", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/PM_PUB_CONSTRUCTIONSCHEMEAPPROVAL_UPDATE?__egtpl=bab03856-e624-4684-9f5f-129315707d4a", "close" : true }, { "type" : "button", "label" : "保存并提交审批", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/PM_PUB_CONSTRUCTIONSCHEMEAPPROVAL_SAVE_AND_SUBMIT?__egtpl=bab03856-e624-4684-9f5f-129315707d4a", "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:PM_PUB_CONSTRUCTIONSCHEMEAPPROVAL_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/724f2682-9cc0-449c-a206-813095c41f90?format=amis", "static" : true, "api" : { "method" : "post", "url" : "/api/flow/PM_PUB_CONSTRUCTIONSCHEMEAPPROVAL_LOAD?__egtpl=724f2682-9cc0-449c-a206-813095c41f90", "data" : { "PM_PUB_CONSTRUCTIONSCHEMEAPPROVAL_ID" : "${PM_PUB_CONSTRUCTIONSCHEMEAPPROVAL_ID}" }, "responseData" : { "&" : "${result}" } } } } }, { "type" : "button", "id" : "提交审批", "label" : "提交审批", "actionType" : "ajax", "api" : { "method" : "post", "url" : "/api/flow/PM_PUB_CONSTRUCTIONSCHEMEAPPROVAL_SUBMIT", "data" : { "PM_PUB_CONSTRUCTIONSCHEMEAPPROVAL_ID" : "${selectedItems[0].PM_PUB_CONSTRUCTIONSCHEMEAPPROVAL_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_CONSTRUCTIONSCHEMEAPPROVAL_ID" : "${selectedItems[0].PM_PUB_CONSTRUCTIONSCHEMEAPPROVAL_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" : { "PM_PUB_CONSTRUCTIONSCHEMEAPPROVAL_ID" : "${PM_PUB_CONSTRUCTIONSCHEMEAPPROVAL_ID}" }, "responseData" : { "&" : "${result}" } }, "onEvent" : { "inited" : { "actions" : [ { "actionType" : "ajax", "api" : { "method" : "post", "url" : "/api/script/execute-template", "data" : { "seq" : 3, "item" : "${&}", "templateId" : "87ed6b66-6c3f-45f2-a889-606710c3ebd3" } }, "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" : { "PM_PUB_CONSTRUCTIONSCHEMEAPPROVAL_ID" : "${PM_PUB_CONSTRUCTIONSCHEMEAPPROVAL_ID}" }, "responseData" : { "&" : "${result}" } }, "onEvent" : { "inited" : { "actions" : [ { "actionType" : "ajax", "api" : { "method" : "post", "url" : "/api/script/execute-template", "data" : { "seq" : 4, "item" : "${&}", "templateId" : "87ed6b66-6c3f-45f2-a889-606710c3ebd3" } }, "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" : { "PM_PUB_CONSTRUCTIONSCHEMEAPPROVAL_ID" : "${PM_PUB_CONSTRUCTIONSCHEMEAPPROVAL_ID}" }, "responseData" : { "&" : "${result}" } }, "onEvent" : { "inited" : { "actions" : [ { "actionType" : "ajax", "api" : { "method" : "post", "url" : "/api/script/execute-template", "data" : { "seq" : 5, "item" : "${&}", "templateId" : "87ed6b66-6c3f-45f2-a889-606710c3ebd3" } }, "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" : { "PM_PUB_CONSTRUCTIONSCHEMEAPPROVAL_ID" : "${selectedItems[0].PM_PUB_CONSTRUCTIONSCHEMEAPPROVAL_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].PM_PUB_CONSTRUCTIONSCHEMEAPPROVAL_ID}", "businessTable" : "PM_PUB_CONSTRUCTIONSCHEMEAPPROVAL", "readOnly" : true, "mode" : "read" } } ] } } }, "pagination" ], "primaryField" : "PM_PUB_CONSTRUCTIONSCHEMEAPPROVAL_ID", "onEvent" : { "selectedChange" : { "actions" : [ { "actionType" : "ajax", "api" : { "method" : "post", "url" : "/api/script/execute-template", "data" : { "seq" : 2, "item" : "${event.data.selectedItems[0]}", "templateId" : "87ed6b66-6c3f-45f2-a889-606710c3ebd3" } }, "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" : "87ed6b66-6c3f-45f2-a889-606710c3ebd3" } }, "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" : "87ed6b66-6c3f-45f2-a889-606710c3ebd3" } }, "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" : "87ed6b66-6c3f-45f2-a889-606710c3ebd3" } }, "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" : "87ed6b66-6c3f-45f2-a889-606710c3ebd3" } }, "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" : "87ed6b66-6c3f-45f2-a889-606710c3ebd3" } }, "outputVar" : "scriptResult6" }, { "actionType" : "replayScriptCommands", "args" : { "commands" : "${event.data.scriptResult6.commands}" } } ] } } } }