{ "type" : "page", "title" : "投标关系(所有)", "body" : { "type" : "crud", "api" : "/api/flow/PM_BIDRELATIONSHIP_SEARCH", "syncLocation" : false, "selectable" : true, "checkOnItemClick" : true, "filter" : { "title" : "查询", "body" : [ { "name" : "PROJECTID", "label" : "项目ID", "hidden" : true, "type" : "select", "clearable" : true, "searchable" : true, "source" : "/api/picker//list?q=${term}&page=${page}&perPage=${perPage}" }, { "name" : "COMPANYID", "label" : "单位ID", "hidden" : true, "type" : "select", "clearable" : true, "searchable" : true, "source" : "/api/picker//list?q=${term}&page=${page}&perPage=${perPage}" }, { "name" : "BIDQUOTATION", "label" : "投标报价 (万元)", "hidden" : true, "type" : "input-text" }, { "name" : "PRIZE", "label" : "奖项", "hidden" : true, "type" : "input-text" }, { "name" : "TOTALSCORE", "label" : "总分", "hidden" : true, "type" : "input-text" }, { "name" : "QUOTATIONSCORE", "label" : "报价得分", "hidden" : true, "type" : "input-text" }, { "name" : "TECHNICALMARKSCORE", "label" : "技术标得分", "hidden" : true, "type" : "input-text" }, { "name" : "REASONABLEDEDUCTION", "label" : "合理性扣分", "hidden" : true, "type" : "input-text" }, { "name" : "AWARDPOINTS", "label" : "奖项分", "hidden" : true, "type" : "input-text" }, { "name" : "SORT", "label" : "排序", "hidden" : true, "type" : "input-number", "precision" : 0, "step" : 1 } ] }, "columns" : [ { "name" : "PM_BIDRELATIONSHIP_ID", "label" : "主键", "width" : 200, "toggled" : false }, { "name" : "PROJECTID_DISPLAY__", "label" : "项目名称", "width" : 500 }, { "name" : "COMPANYID_DISPLAY__", "label" : "单位名称", "width" : 350 }, { "name" : "BIDQUOTATION", "label" : "投标报价 (万元)", "width" : 100 }, { "name" : "PRIZE", "label" : "奖项", "width" : 80 }, { "name" : "TOTALSCORE", "label" : "总分", "width" : 80 }, { "name" : "QUOTATIONSCORE", "label" : "报价得分", "width" : 80 }, { "name" : "TECHNICALMARKSCORE", "label" : "技术标得分", "width" : 80 }, { "name" : "REASONABLEDEDUCTION", "label" : "合理性扣分", "width" : 80 }, { "name" : "AWARDPOINTS", "label" : "奖项分", "width" : 80 }, { "name" : "SORT", "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/f4078175-a20f-4c9f-8e98-8e19d5d5b618?format=amis", "api" : { "method" : "get", "url" : "/api/form/PM_BIDRELATIONSHIP/defaults?templateId=f4078175-a20f-4c9f-8e98-8e19d5d5b618" } }, "actions" : [ { "type" : "button", "label" : "保存", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/PM_BIDRELATIONSHIP_ADD?__egtpl=f4078175-a20f-4c9f-8e98-8e19d5d5b618", "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/f4078175-a20f-4c9f-8e98-8e19d5d5b618?format=amis", "api" : { "method" : "post", "url" : "/api/flow/PM_BIDRELATIONSHIP_LOAD?__egtpl=f4078175-a20f-4c9f-8e98-8e19d5d5b618", "data" : { "PM_BIDRELATIONSHIP_ID" : "${PM_BIDRELATIONSHIP_ID}" }, "responseData" : { "&" : "${result}" } } }, "actions" : [ { "type" : "button", "label" : "保存", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/PM_BIDRELATIONSHIP_UPDATE?__egtpl=f4078175-a20f-4c9f-8e98-8e19d5d5b618", "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_BIDRELATIONSHIP_ID" : "${selectedItems[0].PM_BIDRELATIONSHIP_ID}" }, "body" : { "type" : "service", "schemaApi" : "get:/api/page/schema/0bdeae44-1dfe-430f-a30c-6a1fc620b059?format=amis" }, "actions" : [ { "type" : "button", "label" : "关闭", "actionType" : "close" } ] } }, "pagination" ], "primaryField" : "PM_BIDRELATIONSHIP_ID", "onEvent" : { "inited" : { "actions" : [ { "actionType" : "ajax", "api" : { "method" : "post", "url" : "/api/script/execute-template", "data" : { "seq" : 1, "item" : "${&}", "templateId" : "0670aaf9-a045-450d-9ebc-06f3ac36ca19" } }, "outputVar" : "scriptResult1" }, { "actionType" : "replayScriptCommands", "args" : { "commands" : "${event.data.scriptResult1.commands}" } } ] } } } }