mock.js 5.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. export const currentUser = {
  2. id: 'ZY20230128', name: '陈晓雨', initials: '陈', department: '人力资源部', position: '人事专员',
  3. company: '中盈智能制造有限公司', phone: '138 **** 7621', entryDate: '2023-02-13', workAge: '3年5个月',
  4. }
  5. export const quickActions = [
  6. { key: 'leave', label: '请假', icon: '假', color: '#5b8ff9' },
  7. { key: 'overtime', label: '加班', icon: '班', color: '#61cdbb' },
  8. { key: 'field', label: '外勤', icon: '外', color: '#65789b' },
  9. { key: 'trip', label: '出差', icon: '差', color: '#f6bd16' },
  10. { key: 'shift', label: '调班', icon: '调', color: '#7262fd' },
  11. { key: 'check', label: '补卡', icon: '卡', color: '#78d3f8' },
  12. { key: 'certificate', label: '证明', icon: '证', color: '#f6903d' },
  13. { key: 'more', label: '更多', icon: '•••', color: '#8b939f' },
  14. ]
  15. export const applicationTypes = {
  16. leave: { title: '请假申请', subtitle: '请选择假期类型与请假时间', icon: '假', color: '#5b8ff9' },
  17. overtime: { title: '加班申请', subtitle: '记录加班时间与工作内容', icon: '班', color: '#61cdbb' },
  18. field: { title: '外勤申请', subtitle: '填写外勤地点与工作事项', icon: '外', color: '#65789b' },
  19. trip: { title: '出差申请', subtitle: '填写出差行程与事由', icon: '差', color: '#f6bd16' },
  20. shift: { title: '调班申请', subtitle: '选择原班次与目标班次', icon: '调', color: '#7262fd' },
  21. check: { title: '补卡申请', subtitle: '选择异常日期并说明原因', icon: '卡', color: '#78d3f8' },
  22. resign: { title: '离职申请', subtitle: '填写预计离职日期与原因', icon: '离', color: '#ee6666' },
  23. transfer: { title: '调岗申请', subtitle: '填写目标岗位与申请理由', icon: '岗', color: '#9270ca' },
  24. regular: { title: '转正申请', subtitle: '提交试用期工作总结', icon: '正', color: '#269a99' },
  25. certificate: { title: '证明申请', subtitle: '选择需要开具的证明类型', icon: '证', color: '#f6903d' },
  26. }
  27. export const approvals = [
  28. { id: 101, type: '请假申请', applicant: '李明', dept: '生产一部', avatar: '李', summary: '年假 · 8月7日 08:30 至 8月8日 17:30', time: '今天 09:42', status: '待审批', color: '#5b8ff9', days: '2天', reason: '陪同家人前往医院复查,工作已与王强完成交接。' },
  29. { id: 102, type: '补卡申请', applicant: '周倩', dept: '财务部', avatar: '周', summary: '8月4日 下班卡 · 忘记打卡', time: '昨天 18:20', status: '待审批', color: '#78d3f8', days: '', reason: '下班时临时接待审计人员,离开公司时忘记打卡。' },
  30. { id: 103, type: '加班申请', applicant: '王建国', dept: '设备管理部', avatar: '王', summary: '8月6日 18:00-21:00 · 设备检修', time: '昨天 16:08', status: '待审批', color: '#61cdbb', days: '3小时', reason: '完成3号产线月度预防性维护。' },
  31. ]
  32. export const contacts = [
  33. { id: 1, name: '高志强', dept: '总经办', position: '总经理', avatar: '高', phone: '138 0013 8000' },
  34. { id: 2, name: '宋慧敏', dept: '人力资源部', position: '人力资源总监', avatar: '宋', phone: '139 1156 2038' },
  35. { id: 3, name: '陈晓雨', dept: '人力资源部', position: '人事专员', avatar: '陈', phone: '138 6678 7621' },
  36. { id: 4, name: '李明', dept: '生产一部', position: '工艺工程师', avatar: '李', phone: '186 3280 1902' },
  37. { id: 5, name: '王建国', dept: '设备管理部', position: '设备主管', avatar: '王', phone: '137 2098 3116' },
  38. { id: 6, name: '周倩', dept: '财务部', position: '成本会计', avatar: '周', phone: '135 7721 4520' },
  39. { id: 7, name: '赵磊', dept: '品质管理部', position: '质量工程师', avatar: '赵', phone: '187 1102 5821' },
  40. ]
  41. export const notices = [
  42. { id: 1, title: '关于2026年高温假及防暑降温工作的通知', date: '08-04', tag: '公司通知', read: false },
  43. { id: 2, title: '8月份员工生日会活动报名开始啦', date: '08-02', tag: '员工活动', read: false },
  44. { id: 3, title: '新版考勤管理制度自8月1日起执行', date: '07-28', tag: '制度发布', read: true },
  45. ]
  46. export const workModules = [
  47. { group: '员工服务', items: [
  48. { label: '我的申请', icon: '申', color: '#5b8ff9', url: '/pages/apply/list' },
  49. { label: '我的考勤', icon: '勤', color: '#61cdbb', url: '/pages/attendance/index' },
  50. { label: '工资条', icon: '薪', color: '#f6bd16', url: '/pages/salary/index' },
  51. { label: '假期余额', icon: '假', color: '#5d7092', url: '/pages/leave/index' },
  52. { label: '绩效记录', icon: '绩', color: '#9270ca', url: '/pages/performance/index' },
  53. { label: '培训学习', icon: '学', color: '#269a99', url: '/pages/training/index' },
  54. { label: '个人档案', icon: '档', color: '#f6903d', url: '/pages/profile/edit' },
  55. { label: '证明申请', icon: '证', color: '#6dc8ec', url: '/pages/apply/form?type=certificate' },
  56. ] },
  57. { group: '人事管理', items: [
  58. { label: '审批中心', icon: '审', color: '#1677ff', url: '/pages/approval/index', badge: 3 },
  59. { label: '排班查询', icon: '排', color: '#61cdbb', url: '/pages/attendance/index' },
  60. { label: '员工通讯录', icon: '员', color: '#65789b', url: '/pages/contacts/index' },
  61. { label: '招聘面试', icon: '聘', color: '#f6bd16', url: '/pages/manage/index?type=recruit' },
  62. { label: '合同管理', icon: '合', color: '#7262fd', url: '/pages/manage/index?type=contract' },
  63. { label: '员工入职', icon: '入', color: '#78d3f8', url: '/pages/manage/index?type=onboard' },
  64. { label: '人事异动', icon: '动', color: '#f6903d', url: '/pages/manage/index?type=transfer' },
  65. { label: '数据看板', icon: '数', color: '#5ad8a6', url: '/pages/manage/index?type=dashboard' },
  66. ] },
  67. ]