{ "type" : "page", "title" : "总包合同终止(五建定制)", "body" : { "type" : "crud", "api" : "/api/flow/PM_CONTRACTUALREGISTER_SEARCH_SZWJ", "syncLocation" : false, "selectable" : true, "checkOnItemClick" : true, "filter" : { "title" : "查询", "body" : [ { "name" : "ORGID", "label" : "(分)公司", "hidden" : true, "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" : "ORGIDLIST", "label" : "(分)公司", "type" : "picker", "clearable" : true, "multiple" : true, "overflowConfig" : { "displayPosition" : [ "select" ], "maxTagCount" : 1 }, "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" : "PM_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" : "CONTRACTNAME", "label" : "合同名称", "type" : "input-text" }, { "name" : "CONTRACTUALFORM", "label" : "合同形式", "type" : "select", "clearable" : true, "source" : "/api/poc/dict/CONTRACTFORM" }, { "name" : "SIGNUPTIME", "label" : "签约日期", "type" : "input-date-range" }, { "name" : "BUILDCOMPANY", "label" : "建设单位", "type" : "select", "clearable" : true, "searchable" : true, "source" : "/api/picker//list?q=${term}&page=${page}&perPage=${perPage}" }, { "name" : "GENERALCONTRACTOR", "label" : "发包人(总包方)", "type" : "picker", "clearable" : true, "source" : "/api/picker/1964fda1-b020-4a8b-95e2-dc32de36e74a/list", "labelField" : "_label", "valueField" : "_id", "modalMode" : "dialog", "modalSize" : "lg", "pickerSchema" : { "mode" : "table", "headerToolbar" : [ { "type" : "search-box", "name" : "q", "placeholder" : "输入关键字搜索" } ], "footerToolbar" : [ "pagination" ] } }, { "name" : "MANAGEMENTMODE", "label" : "经营模式", "type" : "select", "clearable" : true, "source" : "/api/poc/dict/PM_ManagementMode" }, { "name" : "CONTRACTSTATUS", "label" : "合同状态", "type" : "select", "clearable" : true, "source" : "/api/poc/dict/CONTRACTSTATUS" }, { "name" : "ENDDATE", "label" : "终止日期", "type" : "input-date-range" } ] }, "columns" : [ { "name" : "PM_CONTRACTUALREGISTER_ID", "label" : "主键", "width" : 200, "toggled" : false }, { "name" : "PM_PROJECTID_DISPLAY__", "label" : "工程名称", "width" : 200 }, { "name" : "CONTRACTNUMBER", "label" : "合同编号", "width" : 200 }, { "name" : "CONTRACTNAME", "label" : "合同名称", "width" : 300 }, { "name" : "STARTTIME", "label" : "开工日期", "width" : 200, "type" : "date", "format" : "YYYY-MM-DD", "inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ" }, { "name" : "ENDTIME", "label" : "竣工日期", "width" : 200, "type" : "date", "format" : "YYYY-MM-DD", "inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ" }, { "name" : "CONTRACTUALMONEY", "label" : "合同价款(元)", "width" : 200 }, { "name" : "SIGNUPTIME", "label" : "签约日期", "width" : 200, "type" : "date", "format" : "YYYY-MM-DD", "inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ" }, { "name" : "BUILDCOMPANY_DISPLAY__", "label" : "建设单位", "width" : 200 }, { "name" : "ACREAGE", "label" : "建筑面积", "width" : 150 }, { "name" : "GENERALCONTRACTOR_DISPLAY__", "label" : "发包人(总包方)", "width" : 200 }, { "name" : "ORGID_DISPLAY__", "label" : "(分)公司", "width" : 150 }, { "name" : "MANAGEMENTMODE", "label" : "经营模式", "width" : 120, "type" : "mapping", "map" : { "1" : "直营", "2" : "全费用承包", "3" : "直营过渡项目", "4" : "直营部分分包" } }, { "name" : "ENDDATE", "label" : "终止日期", "width" : 200, "type" : "date", "format" : "YYYY-MM-DD", "inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ" }, { "name" : "CONTRACTSTATUS", "label" : "合同状态", "width" : 130, "type" : "mapping", "map" : { "1" : "签订", "2" : "终止" } } ], "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/26db6241-9a42-4cd5-be71-c18948c9d624?format=amis", "api" : { "method" : "post", "url" : "/api/flow/PM_CONTRACTUALREGISTER_LOAD?__egtpl=26db6241-9a42-4cd5-be71-c18948c9d624", "data" : { "PM_CONTRACTUALREGISTER_ID" : "${PM_CONTRACTUALREGISTER_ID}" }, "responseData" : { "&" : "${result}" } } }, "actions" : [ { "type" : "button", "label" : "保存", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/PM_CONTRACTUALREGISTER_EXPIRY?__egtpl=26db6241-9a42-4cd5-be71-c18948c9d624", "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]}", "__readonly" : true }, "body" : { "type" : "service", "schemaApi" : "get:/api/page/schema/26db6241-9a42-4cd5-be71-c18948c9d624?format=amis", "static" : true, "api" : { "method" : "post", "url" : "/api/flow/PM_CONTRACTUALREGISTER_LOAD?__egtpl=26db6241-9a42-4cd5-be71-c18948c9d624", "data" : { "PM_CONTRACTUALREGISTER_ID" : "${PM_CONTRACTUALREGISTER_ID}" }, "responseData" : { "&" : "${result}" } } } } }, "pagination" ], "primaryField" : "PM_CONTRACTUALREGISTER_ID", "onEvent" : { "selectedChange" : { "actions" : [ { "actionType" : "ajax", "api" : { "method" : "post", "url" : "/api/script/execute-template", "data" : { "seq" : 1, "item" : "${event.data.selectedItems[0]}", "templateId" : "6734fdf2-3f8c-40ea-9feb-96be52e23942" } }, "outputVar" : "scriptResult1" }, { "actionType" : "replayScriptCommands", "args" : { "commands" : "${event.data.scriptResult1.commands}" } } ] } } } }