{ "type" : "page", "title" : "施工日志-审批", "body" : { "type" : "crud", "api" : "/api/flow/PM_BUILDERSDIARY_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" ] }, "value" : "${currentProject}" }, { "name" : "UNITID", "label" : "单位工程", "type" : "select", "clearable" : true, "source" : "/api/picker/PM_UNITPROJECT/list?perPage=500" }, { "name" : "DIARYDATE", "label" : "日期", "type" : "input-date-range" }, { "name" : "DAYWEATHER", "label" : "白天天气", "type" : "input-text" }, { "name" : "NIGHTWEATHER", "label" : "夜晚天气", "type" : "input-text" }, { "name" : "DAYWIND", "label" : "白天风力", "type" : "input-text" }, { "name" : "NIGHTWIND", "label" : "夜晚风力", "type" : "input-text" }, { "name" : "DAYTEMPERATURE", "label" : "白天温度", "type" : "input-text" }, { "name" : "NIGHTTEMPERATURE", "label" : "夜晚温度", "type" : "input-text" }, { "name" : "DAYREMARK", "label" : "白天备注", "type" : "input-text" }, { "name" : "NIGHTREMARK", "label" : "夜晚备注", "type" : "input-text" }, { "name" : "PRODUCENOTE", "label" : "生产记录", "type" : "input-text" }, { "name" : "QUALITYNOTE", "label" : "质量记录", "type" : "input-text" }, { "name" : "COMPONENTNOTE", "label" : "构件进场记录", "type" : "input-text" }, { "name" : "STATHS", "label" : "审批状态", "type" : "select", "clearable" : true, "source" : "/api/poc/dict/WFSTATUS" } ] }, "columns" : [ { "name" : "PM_BUILDERSDIARY_ID", "label" : "主键", "width" : 200, "toggled" : false }, { "name" : "PROJECTID_DISPLAY__", "label" : "单项工程", "width" : 200, "toggled" : false }, { "name" : "PROJECTNAME", "label" : "单项工程", "width" : 200 }, { "name" : "UNITID_DISPLAY__", "label" : "单位工程", "width" : 100 }, { "name" : "DIARYDATE", "label" : "日期", "width" : 100, "type" : "date", "format" : "YYYY-MM-DD", "inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ" }, { "name" : "DAYWEATHER", "label" : "白天天气", "width" : 80 }, { "name" : "NIGHTWEATHER", "label" : "夜晚天气", "width" : 80 }, { "name" : "DAYWIND", "label" : "白天风力", "width" : 80 }, { "name" : "NIGHTWIND", "label" : "夜晚风力", "width" : 80 }, { "name" : "DAYTEMPERATURE", "label" : "白天温度", "width" : 80 }, { "name" : "NIGHTTEMPERATURE", "label" : "夜晚温度", "width" : 80 }, { "name" : "DAYREMARK", "label" : "白天备注", "width" : 80, "toggled" : false }, { "name" : "NIGHTREMARK", "label" : "夜晚备注", "width" : 80, "toggled" : false }, { "name" : "PRODUCENOTE", "label" : "生产记录", "width" : 100 }, { "name" : "QUALITYNOTE", "label" : "质量记录", "width" : 100 }, { "name" : "COMPONENTNOTE", "label" : "构件进场记录", "width" : 100 }, { "name" : "PROJECTUSER", "label" : "项目经理", "width" : 80 }, { "name" : "STATUS", "label" : "审批状态", "width" : 100, "type" : "mapping", "map" : { "1" : "未提交", "2" : "处理中", "3" : "通过", "4" : "未通过", "5" : "重新提交", "6" : "作废" } }, { "name" : "CREATETIME", "label" : "CREATETIME", "width" : 200, "type" : "datetime", "format" : "YYYY-MM-DD HH:mm", "inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ", "toggled" : false }, { "name" : "UPDATETIME", "label" : "UPDATETIME", "width" : 200, "type" : "datetime", "format" : "YYYY-MM-DD HH:mm", "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/6f313b16-8768-4b32-acbb-87c72b207f70?format=amis", "static" : true, "api" : { "method" : "post", "url" : "/api/flow/PM_BUILDERSDIARY_LOAD?__egtpl=6f313b16-8768-4b32-acbb-87c72b207f70", "data" : { "PM_BUILDERSDIARY_ID" : "${PM_BUILDERSDIARY_ID}" }, "responseData" : { "&" : "${result}" } }, "onEvent" : { "inited" : { "actions" : [ { "actionType" : "ajax", "api" : { "method" : "post", "url" : "/api/script/execute-template", "data" : { "seq" : 3, "item" : "${&}", "templateId" : "328b3366-170f-4321-b06c-5593668b5535" } }, "outputVar" : "scriptResult3" }, { "actionType" : "replayScriptCommands", "args" : { "commands" : "${event.data.scriptResult3.commands}" } } ] } } } } }, { "type" : "button", "id" : "提交申请", "label" : "提交申请", "actionType" : "ajax", "confirmText" : "确认要提交修改申请吗?", "api" : { "method" : "post", "url" : "/api/flow/PM_BUILDERSDIARY_SUBMIT", "data" : { "PM_BUILDERSDIARY_ID" : "${selectedItems[0].PM_BUILDERSDIARY_ID}" } }, "disabledOn" : "${!selectedItems || selectedItems.length === 0 || (selectedItems[0].STATUS && selectedItems[0].STATUS != 1 && selectedItems[0].STATUS != 4 && selectedItems[0].STATUS != 5)}" }, { "type" : "button", "id" : "查看审批", "label" : "查看审批", "icon" : "fa fa-search", "disabledOn" : "${!selectedItems || selectedItems.length === 0}", "onEvent" : { "click" : { "actions" : [ { "actionType" : "openApprovalDrawer", "args" : { "taskName" : "审批详情", "processInstanceId" : "${selectedItems[0].processInstanceId || selectedItems[0].PROCESSINSTANCEID || ''}", "businessKey" : "${selectedItems[0].PM_BUILDERSDIARY_ID}", "businessTable" : "PM_BUILDERSDIARY", "readOnly" : true, "mode" : "read" } } ] } } }, "pagination" ], "primaryField" : "PM_BUILDERSDIARY_ID", "onEvent" : { "inited" : { "actions" : [ { "actionType" : "ajax", "api" : { "method" : "post", "url" : "/api/script/execute-template", "data" : { "seq" : 3, "item" : "${&}", "templateId" : "328b3366-170f-4321-b06c-5593668b5535" } }, "outputVar" : "scriptResult3" }, { "actionType" : "replayScriptCommands", "args" : { "commands" : "${event.data.scriptResult3.commands}" } } ] } } } }