{ "type" : "page", "title" : "评标结果公示", "body" : { "type" : "crud", "api" : "/api/flow/PM_PUBLICOFBID_SEARCH", "syncLocation" : false, "selectable" : true, "checkOnItemClick" : true, "filter" : { "title" : "查询", "body" : [ { "name" : "URL", "label" : "详情", "hidden" : true, "type" : "input-text" }, { "name" : "PROJECTNAME", "label" : "项目名称", "type" : "input-text" }, { "name" : "CONSTRUCTIONUNIT", "label" : "建设单位", "type" : "input-text" }, { "name" : "AFFILIATEDAREA", "label" : "所属地区", "type" : "input-text" }, { "name" : "TYPEOFBIDDING", "label" : "招标类型", "type" : "input-text" }, { "name" : "BIDMONEY", "label" : "投标报价(万元)", "type" : "input-number", "precision" : 2 }, { "name" : "TO", "label" : "至", "type" : "input-number", "precision" : 2 }, { "name" : "BIDCOMPANY", "label" : "中标单位", "type" : "picker", "clearable" : true, "source" : "/api/picker/6edd25ae-3c88-4905-8024-62c1da445097/list", "labelField" : "_label", "valueField" : "_id", "modalMode" : "dialog", "modalSize" : "lg", "pickerSchema" : { "mode" : "table", "headerToolbar" : [ { "type" : "search-box", "name" : "q", "placeholder" : "输入关键字搜索" } ], "footerToolbar" : [ "pagination" ] } }, { "name" : "RELEASEBEGINDATE", "label" : "发布起日期", "type" : "input-date-range" }, { "name" : "RELEASEENDDATE", "label" : "发布止日期", "type" : "input-date-range" } ] }, "columns" : [ { "name" : "PM_PUBLICOFBID_ID", "label" : "主键", "width" : 200, "toggled" : false }, { "name" : "URL", "label" : "详情", "width" : 200, "toggled" : false }, { "name" : "PROJECTNAME", "label" : "项目名称", "width" : 500 }, { "name" : "CONSTRUCTIONUNIT", "label" : "建设单位", "width" : 300 }, { "name" : "AFFILIATEDAREA", "label" : "所属地区", "width" : 100 }, { "name" : "TYPEOFBIDDING", "label" : "招标类型", "width" : 100 }, { "name" : "BIDCOMPANY_DISPLAY__", "label" : "中标单位", "width" : 300 }, { "name" : "BIDMONEY", "label" : "投标报价(万元)", "width" : 90 }, { "name" : "RELEASEBEGINDATE", "label" : "发布起日期", "width" : 100, "type" : "date", "format" : "YYYY-MM-DD", "inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ" }, { "name" : "RELEASEENDDATE", "label" : "发布止日期", "width" : 100, "type" : "date", "format" : "YYYY-MM-DD", "inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ" }, { "name" : "ZBURL", "label" : "招标公告链接", "width" : 200, "toggled" : false } ], "headerToolbar" : [ { "type" : "button", "id" : "查看投标单位", "label" : "查看投标单位", "actionType" : "dialog", "disabledOn" : "${!selectedItems || selectedItems.length === 0}", "dialog" : { "type" : "dialog", "title" : "投标单位", "size" : "lg", "data" : { "PM_PUBLICOFBID_ID" : "${selectedItems[0].PM_PUBLICOFBID_ID}" }, "body" : { "type" : "service", "schemaApi" : "get:/api/page/schema/0670aaf9-a045-450d-9ebc-06f3ac36ca19?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/f7c48973-adb9-4162-8054-762fd1278e5a?format=amis", "api" : { "method" : "post", "url" : "/api/flow/PM_PUBLICOFBID_LOAD?__egtpl=f7c48973-adb9-4162-8054-762fd1278e5a", "data" : { "PM_PUBLICOFBID_ID" : "${PM_PUBLICOFBID_ID}" }, "responseData" : { "&" : "${result}" } } }, "actions" : [ { "type" : "button", "label" : "保存", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/PM_PUBLICOFBID_UPDATE?__egtpl=f7c48973-adb9-4162-8054-762fd1278e5a", "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]}", "__readonly" : true }, "body" : { "type" : "service", "schemaApi" : "get:/api/page/schema/f7c48973-adb9-4162-8054-762fd1278e5a?format=amis", "static" : true, "api" : { "method" : "post", "url" : "/api/flow/PM_PUBLICOFBID_LOAD?__egtpl=f7c48973-adb9-4162-8054-762fd1278e5a", "data" : { "PM_PUBLICOFBID_ID" : "${PM_PUBLICOFBID_ID}" }, "responseData" : { "&" : "${result}" } }, "onEvent" : { "inited" : { "actions" : [ { "actionType" : "ajax", "api" : { "method" : "post", "url" : "/api/script/execute-template", "data" : { "seq" : 2, "item" : "${&}", "templateId" : "7a7c0ce5-7925-4c32-8c66-a68cca93ef9b" } }, "outputVar" : "scriptResult2" }, { "actionType" : "replayScriptCommands", "args" : { "commands" : "${event.data.scriptResult2.commands}" } } ] } } } } }, "pagination" ], "primaryField" : "PM_PUBLICOFBID_ID", "onEvent" : { "inited" : { "actions" : [ { "actionType" : "ajax", "api" : { "method" : "post", "url" : "/api/script/execute-template", "data" : { "seq" : 1, "item" : "${&}", "templateId" : "7a7c0ce5-7925-4c32-8c66-a68cca93ef9b" } }, "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" : "7a7c0ce5-7925-4c32-8c66-a68cca93ef9b" } }, "outputVar" : "scriptResult2" }, { "actionType" : "replayScriptCommands", "args" : { "commands" : "${event.data.scriptResult2.commands}" } } ] } } } }