person.js 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. /**
  2. * 人员服务
  3. * 冯海夫
  4. * 20201008
  5. */
  6. var ServicePerson={
  7. // 仓库人员
  8. getWarehousePersonList:function(){
  9. // return getService.methodPost("/fbsPerson/fbsPerson/getWarehousePersonList");
  10. const personList = [];
  11. personList.push({
  12. realName:"李白",
  13. inTime:"09:11",
  14. warehouseId:"0001",
  15. warehouseName:"A仓库",
  16. classId:"0001",
  17. className:"A班",
  18. avatar:"/images/avatar/avata_1.jpg"
  19. });
  20. personList.push({
  21. realName:"杜普",
  22. inTime:"09:12",
  23. warehouseId:"0001",
  24. warehouseName:"A仓库",
  25. classId:"0001",
  26. className:"A班",
  27. avatar:"/images/avatar/avata_2.jpg"
  28. });
  29. personList.push({
  30. realName:"李牧",
  31. inTime:"09:10",
  32. warehouseId:"0001",
  33. warehouseName:"A仓库",
  34. classId:"0001",
  35. className:"A班",
  36. avatar:"/images/avatar/avata_3.jpg"
  37. });
  38. personList.push({
  39. realName:"范仲淹",
  40. inTime:"09:15",
  41. warehouseId:"0001",
  42. warehouseName:"A仓库",
  43. classId:"0001",
  44. className:"A班",
  45. avatar:"/images/avatar/avata_4.jpg"
  46. });
  47. personList.push({
  48. realName:"里斯",
  49. inTime:"09:14",
  50. warehouseId:"0001",
  51. warehouseName:"A仓库",
  52. classId:"0001",
  53. className:"A班",
  54. avatar:"/images/avatar/avata_5.jpg"
  55. });
  56. return personList;
  57. },
  58. // 人员月出勤率,考勤人数,总人数
  59. getMonthAttendance:function(){
  60. // const list = [];
  61. // list.push({label:"10",sum1:45,sum2:50});
  62. // list.push({label:"11",sum1:48,sum2:50});
  63. // list.push({label:"12",sum1:47,sum2:50});
  64. // list.push({label:"01",sum1:40,sum2:50});
  65. // list.push({label:"02",sum1:42,sum2:50});
  66. // list.push({label:"03",sum1:44,sum2:50});
  67. // list.push({label:"04",sum1:45,sum2:50});
  68. // list.push({label:"05",sum1:47,sum2:50});
  69. // list.push({label:"06",sum1:48,sum2:50});
  70. // list.push({label:"07",sum1:46,sum2:50});
  71. // list.push({label:"08",sum1:49,sum2:50});
  72. // list.push({label:"09",sum1:0,sum2:0});
  73. // return list;
  74. return MethodGetService.methodGet("/fbsWorkshopDispatchList/fbsWorkshopDispatchList/getAttendance");
  75. },
  76. // 人员日出勤率,考勤人数,总人数
  77. getDayAttendance:function(){
  78. // return {
  79. // "考勤人数":48,
  80. // "未考勤人数":2
  81. // };
  82. return MethodGetService.methodGet("/fbsWorkshopDispatchList/fbsWorkshopDispatchList/getAttendanceOfTheDay");
  83. },
  84. // 班组装人员信息
  85. getWorkPersonList:function(){
  86. // const personList = [];
  87. // personList.push({
  88. // realName:"李白",
  89. // inTime:"09:11",
  90. // warehouseId:"0001",
  91. // warehouseName:"A仓库",
  92. // classId:"0001",
  93. // className:"A班",
  94. // avatar:"/images/avatar/avata_1.jpg"
  95. // });
  96. // personList.push({
  97. // realName:"杜普",
  98. // inTime:"09:12",
  99. // warehouseId:"0001",
  100. // warehouseName:"A仓库",
  101. // classId:"0001",
  102. // className:"A班",
  103. // avatar:"/images/avatar/avata_2.jpg"
  104. // });
  105. // personList.push({
  106. // realName:"李牧",
  107. // inTime:"09:10",
  108. // warehouseId:"0001",
  109. // warehouseName:"A仓库",
  110. // classId:"0001",
  111. // className:"A班",
  112. // avatar:"/images/avatar/avata_3.jpg"
  113. // });
  114. // personList.push({
  115. // realName:"范仲淹",
  116. // inTime:"09:15",
  117. // warehouseId:"0001",
  118. // warehouseName:"A仓库",
  119. // classId:"0001",
  120. // className:"A班",
  121. // avatar:"/images/avatar/avata_4.jpg"
  122. // });
  123. // personList.push({
  124. // realName:"里斯",
  125. // inTime:"09:14",
  126. // warehouseId:"0001",
  127. // warehouseName:"A仓库",
  128. // classId:"0001",
  129. // className:"A班",
  130. // avatar:"/images/avatar/avata_5.jpg"
  131. // });
  132. return getService.methodPost("/fbsPerson/fbsPerson/getWarehousePersonList");
  133. },
  134. }