{ "type" : "page", "title" : "创优目标", "body" : { "type" : "crud", "api" : "/api/flow/PM_EXCELLENCEPROJECTINFORMATION_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" : "UNITPROJECTNAME", "label" : "单位工程名称", "type" : "input-text" }, { "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" : "BANK", "label" : "工程质量创优等级", "type" : "select", "clearable" : true, "source" : "/api/poc/dict/PROJECT_bank" }, { "name" : "NEWTECHNOLOGYPROJECTLEVEL", "label" : "新技术应用示范项目", "type" : "select", "clearable" : true, "source" : "/api/poc/dict/PROJECT_newTechnologyProjectLevel" }, { "name" : "GREENBUILDLEVEL", "label" : "绿色建筑", "type" : "select", "clearable" : true, "source" : "/api/poc/dict/PROJECT_newTechnologyProjectLevel" }, { "name" : "DATASTATUS", "label" : "审批状态", "type" : "select", "clearable" : true, "source" : "/api/poc/dict/WFSTATUS" }, { "name" : "MAINID", "label" : "项目部质量目标", "hidden" : true, "type" : "picker", "clearable" : true, "source" : "/api/picker/d2a01b24-9941-4e7c-a96e-74fbb54d2e79/list", "labelField" : "_label", "valueField" : "_id", "modalMode" : "dialog", "modalSize" : "lg", "pickerSchema" : { "mode" : "table", "headerToolbar" : [ { "type" : "search-box", "name" : "q", "placeholder" : "输入关键字搜索" } ], "footerToolbar" : [ "pagination" ] } }, { "name" : "QUALITYSTANDARD", "label" : "合同质量标准", "hidden" : true, "type" : "input-text" }, { "name" : "FUJIA", "label" : "工程质量创优等级", "hidden" : true, "type" : "input-text" }, { "name" : "NEWTECHNOLOGYPROJECT", "label" : "新技术应用示范项目", "hidden" : true, "type" : "input-text" }, { "name" : "GREENBUILD", "label" : "绿色建筑", "hidden" : true, "type" : "input-text" }, { "name" : "OTHERS", "label" : "其他", "hidden" : true, "type" : "input-text" } ] }, "columns" : [ { "name" : "PM_EXCELLENCEPROJECTINFORMATION_ID", "label" : "主键", "width" : 200, "toggled" : false }, { "name" : "FILIALE_DISPLAY__", "label" : "(分)公司", "width" : 150 }, { "name" : "MAINID_DISPLAY__", "label" : "单项工程名称", "width" : 220 }, { "name" : "QUALITYSTANDARD", "label" : "合同质量标准", "width" : 100 }, { "name" : "UNITPROJECTID_DISPLAY__", "label" : "单位工程名称", "width" : 220 }, { "name" : "BANK", "label" : "工程质量创优等级", "width" : 120, "type" : "mapping", "map" : { "0" : "市优", "1" : "省优", "2" : "国优" } }, { "name" : "NEWTECHNOLOGYPROJECTLEVEL", "label" : "新技术应用示范项目", "width" : 120, "type" : "mapping", "map" : { "0" : "省级", "1" : "国家级" } }, { "name" : "GREENBUILDLEVEL", "label" : "绿色建筑", "width" : 80, "type" : "mapping", "map" : { "0" : "省级", "1" : "国家级" } }, { "name" : "DATASTATUS", "label" : "审批状态", "width" : 80, "type" : "mapping", "map" : { "1" : "未提交", "2" : "处理中", "3" : "通过", "4" : "未通过", "5" : "重新提交", "6" : "作废" } }, { "name" : "FUJIA", "label" : "工程质量创优等级", "width" : 200, "toggled" : false }, { "name" : "NEWTECHNOLOGYPROJECT", "label" : "新技术应用示范项目", "width" : 200, "toggled" : false }, { "name" : "GREENBUILD", "label" : "绿色建筑", "width" : 200, "toggled" : false }, { "name" : "OTHERS", "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/2999b8e9-c8ea-4e94-9d34-2e93eafac179?format=amis", "static" : true, "api" : { "method" : "post", "url" : "/api/flow/PM_EXCELLENCEPROJECTINFORMATION_LOAD_MAININFO?__egtpl=2999b8e9-c8ea-4e94-9d34-2e93eafac179", "data" : { "PM_EXCELLENCEPROJECTINFORMATION_ID" : "${PM_EXCELLENCEPROJECTINFORMATION_ID}" }, "responseData" : { "&" : "${result}" } }, "onEvent" : { "inited" : { "actions" : [ { "actionType" : "ajax", "api" : { "method" : "post", "url" : "/api/script/execute-template", "data" : { "seq" : 1, "item" : "${&}", "templateId" : "99930d79-bb49-47d7-9a40-3e9f275e53de" } }, "outputVar" : "scriptResult1" }, { "actionType" : "replayScriptCommands", "args" : { "commands" : "${event.data.scriptResult1.commands}" } } ] } } } } }, "pagination" ], "primaryField" : "PM_EXCELLENCEPROJECTINFORMATION_ID", "onEvent" : { "inited" : { "actions" : [ { "actionType" : "ajax", "api" : { "method" : "post", "url" : "/api/script/execute-template", "data" : { "seq" : 1, "item" : "${&}", "templateId" : "99930d79-bb49-47d7-9a40-3e9f275e53de" } }, "outputVar" : "scriptResult1" }, { "actionType" : "replayScriptCommands", "args" : { "commands" : "${event.data.scriptResult1.commands}" } } ] } } } }