{ "type" : "page", "title" : "施工预算变更管理", "body" : { "type" : "crud", "api" : "/api/flow/PM_CONSTRUCTCHANGE_SEARCH", "syncLocation" : false, "selectable" : true, "checkOnItemClick" : true, "filter" : { "title" : "查询", "body" : [ { "name" : "PROJECTID", "label" : "工程", "type" : "picker", "clearable" : true, "source" : "/api/picker/66e57e6d-0cbb-40cf-8b84-c512345734b7/list", "labelField" : "_label", "valueField" : "_id", "modalMode" : "dialog", "modalSize" : "lg", "pickerSchema" : { "mode" : "table", "headerToolbar" : [ { "type" : "search-box", "name" : "q", "placeholder" : "输入关键字搜索" } ], "footerToolbar" : [ "pagination" ] }, "value" : "${currentProject}" }, { "name" : "BUDGETUNITID", "label" : "施工预算单元", "type" : "picker", "clearable" : true, "source" : "/api/picker/f959d91b-b013-423f-addf-767a82a3fce3/list", "labelField" : "_label", "valueField" : "_id", "modalMode" : "dialog", "modalSize" : "lg", "pickerSchema" : { "mode" : "table", "headerToolbar" : [ { "type" : "search-box", "name" : "q", "placeholder" : "输入关键字搜索" } ], "footerToolbar" : [ "pagination" ] } }, { "name" : "BUDGETLISTID", "label" : "施工预算清单", "type" : "tree-select", "clearable" : true, "source" : "/api/template/608be1aa-2b88-4ad6-9cb9-91722bc3bf2f/tree", "searchable" : true, "onlyLeaf" : true }, { "name" : "CREATETIME", "label" : "变更时间", "type" : "input-datetime-range" } ] }, "columns" : [ { "name" : "PM_CONSTRUCTCHANGE_ID", "label" : "主键", "width" : 200, "toggled" : false }, { "name" : "PROJECTID_DISPLAY__", "label" : "工程", "width" : 200 }, { "name" : "BUDGETUNITID_DISPLAY__", "label" : "施工预算单元", "width" : 200, "toggled" : false }, { "name" : "BUDGETLISTNO", "label" : "变更清单编号", "width" : 200 }, { "name" : "BUDGETLISTID_DISPLAY__", "label" : "变更清单名称", "width" : 200 }, { "name" : "CHANGETYPE", "label" : "变更类型", "width" : 200, "type" : "mapping", "map" : { "1" : "增减工程量", "2" : "删除未完成工作内容", "3" : "新增工作内容" } }, { "name" : "CREATETIME", "label" : "变更时间", "width" : 200, "type" : "datetime", "format" : "YYYY-MM-DD HH:mm", "inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ" } ], "headerToolbar" : [ { "type" : "button", "id" : "增减工程量", "label" : "增减工程量", "level" : "primary", "actionType" : "dialog", "dialog" : { "type" : "dialog", "title" : "增减工程量", "size" : "lg", "body" : { "type" : "service", "schemaApi" : "get:/api/page/schema/66f928b9-309a-4f61-8607-c71af743561d?format=amis", "api" : { "method" : "get", "url" : "/api/form/PM_CONSTRUCTCHANGE/defaults?templateId=66f928b9-309a-4f61-8607-c71af743561d" } }, "actions" : [ { "type" : "button", "label" : "保存", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/PM_CONSTRUCTCHANGE_QUANLITYCHANGE?__egtpl=66f928b9-309a-4f61-8607-c71af743561d", "close" : true }, { "type" : "button", "label" : "取消", "actionType" : "close" } ] } }, { "type" : "button", "id" : "删除未分配工作内容", "label" : "删除未分配工作内容", "level" : "primary", "actionType" : "dialog", "dialog" : { "type" : "dialog", "title" : "删除未分配工作内容", "size" : "lg", "body" : { "type" : "service", "schemaApi" : "get:/api/page/schema/21a52e3b-e4f1-4d0e-ba2e-edda6b012e8d?format=amis", "api" : { "method" : "get", "url" : "/api/form/PM_CONSTRUCTCHANGE/defaults?templateId=21a52e3b-e4f1-4d0e-ba2e-edda6b012e8d" } }, "actions" : [ { "type" : "button", "label" : "保存", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/PM_CONSTRUCTCHANGE_DELETECONTENT?__egtpl=21a52e3b-e4f1-4d0e-ba2e-edda6b012e8d", "close" : true }, { "type" : "button", "label" : "取消", "actionType" : "close" } ] } }, { "type" : "button", "id" : "新增工作内容", "label" : "新增工作内容", "level" : "primary", "actionType" : "dialog", "dialog" : { "type" : "dialog", "title" : "新增工作内容", "size" : "lg", "body" : { "type" : "service", "schemaApi" : "get:/api/page/schema/b1c718ab-d188-4066-9fe2-b0efbec001c7?format=amis", "api" : { "method" : "get", "url" : "/api/form/PM_CONSTRUCTCHANGE/defaults?templateId=b1c718ab-d188-4066-9fe2-b0efbec001c7" } }, "actions" : [ { "type" : "button", "label" : "保存", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/PM_CONSTRUCTCHANGE_ADDCONTENT?__egtpl=b1c718ab-d188-4066-9fe2-b0efbec001c7", "close" : true }, { "type" : "button", "label" : "取消", "actionType" : "close" } ] } }, { "type" : "button", "id" : "撤销变更", "label" : "撤销变更", "actionType" : "ajax", "confirmText" : "确认要撤销变更吗?", "api" : { "method" : "post", "url" : "/api/flow/PM_CONSTRUCTCHANGE_DELETE", "data" : { "PM_CONSTRUCTCHANGE_ID" : "${selectedItems[0].PM_CONSTRUCTCHANGE_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/5b6dc78d-5114-4a70-9879-636fb19ce20c?format=amis", "static" : true, "api" : { "method" : "post", "url" : "/api/flow/PM_CONSTRUCTCHANGE_LOAD?__egtpl=5b6dc78d-5114-4a70-9879-636fb19ce20c", "data" : { "PM_CONSTRUCTCHANGE_ID" : "${PM_CONSTRUCTCHANGE_ID}" }, "responseData" : { "&" : "${result}" } } } } }, "pagination" ], "primaryField" : "PM_CONSTRUCTCHANGE_ID" } }