{ "type" : "page", "title" : "价格对比", "body" : { "type" : "crud", "api" : "/api/flow/PM_JICQUOTATION_COMPARE_SEARCH", "syncLocation" : false, "selectable" : true, "checkOnItemClick" : true, "filter" : { "title" : "查询", "body" : [ { "name" : "MATERIALNAME", "label" : "材料名称", "type" : "input-text" }, { "name" : "PROVINCE", "label" : "省", "type" : "input-text" }, { "name" : "CITY", "label" : "市", "type" : "input-text" } ] }, "columns" : [ { "name" : "COMPAREKEY", "label" : "对比主键", "width" : 200, "toggled" : false }, { "name" : "MATERIALNAME", "label" : "材料名称", "width" : 180 }, { "name" : "MATERIALSPEC", "label" : "规格型号", "width" : 160 }, { "name" : "UNIT", "label" : "单位", "width" : 80 }, { "name" : "MINPRICE", "label" : "最低价", "width" : 100 }, { "name" : "MAXPRICE", "label" : "最高价", "width" : 100 }, { "name" : "AVGPRICE", "label" : "平均价", "width" : 100 }, { "name" : "SUPPLIERCOUNT", "label" : "供应商数", "width" : 100 }, { "name" : "DIFFPRICE", "label" : "价差", "width" : 100 }, { "name" : "DIFFRATE", "label" : "价差比例", "width" : 100, "toggled" : false } ], "headerToolbar" : [ { "type" : "button", "id" : "查看趋势", "label" : "查看趋势", "actionType" : "dialog", "disabledOn" : "${!selectedItems || selectedItems.length === 0}", "dialog" : { "type" : "dialog", "title" : "查看趋势", "size" : "lg", "data" : { "PM_JICQUOTATION_COMPARE_ID" : "${selectedItems[0].PM_JICQUOTATION_COMPARE_ID}" }, "body" : { "type" : "service", "schemaApi" : "get:/api/page/schema/c967c4c8-75d7-4632-9c14-ca0cdc6b151a?format=amis" }, "actions" : [ { "type" : "button", "label" : "关闭", "actionType" : "close" } ] } }, "pagination" ], "primaryField" : "PM_JICQUOTATION_COMPARE_ID", "onEvent" : { "inited" : { "actions" : [ { "actionType" : "ajax", "api" : { "method" : "post", "url" : "/api/script/execute-template", "data" : { "seq" : 1, "item" : "${&}", "templateId" : "6f3efbb4-46a0-4206-af2d-d017700d1916" } }, "outputVar" : "scriptResult1" }, { "actionType" : "replayScriptCommands", "args" : { "commands" : "${event.data.scriptResult1.commands}" } } ] } } } }