{ "type" : "page", "title" : "月报月完成量", "body" : { "type" : "crud", "api" : "/api/flow/PM_MREPORTCOLLECTIVITYCOST_SEARCH", "syncLocation" : false, "selectable" : true, "checkOnItemClick" : true, "filter" : { "title" : "查询", "body" : [ { "name" : "BUDGETUNITID", "label" : "预算单元", "hidden" : true, "type" : "picker", "clearable" : true, "source" : "/api/picker/6e4069c7-cf78-4f12-9781-4247b2de3ac3/list", "labelField" : "_label", "valueField" : "_id", "modalMode" : "dialog", "modalSize" : "lg", "pickerSchema" : { "mode" : "table", "headerToolbar" : [ { "type" : "search-box", "name" : "q", "placeholder" : "输入关键字搜索" } ], "footerToolbar" : [ "pagination" ] } }, { "name" : "MREPORTINTERVALID", "label" : "月报区间", "type" : "picker", "clearable" : true, "source" : "/api/picker/69ffe981-e3ba-427f-8018-0d052bf7d975/list", "labelField" : "_label", "valueField" : "_id", "modalMode" : "dialog", "modalSize" : "lg", "pickerSchema" : { "mode" : "table", "headerToolbar" : [ { "type" : "search-box", "name" : "q", "placeholder" : "输入关键字搜索" } ], "footerToolbar" : [ "pagination" ] } }, { "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}" } ] }, "columns" : [ { "name" : "PM_MREPORTCOLLECTIVITYCOST_ID", "label" : "主键", "width" : 200, "toggled" : false }, { "name" : "BUDGETUNITID_DISPLAY__", "label" : "预算单元", "width" : 200 }, { "name" : "MREPORTINTERVALID_DISPLAY__", "label" : "月报区间", "width" : 200 }, { "name" : "COLLECTIVITYCOST", "label" : "工程造价", "width" : 200 }, { "name" : "ISSUB", "label" : "是否全部分包", "width" : 50, "type" : "mapping", "map" : { "0" : "否", "1" : "是", "false" : "否", "true" : "是" } } ], "headerToolbar" : [ { "type" : "button", "id" : "专业分包", "label" : "专业分包", "actionType" : "dialog", "disabledOn" : "${!selectedItems || selectedItems.length === 0}", "dialog" : { "type" : "dialog", "title" : "专业分包", "size" : "lg", "data" : { "PM_MREPORTCOLLECTIVITYCOST_ID" : "${selectedItems[0].PM_MREPORTCOLLECTIVITYCOST_ID}" }, "body" : { "type" : "service", "schemaApi" : "get:/api/page/schema/a3b9aadf-a68f-4c3a-902c-fea968a5390b?format=amis" }, "actions" : [ { "type" : "button", "label" : "关闭", "actionType" : "close" } ] } }, "pagination" ], "primaryField" : "PM_MREPORTCOLLECTIVITYCOST_ID", "onEvent" : { "inited" : { "actions" : [ { "actionType" : "ajax", "api" : { "method" : "post", "url" : "/api/script/execute-template", "data" : { "seq" : 1, "item" : "${&}", "templateId" : "bca132d1-48c5-4b53-924b-9e61a68a7c4d" } }, "outputVar" : "scriptResult1" }, { "actionType" : "replayScriptCommands", "args" : { "commands" : "${event.data.scriptResult1.commands}" } } ] } } } }