product.js 6.9 KB

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