智星融

hcm


流程常见配置

退休审批通过后,自动处理劳动合同: 云函数:workflow_end_contractBill 增加字段: 合同处理方式

解除方式

合同终止解除原因

合同终止解除时间

事件:结束节点审批完成时 { "kwargs":

{
    "inst_id": "@api:inst.id@",
    "employee_id": "@form.employee_id@",
    "type_": "@form.合同处理方式key@",
    "end_method": "@form.解除方式key@",
    "end_date": "@form.终止解除日期key@",
    "reason_id": "@form.原因key@"
},
"plugin": "workflow_end_contractBill"

}

{ "kwargs": { "type_": "@form.contract_status@", "inst_id": "@api:inst.id@", "end_date": "@form.terminate_date@", "reason_id": "@form.reason_id@", "employee_id": "@form.name@" }, "plugin": "workflow_end_contractBill" }

2.列表部门全路径: 字段: { "label": "部门", "key": "department_id", "field": [ "department", "name" ], "width": 200, "state": null, "sequence": 50, "align": "left", "hide": true }, { "label": "部门ID", "key": "department_origin_id", "field": [ "department", "origin_id" ], "width": 200, "hide": true, "state": null, "sequence": 50, "align": "left" }, { "label": "部门", "key": "department_full_path", "field": [ "department_full_path" ], "width": 300, "state": null, "sequence": 50, "align": "left" } 云函数: 获取部门的全路径:department_full_path_str 显示部门全称:list_department_full_path_str 元数据插件: "data_plugins": [ { "key": "list_department_full_path_str", "name": "list_department_full_path_str" } ] 卡片部门全路径: info界面 form_relations "key": "name",   { "key": "department_id", "expression": "PLUGIN('department_full_path_str', {'department_id':department_id}).get('name')" },

{ "value_onchange": [ { "key": "department_full_path", "expression": "PLUGIN('department_full_path_str', {'department_id':department_id}).get('name')" } ], "key": "position_id" }

3.集团领导排序:需增加字段 管理团队类型

管理团队人员

集团领导审批人

集团领导排序1

集团领导排序2

集团领导排序3

集团领导排序4

集团领导排序5

集团领导排序6

集团领导排序7

集团领导排序8

云函数: emp_list_by_group_lead emp_list_by_business_type_id 表单高级设置:form_relations: 管理团队中的人排序  {             "key": "business_type_id",             "value_onchange": [{                     "expression": "PLUGIN('emp_list_by_business_type_id',{'business_type_id':business_type_id}).get('emp_ids')",                     "key": "sort_record"                 },                 {                     "expression": "[]",                     "key": "group_lead"                 }             ]         }, 人员排序后对应环节:  {             "key": "group_lead",             "value_onchange": [{                     "expression": "PLUGIN('emp_list_by_group_lead',{'group_lead':group_lead})",                     "key": "leadership_sort_record"                 },                 {                     "expression": "leadership_sort_record.get('leadership_sort1')",                     "key": "leadership_sort1"                 },                 {                     "expression": "leadership_sort_record.get('leadership_sort2')",                     "key": "leadership_sort2"                 },                 {                     "expression": "leadership_sort_record.get('leadership_sort3')",                     "key": "leadership_sort3"                 },                 {                     "expression": "leadership_sort_record.get('leadership_sort4')",                     "key": "leadership_sort4"                 },                 {                     "expression": "leadership_sort_record.get('leadership_sort5')",                     "key": "leadership_sort5"                 },                 {                     "expression": "leadership_sort_record.get('leadership_sort6')",                     "key": "leadership_sort6"                 },                 {                     "expression": "leadership_sort_record.get('leadership_sort7')",                     "key": "leadership_sort7"                 },                 {                     "expression": "leadership_sort_record.get('leadership_sort8')",                     "key": "leadership_sort8"                 }             ]         } 4.领导审批意见回写:需增加字段 集团领导审批意见

相关领导审批意见

云函数: approve_comment approve_comment_special 事件: { "param": { "count": [1, 2, 3, 4, 5], "model": "wf_form_data_flex_data.6671", "inst_id": "@api:inst.id@", "field_key": ["opinions_otherlead"] }, "plugin": "approve_comment" } 或者字段:opinions_lead

5.直接领导审批增加“直接领导”字段,流程审批人获取表单字段

6.流程列表过滤只显示本人提交的单据;

7.流程选人过滤(提交人为规划与配置处,人员选择范围为总助及以下;提交人为任免处,人员选择范围为总助以上);

8.根据用工类型判断子流程环节

9.子流程结束后启动主流程: 事件:子流程是否完成审批校验 放在子流程结束后第一个主流程环节,决策插件

  1. 同意按钮改为提交、不同意改为结束流程并隐藏、打回改为驳回OK   节点按钮设置: { "undo": { "name": "我的待办", "disable": true }, "agree": { "name": "办结", "disable": false }, "print": { "name": "单据打印", "disable": true }, "recall": { "name": "驳回", "disable": true }, "process": { "name": "查看流程", "disable": true }, "disagree": { "name": "结束流程", "disable": true }, "contrast_info": { "name": "差异对比", "disable": true } }   表单高级设置: { "key": "agree", "label": "提交", "action": "AGREE", "sequence": 10 }, { "key": "recall", "label": "驳回", "action": "RECALL", "sequence": 20 } , { "key": "disagree", "label": "结束流程", "action": "DISAGREE", "sequence": 30, "hide": true   }

11.流程接收消息;表头OK @form.name@退休

  1. 启动子流程的环节不同,子流程前增加自动通过环节,提交后事件OK   13.如果是高级主管以下,人力资源部长环节无集团领导审批人字段,人事专员办结无集团领导审批意见——拆环节处理OK   14.发起界面-直接领导隐藏:任免处 结束界面:相关领导意见显示-规配、高级主管以下;集团领导意见显示-规配、高级主管以上;直接领导-全部隐藏;手续办理环节-全部显示   15.通知本人退休手续办理   16.薪级薪档回写云函数: salary_scale_detail_write_back salary_scale_detail_write_back

17.手续办理清单发送-弾性模型 云函数: workFlow_sendMessage thing_listModel_plugin 系统自动启动子流程环节,提交后 审批通过加事件“触发子流程之后发送消息”

18.提交、结束后界面差异展示--二开hide代码处理

  1. 套打表

不涉及审批的环节审批意见默认“办理完成”,若无法实现空着; 1.审批界面,左上角不显示“专员”(发起人)名称,只显示谁退休; 2.驳回的意见,每个审批意见,要在审批意见显示;

页面列表

ITEM_HTML