文档
一、数据库SQL
ALTER table att_approval_records add column `business_trips_location` varchar(255) DEFAULT '' COMMENT '出差地点';
ALTER table att_approval_records modify column `type` tinyint NOT NULL COMMENT '审批类型(1:补卡 3:出差(与crm类型一致) 41:事假 42:病假 43:年假 44:调休 45:婚假 46:丧假 48:产假 49:陪产假(后续还有请假))';
ALTER table attendance_records modify column `mark_type` tinyint NOT NULL DEFAULT '0' COMMENT '0待标记, 1休息 2旷工 3补卡 4请假(41事假, 42病假, 43年假, 44调休, 45婚假, 46丧假, 47其他假, 48产假,49陪产假) 5正常外勤 6待岗补卡 7出差';
-- 原架构
INSERT INTO sys_menu (menu_name,parent_id,order_num,`path`,component,is_frame,is_cache,menu_type,visible,status,perms,icon,create_by,create_time,update_by,update_time,remark,module_type)
VALUES('出差',0,4,'','/pagesAssess/consumer/evection',1,0,'M','0','0','pagesAssess:consumer:evection','https://lkl.lurb.online/recruiter/download/logo/trips.png','admin',NULL,'',NULL,'小程序工作台出差',2);
-- 合并到crm用户端菜单
-- 获取上级ID
SELECT parent_id from wk_crm_table.wk_admin_menu WHERE realm_module = 'hr' and menu_name = '请假';
-- parent_id使用上面查询的数据
INSERT INTO wk_crm_table.wk_admin_menu (parent_id,menu_name,realm,realm_url,realm_module,menu_type,sort,status,remarks,project_type,module_type,icon)
VALUES(xxx,'公出','pagesAssess:consumer:evection','/pagesAssess/consumer/evection','hr',1,6,1,NULL,'1',2,'https://lkl.lurb.online/recruiter/download/logo/trips.png');
ALTER table message_setting add column `business_trips` int(10) NOT NULL DEFAULT '1' COMMENT '出差--是否允许通知(0否,1是)';
ALTER table attendance_records_relation add column `clock_time_rule_id` int DEFAULT NULL COMMENT '打卡时间规则id';
ALTER table attendance_records_relation modify column `type` int(5) NOT NULL DEFAULT '0' COMMENT '类型:0-补卡数据原来的数据, 1出差';
审批端公出入口
进入CRM后台设置-人事管理-人事审批流 新建审批流程,分组使用考勤分组
配置
小程序nacos配置
-- 新增OA审批通知模板(群钉单)
wxTemplateMsg:
templateId_14: qDEcgeHTyVjhNtTa41oUXCSCzj2okl02QBd0bs4IBGc
# 出差申请、审批通知(微聘)
templateId_14: NSZiwAPiCDq6_KocJeLs_1xHYJa6wh6ISeRrQljCzrE
修改于 2024-02-23 05:48:16