{ "type" : "page", "title" : "项目分包信息维护", "body" : { "type" : "crud", "api" : "/api/flow/PM_PROJECTSUBCONTRACT_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" ] } }, { "name" : "FILIALE", "label" : "所属(分)公司", "type" : "picker", "clearable" : true, "source" : "/api/picker/1a998b23-371d-4ebb-911f-6465a56a6809/list", "labelField" : "_label", "valueField" : "_id", "modalMode" : "dialog", "modalSize" : "lg", "pickerSchema" : { "mode" : "table", "headerToolbar" : [ { "type" : "search-box", "name" : "q", "placeholder" : "输入关键字搜索" } ], "footerToolbar" : [ "pagination" ] } }, { "name" : "CONTRACTPROJECTNUM", "label" : "承包项目数", "type" : "input-number", "precision" : 2 }, { "name" : "CONTRACTUNITNUM", "label" : "分包单位数", "type" : "input-number", "precision" : 2 }, { "name" : "QUANTITYNUM", "label" : "已备案数", "type" : "input-number", "precision" : 2 }, { "name" : "UNQUANTITYNUM", "label" : "未备案数", "type" : "input-number", "precision" : 2 }, { "name" : "REGISTER", "label" : "登记人", "type" : "picker", "clearable" : true, "source" : "/api/picker/ac35b7e4-a338-4ca6-b5cd-98d5d1c54bab/list", "labelField" : "_label", "valueField" : "_id", "modalMode" : "dialog", "modalSize" : "lg", "pickerSchema" : { "mode" : "table", "headerToolbar" : [ { "type" : "search-box", "name" : "q", "placeholder" : "输入关键字搜索" } ], "footerToolbar" : [ "pagination" ] } }, { "name" : "REGISTERDATE", "label" : "登记日期", "type" : "input-date-range" }, { "name" : "CONFIRMTYPE", "label" : "确认状态", "type" : "select", "clearable" : true, "source" : "/api/poc/dict/PM_PROJECTSUBCONTRACT_CONFIRMTYPE" } ] }, "columns" : [ { "name" : "PM_PROJECTSUBCONTRACT_ID", "label" : "主键", "width" : 200, "toggled" : false }, { "name" : "PROJECTID_DISPLAY__", "label" : "工程名称", "width" : 300 }, { "name" : "FILIALE_DISPLAY__", "label" : "所属(分)公司", "width" : 200 }, { "name" : "ACTUALSTARTDATE", "label" : "计划开工日期", "width" : 120, "type" : "date", "format" : "YYYY-MM-DD", "inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ" }, { "name" : "ACTUALENDDATE", "label" : "计划竣工日期", "width" : 120, "type" : "date", "format" : "YYYY-MM-DD", "inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ" }, { "name" : "CONTRACTPROJECTNUM", "label" : "承包项目数", "width" : 110 }, { "name" : "CONTRACTUNITNUM", "label" : "分包单位数", "width" : 110 }, { "name" : "QUANTITYNUM", "label" : "已备案数", "width" : 100 }, { "name" : "UNQUANTITYNUM", "label" : "未备案数", "width" : 100 }, { "name" : "REGISTERDATE", "label" : "登记日期", "width" : 200, "type" : "date", "format" : "YYYY-MM-DD", "inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ" }, { "name" : "REGISTER_DISPLAY__", "label" : "登记人", "width" : 200 }, { "name" : "REMARK", "label" : "备注", "width" : 200, "toggled" : false }, { "name" : "CONFIRMTYPE", "label" : "确认状态", "width" : 100, "type" : "mapping", "map" : { "1" : "未确认", "2" : "已确认" } } ], "headerToolbar" : [ { "type" : "button", "id" : "添加", "label" : "添加", "level" : "primary", "actionType" : "dialog", "dialog" : { "type" : "dialog", "title" : "添加", "size" : "lg", "body" : { "type" : "service", "schemaApi" : "get:/api/page/schema/54d2eb6c-dbcf-403d-a511-07056ee4eb47?format=amis", "api" : { "method" : "get", "url" : "/api/form/PM_PROJECTSUBCONTRACT/defaults?templateId=54d2eb6c-dbcf-403d-a511-07056ee4eb47" } }, "actions" : [ { "type" : "button", "label" : "保存", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/PM_PROJECTSUBCONTRACT_ADD?__egtpl=54d2eb6c-dbcf-403d-a511-07056ee4eb47", "close" : true }, { "type" : "button", "label" : "取消", "actionType" : "close" } ] } }, { "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/54d2eb6c-dbcf-403d-a511-07056ee4eb47?format=amis", "api" : { "method" : "post", "url" : "/api/flow/PM_PROJECTSUBCONTRACT_LOAD?__egtpl=54d2eb6c-dbcf-403d-a511-07056ee4eb47", "data" : { "PM_PROJECTSUBCONTRACT_ID" : "${PM_PROJECTSUBCONTRACT_ID}" }, "responseData" : { "&" : "${result}" } } }, "actions" : [ { "type" : "button", "label" : "保存", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/PM_PROJECTSUBCONTRACT_UPDATE?__egtpl=54d2eb6c-dbcf-403d-a511-07056ee4eb47", "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_PROJECTSUBCONTRACT_DELETE", "data" : { "ids" : "${selectedItems|pick:PM_PROJECTSUBCONTRACT_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/54d2eb6c-dbcf-403d-a511-07056ee4eb47?format=amis", "static" : true, "api" : { "method" : "post", "url" : "/api/flow/PM_PROJECTSUBCONTRACT_LOAD?__egtpl=54d2eb6c-dbcf-403d-a511-07056ee4eb47", "data" : { "PM_PROJECTSUBCONTRACT_ID" : "${PM_PROJECTSUBCONTRACT_ID}" }, "responseData" : { "&" : "${result}" } } } } }, { "type" : "button", "id" : "确认", "label" : "确认", "actionType" : "ajax", "disabled" : true, "confirmText" : "确认要删除此记录吗?", "api" : { "method" : "post", "url" : "/api/flow/PM_PROJECTSUBCONTRACT_CONFIRM", "data" : { "PM_PROJECTSUBCONTRACT_ID" : "${selectedItems[0].PM_PROJECTSUBCONTRACT_ID}" } } }, { "type" : "button", "id" : "取消确认", "label" : "取消确认", "actionType" : "ajax", "disabled" : true, "confirmText" : "确认要删除此记录吗?", "api" : { "method" : "post", "url" : "/api/flow/PM_PROJECTSUBCONTRACT_UNCONFIRM", "data" : { "PM_PROJECTSUBCONTRACT_ID" : "${selectedItems[0].PM_PROJECTSUBCONTRACT_ID}" } } }, "pagination" ], "primaryField" : "PM_PROJECTSUBCONTRACT_ID", "onEvent" : { "selectedChange" : { "actions" : [ { "actionType" : "disabled", "componentId" : "确认" }, { "actionType" : "disabled", "componentId" : "取消确认" }, { "actionType" : "ajax", "api" : { "method" : "post", "url" : "/api/script/execute-template", "data" : { "seq" : 1, "item" : "${event.data.selectedItems[0]}", "templateId" : "81a9ee33-c466-4ae9-9749-397baf243835" } }, "outputVar" : "scriptResult1" }, { "actionType" : "replayScriptCommands", "args" : { "commands" : "${event.data.scriptResult1.commands}" } } ] } } } }