{ "type" : "page", "title" : "指定项目参照人工", "body" : { "type" : "crud", "api" : "/api/flow/VIEW_PM_PROJECTARTIFICIALRELATION_SEARCH", "syncLocation" : false, "selectable" : true, "checkOnItemClick" : true, "filter" : { "title" : "查询", "body" : [ { "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}" }, { "name" : "RESOURCENAME", "label" : "项目人工名称", "type" : "input-text" } ] }, "columns" : [ { "name" : "VIEW_PM_PROJECTARTIFICIALRELATION_ID", "label" : "主键", "width" : 200, "toggled" : false }, { "name" : "PROJECTID_DISPLAY__", "label" : "工程名称", "width" : 220 }, { "name" : "PROJECTRESOURCEID_DISPLAY__", "label" : "项目预算人工ID", "width" : 200, "toggled" : false }, { "name" : "RESOURCENAME", "label" : "项目人工名称", "width" : 200 }, { "name" : "PROJECTSPECIFICATIONS", "label" : "项目人工规格", "width" : 200, "toggled" : false }, { "name" : "UNITLISTID_DISPLAY__", "label" : "项目人工单位", "width" : 100 }, { "name" : "DATA_COMPANYMATERIALID_DISPLAY__", "label" : "公司人工ID", "width" : 200, "toggled" : false }, { "name" : "ARTIFICIALCODE", "label" : "公司人工编码", "width" : 200, "toggled" : false }, { "name" : "ARTIFICIALNAME", "label" : "公司人工名称", "width" : 200 }, { "name" : "SPECIFICATIONS", "label" : "公司人工规格", "width" : 200, "toggled" : false }, { "name" : "UNIT_DISPLAY__", "label" : "公司人工单位", "width" : 100 }, { "name" : "SCALERQUOTIETY", "label" : "换算系数", "width" : 200, "toggled" : false }, { "name" : "PM_PROJECT_R_RELATION_ID", "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/36edc6f0-8774-4522-a9dc-924bf4c3c64c?format=amis", "api" : { "method" : "post", "url" : "/api/flow/VIEW_PM_PROJECTARTIFICIALRELATION_LOAD?__egtpl=36edc6f0-8774-4522-a9dc-924bf4c3c64c", "data" : { "VIEW_PM_PROJECTARTIFICIALRELATION_ID" : "${VIEW_PM_PROJECTARTIFICIALRELATION_ID}" }, "responseData" : { "&" : "${result}" } } }, "actions" : [ { "type" : "button", "label" : "保存", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/PM_PROJECTRESOURCE_R_UPDATE?__egtpl=36edc6f0-8774-4522-a9dc-924bf4c3c64c", "close" : true }, { "type" : "button", "label" : "取消", "actionType" : "close" } ] } }, { "type" : "button", "id" : "取消关联", "label" : "取消关联", "actionType" : "ajax", "confirmText" : "确认要删除此关联吗?", "api" : { "method" : "post", "url" : "/api/flow/PM_PROJECTRESOURCE_R_CANCEL", "data" : { "VIEW_PM_PROJECTARTIFICIALRELATION_ID" : "${selectedItems[0].VIEW_PM_PROJECTARTIFICIALRELATION_ID}" } }, "disabledOn" : "${!selectedItems || selectedItems.length === 0}" }, { "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/36edc6f0-8774-4522-a9dc-924bf4c3c64c?format=amis", "static" : true, "api" : { "method" : "post", "url" : "/api/flow/VIEW_PM_PROJECTARTIFICIALRELATION_LOAD?__egtpl=36edc6f0-8774-4522-a9dc-924bf4c3c64c", "data" : { "VIEW_PM_PROJECTARTIFICIALRELATION_ID" : "${VIEW_PM_PROJECTARTIFICIALRELATION_ID}" }, "responseData" : { "&" : "${result}" } } } } }, "pagination" ], "primaryField" : "VIEW_PM_PROJECTARTIFICIALRELATION_ID" } }