{ "type" : "page", "title" : "日常检查", "body" : { "type" : "crud", "api" : "/api/flow/PM_PUB_CHECKDAILY_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" : "FILIALE", "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" : "ISRECTIFICATION", "label" : "是否整改", "type" : "select", "clearable" : true, "source" : "/api/poc/dict/YESNO" }, { "name" : "STATUS", "label" : "审批状态", "type" : "select", "clearable" : true, "source" : "/api/poc/dict/WFSTATUS" } ] }, "columns" : [ { "name" : "PM_PUB_CHECKDAILY_ID", "label" : "主键", "width" : 200, "toggled" : false }, { "name" : "FILIALE_DISPLAY__", "label" : "(分)公司", "width" : 180 }, { "name" : "PROJECTID_DISPLAY__", "label" : "工程名称", "width" : 280 }, { "name" : "ACTIVITIES", "label" : "活动内容", "width" : 260 }, { "name" : "ISRECTIFICATION", "label" : "是否整改", "width" : 80, "type" : "mapping", "map" : { "0" : "否", "1" : "是", "false" : "否", "true" : "是" } }, { "name" : "ANNALPERSON_DISPLAY__", "label" : "记录人", "width" : 80 }, { "name" : "ANNALDATE", "label" : "记录日期", "width" : 100, "type" : "date", "format" : "YYYY-MM-DD", "inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ" }, { "name" : "STATUS", "label" : "审批状态", "width" : 80, "type" : "mapping", "map" : { "1" : "未提交", "2" : "处理中", "3" : "通过", "4" : "未通过", "5" : "重新提交", "6" : "作废" } }, { "name" : "DISPOSITION", "label" : "处理意见", "width" : 200, "toggled" : false }, { "name" : "AUTHENTICATIONPART", "label" : "验证部门", "width" : 200, "type" : "mapping", "map" : { "0" : "项目部", "1" : "分公司", "2" : "集团公司" }, "toggled" : false }, { "name" : "CONTENTS", "label" : "内容", "width" : 200, "toggled" : false }, { "name" : "CHECKOUTPERSON_DISPLAY__", "label" : "签发人", "width" : 200, "toggled" : false }, { "name" : "CHECKOUTDATE", "label" : "签发日期", "width" : 200, "type" : "date", "format" : "YYYY-MM-DD", "inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ", "toggled" : false }, { "name" : "RECTIFICATION", "label" : "整改情况", "width" : 200, "toggled" : false }, { "name" : "RECTIFICATIONLEADER_DISPLAY__", "label" : "整改负责人", "width" : 200, "toggled" : false }, { "name" : "RECTIFICATIONDATE", "label" : "上报日期", "width" : 200, "type" : "date", "format" : "YYYY-MM-DD", "inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ", "toggled" : false }, { "name" : "AUTHENTICATIONRESULTS", "label" : "验证结果", "width" : 200, "toggled" : false }, { "name" : "AUTHENTICATIONTOR_DISPLAY__", "label" : "验证人", "width" : 200, "toggled" : false }, { "name" : "AUTHENTICATIONDATE", "label" : "验证日期", "width" : 200, "type" : "date", "format" : "YYYY-MM-DD", "inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ", "toggled" : false } ], "headerToolbar" : [ { "type" : "button", "id" : "添加", "label" : "添加", "level" : "primary", "actionType" : "dialog", "dialog" : { "type" : "dialog", "title" : "添加", "size" : "lg", "body" : { "type" : "service", "schemaApi" : "get:/api/page/schema/217cc7a1-11f6-45b5-afd3-13ea90d37d79?format=amis", "api" : { "method" : "get", "url" : "/api/form/PM_PUB_CHECKDAILY/defaults?templateId=217cc7a1-11f6-45b5-afd3-13ea90d37d79" } }, "actions" : [ { "type" : "button", "label" : "保存", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/PM_PUB_CHECKDAILY_ADD?__egtpl=217cc7a1-11f6-45b5-afd3-13ea90d37d79", "close" : true }, { "type" : "button", "label" : "保存并提交审批", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/PM_PUB_CHECKDAILY_SAVE_AND_SUBMIT?__egtpl=217cc7a1-11f6-45b5-afd3-13ea90d37d79", "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/217cc7a1-11f6-45b5-afd3-13ea90d37d79?format=amis", "api" : { "method" : "post", "url" : "/api/flow/PM_PUB_CHECKDAILY_LOAD?__egtpl=217cc7a1-11f6-45b5-afd3-13ea90d37d79", "data" : { "PM_PUB_CHECKDAILY_ID" : "${PM_PUB_CHECKDAILY_ID}" }, "responseData" : { "&" : "${result}" } } }, "actions" : [ { "type" : "button", "label" : "保存", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/PM_PUB_CHECKDAILY_UPDATE?__egtpl=217cc7a1-11f6-45b5-afd3-13ea90d37d79", "close" : true }, { "type" : "button", "label" : "保存并提交审批", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/PM_PUB_CHECKDAILY_SAVE_AND_SUBMIT?__egtpl=217cc7a1-11f6-45b5-afd3-13ea90d37d79", "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_PUB_CHECKDAILY_DELETE", "data" : { "ids" : "${selectedItems|pick:PM_PUB_CHECKDAILY_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/fb0f0db9-6601-44b7-b328-0ebf0bfefeb0?format=amis", "static" : true, "api" : { "method" : "post", "url" : "/api/flow/PM_PUB_CHECKDAILY_LOAD?__egtpl=fb0f0db9-6601-44b7-b328-0ebf0bfefeb0", "data" : { "PM_PUB_CHECKDAILY_ID" : "${PM_PUB_CHECKDAILY_ID}" }, "responseData" : { "&" : "${result}" } } } } }, { "type" : "button", "id" : "提交审批", "label" : "提交审批", "actionType" : "ajax", "api" : { "method" : "post", "url" : "/api/flow/PM_PUB_CHECKDAILY_SUBMIT", "data" : { "PM_PUB_CHECKDAILY_ID" : "${selectedItems[0].PM_PUB_CHECKDAILY_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" : "打印", "actionType" : "dialog", "disabledOn" : "${!selectedItems || selectedItems.length === 0}", "dialog" : { "type" : "dialog", "title" : "日常检查打印", "size" : "lg", "data" : { "PM_PUB_CHECKDAILY_ID" : "${selectedItems[0].PM_PUB_CHECKDAILY_ID}" }, "body" : { "type" : "service", "schemaApi" : "get:/api/page/schema/730a7d09-c971-4a87-a5c1-981d0a9f0b3d?format=amis" }, "actions" : [ { "type" : "button", "label" : "关闭", "actionType" : "close" } ] } }, { "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_PUB_CHECKDAILY_ID}", "businessTable" : "PM_PUB_CHECKDAILY", "readOnly" : true, "mode" : "read" } } ] } } }, "pagination" ], "primaryField" : "PM_PUB_CHECKDAILY_ID", "onEvent" : { "inited" : { "actions" : [ { "actionType" : "ajax", "api" : { "method" : "post", "url" : "/api/script/execute-template", "data" : { "seq" : 1, "item" : "${&}", "templateId" : "fdb3cf55-b4ae-4deb-81e7-be58af14538d" } }, "outputVar" : "scriptResult1" }, { "actionType" : "replayScriptCommands", "args" : { "commands" : "${event.data.scriptResult1.commands}" } } ] } } } }