person.js 5.7 KB

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