{ "type" : "page", "title" : "项目安全费用申请(查看)", "body" : { "type" : "crud", "api" : "/api/flow/PM_SAFETYFEEAPPLY_SEARCH", "syncLocation" : false, "selectable" : true, "checkOnItemClick" : true, "filter" : { "title" : "查询", "body" : [ { "name" : "ORGID", "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" : "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" ] }, "value" : "${currentProject}" }, { "name" : "APPLYDATE", "label" : "申请日期", "type" : "input-date-range" }, { "name" : "STATUS", "label" : "审批状态", "type" : "select", "clearable" : true, "source" : "/api/poc/dict/WFSTATUS" }, { "name" : "ISACCOUNTS", "label" : "是否记账", "hidden" : true, "type" : "checkbox" }, { "name" : "ACCOUNTSDATE", "label" : "记账日期", "hidden" : true, "type" : "input-date-range" } ] }, "columns" : [ { "name" : "PM_SAFETYFEEAPPLY_ID", "label" : "主键", "width" : 200, "toggled" : false }, { "name" : "ORGID_DISPLAY__", "label" : "(分)公司", "width" : 180 }, { "name" : "PROJECTID_DISPLAY__", "label" : "工程名称", "width" : 220 }, { "name" : "APPLYDATE", "label" : "申请日期", "width" : 80, "type" : "date", "format" : "YYYY-MM-DD", "inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ" }, { "name" : "APPLYCONTENT", "label" : "申请内容", "width" : 300 }, { "name" : "APPLYMONEY", "label" : "申请金额(元)", "width" : 120 }, { "name" : "CREATEBY_DISPLAY__", "label" : "经办人", "width" : 80 }, { "name" : "STATUS", "label" : "审批状态", "width" : 80, "type" : "mapping", "map" : { "1" : "未提交", "2" : "处理中", "3" : "通过", "4" : "未通过", "5" : "重新提交", "6" : "作废" } }, { "name" : "REMARK", "label" : "备注", "width" : 200, "toggled" : false }, { "name" : "ISACCOUNTS", "label" : "是否记账", "width" : 200, "type" : "mapping", "map" : { "0" : "否", "1" : "是", "false" : "否", "true" : "是" }, "toggled" : false }, { "name" : "ACCOUNTSDATE", "label" : "记账日期", "width" : 200, "type" : "date", "format" : "YYYY-MM-DD", "inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ", "toggled" : false } ], "headerToolbar" : [ { "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/a8949f69-f32d-4acc-8c40-ec7f051d0c02?format=amis", "static" : true, "api" : { "method" : "post", "url" : "/api/flow/PM_SAFETYFEEAPPLY_LOAD?__egtpl=a8949f69-f32d-4acc-8c40-ec7f051d0c02", "data" : { "PM_SAFETYFEEAPPLY_ID" : "${PM_SAFETYFEEAPPLY_ID}" }, "responseData" : { "&" : "${result}" } } } } }, { "type" : "button", "id" : "打印", "label" : "打印", "actionType" : "dialog", "disabledOn" : "${!selectedItems || selectedItems.length === 0}", "dialog" : { "type" : "dialog", "title" : " 项目安全费用申请打印", "size" : "lg", "data" : { "PM_SAFETYFEEAPPLY_ID" : "${selectedItems[0].PM_SAFETYFEEAPPLY_ID}" }, "body" : { "type" : "service", "schemaApi" : "get:/api/page/schema/4d2d6ff7-b9d1-4a24-bed8-c40ebbd4df17?format=amis" }, "actions" : [ { "type" : "button", "label" : "关闭", "actionType" : "close" } ] } }, { "type" : "button", "id" : "打印明细", "label" : "打印明细", "actionType" : "dialog", "dialog" : { "type" : "dialog", "title" : "项目安全费用投入明细", "size" : "lg", "body" : { "type" : "service", "schemaApi" : "get:/api/page/schema/3eedc061-3220-4b98-8965-af97a8bbe4c9?format=amis" }, "actions" : [ { "type" : "button", "label" : "关闭", "actionType" : "close" } ] } }, "pagination" ], "primaryField" : "PM_SAFETYFEEAPPLY_ID", "onEvent" : { "inited" : { "actions" : [ { "actionType" : "ajax", "api" : { "method" : "post", "url" : "/api/script/execute-template", "data" : { "seq" : 1, "item" : "${&}", "templateId" : "295d2cac-2788-4fa4-8953-ebe61df86e7c" } }, "outputVar" : "scriptResult1" }, { "actionType" : "replayScriptCommands", "args" : { "commands" : "${event.data.scriptResult1.commands}" } } ] } } } }