product.js 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256
  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 {
  69. // "成品A": 20,
  70. // "成品B": 100,
  71. // "成品C": 80,
  72. // "成品D": 150,
  73. // "成品E": 200,
  74. // };
  75. return MethodGetService.methodGet("/fbsDispatchLists/fbsDispatchLists/getProjectDelivery");
  76. },
  77. // 月项目发货统计,根据项目维度
  78. getMonthSendByProject: function () {
  79. return {
  80. "项目A": 20,
  81. "项目B": 100,
  82. "项目C": 80,
  83. "项目D": 150,
  84. "项目E": 200,
  85. };
  86. },
  87. // 成品库存,物料维度
  88. getStockList: function () {
  89. return {
  90. "成品A": 800,
  91. "成品B": 900,
  92. "成品C": 1000,
  93. "成品D": 700,
  94. "成品E": 600,
  95. "成品F": 1100,
  96. "成品G": 500
  97. };
  98. },
  99. // 根据产品分类获取质量异常数量
  100. getQualityExceptionByCategory: function () {
  101. return MethodGetService.methodGet("/fbsWorkshopDispatchList/fbsWorkshopDispatchList/getAbnormalHoursMonthReport");
  102. // return {
  103. // "分类A": 800,
  104. // "分类B": 900,
  105. // "分类C": 1000,
  106. // "分类D": 700,
  107. // "分类E": 600,
  108. // "分类F": 1100,
  109. // "分类G": 500
  110. // };
  111. },
  112. // 某月产品良数量
  113. getMonthGood: function () {
  114. const list = [];
  115. list.push({
  116. label: "产品A",
  117. sum1: 48,
  118. sum2: 50
  119. });
  120. list.push({
  121. label: "产品B",
  122. sum1: 80,
  123. sum2: 90
  124. });
  125. list.push({
  126. label: "产品C",
  127. sum1: 47,
  128. sum2: 50
  129. });
  130. list.push({
  131. label: "产品D",
  132. sum1: 40,
  133. sum2: 50
  134. });
  135. list.push({
  136. label: "产品E",
  137. sum1: 42,
  138. sum2: 50
  139. });
  140. list.push({
  141. label: "产品F",
  142. sum1: 44,
  143. sum2: 50
  144. });
  145. list.push({
  146. label: "产品G",
  147. sum1: 45,
  148. sum2: 50
  149. });
  150. // return list;
  151. return MethodGetService.methodGet("/fbsAbnormalWorkingHours/fbsAbnormalWorkingHours/getRejectsNumber");
  152. },
  153. // 月制程异常,根据分类
  154. getMonthExceptionByCategory: function () {
  155. // return {
  156. // "分类A": 600,
  157. // "分类B": 500,
  158. // "分类C": 300,
  159. // "分类D": 200,
  160. // "分类E": 100,
  161. // "分类F": 200,
  162. // "分类G": 400
  163. // };
  164. return MethodGetService.methodGet("/fbsAbnormalWorkingHours/fbsAbnormalWorkingHours/getQualityType");
  165. },
  166. // 周成品入库数量,根据分类
  167. getWeekInByCategory: function () {
  168. // return {
  169. // "分类A": 500,
  170. // "分类B": 600,
  171. // "分类C": 800,
  172. // "分类D": 700,
  173. // "分类E": 600,
  174. // "分类F": 400,
  175. // "分类G": 500
  176. // };
  177. return MethodGetService.methodGet("/fbsMomOrder/fbsMomOrderdetail/getQualifiedInQtyWeek");
  178. },
  179. // 生产效率
  180. getProduceRate: function () {
  181. // const rate = 95;
  182. var rate=MethodGetService.methodGet("/fbsWorkshopDispatchList/fbsWorkshopDispatchList/getProductionEfficiency");
  183. return {
  184. name: "生产效率",
  185. value: rate
  186. };
  187. },
  188. // 日生产效率
  189. getDayProduceRate: function () {
  190. const rate = 90;
  191. return {
  192. name: "生产效率",
  193. value: rate
  194. };
  195. },
  196. // 某日产品良数量
  197. getDayGood: function () {
  198. const list = [];
  199. list.push({
  200. label: "产品A",
  201. sum1: 48,
  202. sum2: 50
  203. });
  204. list.push({
  205. label: "产品B",
  206. sum1: 80,
  207. sum2: 90
  208. });
  209. list.push({
  210. label: "产品C",
  211. sum1: 47,
  212. sum2: 50
  213. });
  214. list.push({
  215. label: "产品D",
  216. sum1: 40,
  217. sum2: 50
  218. });
  219. list.push({
  220. label: "产品E",
  221. sum1: 42,
  222. sum2: 50
  223. });
  224. list.push({
  225. label: "产品F",
  226. sum1: 44,
  227. sum2: 50
  228. });
  229. list.push({
  230. label: "产品G",
  231. sum1: 45,
  232. sum2: 50
  233. });
  234. return list;
  235. },
  236. // 日质量异常,根据分类
  237. getDayExceptionByCategory: function () {
  238. return {
  239. "分类A": 600,
  240. "分类B": 500,
  241. "分类C": 300,
  242. "分类D": 200,
  243. "分类E": 100,
  244. "分类F": 200,
  245. "分类G": 400
  246. };
  247. },
  248. }