product.js 7.9 KB

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