{ "type" : "page", "title" : "项目部未关联专业分包", "body" : { "type" : "crud", "api" : "/api/flow/VIEW_PM_NOTRELATIONSUBPACKAGE_SEARCH", "syncLocation" : false, "selectable" : true, "checkOnItemClick" : true, "filter" : { "title" : "查询", "body" : [ { "name" : "SUBPACKAGEPLANID", "label" : "工作内容", "type" : "picker", "clearable" : true, "source" : "/api/picker/aba9812f-7281-4665-9918-608a29960b01/list", "labelField" : "_label", "valueField" : "_id", "modalMode" : "dialog", "modalSize" : "lg", "pickerSchema" : { "mode" : "table", "headerToolbar" : [ { "type" : "search-box", "name" : "q", "placeholder" : "输入关键字搜索" } ], "footerToolbar" : [ "pagination" ] } } ] }, "columns" : [ { "name" : "VIEW_PM_NOTRELATIONSUBPACKAGE_ID", "label" : "主键", "width" : 200, "toggled" : false }, { "name" : "PROJECTID_DISPLAY__", "label" : "工程名称", "width" : 320 }, { "name" : "WORKCONTENT", "label" : "工作内容", "width" : 360 }, { "name" : "SUBPACKAGEMONEY", "label" : "金额(元)", "width" : 120 }, { "name" : "SUBPACKAGEPLANID", "label" : "工作内容", "width" : 200, "toggled" : false } ], "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/9b2cb73f-024f-4fe2-83b3-e60a24e94e84?format=amis", "api" : { "method" : "post", "url" : "/api/flow/VIEW_PM_NOTRELATIONSUBPACKAGE_LOAD?__egtpl=9b2cb73f-024f-4fe2-83b3-e60a24e94e84", "data" : { "VIEW_PM_NOTRELATIONSUBPACKAGE_ID" : "${VIEW_PM_NOTRELATIONSUBPACKAGE_ID}" }, "responseData" : { "&" : "${result}" } } }, "actions" : [ { "type" : "button", "label" : "保存", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/VIEW_PM_NOTRELATIONSUBPACKAGE_UPDATE?__egtpl=9b2cb73f-024f-4fe2-83b3-e60a24e94e84", "close" : true }, { "type" : "button", "label" : "取消", "actionType" : "close" } ] } }, "pagination" ], "primaryField" : "VIEW_PM_NOTRELATIONSUBPACKAGE_ID" } }