{ "type" : "page", "title" : "催款函、告知函", "body" : { "type" : "crud", "api" : "/api/flow/PM_LAWMANAGEMENT_SEARCH", "syncLocation" : false, "selectable" : true, "checkOnItemClick" : true, "filter" : { "title" : "查询", "body" : [ { "name" : "FORMNO", "label" : "单号", "type" : "input-text" }, { "name" : "RECEIVEDATE", "label" : "接收日期", "type" : "input-date-range" }, { "name" : "INVOLVEDUNIT", "label" : "所涉单位", "type" : "input-text" }, { "name" : "PROJECTNAME", "label" : "所涉项目", "type" : "input-text" }, { "name" : "RESPONSIBLEPERSON", "label" : "责任人", "type" : "input-text" }, { "name" : "PHONE", "label" : "责任人手机号", "type" : "input-number", "precision" : 0, "step" : 1 }, { "name" : "OTHERSUNIT", "label" : "对方单位", "type" : "input-text" }, { "name" : "RECEIVEDMATERIALS", "label" : "收到材料", "type" : "input-text" }, { "name" : "CAUSEOFACTION", "label" : "案由", "type" : "input-text" }, { "name" : "SUBJECTMONEY", "label" : "标的(元)", "type" : "input-number", "precision" : 2 }, { "name" : "REMINDTIME", "label" : "提醒时间", "type" : "input-datetime-range" }, { "name" : "DEALTYPE", "label" : "处理状态", "type" : "select", "clearable" : true, "source" : "/api/poc/dict/PM_LAWMANAGEMENT_DEALTYPE" }, { "name" : "LAWTYPE", "label" : "登记类型", "hidden" : true, "type" : "select", "clearable" : true, "source" : "/api/poc/dict/PM_LAWMANAGEMENT_LAWTYPE", "value" : "2" } ] }, "columns" : [ { "name" : "PM_LAWMANAGEMENT_ID", "label" : "主键", "width" : 200, "toggled" : false }, { "name" : "FORMNO", "label" : "单号", "width" : 200 }, { "name" : "RECEIVEDATE", "label" : "接收日期", "width" : 200, "type" : "date", "format" : "YYYY-MM-DD", "inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ" }, { "name" : "INVOLVEDUNIT", "label" : "所涉单位", "width" : 200 }, { "name" : "PROJECTNAME", "label" : "所涉项目", "width" : 200 }, { "name" : "RESPONSIBLEPERSON", "label" : "责任人", "width" : 200 }, { "name" : "PHONE", "label" : "责任人手机号", "width" : 200 }, { "name" : "OTHERSUNIT", "label" : "对方单位", "width" : 200 }, { "name" : "RECEIVEDMATERIALS", "label" : "收到材料", "width" : 200 }, { "name" : "CAUSEOFACTION", "label" : "案由", "width" : 200 }, { "name" : "SUBJECTMONEY", "label" : "标的(元)", "width" : 200 }, { "name" : "REMINDTIME", "label" : "提醒时间", "width" : 200, "type" : "datetime", "format" : "YYYY-MM-DD HH:mm", "inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ" }, { "name" : "DEALTYPE", "label" : "处理状态", "width" : 120, "type" : "mapping", "map" : { "1" : "待处理", "2" : "进行中", "3" : "已完结" } } ], "headerToolbar" : [ { "type" : "button", "id" : "添加", "label" : "添加", "level" : "primary", "actionType" : "dialog", "dialog" : { "type" : "dialog", "title" : "添加", "size" : "lg", "body" : { "type" : "service", "schemaApi" : "get:/api/page/schema/3c848fcf-6135-4f34-81be-d2d543172fbb?format=amis", "api" : { "method" : "get", "url" : "/api/form/PM_LAWMANAGEMENT/defaults?templateId=3c848fcf-6135-4f34-81be-d2d543172fbb" } }, "actions" : [ { "type" : "button", "label" : "保存", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/PM_LAWMANAGEMENT_ADD?__egtpl=3c848fcf-6135-4f34-81be-d2d543172fbb", "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/6b9bc763-ae4a-430d-88f0-d61e9066d2e8?format=amis", "api" : { "method" : "post", "url" : "/api/flow/PM_LAWMANAGEMENT_LOAD?__egtpl=6b9bc763-ae4a-430d-88f0-d61e9066d2e8", "data" : { "PM_LAWMANAGEMENT_ID" : "${PM_LAWMANAGEMENT_ID}" }, "responseData" : { "&" : "${result}" } } }, "actions" : [ { "type" : "button", "label" : "保存", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/PM_LAWMANAGEMENT_UPDATE?__egtpl=6b9bc763-ae4a-430d-88f0-d61e9066d2e8", "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_LAWMANAGEMENT_DELETE", "data" : { "ids" : "${selectedItems|pick:PM_LAWMANAGEMENT_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/6b9bc763-ae4a-430d-88f0-d61e9066d2e8?format=amis", "static" : true, "api" : { "method" : "post", "url" : "/api/flow/PM_LAWMANAGEMENT_LOAD?__egtpl=6b9bc763-ae4a-430d-88f0-d61e9066d2e8", "data" : { "PM_LAWMANAGEMENT_ID" : "${PM_LAWMANAGEMENT_ID}" }, "responseData" : { "&" : "${result}" } } } } }, { "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/b249b71d-53bc-4f24-a0cb-63316d499504?format=amis", "api" : { "method" : "post", "url" : "/api/flow/PM_LAWMANAGEMENT_LOAD?__egtpl=b249b71d-53bc-4f24-a0cb-63316d499504", "data" : { "PM_LAWMANAGEMENT_ID" : "${PM_LAWMANAGEMENT_ID}" }, "responseData" : { "&" : "${result}" } }, "onEvent" : { "inited" : { "actions" : [ { "actionType" : "ajax", "api" : { "method" : "post", "url" : "/api/script/execute-template", "data" : { "seq" : 1, "item" : "${&}", "templateId" : "67f976d2-dc64-4e94-96e2-4e5e62944e5f" } }, "outputVar" : "scriptResult1" }, { "actionType" : "replayScriptCommands", "args" : { "commands" : "${event.data.scriptResult1.commands}" } } ] } } }, "actions" : [ { "type" : "button", "label" : "保存", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/PM_LAWMANAGEMENT_DETAILS_ADD?__egtpl=b249b71d-53bc-4f24-a0cb-63316d499504", "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/b249b71d-53bc-4f24-a0cb-63316d499504?format=amis", "api" : { "method" : "post", "url" : "/api/flow/PM_LAWMANAGEMENT_LOAD?__egtpl=b249b71d-53bc-4f24-a0cb-63316d499504", "data" : { "PM_LAWMANAGEMENT_ID" : "${PM_LAWMANAGEMENT_ID}" }, "responseData" : { "&" : "${result}" } }, "onEvent" : { "inited" : { "actions" : [ { "actionType" : "ajax", "api" : { "method" : "post", "url" : "/api/script/execute-template", "data" : { "seq" : 1, "item" : "${&}", "templateId" : "67f976d2-dc64-4e94-96e2-4e5e62944e5f" } }, "outputVar" : "scriptResult1" }, { "actionType" : "replayScriptCommands", "args" : { "commands" : "${event.data.scriptResult1.commands}" } } ] } } }, "actions" : [ { "type" : "button", "label" : "保存", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/PM_LAWMANAGEMENT_UNLOCK?__egtpl=b249b71d-53bc-4f24-a0cb-63316d499504", "close" : true }, { "type" : "button", "label" : "取消", "actionType" : "close" } ] } }, "pagination" ], "primaryField" : "PM_LAWMANAGEMENT_ID", "onEvent" : { "selectedChange" : { "actions" : [ { "actionType" : "ajax", "api" : { "method" : "post", "url" : "/api/script/execute-template", "data" : { "seq" : 3, "item" : "${event.data.selectedItems[0]}", "templateId" : "67f976d2-dc64-4e94-96e2-4e5e62944e5f" } }, "outputVar" : "scriptResult3" }, { "actionType" : "replayScriptCommands", "args" : { "commands" : "${event.data.scriptResult3.commands}" } } ] }, "inited" : { "actions" : [ { "actionType" : "ajax", "api" : { "method" : "post", "url" : "/api/script/execute-template", "data" : { "seq" : 2, "item" : "${&}", "templateId" : "67f976d2-dc64-4e94-96e2-4e5e62944e5f" } }, "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" : "67f976d2-dc64-4e94-96e2-4e5e62944e5f" } }, "outputVar" : "scriptResult1" }, { "actionType" : "replayScriptCommands", "args" : { "commands" : "${event.data.scriptResult1.commands}" } } ] } } } }