{ "type" : "page", "title" : "工程信息维护", "body" : { "type" : "crud", "api" : "/api/flow/PM_PROJECT_SEARCH", "syncLocation" : false, "selectable" : true, "checkOnItemClick" : true, "filter" : { "title" : "查询", "body" : [ { "name" : "PROJECTNAME", "label" : "工程名称", "type" : "input-text" }, { "name" : "BUILDCOMPANY", "label" : "建设单位", "type" : "picker", "clearable" : true, "source" : "/api/picker/93a5fb27-fdf1-41fb-9ce5-cec44826a6fa/list", "labelField" : "_label", "valueField" : "_id", "modalMode" : "dialog", "modalSize" : "lg", "pickerSchema" : { "mode" : "table", "headerToolbar" : [ { "type" : "search-box", "name" : "q", "placeholder" : "输入关键字搜索" } ], "footerToolbar" : [ "pagination" ] } }, { "name" : "PROPERTY", "label" : "工程性质", "type" : "select", "clearable" : true, "source" : "/api/poc/dict/PM_PROJECT_PROPERTY" }, { "name" : "CATEGORY", "label" : "工程类别", "type" : "select", "clearable" : true, "source" : "/api/poc/dict/PM_PROJECT_CATEGORY" }, { "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" : "PROJECTSTAGE", "label" : "工程阶段", "type" : "select", "clearable" : true, "source" : "/api/poc/dict/PM_PROJECT_PROJECTSTAGE" }, { "name" : "TIMEOFCOMPLETION", "label" : "竣工日期", "type" : "input-date-range" }, { "name" : "CREATETIME", "label" : "登记日期", "type" : "input-date-range" }, { "name" : "MANAGEMENTMODE", "label" : "经营模式", "type" : "select", "clearable" : true, "source" : "/api/poc/dict/PM_ManagementMode" }, { "name" : "ISPARSUB", "label" : "有无分包", "type" : "select", "clearable" : true, "source" : "/api/poc/dict/HAVE_NO" } ] }, "columns" : [ { "name" : "PM_PROJECT_ID", "label" : "主键", "width" : 200, "toggled" : false }, { "name" : "PROJECTNAME", "label" : "工程名称", "width" : 200 }, { "name" : "BUILDCOMPANY_DISPLAY__", "label" : "建设单位", "width" : 100 }, { "name" : "PROPERTY", "label" : "工程专业", "width" : 50, "type" : "mapping", "map" : { "1" : "土建", "2" : "装饰", "3" : "安装", "4" : "市政", "5" : "园林绿化", "6" : "古建筑", "7" : "钢结构" } }, { "name" : "CATEGORY", "label" : "工程类别", "width" : 50, "type" : "mapping", "map" : { "1" : "Ⅰ类工程", "2" : "Ⅱ类工程", "3" : "Ⅲ类工程" } }, { "name" : "ACREAGE", "label" : "建筑面积(m2)", "width" : 60 }, { "name" : "TOTALPRICE", "label" : "工程造价(元)", "width" : 80 }, { "name" : "DEPARTID_DISPLAY__", "label" : "项目部", "width" : 200, "toggled" : false }, { "name" : "AREA", "label" : "地区分布", "width" : 45, "type" : "mapping", "map" : { "1" : "苏州市", "2" : "省内", "3" : "省外" } }, { "name" : "CREATETIME", "label" : "登记日期", "width" : 60, "type" : "date", "format" : "YYYY-MM-DD", "inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ" }, { "name" : "PROJECTSTAGE", "label" : "工程阶段", "width" : 60, "type" : "mapping", "map" : { "3" : "报名已申请", "-15" : "未入围", "-100" : "投标终止", "-10" : "入围", "-1" : "未中标", "5" : "招标文件已评审", "6" : "投标文件已评审", "7" : "投标登记", "8" : "中标", "9" : "合同洽谈", "10" : "合同实施", "15" : "工程终止", "20" : "主体完工", "50" : "工程完成", "70" : "项目已送审", "80" : "项目退场", "100" : "工程竣工", "120" : "保修到期" } }, { "name" : "TIMEOFCOMPLETION", "label" : "竣工日期", "width" : 60, "type" : "date", "format" : "YYYY-MM-DD", "inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ" }, { "name" : "PROJECTCODE", "label" : "工程编码", "width" : 200, "toggled" : false }, { "name" : "ADDRESS", "label" : "工程地址", "width" : 200, "toggled" : false }, { "name" : "TYPE", "label" : "工程类型", "width" : 200, "type" : "mapping", "map" : { "1" : "总包工程", "2" : "专业分包", "3" : "零星工程", "4" : "工程设计" }, "toggled" : false }, { "name" : "INVITEBIDS_TYPE", "label" : "招标形式", "width" : 80, "type" : "mapping", "map" : { "1" : "公开招标", "2" : "邀请招标", "3" : "议标" }, "toggled" : false }, { "name" : "ISSHARE", "label" : "项目是否共享", "width" : 200, "type" : "mapping", "map" : { "0" : "否", "1" : "是", "false" : "否", "true" : "是" }, "toggled" : false }, { "name" : "PREDICTSTARTTIME", "label" : "预计开工日期", "width" : 200, "toggled" : false }, { "name" : "STRUCTURE", "label" : "结构", "width" : 200, "toggled" : false }, { "name" : "NUMBER", "label" : "层次", "width" : 200, "toggled" : false }, { "name" : "PREDICTINVEST", "label" : "预计投资(元)", "width" : 200, "toggled" : false }, { "name" : "EVOLVE", "label" : "进展", "width" : 200, "toggled" : false }, { "name" : "BIDTIME", "label" : "投标报名日期", "width" : 200, "type" : "datetime", "format" : "YYYY-MM-DD HH:mm", "inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ", "toggled" : false }, { "name" : "SIGNUPENDTIME", "label" : "内部报名截止日期", "width" : 200, "type" : "datetime", "format" : "YYYY-MM-DD HH:mm", "inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ", "toggled" : false }, { "name" : "OPPONENTS", "label" : "潜在竞争对手", "width" : 200, "toggled" : false }, { "name" : "MANAGEMENTMODE", "label" : "经营模式", "width" : 70, "type" : "mapping", "map" : { "1" : "直营", "2" : "全费用承包", "3" : "直营过渡项目", "4" : "直营部分分包" } }, { "name" : "ISPARSUB", "label" : "有无分包", "width" : 35 }, { "name" : "FILIALE_DISPLAY__", "label" : "(分)公司", "width" : 80 } ], "headerToolbar" : [ { "type" : "button", "id" : "添加", "label" : "添加", "level" : "primary", "actionType" : "dialog", "dialog" : { "type" : "dialog", "title" : "添加", "size" : "lg", "body" : { "type" : "service", "schemaApi" : "get:/api/page/schema/c1cfafcd-111a-4de6-a683-7fafab0d794b?format=amis", "api" : { "method" : "get", "url" : "/api/form/PM_PROJECT/defaults?templateId=c1cfafcd-111a-4de6-a683-7fafab0d794b" } }, "actions" : [ { "type" : "button", "label" : "保存", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/PM_PROJECT_ADD_NOTNEEDSSUBMIT?__egtpl=c1cfafcd-111a-4de6-a683-7fafab0d794b", "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/c1cfafcd-111a-4de6-a683-7fafab0d794b?format=amis", "api" : { "method" : "post", "url" : "/api/flow/PM_PROJECT_LOAD?__egtpl=c1cfafcd-111a-4de6-a683-7fafab0d794b", "data" : { "PM_PROJECT_ID" : "${PM_PROJECT_ID}" }, "responseData" : { "&" : "${result}" } }, "onEvent" : { "inited" : { "actions" : [ { "actionType" : "ajax", "api" : { "method" : "post", "url" : "/api/script/execute-template", "data" : { "seq" : 4, "item" : "${&}", "templateId" : "8fbf5298-4588-42e9-ab52-698fc9b380d3" } }, "outputVar" : "scriptResult4" }, { "actionType" : "replayScriptCommands", "args" : { "commands" : "${event.data.scriptResult4.commands}" } } ] } } }, "actions" : [ { "type" : "button", "label" : "保存", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/PM_PROJECT_UPDATE?__egtpl=c1cfafcd-111a-4de6-a683-7fafab0d794b", "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_PROJECT_DELETE", "data" : { "ids" : "${selectedItems|pick:PM_PROJECT_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/1ada38ff-9e1b-4008-925e-cd129a7ed505?format=amis", "static" : true, "api" : { "method" : "post", "url" : "/api/flow/PM_PROJECT_LOAD?__egtpl=1ada38ff-9e1b-4008-925e-cd129a7ed505", "data" : { "PM_PROJECT_ID" : "${PM_PROJECT_ID}" }, "responseData" : { "&" : "${result}" } } } } }, { "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/546df21e-d9ce-4c8e-a73b-d6e3c9fc0651?format=amis", "api" : { "method" : "post", "url" : "/api/flow/PM_PROJECT_LOAD_SUBPROJECT?__egtpl=546df21e-d9ce-4c8e-a73b-d6e3c9fc0651", "data" : { "PM_PROJECT_ID" : "${PM_PROJECT_ID}" }, "responseData" : { "&" : "${result}" } } }, "actions" : [ { "type" : "button", "label" : "保存", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/PM_PROJECT_SAVE_SUBPROJECT?__egtpl=546df21e-d9ce-4c8e-a73b-d6e3c9fc0651", "close" : true }, { "type" : "button", "label" : "取消", "actionType" : "close" } ] } }, { "type" : "button", "id" : "项目退场", "label" : "项目退场", "actionType" : "ajax", "disabled" : true, "confirmText" : "确认要项目退场吗?", "api" : { "method" : "post", "url" : "/api/flow/PM_PROJECT_UPDATE_PROJECTSTAGEEXIT", "data" : { "PM_PROJECT_ID" : "${selectedItems[0].PM_PROJECT_ID}" } } }, { "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/455a6978-bd39-42dd-a507-c2b6bbdef22b?format=amis", "api" : { "method" : "post", "url" : "/api/flow/PM_PROJECT_LOAD?__egtpl=455a6978-bd39-42dd-a507-c2b6bbdef22b", "data" : { "PM_PROJECT_ID" : "${PM_PROJECT_ID}" }, "responseData" : { "&" : "${result}" } }, "onEvent" : { "inited" : { "actions" : [ { "actionType" : "ajax", "api" : { "method" : "post", "url" : "/api/script/execute-template", "data" : { "seq" : 7, "item" : "${&}", "templateId" : "8fbf5298-4588-42e9-ab52-698fc9b380d3" } }, "outputVar" : "scriptResult7" }, { "actionType" : "replayScriptCommands", "args" : { "commands" : "${event.data.scriptResult7.commands}" } } ] } } }, "actions" : [ { "type" : "button", "label" : "保存", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/PM_PROJECT_UPDATE_PROJECTSTAGEISCOMPLETED?__egtpl=455a6978-bd39-42dd-a507-c2b6bbdef22b", "close" : true }, { "type" : "button", "label" : "取消", "actionType" : "close" } ] } }, { "type" : "button", "id" : "取消竣工", "label" : "取消竣工", "actionType" : "ajax", "disabled" : true, "confirmText" : "确认要删除此记录吗?", "api" : { "method" : "post", "url" : "/api/flow/PM_PROJECT_UPDATE_CANCELCOMP", "data" : { "PM_PROJECT_ID" : "${selectedItems[0].PM_PROJECT_ID}" } } }, { "type" : "button", "id" : "查看单位工程", "label" : "查看单位工程", "actionType" : "dialog", "disabledOn" : "${!selectedItems || selectedItems.length === 0}", "dialog" : { "type" : "dialog", "title" : "单位工程", "size" : "lg", "data" : { "PM_PROJECT_ID" : "${selectedItems[0].PM_PROJECT_ID}" }, "body" : { "type" : "service", "schemaApi" : "get:/api/page/schema/edd5004a-77b7-4dda-9161-8b88a7308aaa?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" : { "PM_PROJECT_ID" : "${selectedItems[0].PM_PROJECT_ID}" }, "body" : { "type" : "service", "schemaApi" : "get:/api/page/schema/1773a449-1c89-425c-b574-c922bb031a84?format=amis" }, "actions" : [ { "type" : "button", "label" : "关闭", "actionType" : "close" } ] } }, "pagination" ], "primaryField" : "PM_PROJECT_ID", "onEvent" : { "selectedChange" : { "actions" : [ { "actionType" : "disabled", "componentId" : "项目退场" }, { "actionType" : "disabled", "componentId" : "取消竣工" }, { "actionType" : "ajax", "api" : { "method" : "post", "url" : "/api/script/execute-template", "data" : { "seq" : 2, "item" : "${event.data.selectedItems[0]}", "templateId" : "8fbf5298-4588-42e9-ab52-698fc9b380d3" } }, "outputVar" : "scriptResult2" }, { "actionType" : "replayScriptCommands", "args" : { "commands" : "${event.data.scriptResult2.commands}" } } ] }, "inited" : { "actions" : [ { "actionType" : "ajax", "api" : { "method" : "post", "url" : "/api/script/execute-template", "data" : { "seq" : 4, "item" : "${&}", "templateId" : "8fbf5298-4588-42e9-ab52-698fc9b380d3" } }, "outputVar" : "scriptResult4" }, { "actionType" : "replayScriptCommands", "args" : { "commands" : "${event.data.scriptResult4.commands}" } }, { "actionType" : "ajax", "api" : { "method" : "post", "url" : "/api/script/execute-template", "data" : { "seq" : 7, "item" : "${&}", "templateId" : "8fbf5298-4588-42e9-ab52-698fc9b380d3" } }, "outputVar" : "scriptResult7" }, { "actionType" : "replayScriptCommands", "args" : { "commands" : "${event.data.scriptResult7.commands}" } }, { "actionType" : "ajax", "api" : { "method" : "post", "url" : "/api/script/execute-template", "data" : { "seq" : 3, "item" : "${&}", "templateId" : "8fbf5298-4588-42e9-ab52-698fc9b380d3" } }, "outputVar" : "scriptResult3" }, { "actionType" : "replayScriptCommands", "args" : { "commands" : "${event.data.scriptResult3.commands}" } }, { "actionType" : "ajax", "api" : { "method" : "post", "url" : "/api/script/execute-template", "data" : { "seq" : 6, "item" : "${&}", "templateId" : "8fbf5298-4588-42e9-ab52-698fc9b380d3" } }, "outputVar" : "scriptResult6" }, { "actionType" : "replayScriptCommands", "args" : { "commands" : "${event.data.scriptResult6.commands}" } } ] } } } }