{ "type" : "page", "title" : "备用金预支登记与归还登记", "body" : { "type" : "crud", "api" : "/api/flow/PM_RESERVEAPPLY_SEARCHPASS", "syncLocation" : false, "selectable" : true, "checkOnItemClick" : true, "filter" : { "title" : "查询", "body" : [ { "name" : "FORMNO", "label" : "表单号", "hidden" : true, "type" : "input-text" }, { "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" : "LOANUSER", "label" : "申请人", "type" : "picker", "clearable" : true, "source" : "/api/picker/76d2f950-ef40-4eff-89ec-98ad9a4976b9/list", "labelField" : "_label", "valueField" : "_id", "modalMode" : "dialog", "modalSize" : "lg", "pickerSchema" : { "mode" : "table", "headerToolbar" : [ { "type" : "search-box", "name" : "q", "placeholder" : "输入关键字搜索" } ], "footerToolbar" : [ "pagination" ] }, "placeholder" : "请点击右侧的图标" }, { "name" : "APPLYDATE", "label" : "申请日期", "type" : "input-date-range" }, { "name" : "ESTIMATERETURNDATE", "label" : "预计归还日期", "type" : "input-date-range" }, { "name" : "REGISTERSTATUS", "label" : "登记状态", "type" : "select", "clearable" : true, "source" : "/api/poc/dict/REGISTERSTATUS" } ] }, "columns" : [ { "name" : "PM_RESERVEAPPLY_ID", "label" : "主键", "width" : 200, "toggled" : false }, { "name" : "FORMNO", "label" : "表单号", "width" : 100 }, { "name" : "PROJECTID_DISPLAY__", "label" : "工程名称", "width" : 200 }, { "name" : "DEPARTID_DISPLAY__", "label" : "申请部门", "width" : 100 }, { "name" : "LOANUSER_DISPLAY__", "label" : "申请人", "width" : 80 }, { "name" : "APPLYDATE", "label" : "申请日期", "width" : 100, "type" : "date", "format" : "YYYY-MM-DD", "inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ" }, { "name" : "LOANAMOUNT", "label" : "借款金额", "width" : 100 }, { "name" : "RESERVESOURCE", "label" : "备用金来源", "width" : 100, "type" : "mapping", "map" : { "1" : "集团借款", "2" : "外部借款" } }, { "name" : "ESTIMATERETURNDATE", "label" : "预计还款日期", "width" : 100, "type" : "date", "format" : "YYYY-MM-DD", "inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ" }, { "name" : "RETURN_AMOUNT", "label" : "已还款金额", "width" : 100 }, { "name" : "LEFTMONEY", "label" : "借款余额", "width" : 100 }, { "name" : "REGISTERSTATUS", "label" : "登记状态", "width" : 100, "type" : "mapping", "map" : { "1" : "未登记", "2" : "已登记", "3" : "部分归还", "4" : "已还清" } }, { "name" : "REGISTERUSER_DISPLAY__", "label" : "登记人", "width" : 80 }, { "name" : "REGISTERDATE", "label" : "登记日期", "width" : 100, "type" : "date", "format" : "YYYY-MM-DD", "inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ" }, { "name" : "REGISTERCONTENT", "label" : "登记内容", "width" : 200, "toggled" : false }, { "name" : "LOANREASON", "label" : "借款事由", "width" : 200, "toggled" : false } ], "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/62d5dc30-7246-46bd-99c5-f5e37e5433d0?format=amis", "api" : { "method" : "post", "url" : "/api/flow/PM_RESERVEAPPLY_LOADPASS?__egtpl=62d5dc30-7246-46bd-99c5-f5e37e5433d0", "data" : { "PM_RESERVEAPPLY_ID" : "${PM_RESERVEAPPLY_ID}" }, "responseData" : { "&" : "${result}" } } }, "actions" : [ { "type" : "button", "label" : "保存", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/PM_RESERVEAPPLY_LENDREGISTER?__egtpl=62d5dc30-7246-46bd-99c5-f5e37e5433d0", "close" : true }, { "type" : "button", "label" : "取消", "actionType" : "close" } ] } }, { "type" : "button", "id" : "取消预支登记", "label" : "取消预支登记", "actionType" : "ajax", "disabled" : true, "api" : { "method" : "post", "url" : "/api/flow/PM_RESERVEAPPLY_CANCELREGISTER", "data" : { "PM_RESERVEAPPLY_ID" : "${selectedItems[0].PM_RESERVEAPPLY_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/8d1549dc-7c51-45de-908f-1e6aa9b02d2a?format=amis", "api" : { "method" : "post", "url" : "/api/flow/PM_RESERVEAPPLY_LOADPASS?__egtpl=8d1549dc-7c51-45de-908f-1e6aa9b02d2a", "data" : { "PM_RESERVEAPPLY_ID" : "${PM_RESERVEAPPLY_ID}" }, "responseData" : { "&" : "${result}" } } }, "actions" : [ { "type" : "button", "label" : "保存", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/PM_CAPITALRETURN_ADD?__egtpl=8d1549dc-7c51-45de-908f-1e6aa9b02d2a", "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/4fc4010e-2be7-49d2-8106-d7de86619335?format=amis", "api" : { "method" : "post", "url" : "/api/flow/PM_RESERVEAPPLY_LOADPASS?__egtpl=4fc4010e-2be7-49d2-8106-d7de86619335", "data" : { "PM_RESERVEAPPLY_ID" : "${PM_RESERVEAPPLY_ID}" }, "responseData" : { "&" : "${result}" } } }, "actions" : [ { "type" : "button", "label" : "保存", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/PM_CAPITALRETURN_BATCHDELETE?__egtpl=4fc4010e-2be7-49d2-8106-d7de86619335", "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" : { "PM_RESERVEAPPLY_ID" : "${selectedItems[0].PM_RESERVEAPPLY_ID}" }, "body" : { "type" : "service", "schemaApi" : "get:/api/page/schema/7e09c449-0da0-44de-aa0d-020bad41235b?format=amis" }, "actions" : [ { "type" : "button", "label" : "关闭", "actionType" : "close" } ] } }, "pagination" ], "primaryField" : "PM_RESERVEAPPLY_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" : "836276e5-1451-4569-9a9a-dc8fbc57cd14" } }, "outputVar" : "scriptResult1" }, { "actionType" : "replayScriptCommands", "args" : { "commands" : "${event.data.scriptResult1.commands}" } } ] }, "inited" : { "actions" : [ { "actionType" : "ajax", "api" : { "method" : "post", "url" : "/api/script/execute-template", "data" : { "seq" : 2, "item" : "${&}", "templateId" : "836276e5-1451-4569-9a9a-dc8fbc57cd14" } }, "outputVar" : "scriptResult2" }, { "actionType" : "replayScriptCommands", "args" : { "commands" : "${event.data.scriptResult2.commands}" } } ] } } } }