{ "type" : "page", "title" : "分包合同变更登记", "body" : { "type" : "crud", "api" : "/api/flow/PM_SUBCONTRACTREGISTER_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" ] } }, { "name" : "CONTRACTTYPE", "label" : "合同种类", "type" : "select", "clearable" : true, "source" : "/api/poc/dict/CONTRACT_CONTRACTTYPE" }, { "name" : "CONTRACTID", "label" : "合同名称", "type" : "picker", "clearable" : true, "source" : "/api/picker/a2cb2d93-fbd2-4c0d-aec5-a29bf8fc7ca6/list", "labelField" : "_label", "valueField" : "_id", "modalMode" : "dialog", "modalSize" : "lg", "pickerSchema" : { "mode" : "table", "headerToolbar" : [ { "type" : "search-box", "name" : "q", "placeholder" : "输入关键字搜索" } ], "footerToolbar" : [ "pagination" ] } }, { "name" : "UNITID", "label" : "合格供方", "type" : "picker", "clearable" : true, "source" : "/api/picker/94e2dda5-c733-46c9-95ea-097688b8736d/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" : "AGENTUSER", "label" : "经办人", "type" : "picker", "clearable" : true, "source" : "/api/picker/1b6820ad-bc7c-4eef-ac63-652cdf52c75f/list", "labelField" : "_label", "valueField" : "_id", "modalMode" : "dialog", "modalSize" : "lg", "pickerSchema" : { "mode" : "table", "headerToolbar" : [ { "type" : "search-box", "name" : "q", "placeholder" : "输入关键字搜索" } ], "footerToolbar" : [ "pagination" ] } }, { "name" : "CHANGEDATE", "label" : "变更日期", "type" : "input-date-range" }, { "name" : "EFFECTIVEDATE", "label" : "生效日期", "type" : "input-date-range" }, { "name" : "PUTONRECORD", "label" : "是否备案", "type" : "select", "clearable" : true, "source" : "/api/poc/dict/YESNO" } ] }, "columns" : [ { "name" : "PM_SUBCONTRACTREGISTER_ID", "label" : "主键", "width" : 200, "toggled" : false }, { "name" : "CONTRACTTYPE", "label" : "合同种类", "width" : 60, "type" : "mapping", "map" : { "1" : "劳务合同", "2" : "分包合同", "3" : "物资合同", "4" : "机械合同", "7" : "其他合同" } }, { "name" : "PROJECTID_DISPLAY__", "label" : "工程名称", "width" : 200 }, { "name" : "CONTRACTID_DISPLAY__", "label" : "合同名称", "width" : 200 }, { "name" : "UNITID_DISPLAY__", "label" : "合格供方", "width" : 200 }, { "name" : "CHANGENUMBER", "label" : "变更编号", "width" : 60 }, { "name" : "CHANGENAME", "label" : "变更名称", "width" : 180 }, { "name" : "CHANGEMONEY", "label" : "变更金额(元)", "width" : 150 }, { "name" : "AGENTUSER_DISPLAY__", "label" : "经办人", "width" : 60 }, { "name" : "CHANGEDATE", "label" : "变更日期", "width" : 80, "type" : "date", "format" : "YYYY-MM-DD", "inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ" }, { "name" : "EFFECTIVEDATE", "label" : "生效日期", "width" : 80, "type" : "date", "format" : "YYYY-MM-DD", "inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ" }, { "name" : "PUTONRECORD", "label" : "是否备案", "width" : 80 } ], "headerToolbar" : [ { "type" : "button", "id" : "添加", "label" : "添加", "level" : "primary", "actionType" : "dialog", "dialog" : { "type" : "dialog", "title" : "添加", "size" : "lg", "body" : { "type" : "service", "schemaApi" : "get:/api/page/schema/2a8eb067-0895-4cca-87ee-ffb4c668f8c3?format=amis", "api" : { "method" : "get", "url" : "/api/form/PM_SUBCONTRACTCHANGE/defaults?templateId=2a8eb067-0895-4cca-87ee-ffb4c668f8c3" } }, "actions" : [ { "type" : "button", "label" : "保存", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/PM_SUBCONTRACTREGISTER_ADD?__egtpl=2a8eb067-0895-4cca-87ee-ffb4c668f8c3", "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/2a8eb067-0895-4cca-87ee-ffb4c668f8c3?format=amis", "api" : { "method" : "post", "url" : "/api/flow/PM_SUBCONTRACTREGISTER_LOAD?__egtpl=2a8eb067-0895-4cca-87ee-ffb4c668f8c3", "data" : { "PM_SUBCONTRACTCHANGE_ID" : "${PM_SUBCONTRACTCHANGE_ID}" }, "responseData" : { "&" : "${result}" } }, "onEvent" : { "inited" : { "actions" : [ { "actionType" : "ajax", "api" : { "method" : "post", "url" : "/api/script/execute-template", "data" : { "seq" : 3, "item" : "${&}", "templateId" : "ac956c1e-410c-4e18-8499-85becbe4fbe6" } }, "outputVar" : "scriptResult3" }, { "actionType" : "replayScriptCommands", "args" : { "commands" : "${event.data.scriptResult3.commands}" } } ] } } }, "actions" : [ { "type" : "button", "label" : "保存", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/PM_SUBCONTRACTREGISTER_UPDATE?__egtpl=2a8eb067-0895-4cca-87ee-ffb4c668f8c3", "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_SUBCONTRACTREGISTER_DELETE", "data" : { "ids" : "${selectedItems|pick:PM_SUBCONTRACTCHANGE_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/2a8eb067-0895-4cca-87ee-ffb4c668f8c3?format=amis", "static" : true, "api" : { "method" : "post", "url" : "/api/flow/PM_SUBCONTRACTREGISTER_LOAD?__egtpl=2a8eb067-0895-4cca-87ee-ffb4c668f8c3", "data" : { "PM_SUBCONTRACTCHANGE_ID" : "${PM_SUBCONTRACTCHANGE_ID}" }, "responseData" : { "&" : "${result}" } }, "onEvent" : { "inited" : { "actions" : [ { "actionType" : "ajax", "api" : { "method" : "post", "url" : "/api/script/execute-template", "data" : { "seq" : 3, "item" : "${&}", "templateId" : "ac956c1e-410c-4e18-8499-85becbe4fbe6" } }, "outputVar" : "scriptResult3" }, { "actionType" : "replayScriptCommands", "args" : { "commands" : "${event.data.scriptResult3.commands}" } } ] } } } } }, { "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/7d664d75-51fa-49df-ba58-3b0a10b0ca5c?format=amis", "static" : true, "api" : { "method" : "post", "url" : "/api/flow/PM_SUBCONTRACTREGISTER_VIEWLOAD?__egtpl=7d664d75-51fa-49df-ba58-3b0a10b0ca5c", "data" : { "PM_SUBCONTRACTCHANGE_ID" : "${PM_SUBCONTRACTCHANGE_ID}" }, "responseData" : { "&" : "${result}" } } } } }, { "type" : "button", "id" : "备案", "label" : "备案", "actionType" : "ajax", "disabled" : true, "confirmText" : "确认要删除此记录吗?", "api" : { "method" : "post", "url" : "/api/flow/PM_SUBCONTRACTREGISTER_UPDATE_CONFIRM", "data" : { "PM_SUBCONTRACTCHANGE_ID" : "${selectedItems[0].PM_SUBCONTRACTCHANGE_ID}" } } }, { "type" : "button", "id" : "取消备案", "label" : "取消备案", "actionType" : "ajax", "disabled" : true, "confirmText" : "确认要删除此记录吗?", "api" : { "method" : "post", "url" : "/api/flow/PM_SUBCONTRACTREGISTER_UPDATE_UNCONFIRM", "data" : { "PM_SUBCONTRACTCHANGE_ID" : "${selectedItems[0].PM_SUBCONTRACTCHANGE_ID}" } } }, "pagination" ], "primaryField" : "PM_SUBCONTRACTCHANGE_ID", "onEvent" : { "selectedChange" : { "actions" : [ { "actionType" : "disabled", "componentId" : "备案" }, { "actionType" : "disabled", "componentId" : "取消备案" }, { "actionType" : "ajax", "api" : { "method" : "post", "url" : "/api/script/execute-template", "data" : { "seq" : 2, "item" : "${event.data.selectedItems[0]}", "templateId" : "ac956c1e-410c-4e18-8499-85becbe4fbe6" } }, "outputVar" : "scriptResult2" }, { "actionType" : "replayScriptCommands", "args" : { "commands" : "${event.data.scriptResult2.commands}" } } ] }, "inited" : { "actions" : [ { "actionType" : "ajax", "api" : { "method" : "post", "url" : "/api/script/execute-template", "data" : { "seq" : 3, "item" : "${&}", "templateId" : "ac956c1e-410c-4e18-8499-85becbe4fbe6" } }, "outputVar" : "scriptResult3" }, { "actionType" : "replayScriptCommands", "args" : { "commands" : "${event.data.scriptResult3.commands}" } } ] } } } }