{ "type" : "page", "title" : "项目部已关联人工", "body" : { "type" : "crud", "api" : "/api/flow/PM_PROJECTARTIFICIALCONTRACTRELATIONDETAILED_SEARCH", "syncLocation" : false, "selectable" : true, "checkOnItemClick" : true, "filter" : { "title" : "查询", "body" : [ { "name" : "ARTIFICIALPLANID", "label" : "工作内容", "type" : "picker", "clearable" : true, "source" : "/api/picker/ce158390-2054-427c-9e8e-69db2e3d96f1/list", "labelField" : "_label", "valueField" : "_id", "modalMode" : "dialog", "modalSize" : "lg", "pickerSchema" : { "mode" : "table", "headerToolbar" : [ { "type" : "search-box", "name" : "q", "placeholder" : "输入关键字搜索" } ], "footerToolbar" : [ "pagination" ] } } ] }, "columns" : [ { "name" : "PM_PROJECTARTIFICIALCONTRACTRELATIONDETAILED_ID", "label" : "主键", "width" : 200, "toggled" : false }, { "name" : "RELATIONID_DISPLAY__", "label" : "项目劳务合同关联", "width" : 200, "toggled" : false }, { "name" : "PROJECTID_DISPLAY__", "label" : "工程名称", "width" : 260 }, { "name" : "ARTIFICIALPLANID_DISPLAY__", "label" : "工作内容", "width" : 200 }, { "name" : "TOTALPRICE", "label" : "金额(元)", "width" : 120 }, { "name" : "CONTRACTID_DISPLAY__", "label" : "合同名称", "width" : 280 } ], "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/cb1ee449-1b0d-4395-a0e1-4ff212e0ea61?format=amis", "api" : { "method" : "post", "url" : "/api/flow/PM_PROJECTARTIFICIALCONTRACTRELATIONDETAILED_LOAD?__egtpl=cb1ee449-1b0d-4395-a0e1-4ff212e0ea61", "data" : { "PM_PROJECTARTIFICIALCONTRACTRELATIONDETAILED_ID" : "${PM_PROJECTARTIFICIALCONTRACTRELATIONDETAILED_ID}" }, "responseData" : { "&" : "${result}" } } }, "actions" : [ { "type" : "button", "label" : "保存", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/PM_PROJECTARTIFICIALCONTRACTRELATIONDETAILED_UPDATE?__egtpl=cb1ee449-1b0d-4395-a0e1-4ff212e0ea61", "close" : true }, { "type" : "button", "label" : "取消", "actionType" : "close" } ] } }, { "type" : "button", "id" : "删除", "label" : "删除", "level" : "danger", "actionType" : "ajax", "disabledOn" : "${!selectedItems || selectedItems.length === 0}", "confirmText" : "确认要删除此记录吗?", "api" : { "method" : "post", "url" : "/api/flow/PM_PROJECTARTIFICIALCONTRACTRELATIONDETAILED_DELETE", "data" : { "ids" : "${selectedItems|pick:PM_PROJECTARTIFICIALCONTRACTRELATIONDETAILED_ID|join:','}" } } }, { "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/cb1ee449-1b0d-4395-a0e1-4ff212e0ea61?format=amis", "static" : true, "api" : { "method" : "post", "url" : "/api/flow/PM_PROJECTARTIFICIALCONTRACTRELATIONDETAILED_LOAD?__egtpl=cb1ee449-1b0d-4395-a0e1-4ff212e0ea61", "data" : { "PM_PROJECTARTIFICIALCONTRACTRELATIONDETAILED_ID" : "${PM_PROJECTARTIFICIALCONTRACTRELATIONDETAILED_ID}" }, "responseData" : { "&" : "${result}" } } } } }, "pagination" ], "primaryField" : "PM_PROJECTARTIFICIALCONTRACTRELATIONDETAILED_ID" } }