product.js 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253
  1. /**
  2. * 成品服务
  3. * 冯海夫
  4. * 20201008
  5. */
  6. var ServiceProduct = {
  7. // 待发货成品
  8. getWatingSendList: function () {
  9. const productList = [];
  10. productList.push({
  11. warehouseName: "A仓库",
  12. materialCode: "10001",
  13. materialName: "物料A",
  14. specs: "3*4",
  15. sendSum: "10",
  16. planSendDate: "09月18日"
  17. });
  18. productList.push({
  19. warehouseName: "A仓库",
  20. materialCode: "10002",
  21. materialName: "物料B",
  22. specs: "3*4",
  23. sendSum: "20",
  24. planSendDate: "09月18日"
  25. });
  26. productList.push({
  27. warehouseName: "A仓库",
  28. materialCode: "10003",
  29. materialName: "物料C",
  30. specs: "3*4",
  31. sendSum: "30",
  32. planSendDate: "09月18日"
  33. });
  34. productList.push({
  35. warehouseName: "B仓库",
  36. materialCode: "10004",
  37. materialName: "物料D",
  38. specs: "3*4",
  39. sendSum: "40",
  40. planSendDate: "09月18日"
  41. });
  42. productList.push({
  43. warehouseName: "B仓库",
  44. materialCode: "10005",
  45. materialName: "物料E",
  46. specs: "3*4",
  47. sendSum: "50",
  48. planSendDate: "09月18日"
  49. });
  50. productList.push({
  51. warehouseName: "B仓库",
  52. materialCode: "10006",
  53. materialName: "物料F",
  54. specs: "3*4",
  55. sendSum: "60",
  56. planSendDate: "09月18日"
  57. });
  58. return productList;
  59. },
  60. // 已入库数量
  61. getSendSum: function () {
  62. return 9;
  63. },
  64. // 月成品出货统计,根据成品维度
  65. getMonthSend: function () {
  66. // return {
  67. // "成品A": 20,
  68. // "成品B": 100,
  69. // "成品C": 80,
  70. // "成品D": 150,
  71. // "成品E": 200,
  72. // };
  73. return MethodGetService.methodGet("/fbsDispatchLists/fbsDispatchLists/getProjectDelivery");
  74. },
  75. // 月项目发货统计,根据项目维度
  76. getMonthSendByProject: function () {
  77. return {
  78. "项目A": 20,
  79. "项目B": 100,
  80. "项目C": 80,
  81. "项目D": 150,
  82. "项目E": 200,
  83. };
  84. },
  85. // 成品库存,物料维度
  86. getStockList: function () {
  87. return {
  88. "成品A": 800,
  89. "成品B": 900,
  90. "成品C": 1000,
  91. "成品D": 700,
  92. "成品E": 600,
  93. "成品F": 1100,
  94. "成品G": 500
  95. };
  96. },
  97. // 根据产品分类获取质量异常数量
  98. getQualityExceptionByCategory: function () {
  99. return MethodGetService.methodGet("/fbsWorkshopDispatchList/fbsWorkshopDispatchList/getAbnormalHoursMonthReport");
  100. // return {
  101. // "分类A": 800,
  102. // "分类B": 900,
  103. // "分类C": 1000,
  104. // "分类D": 700,
  105. // "分类E": 600,
  106. // "分类F": 1100,
  107. // "分类G": 500
  108. // };
  109. },
  110. // 某月产品良数量
  111. getMonthGood: function () {
  112. const list = [];
  113. list.push({
  114. label: "产品A",
  115. sum1: 48,
  116. sum2: 50
  117. });
  118. list.push({
  119. label: "产品B",
  120. sum1: 80,
  121. sum2: 90
  122. });
  123. list.push({
  124. label: "产品C",
  125. sum1: 47,
  126. sum2: 50
  127. });
  128. list.push({
  129. label: "产品D",
  130. sum1: 40,
  131. sum2: 50
  132. });
  133. list.push({
  134. label: "产品E",
  135. sum1: 42,
  136. sum2: 50
  137. });
  138. list.push({
  139. label: "产品F",
  140. sum1: 44,
  141. sum2: 50
  142. });
  143. list.push({
  144. label: "产品G",
  145. sum1: 45,
  146. sum2: 50
  147. });
  148. // return list;
  149. return MethodGetService.methodGet("/fbsAbnormalWorkingHours/fbsAbnormalWorkingHours/getRejectsNumber");
  150. },
  151. // 月制程异常,根据分类
  152. getMonthExceptionByCategory: function () {
  153. // return {
  154. // "分类A": 600,
  155. // "分类B": 500,
  156. // "分类C": 300,
  157. // "分类D": 200,
  158. // "分类E": 100,
  159. // "分类F": 200,
  160. // "分类G": 400
  161. // };
  162. return MethodGetService.methodGet("/fbsAbnormalWorkingHours/fbsAbnormalWorkingHours/getQualityType");
  163. },
  164. // 周成品入库数量,根据分类
  165. getWeekInByCategory: function () {
  166. // return {
  167. // "分类A": 500,
  168. // "分类B": 600,
  169. // "分类C": 800,
  170. // "分类D": 700,
  171. // "分类E": 600,
  172. // "分类F": 400,
  173. // "分类G": 500
  174. // };
  175. return MethodGetService.methodGet("/fbsMomOrder/fbsMomOrderdetail/getQualifiedInQtyWeek");
  176. },
  177. // 生产效率
  178. getProduceRate: function () {
  179. // const rate = 95;
  180. var rate=MethodGetService.methodGet("/fbsWorkshopDispatchList/fbsWorkshopDispatchList/getProductionEfficiency");
  181. return {
  182. name: "生产效率",
  183. value: rate
  184. };
  185. },
  186. // 日生产效率
  187. getDayProduceRate: function () {
  188. const rate = 90;
  189. return {
  190. name: "生产效率",
  191. value: rate
  192. };
  193. },
  194. // 某日产品良数量
  195. getDayGood: function () {
  196. const list = [];
  197. list.push({
  198. label: "产品A",
  199. sum1: 48,
  200. sum2: 50
  201. });
  202. list.push({
  203. label: "产品B",
  204. sum1: 80,
  205. sum2: 90
  206. });
  207. list.push({
  208. label: "产品C",
  209. sum1: 47,
  210. sum2: 50
  211. });
  212. list.push({
  213. label: "产品D",
  214. sum1: 40,
  215. sum2: 50
  216. });
  217. list.push({
  218. label: "产品E",
  219. sum1: 42,
  220. sum2: 50
  221. });
  222. list.push({
  223. label: "产品F",
  224. sum1: 44,
  225. sum2: 50
  226. });
  227. list.push({
  228. label: "产品G",
  229. sum1: 45,
  230. sum2: 50
  231. });
  232. return list;
  233. },
  234. // 日质量异常,根据分类
  235. getDayExceptionByCategory: function () {
  236. return {
  237. "分类A": 600,
  238. "分类B": 500,
  239. "分类C": 300,
  240. "分类D": 200,
  241. "分类E": 100,
  242. "分类F": 200,
  243. "分类G": 400
  244. };
  245. },
  246. }