{ "type" : "page", "title" : "质量回访", "body" : { "type" : "crud", "api" : "/api/flow/PM_QULITYBACKVISITORPLAN_SEARCH", "syncLocation" : false, "selectable" : true, "checkOnItemClick" : true, "filter" : { "title" : "查询", "body" : [ { "name" : "COMPANYID", "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" : "PROJECTNAME", "label" : "工程名称", "type" : "input-text" }, { "name" : "RESPOSIBITYUSER", "label" : "回访负责人", "type" : "input-text" }, { "name" : "COMPLETIONTIME", "label" : "竣工日期", "type" : "input-date-range" }, { "name" : "VISITORPLANTIME", "label" : "计划回访日期", "type" : "input-date-range" } ] }, "columns" : [ { "name" : "PM_QULITYBACKVISITORPLAN_ID", "label" : "主键", "width" : 200, "toggled" : false }, { "name" : "COMPANYID_DISPLAY__", "label" : "回访公司", "width" : 200 }, { "name" : "PROJECTNAME", "label" : "工程名称", "width" : 300 }, { "name" : "COMPLETIONTIME", "label" : "竣工日期", "width" : 150, "type" : "date", "format" : "YYYY-MM-DD", "inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ" }, { "name" : "RESPOSIBITYUSER", "label" : "回访负责人", "width" : 150 }, { "name" : "VISITORPLANTIME", "label" : "计划回访日期", "width" : 150, "type" : "date", "format" : "YYYY-MM-DD", "inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ" }, { "name" : "ISSEND", "label" : "是否发送", "width" : 100, "type" : "mapping", "map" : { "0" : "否", "1" : "是", "false" : "否", "true" : "是" } }, { "name" : "REC", "label" : "登记次数", "width" : 100 }, { "name" : "REMARK", "label" : "备注", "width" : 250 } ], "headerToolbar" : [ { "type" : "button", "id" : "添加计划", "label" : "添加计划", "level" : "primary", "actionType" : "dialog", "dialog" : { "type" : "dialog", "title" : "添加计划", "size" : "lg", "body" : { "type" : "service", "schemaApi" : "get:/api/page/schema/467f56a9-8c20-41de-9eb8-23bd03c39d0f?format=amis", "api" : { "method" : "get", "url" : "/api/form/PM_QULITYBACKVISITORPLAN/defaults?templateId=467f56a9-8c20-41de-9eb8-23bd03c39d0f" } }, "actions" : [ { "type" : "button", "label" : "保存", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/PM_QULITYBACKVISITORPLAN_ADD?__egtpl=467f56a9-8c20-41de-9eb8-23bd03c39d0f", "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/467f56a9-8c20-41de-9eb8-23bd03c39d0f?format=amis", "api" : { "method" : "post", "url" : "/api/flow/PM_QULITYBACKVISITORPLAN_LOAD?__egtpl=467f56a9-8c20-41de-9eb8-23bd03c39d0f", "data" : { "PM_QULITYBACKVISITORPLAN_ID" : "${PM_QULITYBACKVISITORPLAN_ID}" }, "responseData" : { "&" : "${result}" } } }, "actions" : [ { "type" : "button", "label" : "保存", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/PM_QULITYBACKVISITORPLAN_UPDATE?__egtpl=467f56a9-8c20-41de-9eb8-23bd03c39d0f", "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_QULITYBACKVISITORPLAN_DELETE", "data" : { "ids" : "${selectedItems|pick:PM_QULITYBACKVISITORPLAN_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/d5481751-9e63-42c0-8364-c7174be507c0?format=amis", "static" : true, "api" : { "method" : "post", "url" : "/api/flow/PM_QULITYBACKVISITORPLAN_LOAD?__egtpl=d5481751-9e63-42c0-8364-c7174be507c0", "data" : { "PM_QULITYBACKVISITORPLAN_ID" : "${PM_QULITYBACKVISITORPLAN_ID}" }, "responseData" : { "&" : "${result}" } } } } }, { "type" : "button", "id" : "发送", "label" : "发送", "actionType" : "ajax", "disabled" : true, "api" : { "method" : "post", "url" : "/api/flow/PM_QULITYBACKVISITORPLAN_UPDATE2", "data" : { "PM_QULITYBACKVISITORPLAN_ID" : "${selectedItems[0].PM_QULITYBACKVISITORPLAN_ID}" } } }, { "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/643435b8-36e1-4f12-a592-4b0c4e62b49a?format=amis", "api" : { "method" : "post", "url" : "/api/flow/PM_QULITYBACKVISITORPLAN_LOAD?__egtpl=643435b8-36e1-4f12-a592-4b0c4e62b49a", "data" : { "PM_QULITYBACKVISITORPLAN_ID" : "${PM_QULITYBACKVISITORPLAN_ID}" }, "responseData" : { "&" : "${result}" } } }, "actions" : [ { "type" : "button", "label" : "保存", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/PM_QULITYBACKVISITORPLAN_UPDATE4?__egtpl=643435b8-36e1-4f12-a592-4b0c4e62b49a", "close" : true }, { "type" : "button", "label" : "取消", "actionType" : "close" } ] } }, "pagination" ], "primaryField" : "PM_QULITYBACKVISITORPLAN_ID", "onEvent" : { "selectedChange" : { "actions" : [ { "actionType" : "disabled", "componentId" : "发送" }, { "actionType" : "ajax", "api" : { "method" : "post", "url" : "/api/script/execute-template", "data" : { "seq" : 1, "item" : "${event.data.selectedItems[0]}", "templateId" : "1fadf6d3-c082-432e-b0ba-f9698faee289" } }, "outputVar" : "scriptResult1" }, { "actionType" : "replayScriptCommands", "args" : { "commands" : "${event.data.scriptResult1.commands}" } } ] } } } }