{ "type" : "page", "title" : "三级安全教育卡-项目部", "body" : { "type" : "crud", "api" : "/api/flow/PM_PUB_SAFETYEDUCATION_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" : "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" : "NAME", "label" : "姓名", "type" : "input-text" }, { "name" : "JOBS", "label" : "工种", "type" : "input-text" }, { "name" : "STATUS", "label" : "审批状态", "type" : "select", "clearable" : true, "source" : "/api/poc/dict/WFSTATUS" }, { "name" : "INTOPROJECTDATE", "label" : "进项目日期", "hidden" : true, "type" : "input-date-range" }, { "name" : "GENDER", "label" : "性别", "hidden" : true, "type" : "select", "clearable" : true, "source" : "/api/poc/dict/SEX" }, { "name" : "IDNUMBER", "label" : "身份证号", "hidden" : true, "type" : "input-text" }, { "name" : "TESTDATE", "label" : "考试日期", "hidden" : true, "type" : "input-date-range" } ] }, "columns" : [ { "name" : "PM_PUB_SAFETYEDUCATION_ID", "label" : "主键", "width" : 200, "toggled" : false }, { "name" : "NAME", "label" : "姓名", "width" : 100 }, { "name" : "JOBS", "label" : "工种", "width" : 100 }, { "name" : "GENDER", "label" : "性别", "width" : 50, "type" : "mapping", "map" : { "0" : "女", "1" : "男" } }, { "name" : "ORGID_DISPLAY__", "label" : "单位名称", "width" : 100 }, { "name" : "PROJECTID_DISPLAY__", "label" : "工程名称", "width" : 200 }, { "name" : "INTOPROJECTDATE", "label" : "进项目日期", "width" : 80, "type" : "date", "format" : "YYYY-MM-DD", "inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ" }, { "name" : "TESTDATE", "label" : "考试日期", "width" : 80, "type" : "date", "format" : "YYYY-MM-DD", "inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ" }, { "name" : "EXAMINATIONSCORE", "label" : "考试成绩", "width" : 80 }, { "name" : "UPDATEBY_DISPLAY__", "label" : "修改人", "width" : 100 }, { "name" : "STATUS", "label" : "审批状态", "width" : 80, "type" : "mapping", "map" : { "1" : "未提交", "2" : "处理中", "3" : "通过", "4" : "未通过", "5" : "重新提交", "6" : "作废" } }, { "name" : "IDNUMBER", "label" : "身份证号", "width" : 200, "toggled" : false }, { "name" : "SENIORITY", "label" : "工龄(年) ", "width" : 200, "toggled" : false }, { "name" : "BRANCHEDUCATESIGNATURE", "label" : "分公司级教育人", "width" : 200, "toggled" : false }, { "name" : "BRANCHEDUCATEDATE", "label" : "分公司级教育日期", "width" : 200, "type" : "date", "format" : "YYYY-MM-DD", "inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ", "toggled" : false }, { "name" : "BRANCHEDUCATEDSIGNATURE", "label" : "分公司级受教育人", "width" : 200, "toggled" : false }, { "name" : "BRANCHEDUCATEDDATE", "label" : "分公司级受教育日期", "width" : 200, "type" : "date", "format" : "YYYY-MM-DD", "inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ", "toggled" : false }, { "name" : "PROJDEPARTEDUCATESIGNATURE_DISPLAY__", "label" : "项目部级教育人", "width" : 200, "toggled" : false }, { "name" : "PROJDEPARTEDUCATEDATE", "label" : "项目部级教育人日期", "width" : 200, "type" : "date", "format" : "YYYY-MM-DD", "inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ", "toggled" : false }, { "name" : "PROJDEPARTEDUCATEDSIGNATURE", "label" : "项目部级受教育人", "width" : 200, "toggled" : false }, { "name" : "PROJDEPARTEDUCATEDDATE", "label" : "项目部级受教育日期", "width" : 200, "type" : "date", "format" : "YYYY-MM-DD", "inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ", "toggled" : false }, { "name" : "GRADEEDUCATESIGNATURE", "label" : "班组级教育人", "width" : 200, "toggled" : false }, { "name" : "GRADEEDUCATEDATE", "label" : "班组级教育日期", "width" : 200, "type" : "date", "format" : "YYYY-MM-DD", "inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ", "toggled" : false }, { "name" : "GRADEEDUCATEDSIGNATURE", "label" : "班组级受教育人", "width" : 200, "toggled" : false }, { "name" : "GRADEEDUCATEDDATE", "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/bf969d57-0f4d-4995-a05a-6c3a82ea4988?format=amis", "api" : { "method" : "get", "url" : "/api/form/PM_PUB_SAFETYEDUCATION/defaults?templateId=bf969d57-0f4d-4995-a05a-6c3a82ea4988" } }, "actions" : [ { "type" : "button", "label" : "保存", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/PM_PUB_SAFETYEDUCATION_ADD?__egtpl=bf969d57-0f4d-4995-a05a-6c3a82ea4988", "close" : true }, { "type" : "button", "label" : "保存并提交审批", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/PM_PUB_SAFETYEDUCATION_SAVE_AND_SUBMIT?__egtpl=bf969d57-0f4d-4995-a05a-6c3a82ea4988", "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/bf969d57-0f4d-4995-a05a-6c3a82ea4988?format=amis", "api" : { "method" : "post", "url" : "/api/flow/PM_PUB_SAFETYEDUCATION_LOAD?__egtpl=bf969d57-0f4d-4995-a05a-6c3a82ea4988", "data" : { "PM_PUB_SAFETYEDUCATION_ID" : "${PM_PUB_SAFETYEDUCATION_ID}" }, "responseData" : { "&" : "${result}" } } }, "actions" : [ { "type" : "button", "label" : "保存", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/PM_PUB_SAFETYEDUCATION_UPDATE?__egtpl=bf969d57-0f4d-4995-a05a-6c3a82ea4988", "close" : true }, { "type" : "button", "label" : "保存并提交审批", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/PM_PUB_SAFETYEDUCATION_SAVE_AND_SUBMIT?__egtpl=bf969d57-0f4d-4995-a05a-6c3a82ea4988", "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_SAFETYEDUCATION_DELETE", "data" : { "ids" : "${selectedItems|pick:PM_PUB_SAFETYEDUCATION_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/8c3a9b11-4492-4a44-a167-da11b0e6c000?format=amis", "static" : true, "api" : { "method" : "post", "url" : "/api/flow/PM_PUB_SAFETYEDUCATION_LOAD?__egtpl=8c3a9b11-4492-4a44-a167-da11b0e6c000", "data" : { "PM_PUB_SAFETYEDUCATION_ID" : "${PM_PUB_SAFETYEDUCATION_ID}" }, "responseData" : { "&" : "${result}" } } } } }, { "type" : "button", "id" : "提交审批", "label" : "提交审批", "actionType" : "ajax", "api" : { "method" : "post", "url" : "/api/flow/PM_PUB_SAFETYEDUCATION_SUBMIT", "data" : { "PM_PUB_SAFETYEDUCATION_ID" : "${selectedItems[0].PM_PUB_SAFETYEDUCATION_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_SAFETYEDUCATION_ID" : "${selectedItems[0].PM_PUB_SAFETYEDUCATION_ID}" }, "body" : { "type" : "service", "schemaApi" : "get:/api/page/schema/96cf55ec-1f2d-4db7-b628-49386d0a6629?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_SAFETYEDUCATION_ID}", "businessTable" : "PM_PUB_SAFETYEDUCATION", "readOnly" : true, "mode" : "read" } } ] } } }, "pagination" ], "primaryField" : "PM_PUB_SAFETYEDUCATION_ID", "onEvent" : { "inited" : { "actions" : [ { "actionType" : "ajax", "api" : { "method" : "post", "url" : "/api/script/execute-template", "data" : { "seq" : 1, "item" : "${&}", "templateId" : "c5bec16c-c3e0-4f2e-87dd-393aac031c0c" } }, "outputVar" : "scriptResult1" }, { "actionType" : "replayScriptCommands", "args" : { "commands" : "${event.data.scriptResult1.commands}" } } ] } } } }