{ "type" : "page", "title" : "专业分包", "body" : { "type" : "crud", "api" : "/api/flow/PM_MREPORTLIST_SEARCH", "syncLocation" : false, "selectable" : true, "checkOnItemClick" : true, "filter" : { "title" : "查询", "body" : [ { "name" : "PM_PROJECT_ID", "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}" }, { "name" : "PM_UNITLIST_ID", "label" : "单位", "type" : "picker", "clearable" : true, "source" : "/api/picker/24200cdd-d99b-4778-a2fb-c4653cda684e/list", "labelField" : "_label", "valueField" : "_id", "modalMode" : "dialog", "modalSize" : "lg", "pickerSchema" : { "mode" : "table", "headerToolbar" : [ { "type" : "search-box", "name" : "q", "placeholder" : "输入关键字搜索" } ], "footerToolbar" : [ "pagination" ] } }, { "name" : "MREPORTBUDGETUNITID", "label" : "预算单元", "hidden" : true, "type" : "select", "clearable" : true, "searchable" : true, "source" : "/api/picker//list?q=${term}&page=${page}&perPage=${perPage}" }, { "name" : "LISTNO", "label" : "清单编码", "type" : "input-text" }, { "name" : "LISTNAME", "label" : "清单名称", "type" : "input-text" }, { "name" : "LISTTRAIT", "label" : "项目特征", "type" : "input-text" } ] }, "columns" : [ { "name" : "PM_MREPORTLIST_ID", "label" : "主键", "width" : 200, "toggled" : false }, { "name" : "PM_PROJECT_ID_DISPLAY__", "label" : "工程名称", "width" : 200, "toggled" : false }, { "name" : "MREPORTBUDGETUNITID_DISPLAY__", "label" : "预算单元", "width" : 200, "toggled" : false }, { "name" : "LISTNO", "label" : "清单编码", "width" : 200 }, { "name" : "LISTNAME", "label" : "清单名称", "width" : 200 }, { "name" : "LISTTRAIT", "label" : "项目特征", "width" : 200, "toggled" : false }, { "name" : "PM_UNITLIST_ID_DISPLAY__", "label" : "单位", "width" : 200 }, { "name" : "ENGINEERINGQUANTITY", "label" : "工程量", "width" : 200 }, { "name" : "COMPREHENSIVEUNITPRICE", "label" : "单价", "width" : 200 }, { "name" : "LABOURCOSTS", "label" : "单价组成-人工费", "width" : 200, "toggled" : false }, { "name" : "MATERIALCOSTS", "label" : "单价组成-材料费", "width" : 200, "toggled" : false }, { "name" : "MACHINERYCOSTS", "label" : "单价组成-机械费", "width" : 200, "toggled" : false }, { "name" : "MANAGEMENTEXPENSE", "label" : "单价组成-管理费", "width" : 200, "toggled" : false }, { "name" : "DROFIT", "label" : "单价组成-利润", "width" : 200, "toggled" : false }, { "name" : "COMPREHENSIVEVALENCE", "label" : "合价", "width" : 200 }, { "name" : "DAYS", "label" : "总工日", "width" : 200, "toggled" : false }, { "name" : "ISLIST", "label" : "是否清单", "width" : 200, "type" : "mapping", "map" : { "0" : "否", "1" : "是", "false" : "否", "true" : "是" }, "toggled" : false }, { "name" : "CALCRULES", "label" : "计算规则", "width" : 200, "toggled" : false }, { "name" : "QUOTA_LIST", "label" : "定额列表", "width" : 200, "toggled" : false }, { "name" : "ISEXIST", "label" : "专业分包", "width" : 200, "type" : "mapping", "map" : { "1" : "有", "0" : "无" } } ], "headerToolbar" : [ { "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/59b184df-c047-43be-af27-483c3f902fde?format=amis", "api" : { "method" : "post", "url" : "/api/flow/PM_MREPORTLIST_LOAD?__egtpl=59b184df-c047-43be-af27-483c3f902fde", "data" : { "PM_MREPORTLIST_ID" : "${PM_MREPORTLIST_ID}" }, "responseData" : { "&" : "${result}" } } }, "actions" : [ { "type" : "button", "label" : "保存", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/PM_MREPORTLIST_UPDATE?__egtpl=59b184df-c047-43be-af27-483c3f902fde", "close" : true }, { "type" : "button", "label" : "取消", "actionType" : "close" } ] } }, { "type" : "button", "id" : "取消分包", "label" : "取消分包", "actionType" : "ajax", "disabled" : true, "confirmText" : "确认要取消分包吗?", "api" : { "method" : "post", "url" : "/api/flow/PM_MREPORTLIST_DELETE", "data" : { "PM_MREPORTLIST_ID" : "${selectedItems[0].PM_MREPORTLIST_ID}" } } }, { "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/59b184df-c047-43be-af27-483c3f902fde?format=amis", "static" : true, "api" : { "method" : "post", "url" : "/api/flow/PM_MREPORTLIST_LOAD?__egtpl=59b184df-c047-43be-af27-483c3f902fde", "data" : { "PM_MREPORTLIST_ID" : "${PM_MREPORTLIST_ID}" }, "responseData" : { "&" : "${result}" } } } } }, "pagination" ], "primaryField" : "PM_MREPORTLIST_ID", "onEvent" : { "selectedChange" : { "actions" : [ { "actionType" : "disabled", "componentId" : "取消分包" }, { "actionType" : "ajax", "api" : { "method" : "post", "url" : "/api/script/execute-template", "data" : { "seq" : 1, "item" : "${event.data.selectedItems[0]}", "templateId" : "a3b9aadf-a68f-4c3a-902c-fea968a5390b" } }, "outputVar" : "scriptResult1" }, { "actionType" : "replayScriptCommands", "args" : { "commands" : "${event.data.scriptResult1.commands}" } } ] } } } }