{ "type" : "page", "title" : "个人档案更新申请", "body" : { "type" : "crud", "api" : "/api/flow/HR_OWEEMPLOYEE_SEARCH", "syncLocation" : false, "selectable" : true, "checkOnItemClick" : true, "filter" : { "title" : "查询", "body" : [ { "name" : "ORGID", "label" : "公司", "type" : "tree-select", "clearable" : true, "source" : "/api/template/42861f01-14ea-482d-8031-f30612dfccf4/tree", "searchable" : true, "onlyLeaf" : true }, { "name" : "SERIALNO", "label" : "员工工号", "type" : "input-text" }, { "name" : "SEX", "label" : "性别", "type" : "select", "clearable" : true, "source" : "/api/poc/dict/SEX" }, { "name" : "BIRTH", "label" : "出生日期", "type" : "input-date-range" }, { "name" : "POLITY", "label" : "政治面貌", "type" : "select", "clearable" : true, "source" : "/api/poc/dict/POLICITAL_STATUS" }, { "name" : "NATION", "label" : "民族", "type" : "select", "clearable" : true, "source" : "/api/poc/dict/NATIONALITY" }, { "name" : "NATIVE", "label" : "籍贯", "type" : "select", "clearable" : true, "source" : "/api/poc/dict/NATIVE_PLACE" }, { "name" : "STUDYDEGREE", "label" : "学位", "type" : "select", "clearable" : true, "source" : "/api/poc/dict/STUDYDEGREETYPE" }, { "name" : "DEGREE", "label" : "学历", "type" : "select", "clearable" : true, "source" : "/api/poc/dict/EDUCATIONAL_HISTORY" }, { "name" : "HEALTH", "label" : "健康状况", "type" : "select", "clearable" : true, "source" : "/api/poc/dict/HR_PERSON_HEALTH" }, { "name" : "JOBSTATUS", "label" : "在职状态", "type" : "select", "clearable" : true, "source" : "/api/poc/dict/HR_EMPLOYEE_STATUS" }, { "name" : "STATUS", "label" : "审批状态", "type" : "select", "clearable" : true, "source" : "/api/poc/dict/WFSTATUS" } ] }, "columns" : [ { "name" : "HR_OWEEMPLOYEE_ID", "label" : "主键", "width" : 200, "toggled" : false }, { "name" : "ORGID_DISPLAY__", "label" : "公司", "width" : 200 }, { "name" : "SERIALNO", "label" : "员工工号", "width" : 150 }, { "name" : "USERID_DISPLAY__", "label" : "系统用户", "width" : 100 }, { "name" : "SEX", "label" : "性别", "width" : 45, "type" : "mapping", "map" : { "0" : "女", "1" : "男" } }, { "name" : "BIRTH", "label" : "出生日期", "width" : 80, "type" : "date", "format" : "YYYY-MM-DD", "inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ" }, { "name" : "IDCARD", "label" : "身份证", "width" : 165 }, { "name" : "DEGREE", "label" : "学历", "width" : 80, "type" : "mapping", "map" : { "1055" : "本科", "1056" : "大专", "1057" : "高中", "1058" : "职高", "1059" : "技校", "1060" : "初中", "1061" : "小学以下", "1062" : "硕士", "1063" : "博士", "1244" : "小学", "1245" : "中专" } }, { "name" : "MAJOR", "label" : "专业", "width" : 80 }, { "name" : "POLITY", "label" : "政治面貌", "width" : 80, "type" : "mapping", "map" : { "1068" : "党员", "1069" : "预备党员", "1070" : "团员", "1071" : "群众", "1072" : "其他" } }, { "name" : "JOINTIME", "label" : "任职日期", "width" : 100, "type" : "date", "format" : "YYYY-MM-DD", "inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ" }, { "name" : "SOCIA", "label" : "社保编号", "width" : 120 }, { "name" : "JOBSTATUS", "label" : "在职状态", "width" : 80, "type" : "mapping", "map" : { "1" : "在职", "2" : "离职", "3" : "退休", "4" : "退休留用", "5" : "聘用" } }, { "name" : "STATUS", "label" : "审批状态", "width" : 80, "type" : "mapping", "map" : { "1" : "未提交", "2" : "处理中", "3" : "通过", "4" : "未通过", "5" : "重新提交", "6" : "作废" } } ], "headerToolbar" : [ { "type" : "button", "id" : "添加", "label" : "添加", "level" : "primary", "actionType" : "dialog", "dialog" : { "type" : "dialog", "title" : "添加", "size" : "lg", "body" : { "type" : "service", "schemaApi" : "get:/api/page/schema/68b44a6c-9d1c-4e9f-a613-a43077f5a725?format=amis", "api" : { "method" : "get", "url" : "/api/form/HR_OWEEMPLOYEE/defaults?templateId=68b44a6c-9d1c-4e9f-a613-a43077f5a725" } }, "actions" : [ { "type" : "button", "label" : "保存", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/HR_OWEEMPLOYEE_ADD?__egtpl=68b44a6c-9d1c-4e9f-a613-a43077f5a725", "close" : true }, { "type" : "button", "label" : "保存并提交审批", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/HR_OWEEMPLOYEE_SAVE_AND_SUBMIT?__egtpl=68b44a6c-9d1c-4e9f-a613-a43077f5a725", "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/68b44a6c-9d1c-4e9f-a613-a43077f5a725?format=amis", "api" : { "method" : "post", "url" : "/api/flow/HR_OWEEMPLOYEE_LOAD?__egtpl=68b44a6c-9d1c-4e9f-a613-a43077f5a725", "data" : { "HR_OWEEMPLOYEE_ID" : "${HR_OWEEMPLOYEE_ID}" }, "responseData" : { "&" : "${result}" } } }, "actions" : [ { "type" : "button", "label" : "保存", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/HR_OWEEMPLOYEE_UPDATE?__egtpl=68b44a6c-9d1c-4e9f-a613-a43077f5a725", "close" : true }, { "type" : "button", "label" : "保存并提交审批", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/HR_OWEEMPLOYEE_SAVE_AND_SUBMIT?__egtpl=68b44a6c-9d1c-4e9f-a613-a43077f5a725", "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/HR_OWEEMPLOYEE_DELETE", "data" : { "ids" : "${selectedItems|pick:HR_OWEEMPLOYEE_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/68b44a6c-9d1c-4e9f-a613-a43077f5a725?format=amis", "static" : true, "api" : { "method" : "post", "url" : "/api/flow/HR_OWEEMPLOYEE_LOAD?__egtpl=68b44a6c-9d1c-4e9f-a613-a43077f5a725", "data" : { "HR_OWEEMPLOYEE_ID" : "${HR_OWEEMPLOYEE_ID}" }, "responseData" : { "&" : "${result}" } } } } }, { "type" : "button", "id" : "提交审批", "label" : "提交审批", "actionType" : "ajax", "api" : { "method" : "post", "url" : "/api/flow/HR_OWEEMPLOYEE_SUBMIT", "data" : { "HR_OWEEMPLOYEE_ID" : "${selectedItems[0].HR_OWEEMPLOYEE_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].HR_OWEEMPLOYEE_ID}", "businessTable" : "HR_OWEEMPLOYEE", "readOnly" : true, "mode" : "read" } } ] } } }, "pagination" ], "primaryField" : "HR_OWEEMPLOYEE_ID" } }