{ "type" : "page", "title" : "总包合同变更(五建定制)", "body" : { "type" : "crud", "api" : "/api/flow/PM_CONTRACTUALREGISTERCHANGE_SEARCH_SZWJ", "syncLocation" : false, "selectable" : true, "checkOnItemClick" : true, "filter" : { "title" : "查询", "body" : [ { "name" : "FILIALE", "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" : "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" : "CONTRACTID", "label" : "合同名称", "type" : "picker", "clearable" : true, "source" : "/api/picker/55f528a5-196d-4fef-a020-1b3dcba9d59a/list", "labelField" : "_label", "valueField" : "_id", "modalMode" : "dialog", "modalSize" : "lg", "pickerSchema" : { "mode" : "table", "headerToolbar" : [ { "type" : "search-box", "name" : "q", "placeholder" : "输入关键字搜索" } ], "footerToolbar" : [ "pagination" ] } }, { "name" : "CHANGENUMBER", "label" : "变更编号", "type" : "input-text" }, { "name" : "CHANGENAME", "label" : "变更名称", "type" : "input-text" }, { "name" : "CHANGEUSER", "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" : "CHANGETIME", "label" : "变更日期", "type" : "input-date-range" }, { "name" : "EFFECTIVEDATE", "label" : "生效日期", "type" : "input-date-range" }, { "name" : "CHANGEREASON", "label" : "变更原因", "hidden" : true, "type" : "input-text" }, { "name" : "STATUS", "label" : "审批状态", "type" : "select", "clearable" : true, "source" : "/api/poc/dict/WFSTATUS" }, { "name" : "ISREGISTER", "label" : "是否登记", "type" : "select", "clearable" : true, "source" : "/api/poc/dict/YESNO", "value" : "0" } ] }, "columns" : [ { "name" : "PM_CONTRACTUALREGISTERCHANGE_ID", "label" : "主键", "width" : 200, "toggled" : false }, { "name" : "CONTRACTID_DISPLAY__", "label" : "合同名称", "width" : 300 }, { "name" : "PROJECTNAME", "label" : "工程名称", "width" : 300 }, { "name" : "CHANGENUMBER", "label" : "变更编号", "width" : 150 }, { "name" : "CHANGENAME", "label" : "变更名称", "width" : 200 }, { "name" : "CHANGEAMOUNT", "label" : "变更金额(元)", "width" : 150 }, { "name" : "CHANGELIMITTIME", "label" : "变更工期", "width" : 100 }, { "name" : "CHANGEUSER_DISPLAY__", "label" : "经办人", "width" : 120 }, { "name" : "CHANGETIME", "label" : "变更日期", "width" : 120, "type" : "date", "format" : "YYYY-MM-DD", "inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ" }, { "name" : "EFFECTIVEDATE", "label" : "生效日期", "width" : 120, "type" : "date", "format" : "YYYY-MM-DD", "inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ" }, { "name" : "FILIALE_DISPLAY__", "label" : "(分)公司", "width" : 150 }, { "name" : "STATUS", "label" : "审批状态", "width" : 100, "type" : "mapping", "map" : { "1" : "未提交", "2" : "处理中", "3" : "通过", "4" : "未通过", "5" : "重新提交", "6" : "作废" } }, { "name" : "ISREGISTER", "label" : "是否登记", "width" : 70, "type" : "mapping", "map" : { "0" : "否", "1" : "是" } } ], "headerToolbar" : [ { "type" : "button", "id" : "添加", "label" : "添加", "level" : "primary", "actionType" : "dialog", "dialog" : { "type" : "dialog", "title" : "添加", "size" : "lg", "body" : { "type" : "service", "schemaApi" : "get:/api/page/schema/2652fd55-736d-4989-bdaf-d889496289ad?format=amis", "api" : { "method" : "get", "url" : "/api/form/PM_CONTRACTUALREGISTERCHANGE/defaults?templateId=2652fd55-736d-4989-bdaf-d889496289ad" } }, "actions" : [ { "type" : "button", "label" : "保存", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/PM_CONTRACTUALREGISTERCHANGE_ADD?__egtpl=2652fd55-736d-4989-bdaf-d889496289ad", "close" : true }, { "type" : "button", "label" : "保存并提交审批", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/PM_CONTRACTUALREGISTERCHANGE_SAVE_AND_SUBMIT_SZWJ?__egtpl=2652fd55-736d-4989-bdaf-d889496289ad", "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/2652fd55-736d-4989-bdaf-d889496289ad?format=amis", "api" : { "method" : "post", "url" : "/api/flow/PM_CONTRACTUALREGISTERCHANGE_LOAD?__egtpl=2652fd55-736d-4989-bdaf-d889496289ad", "data" : { "PM_CONTRACTUALREGISTERCHANGE_ID" : "${PM_CONTRACTUALREGISTERCHANGE_ID}" }, "responseData" : { "&" : "${result}" } }, "onEvent" : { "inited" : { "actions" : [ { "actionType" : "ajax", "api" : { "method" : "post", "url" : "/api/script/execute-template", "data" : { "seq" : 2, "item" : "${&}", "templateId" : "dff0ae09-5b4c-4441-949f-044f7e0dc606" } }, "outputVar" : "scriptResult2" }, { "actionType" : "replayScriptCommands", "args" : { "commands" : "${event.data.scriptResult2.commands}" } } ] } } }, "actions" : [ { "type" : "button", "label" : "保存", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/PM_CONTRACTUALREGISTERCHANGE_UPDATE?__egtpl=2652fd55-736d-4989-bdaf-d889496289ad", "close" : true }, { "type" : "button", "label" : "保存并提交审批", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/PM_CONTRACTUALREGISTERCHANGE_SAVE_AND_SUBMIT_SZWJ?__egtpl=2652fd55-736d-4989-bdaf-d889496289ad", "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_CONTRACTUALREGISTERCHANGE_DELETE", "data" : { "ids" : "${selectedItems|pick:PM_CONTRACTUALREGISTERCHANGE_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/2652fd55-736d-4989-bdaf-d889496289ad?format=amis", "static" : true, "api" : { "method" : "post", "url" : "/api/flow/PM_CONTRACTUALREGISTERCHANGE_LOAD?__egtpl=2652fd55-736d-4989-bdaf-d889496289ad", "data" : { "PM_CONTRACTUALREGISTERCHANGE_ID" : "${PM_CONTRACTUALREGISTERCHANGE_ID}" }, "responseData" : { "&" : "${result}" } }, "onEvent" : { "inited" : { "actions" : [ { "actionType" : "ajax", "api" : { "method" : "post", "url" : "/api/script/execute-template", "data" : { "seq" : 2, "item" : "${&}", "templateId" : "dff0ae09-5b4c-4441-949f-044f7e0dc606" } }, "outputVar" : "scriptResult2" }, { "actionType" : "replayScriptCommands", "args" : { "commands" : "${event.data.scriptResult2.commands}" } } ] } } } } }, { "type" : "button", "id" : "提交审批", "label" : "提交审批", "actionType" : "ajax", "api" : { "method" : "post", "url" : "/api/flow/PM_CONTRACTUALREGISTERCHANGE_SUBMIT_SZWJ", "data" : { "PM_CONTRACTUALREGISTERCHANGE_ID" : "${selectedItems[0].PM_CONTRACTUALREGISTERCHANGE_ID}" } }, "disabledOn" : "${!selectedItems || selectedItems.length === 0 || (selectedItems[0].STATUS && selectedItems[0].STATUS != 1 && selectedItems[0].STATUS != 4 && selectedItems[0].STATUS != 5)}" }, { "type" : "button", "id" : "打印", "label" : "打印", "actionType" : "dialog", "disabledOn" : "${!selectedItems || selectedItems.length === 0}", "dialog" : { "type" : "dialog", "title" : "总包合同变更", "size" : "lg", "data" : { "PM_CONTRACTUALREGISTERCHANGE_ID" : "${selectedItems[0].PM_CONTRACTUALREGISTERCHANGE_ID}" }, "body" : { "type" : "service", "schemaApi" : "get:/api/page/schema/1855058d-a913-4568-abac-0ecf64a9c2ac?format=amis" }, "actions" : [ { "type" : "button", "label" : "关闭", "actionType" : "close" } ] } }, { "type" : "button", "id" : "查看审批", "label" : "查看审批", "icon" : "fa fa-search", "disabledOn" : "${!selectedItems || selectedItems.length === 0}", "onEvent" : { "click" : { "actions" : [ { "actionType" : "openApprovalDrawer", "args" : { "taskName" : "审批详情", "processInstanceId" : "${selectedItems[0].processInstanceId || selectedItems[0].PROCESSINSTANCEID || ''}", "businessKey" : "${selectedItems[0].PM_CONTRACTUALREGISTERCHANGE_ID}", "businessTable" : "PM_CONTRACTUALREGISTERCHANGE", "readOnly" : true, "mode" : "read" } } ] } } }, "pagination" ], "primaryField" : "PM_CONTRACTUALREGISTERCHANGE_ID", "onEvent" : { "inited" : { "actions" : [ { "actionType" : "ajax", "api" : { "method" : "post", "url" : "/api/script/execute-template", "data" : { "seq" : 2, "item" : "${&}", "templateId" : "dff0ae09-5b4c-4441-949f-044f7e0dc606" } }, "outputVar" : "scriptResult2" }, { "actionType" : "replayScriptCommands", "args" : { "commands" : "${event.data.scriptResult2.commands}" } }, { "actionType" : "ajax", "api" : { "method" : "post", "url" : "/api/script/execute-template", "data" : { "seq" : 1, "item" : "${&}", "templateId" : "dff0ae09-5b4c-4441-949f-044f7e0dc606" } }, "outputVar" : "scriptResult1" }, { "actionType" : "replayScriptCommands", "args" : { "commands" : "${event.data.scriptResult1.commands}" } } ] } } } }